Hi,
I am trying to build packages for supertux-old in my OBS project (home:fusion809:arch_extra) and this PKGBUILD works fine on an actual Arch machine when built using
makepkg -s
but it fails miserably in the OBS on 64-bit. Here is my present PKGBUILD:
# Maintainer: Max Bruckner
_basename=supertux
pkgname=$_basename-old
pkgver=0.1.3
pkgrel=8
pkgdesc="Jump and run game inspired by Super Mario Bros. Milestone 1 release."
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="http://supertux.lethargik.org"
license=('GPL2')
depends=('sdl_mixer' 'sdl_image')
depends_x86_64=('lib32-sdl_image')
source=( "https://supertux.googlecode.com/files/$_basename-${pkgver}.tar.bz2")
sha512sums=('75848583f9f9b9d0f36fec77812501875420fde8befe1ff9ac4ea7613f4d9464b2eb460c2ed89b4dc31e697fbb449a5431c72675e2820d13f5c42653dc07ad98')
build() {
cd "$srcdir/$_basename-$pkgver"
./configure --prefix=/usr
sed -i -e 's/Menu:://g' src/menu.h #fix build error
sed -i -e 's/supertux.png/supertux-old.png/g' supertux.desktop #prevent conflict with supertux2
make
}
package() {
cd "$srcdir/$_basename-$pkgver"
make DESTDIR="$pkgdir" install
mv ${pkgdir}/usr/share/pixmaps/supertux{,-old}.png #prevent conflict with supertux2
}
but on 64-bit it returns the error:
128s] Packages (1) sdl_mixer-1.2.12-4
128s] :: Processing package changes...
128s] removing nis flags from //etc/nsswitch.conf...
128s] now finalizing build dir...
129s] SIOCSIFADDR: File exists
129s] Preparing sources...
129s] ==> Making package: supertux-old 0.1.3-8 (Thu Mar 17 08:47:08 UTC 2016)
129s] ==> Checking runtime dependencies...
129s] ==> Installing missing dependencies...
129s]
129s] We trust you have received the usual lecture from the local System
129s] Administrator. It usually boils down to these three things:
129s]
129s] #1) Respect the privacy of others.
129s] #2) Think before you type.
129s] #3) With great power comes great responsibility.
129s]
129s] sudo: no tty present and no askpass program specified
129s] ==> ERROR: 'pacman' failed to install missing dependencies.
129s] failed to prepare sources
129s]
129s] cloud116 failed "build PKGBUILD" at Thu Mar 17 08:47:08 UTC 2016.
129s]
129s] ### WATCHDOG MARKER START ###
133s] 89.499275] SysRq : Power Off
133s] 89.501736] reboot: Power down
151s] ### WATCHDOG MARKER END ###
151s]
151s] cloud116 failed "build PKGBUILD" at Thu Mar 17 08:47:31 UTC 2016.
151s]
as you can see the lib32-sdl_image dependency for 64-bit is being ignored by the OBS. How do I write two depend lines, one line for 32-bit and one line for 64-bit, in a format accepted by OBS.
Thanks for your time,
Brenton