[Bug 1045614] New: OBS:AppImage/build-pkg2appimage: Bug
http://bugzilla.opensuse.org/show_bug.cgi?id=1045614 Bug ID: 1045614 Summary: OBS:AppImage/build-pkg2appimage: Bug Classification: openSUSE Product: openSUSE.org Version: unspecified Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: 3rd party software Assignee: adrian@suse.com Reporter: nandub+obs@nandub.info QA Contact: opensuse-communityscreening@forge.provo.novell.com Found By: --- Blocker: --- If you have appimage.yml that looks like this: only showing a snippet. # mitmproxy is a python application app: mitmproxy # OPTIONAL: ingredient packages are packages which become part of the AppImage. ingredients: packages: - python3 ...more... it should unpacked python3 into the $BUILD_APPDIR, but is not. Per the build-pkg2appimage, the pkg2appimage is searching for app: mitmproxy using rpm, but unfortunately mitmproxy package is not part of opensuse which fails to find it. ...code snippet... # find out details about our master package... is there a better way? PKG_NAME=`sed -n -e 's,^app: \(.*\),\1,p' appimage.yml` PKG_ARCH=`uname -m` if grep -q ^ingredients: appimage.yml; then if ! rpm -q "$PKG_NAME" >& /dev/null; then desktop_file=`find /usr/share/applications -iname "*${LOWERAPP}.desktop" | head -n 1` PKG_NAME=`rpm -qf $desktop_file --qf '%{NAME}'` fi if ! rpm -q "$PKG_NAME" >& /dev/null; then echo "ERROR: pkg of app not found" exit 1 fi PKG_VERSION=`rpm -q --qf '%{VERSION}-%{RELEASE}' "$PKG_NAME"` # PKG_ARCH=`rpm -q --qf '%{ARCH}' "$PKG_NAME"` #bad idea for noarch when additional libs get added export BUILD_APPDIR="$TOPDIR/${PKG_NAME}-${PKG_VERSION}-${PKG_ARCH}" ZYPPER="zypper --root=$BUILD_APPDIR -n --config $HOME/.pkg2appimage.zypp.conf" # create zypp.conf echo "[main]" > $HOME/.pkg2appimage.zypp.conf echo "rpm.install.excludedocs = yes" >> $HOME/.pkg2appimage.zypp.conf else # we build from source only PKG_VERSION="0" # try to get the version from .obsinfo if [ -e "${PKG_NAME}.obsinfo" ]; then PKG_VERSION=`sed -n -e 's,^version: \(.*\),\1,p' "${PKG_NAME}.obsinfo"` fi export BUILD_APPDIR="$TOPDIR/${PKG_NAME}-${PKG_VERSION}-${PKG_ARCH}" fi ...error log... [ 41s] ----------------------------------------------------------------- [ 41s] ----- building appimage.yml (user abuild) [ 41s] ----------------------------------------------------------------- [ 41s] ----------------------------------------------------------------- [ 41s] creating repository metadata... [ 43s] Spawning worker 0 with 30 pkgs [ 43s] Spawning worker 1 with 30 pkgs [ 43s] Spawning worker 2 with 30 pkgs [ 43s] Spawning worker 3 with 30 pkgs [ 43s] Spawning worker 4 with 30 pkgs [ 43s] Spawning worker 5 with 30 pkgs [ 43s] Spawning worker 6 with 29 pkgs [ 43s] Spawning worker 7 with 29 pkgs [ 43s] Workers Finished [ 43s] Saving Primary metadata [ 43s] Saving file lists metadata [ 43s] Saving other metadata [ 43s] rpm: no arguments given for query [ 43s] ERROR: pkg of app not found [ 43s] [ 43s] lamb52 failed "build appimage.yml" at Thu Jun 22 17:26:13 UTC 2017. [ 43s] [ 43s] ### VM INTERACTION START ### [ 45s] Powering off. [ 45s] [ 33.335256] reboot: Power down [ 45s] ### VM INTERACTION END ### [ 45s] [ 45s] lamb52 failed "build appimage.yml" at Thu Jun 22 17:26:15 UTC 2017. [ 45s] ...Mitmproxy Project... https://build.opensuse.org/package/show/home:nandub:MyAppImages/Mitmproxy -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1045614
http://bugzilla.opensuse.org/show_bug.cgi?id=1045614#c1
Simon Peter
http://bugzilla.opensuse.org/show_bug.cgi?id=1045614
Fernando Ortiz
http://bugzilla.opensuse.org/show_bug.cgi?id=1045614
Fernando Ortiz
http://bugzilla.opensuse.org/show_bug.cgi?id=1045614
Fernando Ortiz
participants (1)
-
bugzilla_noreply@novell.com