Currently reads as:

---8<---------8<---------8<---------8<---------8<---------8<---------8<------
Install PCI Utils by running the following commands:

make PREFIX=/usr                \
     SHAREDIR=/usr/share/hwdata \
     SHARED=yes

This package does not come with a test suite.

Now, as the root user:

make PREFIX=/usr                \
     SHAREDIR=/usr/share/hwdata \
     SHARED=yes                 \
     install install-lib        &&

chmod -v 755 /usr/lib/libpci.so

Command Explanations

SHARED=yes: This parameter enables building of the shared library
instead of the static one.

ZLIB=no: This option prevents compression of the pci.ids file.
---8<---------8<---------8<---------8<---------8<---------8<---------8<------


so should the ZLIB=no command be added to the two make commands,
or is it no longer required, because the default is "no" ?

Actually, I'll have stab at answering that myself, by saying that,
as an LFS system will have a zlib installed, the default would
be "yes", given that the pciutils README says:

---8<---------8<---------8<---------8<---------8<---------8<---------8<------
 ZLIB=yes/no   Enable support for compressed pci.ids (requires zlib).
                If it is enabled, pciutils will use pci.ids.gz in preference to
                pci.ids, even if the pci.ids file is newer.  If the pci.ids.gz
                file is missing, it will use pci.ids instead.  If you do not
                specify this option, the configure script will try to guess
                automatically based on the presence of zlib.
---8<---------8<---------8<---------8<---------8<---------8<---------8<------


Similarly, whilst I was looking into that, I noticed that the

SHAREDIR=/usr/share/hwdata

command is not explained, even though it is/was presumably there
so as to override the Makefile default, which would derive from

---8<---------8<---------8<---------8<---------8<---------8<---------8<------
# Installation directories
PREFIX=/usr/local
SBINDIR=$(PREFIX)/sbin
SHAREDIR=$(PREFIX)/share
IDSDIR=$(SHAREDIR)
...
---8<---------8<---------8<---------8<---------8<---------8<---------8<------

however, as the BLFS install is overriding PREFIX, is there any
need to override SHAREDIR ?

Furthermore, in the Makefile, SHAREDIR isn't used anywhere, other
than to define IDSDIR, which is then used elsewhere, so perhaps BLFS
should be explicitly overriding that, assuming that overriding PREFIX isn't
enough, of itself ?


Finally, FWIW, and For Completeness,

I also noted (as part of a PkgUser build, which tends to highlight these
things) that pciutils created the

/usr/share/hwdata

directory, although it's not listed as an "Installed Directory" for pciutils
in the BLFS book, and I could see that other, similar packages might
want to populate it.


Hoping that's useful,
Kevin
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to