[opensuse-buildservice] On RHEL4 and SLES9 only Source packages are generated
Hello! In the below project I have the problem that it's build nicely in all systems except RHEL4 and SLES9 where after configuring it packs the sources and finishes the build successful. Unfortunately no RPMs are built. Any ideas? https://build.opensuse.org/package/show?package=maildrop&project=home%3Aweberho%3Aqmail-lsb Best regards, Johannes -- Johannes Weberhofer Weberhofer GmbH, Austria, Vienna -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Freitag, 17. September 2010, 09:46:48 schrieb Johannes Weberhofer:
Hello!
In the below project I have the problem that it's build nicely in all systems except RHEL4 and SLES9 where after configuring it packs the sources and finishes the build successful. Unfortunately no RPMs are built. Any ideas?
https://build.opensuse.org/package/show?package=maildrop&project=home%3Aweberho%3Aqmail-lsb
Without looked at it, usually this happens with broken/not defined rpm macros. So it ends in a starting %if without closing %endif, so rpm handles it like no %files section exists. -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Adrian, thank you for leading me to the "if" section. I have checked the spec-file, and found that for RHEL4 and SLES9 the "%if %{defined mdkversion}" did not work. Replacing it by "%if 0%{?mandriva_version}" solved the problem. Many thanks, Johannes Am 23.09.2010 11:00, schrieb Adrian Schröter:
Am Freitag, 17. September 2010, 09:46:48 schrieb Johannes Weberhofer:
Hello!
In the below project I have the problem that it's build nicely in all systems except RHEL4 and SLES9 where after configuring it packs the sources and finishes the build successful. Unfortunately no RPMs are built. Any ideas?
https://build.opensuse.org/package/show?package=maildrop&project=home%3Aweberho%3Aqmail-lsb
Without looked at it, usually this happens with broken/not defined rpm macros. So it ends in a starting %if without closing %endif, so rpm handles it like no %files section exists.
-- Johannes Weberhofer Weberhofer GmbH, Austria, Vienna -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 09/23/2010 05:56 AM, Johannes Weberhofer wrote:
Adrian, thank you for leading me to the "if" section. I have checked the spec-file, and found that for RHEL4 and SLES9 the "%if %{defined mdkversion}" did not work. Replacing it by "%if 0%{?mandriva_version}" solved the problem.
I will confirm that "%if 0%{?tagname}" works consistently across a broad
array of repos, whereas "%if %{defined tagname}" does not. I spent time
researching it last week.
Cheers,
James
--
James Perkins
participants (3)
-
Adrian Schröter
-
James Perkins
-
Johannes Weberhofer