fix IDSDIR to make pciutils reproducible (issue #147)

This commit is contained in:
Trammell Hudson 2017-03-31 14:33:15 -04:00
parent 27e35f6ef7
commit 2db3c33866
Failed to extract signature

View File

@ -11,23 +11,28 @@ pciutils_tar := pciutils-$(pciutils_version).tar.xz
pciutils_url := https://www.kernel.org/pub/software/utils/pciutils/$(pciutils_tar)
pciutils_hash := 64293c6ab9318c40ef262b76d87bd9097531759752bac556e50979b1e63cfe66
# IDSDIR must be set to a constant during the build,
# but not during the install to make the libpci.so.3
# reproducible. Otherwise the build path will be embedded
# in the library and executables.
pciutils_target := \
$(MAKE_JOBS) \
CC="$(heads_cc)" \
ZLIB=no \
HWDB=no \
SHARED=yes \
IDSDIR=/ \
PREFIX=$(INSTALL) \
install \
&& \
$(MAKE) \
-C $(build)/$(pciutils_dir) \
$(MAKE_JOBS) \
CC="$(heads_cc)" \
ZLIB=no \
HWDB=no \
SHARED=yes \
PREFIX=$(INSTALL) \
install \
install-lib \
pciutils_output := \