Commit graph

1222 commits

Author SHA1 Message Date
Pierre Labastie
183cc33453 Fix a missing newline in one message 2019-04-24 15:03:58 +00:00
Pierre Labastie
72e9e684e7 Fix a long standing bug in func_check_version.sh:
Using the non existent dotSTR variable caused a ragged output.
Use the spaceSTR variable rather
2019-04-24 15:01:26 +00:00
Pierre Labastie
aeb8539125 Fix generation of install instructions, and remove those pesky && as much as
possible
2019-04-22 09:38:44 +00:00
Pierre Labastie
dfc023a13c typo 2019-04-18 08:55:19 +00:00
Pierre Labastie
a22bfe1ab5 Author: Jeremy Huntwork <jhuntwork@lightcubesolutions.com>
Date:   Tue Apr 16 13:31:09 2019 -0700

    Improve testing of configuration file timestamp
    
      * Provide a default value for each so that the comparisons of the time
        of each file doesn't fail.
      * Two commands in the Makefile could acceptably fail, but would
        produce some ugly warnings.
    
    Signed-off-by: Pierre Labastie <pierre.labastie@neuf.fr>
2019-04-17 07:06:13 +00:00
Pierre Labastie
8589e90f5c Remove spurious spaces at the end of lines 2019-04-16 13:02:12 +00:00
Pierre Labastie
8fb8ff2612 Remove a spurious blank line in gen-install.xsl 2019-04-16 12:15:21 +00:00
Pierre Labastie
aa283c0dee Fix again properties 2019-04-16 08:29:14 +00:00
Pierre Labastie
2e2ac742c7 Add missing $Id:$ comments 2019-04-16 08:06:03 +00:00
Pierre Labastie
c048987a2c BLFS: fix generation of install and test instructions (ticket #1721):
- add a gen-install.xsl stylesheet for grouping all cases
- add a mode="installation" attribute for templates
- rewrite sect2 template so that the right templates are applied
- adapt other templates so that they are compatible
- rewording of some comments (no direct relation with the ticket)
2019-04-16 07:30:02 +00:00
Pierre Labastie
bc2f5913e6 Improve common/progress_bar.sh based on shellcheck:
- remove useless array declarations
  - remove unused variables
  - remove $ prefix for variable names in arithmetic expressions
  - normalize indentation (2 spaces)
2019-04-13 16:33:38 +00:00
Pierre Labastie
0e4ddfa0c1 Improve top-level jhalfs based on shellcheck
* Various improvements from shellcheck around quoting, the use of
   read, `` vs $() and other logical comparisons
 * Provide a function for sourcing/loading files so we can remove a lot
   of duplication. Move loading of some functions from
   common/common-functions to ./jhalfs for consistency
 * Provide some functions for standardized messaging
 * Remove other duplication in the code, especially checking VERBOSITY
 * Standardize indentation. Two spaces seemed the most prevalent so I
   went with that.

Patch by Jeremy Huntwork, with slight modifications.
2019-04-13 16:31:24 +00:00
Pierre Labastie
2758d9421e Use sect1info for getting informations on LFS packages:
- add sect1info sections to packagemanager.xml.xxx + various fixes
- add templates in LFS/lfs.xsl for script start and script end:
  - script start: define variables containing package information
                  print disk usage
                  unpack and change dir
  - script end: print disk usage
                remove build dir
- remove the corresponding operations from master.sh
2019-04-11 07:40:50 +00:00
Pierre Labastie
adbd09b06c LFS/lfs.xsl: Update directory layout of PKG_DEST
- Do not symlink /{usr/,}lib64->lib
    - Do not symlink /usr/{man,info}->share
    - Create /lib64 on x86_64
    - Create /usr/lib/pkgconfig
    - do not create /usr/lib/rpcsvc
    - check that a directory exists before testing its emptyness
      (for example, attr removes empty manx dirs)
2019-04-08 10:03:26 +00:00
Pierre Labastie
eabfc593e5 Unset MAKELEVEL in BLFS scriptlets. Fixes #1720. 2019-03-26 07:53:17 +00:00
Pierre Labastie
05f3977323 Add initramfs to non-versioned packages 2019-03-25 21:47:04 +00:00
Pierre Labastie
3142368d67 I cannot read: variable in /etc/sysconfig/console is LOGLEVEL, not LOG_LEVEL! 2019-03-15 16:18:48 +00:00
Pierre Labastie
c6506aea23 Remove sudo from commands run as root (and some DEBUG lines) 2019-03-15 08:55:01 +00:00
Pierre Labastie
a659e46082 Hopefully get the devices: target Ok now 2019-03-14 21:02:58 +00:00
Pierre Labastie
13c475babc Get virtual kernel filesystem commands from the book, and really add
/run/systemd/resolve/resolv.conf after creating the kernel FS in chapter 6
2019-03-13 06:31:55 +00:00
Pierre Labastie
49ba78d711 Always display gcc's full version 2019-03-11 14:25:09 +00:00
Pierre Labastie
f5e658dc6c Fix filename extension in /etc/sysconfig/ifconfig.xxx so that it matches
the IFACE value. Works only with revision 11556 or later of LFS book.
2019-03-10 09:15:10 +00:00
Pierre Labastie
426c618053 Stupid typo 2019-03-09 20:27:44 +00:00
Pierre Labastie
3b43e17bda Generate console files:
- add variables LOCAL (y is hw clock set to local time) and LOG_LEVEL (sysv)
- generate /etc/sysconfig/console (sysv) or /etc/vconsole.conf (systemd)
- generate /etc/adjtime (only systemd)
- remove UNICODE and FONTMAP variables (jhalfs makes unicode default)
2019-03-09 08:11:37 +00:00
Pierre Labastie
90f5b6de2e Remove obsolete blfs_tools dependencies 2019-03-09 08:02:10 +00:00
Pierre Labastie
5af9ab4b8c In the systemd book, the network card is designed as
"<network-device-name>", not "eth0".
2019-03-09 07:18:52 +00:00
Pierre Labastie
d39252b7ca LFS: Copy /etc/resolv.conf to where it should be during chroot, for
systemd: this allows using the network in chroot.
Also add a chroot1 target, and update the teardown target to what is
in the book.
2019-03-09 07:15:41 +00:00
Pierre Labastie
399058f718 Python in func_check_version should be uppercase 2019-02-15 16:06:46 +00:00
Pierre Labastie
7a821947ad Add version check for Python 2019-02-15 14:11:36 +00:00
Pierre Labastie
cd02aa5ad9 Remove obsolete udev detection in BLFS/gen-special.sh 2019-02-10 13:05:14 +00:00
Pierre Labastie
b71e3adb60 Move porg_bash_completion to where it belongs 2019-01-16 10:09:37 +00:00
Pierre Labastie
d505128fbc Do not exit on SIGCHLD:
With bash 5.0, a SIGCHLD signal is sent whenever a subshell exits. The signal
numbers passed to the trap instruction in jhalfs contain SIGCHLD, and this
new behavior causes jhalfs to exit. Fix this by using names instead of numbers
for the trap, and (of course) not trapping SIGCHLD.
2019-01-13 08:32:24 +00:00
Pierre Labastie
f168be19d5 Remove "-i" flags in kernel scriptlet 2019-01-02 20:57:01 +00:00
Pierre Labastie
04fcea11b7 Add the case of Test-MockModule (perl module) to packInstall.sh 2018-12-08 10:12:46 +00:00
Pierre Labastie
c8d5f11878 update-lfs.sh: remove tools package from instpkg.xml 2018-12-08 10:04:25 +00:00
Pierre Labastie
94a78ddfa2 When installing BLFS tools, the database of installed packages is populated
with LFS pacakges. But packages installed only in tools should not be in
this database. As a side note, it would be cleaner to use an xsl stylesheet
for that.
2018-12-08 09:04:01 +00:00
Pierre Labastie
1646303d91 A module can be a special case, too (perl-test-mockmodule) 2018-11-23 14:30:06 +00:00
Pierre Labastie
6e28f3c4de Translate parentheses to "_" in the module page names. Otherwise there are errors when displaying the
menu
2018-09-28 14:39:18 +00:00
Pierre Labastie
625cb147bd Add possibility to automate bash shell startup files, vimrc, and rng.
This adds a new variable to the configuration (LANGUAGE).
Also automate the generation of various <replaceable> instructions
2018-09-28 14:35:46 +00:00
Pierre Labastie
3b4399c962 Add a case for lynx in packInstall.sh.porg 2018-09-04 10:06:09 +00:00
Pierre Labastie
b86dfaf1c0 Fix generation of chroot instructions 2018-05-12 11:27:10 +00:00
Pierre Labastie
6747d510ed Fix packInstall.sh.porg for junit 2018-03-19 21:01:06 +00:00
Pierre Labastie
2b67b9ba4d Finally, openldap does not need .la files 2018-03-11 05:55:16 +00:00
Pierre Labastie
2969cdfb6b Prevent openldap module .la files to be removed
They are needed for loading modules...
2018-03-10 14:30:21 +00:00
Pierre Labastie
0d1c9f0ce1 Now libuv has a version string starting with"v" 2018-03-10 11:04:42 +00:00
Pierre Labastie
eb5a32de85 Fix syntax error in preceding commit 2018-03-10 10:08:38 +00:00
Pierre Labastie
b25dbcf791 packInstall.sh.porg: account for the possibility of
having a source directory named x265_vx.y or just x265_x.y
(where x and y are digits)
2018-03-10 10:02:26 +00:00
Pierre Labastie
5c69841844 Special case for unrar in packInstall.sh.porg 2018-02-25 08:30:01 +00:00
Pierre Labastie
8fb1daade2 Special case for psutils in packInstall.sh.porg 2018-02-25 08:05:56 +00:00
Pierre Labastie
e030049a44 BLFS/func_dependencies: when building the graph, and DEP_LEVEL=3 (build opt
deps only for requested packages), it may happen that a requested packages
    is seen at depth > 2 before it is seen at depth=2. In this case, optional
    deps are not processed the first time, and then the package is not processed
    at depth 2 because it has already been seen. Add a case statement against
    that.
2018-02-19 16:01:00 +00:00