Mailinglist Archive: opensuse-factory (533 mails)

< Previous Next >
Re: [opensuse-factory] %install continues after %build failure
  • From: Stephan Kulow <coolo@xxxxxxxxxx>
  • Date: Tue, 6 Apr 2010 12:21:21 +0200
  • Message-id: <201004061221.22323.coolo@xxxxxxxxxx>
Am Montag 05 April 2010 schrieb Dirk Müller:
Hi,

I see lots of strange errors during %install that are actually caused by a
previous error in %build.

example:

/usr/src/packages/BUILD/vigra1.6.0/src/impex/png.cxx: In constructor
'vigra::PngDecoderImpl::PngDecoderImpl(const std::string&)':
/usr/src/packages/BUILD/vigra1.6.0/src/impex/png.cxx:202:51: warning:
ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)',
declared with attribute warn_unused_result
make[2]: *** [png.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/usr/src/packages/BUILD/vigra1.6.0/src/impex'
make[1]: Leaving directory `/usr/src/packages/BUILD/vigra1.6.0/src'
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.P9Rrmv


it seems the rpm build script is no longer executed with set -e. is that an
intentional change? if not, where did that regression come from?

As in your %install, it also executes %build with sh -e, so I don't think the
problem is there. I wonder if automake or make eats the exit status. Because
make[2] is Error, make[1] is fine.

Greetings, Stephan
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
References