RPM-4.16.1.2 macro %configure issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list



[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux