aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't add >> $TEST_LOG if already redirecting to an absolute pathHEADtrunkXi Ruoyao2024-08-271-0/+1
| | | | | | | | | One example of such a command is echo 'NAME="Linux From Scratch"' > /etc/os-release in systemd. If adding >> $TEST_LOG we'll not create the /etc/os-release files and test failures will happen.
* Fix --from lfs removal when there's only one occurence of itXi Ruoyao2024-08-261-1/+1
| | | | | This code path has been incorrect but the vanilla book does not invoke it. But fix it anyway for customized LFS branches.
* Remove --from lfs from chown for nowXi Ruoyao2024-05-131-0/+20
| | | | | | | | | | | | We've added --from lfs for chown commands in the beginning of chap 7 to avoid breaking host distro completely in case the user has not set $LFS correctly. But jhalfs deletes the lfs user before running the changingowner script, thus "chown --from lfs" fails because "lfs" does not exist. For now just remove "--from lfs" from the chown commands. Technically we should remove the lfs user after the chown commands (because having files owned by unnamed UID is bad).
* Adapt packInstall.sh.porg to xdg-utils locationPierre Labastie2024-02-131-1/+1
|
* packInstall.sh.porg: fix boost casePierre Labastie2024-02-091-4/+0
| | | | | boost uses now a more conventional version string, so that having a special case for it is not needed anymore.
* Merge branch 'ablfs-more' into trunkPierre Labastie2024-02-097-150/+447
|\ | | | | | | I've used it for a while, and nothing bad seems to be occurring...
| * Adapt to new book layout in Xorg librariesablfs-morePierre Labastie2024-02-071-5/+16
| |
| * plasma-post-install: fix installed versionPierre Labastie2023-12-071-2/+2
| | | | | | | | | | | | | | In gen-special.sh, the generated specialCases.xsl takes installed version for $package instead of plasma-post-install (copy/paste error). This generates a bad version (the one of plasma instead of the dummy 1.0.0). Change $package to plasma-post-install...
| * Merge branch 'trunk' into ablfs-morePierre Labastie2023-11-2315-269/+477
| |\
| * | Fix a sed for kf5-intro versionPierre Labastie2023-11-071-1/+1
| | |
| * | Add a script for plasma post-install instructionsPierre Labastie2023-11-012-2/+88
| | | | | | | | | | | | | | | | | | This is needed the first time plasma is installed. There are some links from /usr/share to $KF5_PREFIX, and also the pam.d files.
| * | Make kf5-intro versionedPierre Labastie2023-11-011-1/+9
| | | | | | | | | | | | | | | | | | | | | kf5-intro contains kf5-frameworks version, so should be run each time there is a new version. We retrieve this version from packages.ent, and we put it in packages.xml. This should be enough.
| * | nitpick in gen-special.sh: fix indentPierre Labastie2023-11-011-3/+3
| | |
| * | compound packages: some subpackages are not builtPierre Labastie2023-10-311-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | some subpackage names contain digits (for example libX11), but we test that the tarball name with digits replaced with "X" contain $package-X. The problem is that the digits have been replaced in the whole tarball name, and don't match $package. So translate $package too. Note that there is no problem if some packages have names only differing with digits, since we are sure that the tarball name contain "$package-". We just want to rule out the case when what comes after $package- is not a version string.
| * | Fix download url for some kf5 packagesPierre Labastie2023-10-311-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | Some kf5 packages are in a subdirectory "portingAids" of the main download directory. There is no way to know which ones by simply examining the frameworks-<version>.md5 file. So use directly a list of packages known to be in the subdirectory. This may change when kf5 changes...
| * | compound packages: some subpackages are not builtPierre Labastie2023-10-311-1/+1
| | | | | | | | | | | | | | | | | | | | | We remove lines containing "cat" and "EOF", but some subpackage names may contain "cat" (for example knotifications). the lines to remove contain also a tag, so change the regexp to >cat and EOF<
| * | Fix automatic user password in mit-kerberosPierre Labastie2023-10-311-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | There are two problems: - "mypw" is in a dictionary of forbidden passwords - "-pw" cannot be after the login name when running "addprinc" change automatic password to "lupw" change order of replacement of "loginname"
| * | Comments for the inst-instr templatePierre Labastie2023-10-211-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | kf5 has one push and to popd in its instructions. We used to just use what was between push and popd. But now, we need to only use what is in the case instruction for one package, and what is after the esac for all the others.
| * | Fix: packages with similar names in kf5 and plasmaPierre Labastie2023-10-211-96/+111
| | | | | | | | | | | | | | | When this is the case they are both installed. We need to check exact names.
| * | Add comments after adding kf5 and plasma to specialPierre Labastie2023-10-213-24/+19
| | |
| * | Merge branch 'trunk' into ablfs-morePierre Labastie2023-10-211-9/+19
| |\ \
| * | | Update comments in BLFS/gen-special.shPierre Labastie2023-09-201-26/+17
| | | | | | | | | | | | | | | | | | | | Also change a %%-[[:digit:]* to %-[[:digit:]]* because we want to select only the last occurrence of this pattern.
| * | | Add automation for kf5 and plasma5Pierre Labastie2023-09-194-46/+85
| | | |
| * | | Add password settings for krb5Pierre Labastie2023-09-171-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | This is a workaround for instructions that would wait forever for a password (or timeout) in krb5. But it sets very simple passwords, that should be changed afterwards.
| * | | Process <prompt> tags in mit-kerberosPierre Labastie2023-09-172-2/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when we have a command followed by prompts: command <prompt>command:</prompt> instr ... we want to transform to: command << PROMPT_EOF instr ... quit PROMPT_EOF. This patch implements this. The problem is that the <prompt> tags may occur in several consecutive <screen> ones. So we create a fragment tree and process it recursively.
* | | | "&>" is not recognized by some shellsPierre Labastie2023-12-091-1/+1
| |_|/ |/| | | | | | | | | | | | | | Since jhalfs may be run on dsitros where the default shell invoked by python is not bash, it may happen that "&>" does not produce the expected result. Fix by using the "posix" way: ">xxx 2>&1".
* | | Major refactoring of READMEPierre Labastie2023-11-231-145/+248
| | | | | | | | | | | | | | | Describe each item in the menu, fix layout, and try to follow the order of tasks to do to run jhalfs.
* | | Fix configuration about saving temporary workPierre Labastie2023-11-231-4/+5
| | | | | | | | | | | | | | | It is no more at the end of chapter five now... Also the tar file is not compressed
* | | Confg.in: fix help for ALL_CORESxry111/parallelismPierre Labastie2023-11-211-7/+12
| | | | | | | | | | | | | | | The settings don't depend on book version, and you can answer y even with old books.
* | | Move the parallelism menu to "Build Settings"Pierre Labastie2023-11-211-51/+51
| | | | | | | | | | | | | | | Now that parallelism has been included into the book, this is no more an advanced configuration...
* | | Merge branch 'trunk' into xry111/parallelismPierre Labastie2023-11-211-4/+1
|\ \ \
| * | | Remove a spurious menu in Config.inPierre Labastie2023-11-211-4/+1
| | | |
* | | | Merge branch 'trunk' into xry111/parallelismPierre Labastie2023-11-216-40/+4
|\| | |
| * | | LFS: remove alternate server codePierre Labastie2023-11-215-18/+1
| | | | | | | | | | | | | | | | | | | | | | | | It's been broken for years, and nobody has complained, so I'd say it is not useful. If a user wants to use a mirror instead of upstream, better use a wget-list directly on this server...
| * | | BLFS: remove support for ftp and alternate serverPierre Labastie2023-11-211-22/+3
| | | | | | | | | | | | | | | | | | | | ftp urls have been removed from book, and in case you have to use an alternate server, better download directly to /sources/yourself.
| * | | BLFS tools: update qt?-prefix for recent booksPierre Labastie2023-11-181-1/+1
| | |/ | |/|
* | | BLFS tools: update qt?-prefix for recent booksPierre Labastie2023-11-181-1/+1
| | |
* | | Stupid typoPierre Labastie2023-11-171-1/+1
| | |
* | | blfs tools: fix JOBSPierre Labastie2023-11-171-1/+2
| | | | | | | | | | | | | | | | | | If all cores are used, it should be set to 0, which will use nproc after the cpuset has been defined, and not nproc (which is the number of cores/threads on the machine).
* | | Pass NINJAJOBS if N_PARALLEL is definedPierre Labastie2023-11-171-20/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that MAKEFLAGS is defined at the beginning of the scriptlet, there is no need to pass MAKEFLAGS as an envar to the scriptlet. But still NINJAJOBS is not defined. In most cases, when we want to use all cores, this is not a problem. But if N_PARALLEL is defined, it needs to be passed. Note that we also pass MAKEFLAGS in this case, because we use the old "wrt_xxx" function, but it is not used.
* | | Fix MAKEFLAGS for binutils-pass1Pierre Labastie2023-11-172-2/+14
| | | | | | | | | | | | | | | We need a special case for binutils-pass1 in case REALSBU is set to y. Use variables JOBSBP1 in shell and jobs-bp1 in .xsl.
* | | Fix blfs tools Makefile now that MAKEFLAGS is setPierre Labastie2023-11-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the "update" target was just added to the end of the "all" target prerequisites, so that it was run at the end. But now, we enter make with some -j value in MAKEFLAGS, so that the "update" target may well be run before the other targets, which is wrong: for example if it is run before the "xxx-z-libxslt" target, xsltproc is not found and the update target fails. To fix, define "update" as the default target, and have it depend on "all".
* | | blfs tools: update JOBS for the new configPierre Labastie2023-11-171-1/+1
| | | | | | | | | | | | | | | | | | Now, we have ALL_CORES set to y or n, and depending on this, we want either JOBS to be set to $(nproc) or to the value of N_PARALLEL.
* | | Pass sanitized MAKEFLAGS to scriptletsPierre Labastie2023-11-171-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we have MAKEFLAGS in the environment, "make" in chroot is run with MAKEFLAGS set. This cause it to pass the -j value into MAKEFLAGS to inferiors (scriptlets), but it is passed with a --jobserver-auth value added. If we do not precede the command running the scriptlet with a +, it passes --jobserver-auth=-2,-2 meaning that the jobserver is disabled, and "make" in the scriptlet understands that it should only run one job at a time (defeating the value of the -j flag). But even if we do precede the command running the scriptlet with a +, it passes --jobserver-auth=3,4, which shows it is running, but this jobserver will authorize only one job at a time since the parent make contains the target .NOTPARALLEL! To work around this problem, tje only solution is to change the MAKEFLAGS at the beginning of the scriptlet. Fortunately, lfs.xsl knows what we want as job number (either $(nproc) or a fixed number), so use it to set MAKEFLAGS.
* | | Fix (again) the run-in-cgroup.sh scriptPierre Labastie2023-11-161-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | When using "sh << EOF", what is between this line and EOF runs with no attached terminal. But we need a terminal for running the build. So we have to use "sh -c ". But then nesting of double quotes, $, etc is too complicated. So run as root, and become back user only when exec'ing. For some reason $@ does not work, so use a variable set to $@.
* | | TypoPierre Labastie2023-11-161-1/+1
| | | | | | | | | | | | The name of the script is run-in-cgroup.sh, not run-in-cgroup ...
* | | Fix session management in run-in-cgroup.shPierre Labastie2023-11-161-9/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Still WIP but some progress... When moving a shell to a cgroup not associated with a session, then subsequent calls to pam_systemd or pam_elogind create a new session, and a new cgroup for that session, so that the cgroup of the calling process is not used (this is a problem with both systemd and elogind). For systemd, the problem can be solved by passing --slice <user slice> to systemd-run. For elogind, we need to first move the shell to a non session cgroup, then run sudo so that a new session is created, then pass the cpuset to that session's cgroup. Hopefully, if neither systemd nor elgind is used, then the former solution should work (to be tested!!!).
* | | Add forgotten run-with-cgroup.sh scriptPierre Labastie2023-11-151-0/+19
| | |
* | | Fix a typoPierre Labastie2023-11-151-1/+1
| | |
* | | Allow users to pass a cpusetPierre Labastie2023-11-153-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If using a new book, MAKEFLAGS is set to -j$(nproc), so that if we want to easure timings with 4 processors and our computer has more than that, we need to restrict the number of processors. Jhalfs allows to do that using th cpuset cgroup controller, so that it only restrits the make job and not the whole machine. For that use a small scripts written by Xi Ruoyao that restarts make this the cpuset set.