[opensuse-buildservice] Problems building rubygem in OBS for Leap 42.2 and Tumbleweed
Hi all, I'm trying to get a rubygem to build and package for Leap 42.2 and Tumbleweed. Everything works fine for openSUSE 13.1 and 13.2, i.e. I get the desired RPMs. Packaging, however, doesn't work for Leap 42.2 and Tumbleweed and I'm unsure what's actually causing the problem. The project can be found here: https://build.opensuse.org/package/show/home:tdoerges/rubygem-wxruby The failures occur in %install and seem to be identical for Leap 42.2 and Tumbleweed. %gem_install is called which in turn invokes "/usr/bin/gem.ruby2.[12] install ..." The latter seems to work (I see "1 gem installed") but it still exits with an error code != 0. --- snip --- [ 2185s] Installing ri documentation for wxruby-2.0.1-x86-linux [ 2185s] Done installing documentation for wxruby after 3 seconds [ 2185s] 1 gem installed [ 2185s] error: Bad exit status from /var/tmp/rpm-tmp.t4jPIT (%install) [ 2185s] [ 2185s] [ 2185s] RPM build errors: [ 2185s] Bad exit status from /var/tmp/rpm-tmp.t4jPIT (%install) --- snap --- I'm guessing that's the problem, because if I cd into the build root on my local machine (created by 'osc build openSUSE_Leap_42.2 x86_64') and manually execute the script created by RPM everything works fine. The script simply runs until the end. --- snip --- box:/var/tmp # /bin/sh rpm-tmp.0pwFoj [...] 100% [73/73] lib/wxruby2.so Done installing documentation for wxruby after 1 seconds 1 gem installed + '[' 2 -eq 2 ']' + echo 'gem_install likely worked, if it said '\''1 gem installed'\''. So ignoring this...' gem_install likely worked, if it said '1 gem installed'. So ignoring this... + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-suse calling /usr/lib/rpm/brp-suse.d/brp-05-permissions setting / to root:root 0755. (wrong owner/group abuild:abuild) setting /usr/ to root:root 0755. (wrong owner/group abuild:abuild) calling /usr/lib/rpm/brp-suse.d/brp-15-strip-debug /usr/lib/rpm/brp-suse.d/brp-15-strip-debug: line 33: /dev/fd/62: No such file or directory /usr/lib/rpm/brp-suse.d/brp-15-strip-debug: line 47: /dev/fd/62: No such file or directory --- snap --- What am I missing? How can I get OBS to package these RPMs for me? Any hints are greatly appreciated! TIA -- Till -- Dipl.-Inform. Till Dörges doerges@pre-sense.de Tel. +49 - 40 - 244 2407 - 14 Fax +49 - 40 - 244 2407 - 24 PRESENSE Technologies GmbH Sachsenstr. 5, D-20097 HH Geschäftsführer/Managing Directors AG Hamburg, HRB 107844 Till Dörges, Jürgen Sander USt-IdNr.: DE263765024 Wir sind auf der it-sa: 18.-20.10.2016 http://www.it-sa.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Sep 12 2016, Till Dörges <doerges@pre-sense.de> wrote:
What am I missing?
rpm is calling the script with "/bin/sh -e". Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hi, Am 12.09.2016 um 16:18 schrieb Andreas Schwab:
What am I missing?
rpm is calling the script with "/bin/sh -e".
Ah. Thank you. Will try with 'set +e' then. And then perhaps try to fix the root cause. Regards -- Till -- Dipl.-Inform. Till Dörges doerges@pre-sense.de Tel. +49 - 40 - 244 2407 - 14 Fax +49 - 40 - 244 2407 - 24 PRESENSE Technologies GmbH Sachsenstr. 5, D-20097 HH Geschäftsführer/Managing Directors AG Hamburg, HRB 107844 Till Dörges, Jürgen Sander USt-IdNr.: DE263765024 Wir sind auf der it-sa: 18.-20.10.2016 http://www.it-sa.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (2)
-
Andreas Schwab
-
Till Dörges