Mailinglist Archive: opensuse-packaging (118 mails)

< Previous Next >
Re: [opensuse-packaging] osc build openSUSE_13.2 not works for some RPMs
  • From: Rusmir Duško <nemysis@xxxxxx>
  • Date: Fri, 26 Jun 2015 08:52:17 +0200
  • Message-id: <20150626085217.3d77e91a@nemysis4now.nemysis4now>
On Fri, 26 Jun 2015 00:07:40 +0200
Marcus Hüwe <suse-tux@xxxxxx> wrote:

On 2015-06-25 23:45:04 +0200, Rusmir Duško wrote:
On Thu, 25 Jun 2015 23:26:50 +0200
Marcus Hüwe <suse-tux@xxxxxx> wrote:

On 2015-06-25 21:42:25 +0200, Rusmir Duško wrote:
On Thu, 25 Jun 2015 20:53:52 +0200
Marcus Hüwe <suse-tux@xxxxxx> wrote:

On 2015-06-25 15:24:30 +0200, Rusmir Duško wrote:
I try to build more RPMs for openSUSE 13.2 with

osc build openSUSE_13.2

and get unclean /var/tmp/build-root/openSUSE_13.2-x86_64

[ 50s] kernel-obs-build-3.16.6-2.1
######################################## [ 51s]
hicolor-icon-theme-0.13-2.1.2
######################################## [ 51s] exit ...

The buildroot was: /var/tmp/build-root/openSUSE_13.2-x86_64

Or similar for other RPMs.

Is this reproducible for a single package? If so, about which
project/package are we talking?

I have this for more RPMs

games/rocksndiamonds newest git

games/traingame

games/tong/

and other

Hmm I cannot reproduce it. Can you try the following?
- remove the build-root
- create a file "build_debug" with the following content:

#!/bin/bash
set -x
export SHELLOPTS
/usr/bin/build "$@"

when i use this script get to login to rood, but my user name for OBS
is nemysis, my shell is ZSH

Yes, the build script is (usually) invoked as root - just enter your
password and continue (aren't you prompted for the root password
when using the default build-cmd (/usr/bin/build)?).

This get with

/usr/local/suse/games/starfighter/ > osc build openSUSE_13.2

...
[ 51s] build-compare-2015.04.28-199.1
######################################## [ 51s]
attr-2.4.47-4.1.2
######################################## [ 51s]
brp-extract-appdata-2012.02.13-22.1.2
######################################## [ 51s]
build-mkbaselibs-20140424-2.1.3
######################################## [ 51s]
fdupes-1.50-6.1.2
######################################## [ 51s]
rpmlint-Factory-strict-1.0-88.1.2
######################################## [ 53s]
kernel-obs-build-3.16.6-2.1
######################################## [ 53s]
hicolor-icon-theme-0.13-2.1.2 ########################################
[ 53s] + touch /var/tmp/build-root/openSUSE_13.2-x86_64/exit [ 53s] + ((
num=0 )) [ 53s] + (( num<=cumulate )) [ 53s] + rm -f
/var/tmp/build-root/openSUSE_13.2-x86_64/.init_b_cache/file-magic.rpm ...
[ 53s] + rm
-f /var/tmp/build-root/openSUSE_13.2-x86_64/.init_b_cache/libSDL_image-devel.rpm
[ 53s] + (( num++ )) [ 53s] + (( num<=cumulate ))
[ 53s] + rm
-f /var/tmp/build-root/openSUSE_13.2-x86_64/.init_b_cache/libSDL_mixer-devel.rpm
[ 53s] + (( num++ )) [ 53s] + (( num<=cumulate ))
[ 53s] + rm
-f /var/tmp/build-root/openSUSE_13.2-x86_64/.init_b_cache/manifest
[ 53s] + check_exit [ 53s] + test
-e /var/tmp/build-root/openSUSE_13.2-x86_64/exit [ 53s] + echo
'exit ...' [ 53s] exit ...
[ 53s] + cleanup_and_exit 1
[ 53s] + trap EXIT
[ 53s] + test /var/tmp/build-root/openSUSE_13.2-x86_64 = / -a -n 0
[ 53s] + umount
-n /var/tmp/build-root/openSUSE_13.2-x86_64/proc/sys/fs/binfmt_misc
[ 53s] + true [ 53s] + umount
-n /var/tmp/build-root/openSUSE_13.2-x86_64/proc [ 53s] + umount
-n /var/tmp/build-root/openSUSE_13.2-x86_64/dev/pts [ 53s] + umount
-n /var/tmp/build-root/openSUSE_13.2-x86_64/mnt [ 53s] + true
[ 53s] + exit 1
[ 53s] + cleanup_and_exit 1
[ 53s] + trap EXIT
[ 53s] + test -z 1
[ 53s] + rm -f /var/tmp/build-root/openSUSE_13.2-x86_64/exit
[ 53s] + test 1 -eq 1 -a -x /bin/df
[ 53s] + df /var/tmp/build-root/openSUSE_13.2-x86_64
[ 53s] + grep -q 100%
[ 53s] + test -n ''
[ 53s] + umount
-n /var/tmp/build-root/openSUSE_13.2-x86_64/proc/sys/fs/binfmt_misc
[ 53s] + true [ 53s] + umount
-n /var/tmp/build-root/openSUSE_13.2-x86_64/proc [ 53s] + true
[ 53s] + umount -n /var/tmp/build-root/openSUSE_13.2-x86_64/dev/pts
[ 53s] + true
[ 53s] + umount -n /var/tmp/build-root/openSUSE_13.2-x86_64/dev/shm
[ 53s] + true
[ 53s] + umount -n /var/tmp/build-root/openSUSE_13.2-x86_64/sys
[ 53s] + true
[ 53s] + test -n '' -a '' '!=' 1
[ 53s] + true
[ 53s] + test -n ''
[ 53s] + exit 1

The buildroot was: /var/tmp/build-root/openSUSE_13.2-x86_64

Verifying integrity of cached packages
using keys from openSUSE:Factory, devel:languages:haskell, games
Writing build configuration
Running build

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

root's password:

- chmod +x /path/to/build_debug
- osc config general build-cmd /path/to/build_debug
- start an osc build
- check where the script fails

Afterwards, restore the old build-cmd again via
- osc config general build-cmd /usr/bin/build
(assumption: your old build-cmd was "/usr/bin/build")


<SNIP>

Can you also provide the output of "rpm -q build"?

rpm -q build
build-20150615-198.1.noarch


Marcus



--
Rusmir Dusko
openSUSE Games maintainer
https://build.opensuse.org/project/users/games
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups