Note that if you build something relying on $SHELL, it may still fail to
build in chroot.
In the chroot we first use "env -i" to clean the environment variables.
When bash starts with no $SHELL set, it *sets* SHELL=(the login shell
of current user specified in /etc/passwd), but it *does not export this
variable*.
For example:
$ cat > t.c << EOF
#include <stdio.h>
#include <stdlib.h>
int main() { puts (getenv ("SHELL") ?: "(nullptr)"); }
$ ./a.out
/bin/zsh/
$ cc t.c
$ env -i bash -c "echo $SHELL"
/bin/zsh
$ env -i bash -c "./a.out"
(nullptr)
We can remove this now only because Mozilla has added a workaround into
their building system at
https://hg.mozilla.org/mozilla-central/rev/5afe7b911f61 for some Mac
builder, inadvertently fixing our issue.
Link: https://lists.linuxfromscratch.org/sympa/arc/blfs-support/2014-11/msg00050.html
Link: https://lists.linuxfromscratch.org/sympa/arc/blfs-dev/2023-11/msg00136.html
If a newline is inside the comment, it won't be rendered. So we can
avoid an excessive amount of empty lines in seamonkey, and break the
long comments about RELR into multiple lines.
1. Drop --enable-optimize because it's the default.
2. Use -Wl,-z,pack-relative-relocs as a replacement for elf-hack.
3. Add --enable-rust-simd for SIMD optimization, like Arch and Gentoo.
4. Make the formatting (captialization and punctuation) of comments more
consistent.
I can build it w/o zip and I cannot see how zip is used. And yasm is
only used for building shipped libvpx, but we are recommending system
libvpx anyway.
Without pciutils, they output a suspicious line at startup:
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: libpci missing (t=0.284539) [GFX1-]: glxtest: libpci missing
I'm not sure what it means but I think there will be no harm if we add
pciutils as optional runtime.
Firefox shares many components with TB, so it also suffers the
same mutability UB exploited by LLVM 16. Though it does not crash at
start up, there are some reports saying a crash will happen in certain
conditions. Use the same patch as TB to fix the UB.
The patch has been symlinked in patches.git.
firefox-102.6.0,
js-102.6.0.
Measured on AMD 3400G using linux-6.0.12, and only 4 cores online
for JS, sizes and timings on other machines differ slightly.
On this occasion the measurements are from an intel haswell, on
my normal test machine (still on icu71 and python3.10) the install
is 2MB larger and the SBU is bigger than for 102.4.0.