On Sun, 30 Aug 2020 22:04:59 +0200 Pierre Labastie via blfs-support <blfs-support@lists.linuxfromscratch.org> wrote:
> On Sat, 2020-08-29 at 20:20 -0400, Chris Gorman via blfs-support > wrote: > > Hello Again, > > > > I believe I have found the culprit for my 'broken' search path for > > gcc > > and g++. In 'Introduction to Xorg-7' we are told to run the > > following > > if we are using a directory other than /usr as our $XORG_PREFIX. ... > > > > cat >> /etc/profile.d/xorg.sh << "EOF" > > > > pathappend $XORG_PREFIX/bin PATH > > pathappend $XORG_PREFIX/lib/pkgconfig PKG_CONFIG_PATH > > pathappend $XORG_PREFIX/share/pkgconfig PKG_CONFIG_PATH > > > > pathappend $XORG_PREFIX/lib LIBRARY_PATH > > pathappend $XORG_PREFIX/include C_INCLUDE_PATH > > pathappend $XORG_PREFIX/include CPLUS_INCLUDE_PATH > > > > ACLOCAL="aclocal -I $XORG_PREFIX/share/aclocal" > > > > export PATH PKG_CONFIG_PATH ACLOCAL LIBRARY_PATH C_INCLUDE_PATH > > CPLUS_INCLUDE_PATH > > EOF > > > > The setting of C_INCLUDE_PATH and CPLUS_INCLUDE_PATH here cause a > > gcc and g++ to change their search order, to put /usr/include at the > > beginning of their search path. This breaks some builds like mesa. > > To be clear, this was my fault as the note before this states to > > skip these instructions if I am using /usr as my $XORG_PREFIX, > > which I am. > > > > Hope this helps someone else. > > Thanks a lot for the investigation and the finding. You are not the > first to run instructions for $XORG_PREFIX != /usr while setting > XORG_PREFIX=/usr... This generates several hard to debug failures. I > think we should explicitly have an if...fi pair around those > instructions (that would help jhalfs too :). > > Pierre > Arch patches this, so it doesn't cause errors. pkgname=itstool pkgver=2.0.6 pkgrel=2 epoch=1 pkgdesc="XML to PO and back again" arch=(any) url="http://itstool.org/" license=(GPL3) depends=(python libxml2 docbook-xml) makedepends=(git) _commit=60f3a955ca047b1d62a1d952beec74afaff7cbbf # tags/2.0.6^0 source=("git+https://github.com/itstool/itstool#commit=$_commit" itstool-2.0.5-fix-crash-wrong-encoding.patch) sha256sums=('SKIP' 'cb57e3694ab3d7c62b063629b2e9edc6327260c0797d0f33c8dc97fe37c40ebb') pkgver() { cd $pkgname git describe --tags | sed 's/-/+/g' } prepare() { cd $pkgname # From https://src.fedoraproject.org/rpms/libxml2/tree/master patch -Np1 -i ../itstool-2.0.5-fix-crash-wrong-encoding.patch autoreconf -fvi } build() { cd $pkgname ./configure --prefix=/usr make } check() { cd $pkgname make check } package() { cd $pkgname make DESTDIR="$pkgdir" install } -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page