On 2020-09-04 09:30 +0200,Pierre Labastie via lfs-dev wrote: > On Fri, 2020-09-04 at 00:47 -0500, Bruce Dubbs via lfs-dev wrote: > > On 9/3/20 10:53 PM, Xi Ruoyao via lfs-dev wrote: > > > Now we are using --prefix=/usr in "Ch. 6 Cross Compiling Temporary > > > Tools". The > > > problem is that configure scripts (generated by autoconf) will try > > > to load > > > ${prefix}/share/config.site and ${prefix}/etc/config.site. These > > > things are > > > really "powerful" - they can even override some command line > > > options. > > > > > > "/usr/etc" should not exist on any FHS-compilant distro, but > > > "/usr/share/config.site" exists on many distros. > > > > > > My suggestion is to add `export CONFIG_SITE=/dev/null` in > > > /home/lfs/.bashrc. It > > > would override the default config.site search rule. > > > > I don't know that we have ${prefix}/etc/config.site. I do not. I > > do > > have /usr/etc/xdg/autostart/xfce4-notifyd.desktop that was installed > > yesterday when I updated xfce4-notifyd. > > > > We probably need to specify --sysconfdir=/etc for that. > > > > As an example, fedora has /usr/share/config.site in the autoconf > package. This one is smart and is skipped in case of cross compilation, > but just in case, I second Xi Ruoyao's proposal. Or even to have > > CONFIG_SITE=$LFS/usr/share/config.site > > We might then create a config.site for our own use, for example with > prefix=/usr > sysconfdir=/etc > localestatedir=/var > sharedstatedir=/var > > That would prevent the need to have those in the configure commands... > > Pierre
No, that will cause some unexpected behavior. To fix some typical non-FHS directories we should explicitly check them, like: if [ sysconfdir = "/usr/etc" ]; then sysconfdir=/etc fi -- Xi Ruoyao <xry...@mengyan1223.wang> School of Aerospace Science and Technology, Xidian University -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page