LFS: Version SVN-20160527 (non-systemd)
BLFS: Version 2016-06-06
Build Host: Arya Linux live CD. Booted CD, mounted disk, built tools and base system by hand (no automated scripts), absolutely no errors nor deviations from book.
Base system came out flawless. Built the rest of the system in chroot from a previous LFS (3 years old)
Background: Successfully built LFS many times in the last 10 years or so, in VM and baremetal. Also have failed at it for numerous reasons over the years, mostly due to build host being strange or rushing through and trying my own thing...
Everything has gone well. From tools build to base install. Getting X up and running, fvwm, etc.
Only time I had to deviate was for logrotate having an error in the source, I'll post patch inline here for anyone else.
Now to the issue at hand.
I'll skip most of the colorful commentary and get right to the point.
Firefox-46.0.1 failed to compile with a "cannot access system_wrappers" error. I set the notion aside since I had better things to do and Firefox was not a priority, Elinks works fine.
Was compiling mozjs17.0.0 a few days later for libnotify I believe and got an error that seemed familiar - sure enough "cannot access system_wrappers_js: No such file or directory".
Looking into it a little bit I can see that perl is being called to run a script to parse a file of headers which creates a directory and loops some stuff... but apparently the script is not working in the LFS build.
Toss the mozjs17.0.0 source on my son's Slack box, and it runs fine.
So it seems to be localized to this build. Has anyone else come across this? It's not *that* big of a deal right now, I don't necessarily need a graphical web browser. Guess I could always grab a binary from mozilla or compile on another box. But I see no mention of this anywhere online and thought I'd dump the info here for others to see.
Error output from compiling mozjs17.0.0, which is almost verbatim of the firefox error
Code:
../config/system-headers | /usr/bin/perl ../config/make-system-wrappers.pl system_wrappers_js
/usr/src/misc/mozjs17.0.0/js/src/config/nsinstall -R system_wrappers_js ../dist
/usr/src/misc/mozjs17.0.0/js/src/config/nsinstall: cannot access system_wrappers_js: No such file or directory
make[2]: *** [Makefile:64: export] Error 1
And lest I forget, a simple patch for logrotate 3.9.1. I believe it has been fixed upstream though.
Code:
Common subdirectories: logrotate-3.9.1.orig/examples and logrotate-3.9.1/examples
diff -uN logrotate-3.9.1.orig/logrotate.c logrotate-3.9.1/logrotate.c
--- logrotate-3.9.1.orig/logrotate.c 2016-06-02 13:34:25.705875693 -1000
+++ logrotate-3.9.1/logrotate.c 2016-06-02 13:34:56.233877519 -1000
@@ -1779,9 +1779,9 @@
{
int hasErrors = 0;
- if (!state->doRotate)
+ if (!state->doRotate) {
return 0;
-
+ }
if (!hasErrors && log->flags & LOG_FLAG_TMPFILENAME) {
char *tmpFilename = NULL;
if (asprintf(&tmpFilename, "%s%s", log->files[logNum], ".tmp") < 0) {
Common subdirectories: logrotate-3.9.1.orig/test and logrotate-3.9.1/test