You are not logged in.

#1 2015-09-15 18:47:43

thor77
Member
Registered: 2015-09-15
Posts: 4

Makefile-target "install" drops privileges

Hey,
it seems like the install-target of your Makefile is dropping privileges.
I tried to create an Archlinux-AUR-Package for goatattack, but as soon as the script runs "make install" (in fakeroot-env), it fails because it can't write to /usr/share/.
If you want to try the script yourself, its available here.

Last edited by thor77 (2015-09-15 18:48:58)

Offline

#2 2015-09-16 07:45:22

freanux
Administrator
Registered: 2015-09-07
Posts: 33
Website

Re: Makefile-target "install" drops privileges

Hi thor77

Thanks for creating an Arch Linux user package. Yes, you're right. I had to add a rule to install game data instead of using the install-data-hook. I uploaded the fix version 0.3.8.1. This is your new PKGBUILD:

# Maintainer: Thor77 <thor77 at thor77 dot org>
pkgname=goatattack
pkgver=0.3.8.1
pkgrel=2
pkgdesc="A fast-paced multiplayer pixel art shooter game."
arch=("any")
url="http://www.goatattack.net/"
license=('GPL')
depends=("sdl2" "libpng" "sdl2_mixer")
source=("http://www.goatattack.net/installers/$pkgname-$pkgver.tar.gz")
md5sums=('e5a16f2d1509d9994d68e6e83a8cc204')

prepare() {
    cd "$srcdir/$pkgname-$pkgver"
    ./configure --prefix=/usr
}

build() {
    cd "$srcdir/$pkgname-$pkgver"
    make
}

package() {
    cd "$srcdir/$pkgname-$pkgver"
    make DESTDIR="$pkgdir/" install
}

BTW: next week, we want to release the version 0.3.9.

Offline

#3 2015-09-16 13:42:21

thor77
Member
Registered: 2015-09-15
Posts: 4

Re: Makefile-target "install" drops privileges

Hey,
thanks for the fix,
the package works fine now.

Offline

#4 2015-09-16 14:05:59

freanux
Administrator
Registered: 2015-09-07
Posts: 33
Website

Re: Makefile-target "install" drops privileges

Cool, glad to hear that.

Offline

Board footer

Powered by FluxBB