Hi all, I just tried to build a package for SLES12SP5, but it failed during %configure. The problem is that the rpm macro, defined in /usr/lib/rpm/macros, contains the argument "--disable-dependency-tracking". Which is not recognized somehow:
[ 22s] + cd os-update-1.8 [ 22s] + CFLAGS='-fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection' [ 22s] + export CFLAGS [ 22s] + CXXFLAGS='-fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection' [ 22s] + export CXXFLAGS [ 22s] + FFLAGS='-fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection' [ 22s] + export FFLAGS [ 22s] + ./configure --host=x86_64-suse-linux-gnu --build=x86_64-suse-linux-gnu --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/lib64 --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --enable-vendordir=/etc [ 22s] configure: WARNING: unrecognized options: --disable-dependency-tracking, --disable-dependency-tracking
If I replace the macro with the configure call from the error message, but just leave out the --disable-dependency-tracking option (that is included twice), everything builds fine.
https://build.opensuse.org/project/show/home:ojkastl_buildservice:systemd-st...
The project is standard, no funny things in prjconf. I just added the build targets via the GUI. So I am surprised that the rpm macros file contains things the configure call does not understand. For now it is fine to just hardcode this, but I wanted to report this or rather ask, if it is a bug and should be reported. Kind Regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537