Bruce Dubbs wrote: > Bryan Kadzban wrote: >> Ken Moffat wrote: >>> I don't have kmod source handy, so I can't tell if it will take an >>> overide in the same way. >> Both kmod and xz needed a "pkgconfigdir=/usr/lib/pkgconfig" override on >> the "make install" command line for me, when I built both recently. I >> also passed udev a "sharepkgconfigdir=/usr/lib/pkgconfig" override, >> otherwise it dumped udev.pc into /usr/share/pkgconfig, where nothing >> ever looks -- or at least, the way I built pkg-config, nothing ever >> looks there. Not sure if that matches BLFS or not though... >> >> (Though just to be safe, I also overrode pkgconfigdir= on the "make" and >> "make check" runs for kmod and xz, and sharepkgconfigdir= on the "make" >> and "make check" runs for udev. Not sure if anything uses those values >> at build or check time, but that's safest I think.) >> >> I don't know what other packages might need this, though, since I only >> built the requirements for udev-180. :-/ > > If you look at > http://www.linuxfromscratch.org/blfs/view/svn/x/xorg7.html towards the > bottom of the page, you see: > > 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 > export PATH PKG_CONFIG_PATH > EOF > > Actually, the last export command is not needed, only `source /etc/profile`. > > You can put any directory needed in PKG_CONFIG_PATH. We don't have to > have everything in /usr/lib/pkgconfig. For those packages I build in > /opt (qt, trinity, kde, etc), I prefer the pkg-config files separated > from /usr/lib/pkgconfig.
Well, I stay away from editing PKG_CONFIG_PATH for the same reason I prevent files from being installed into /usr/share/pkgconfig in the first place: a combination of multilib cleanliness and distrust of random people's install scripts. (That last bit is the reason I still use a hacked-up old variant of msb's package-user hint, as well.) But sure, stuff built in /opt definitely does not belong there. We don't need to change the book for udev, but I figured I'd throw it out there in case anyone thought it was a good idea. If not, fair enough.
signature.asc
Description: OpenPGP digital signature
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
