RPM-4.16.1.2 macro %configure issue
Scott Andrews
scott.andrews at columbus.rr.com
Sun Dec 27 18:10:06 UTC 2020
Started to use the %{configure} macro in my spec files and got the
following,
rpm -E %configure
./configure --host=armv7l-unknown-linux-gnueabihf
--build=armv7l-unknown-linux-gnueabihf \ --program-prefix= \
--disable-dependency-tracking \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
--datadir=/usr/share \
--includedir=/usr/include \
--libdir=/usr/lib \
--libexecdir=/usr/libexec \
--localstatedir=/usr/var \
--sharedstatedir=/usr/com \
--mandir=/usr/share/man \
--infodir=/usr/share/info
rpm was built using
Build=' %{configure} \
--with-crypto=libgcrypt \
--with-gnu-ld \
--with-archive \
--with-lua \
--disable-openmp \
--without-selinux \
--enable-posixmutexes \
--enable-zstd=no \
--enable-python \
--enable-sqlite \
--enable-bdb=no \
--disable-dependency-tracking \
--disable-silent-rules \
--disable-nls \
--disable-rpath \
--disable-inhibit-plugin \
--localstatedir=/var \
--sharedstatedir=/var/lib
%{make_build}'
They only way I can get to be
correct for my use is to add
%_localstatedir /var
%_sharedstatedir /var/lib
to /etc/rpm/macros
Shouldn't the configure params
--localstatedir=/var and --sharedstatedir=/var/lib set that correctly?
/usr/lib/rpm/macros and /usr/lib/rpm/platform/*/macros are correct in
that they have %{localstatedir} and %{sharedstatedir} set to /var
and /var/lib.
I can not figure out how %{localstatedir} and %{sharedstatedir} are
being set incorrectly
Thanks
More information about the Rpm-list
mailing list