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/package/rdiff/home:ojkastl_buildservice:systemd-s...
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
On Dez 21 2022, Johannes Kastl wrote:
[ 22s] configure: WARNING: unrecognized options: --disable-dependency-tracking, --disable-dependency-tracking
This is just a warning, the problem must be somewhere else.
Hi Andreas,
On 21.12.22 at 14:06 Andreas Schwab wrote:
On Dez 21 2022, Johannes Kastl wrote:
[ 22s] configure: WARNING: unrecognized options: --disable-dependency-tracking, --disable-dependency-tracking
This is just a warning, the problem must be somewhere else.
Of course you are right. It seems the %make_build macro failed, but the error was intermingled with the configure warning, so I was mislead... :-(
I replaced the macro for SLES12 and the package seems to build fine now.
Sorry for the noise.
Kind Regards, Johannes