You are not logged in.

#1 2021-06-23 11:02:03

loqs
Member
Registered: 2014-03-06
Posts: 13,701

scons chmod failure in package()

I was looking to make some changes wesnoth's service packaging when I encountered the failure in the title.

PKGBUILD

pkgname=test
pkgver=0
pkgrel=1
pkgdesc=""
arch=('any')
url="https://pypi.python.org/pypi/user-agents"
makedepends=('scons')
license=('GPL')
source=("SConstruct")
sha256sums=('c929f04d252c8a0451a83be2694385a311a2ea1babc452c4453fa6933d032d45')

package() {
  scons
}

SConstruct

fifodir='run/wesnothd'

env = Environment()

fifodir = env.Command(fifodir, [], [
    Mkdir(fifodir),
    Action("chown %s:%s %s" %
           (0, 0, fifodir)),
    Chmod(fifodir, 0o700),
    ])
AlwaysBuild(fifodir)
Starting package()...
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
Mkdir("run/wesnothd")
chown 0:0 run/wesnothd
chown: changing ownership of 'run/wesnothd': Operation not permitted
scons: *** [run/wesnothd] Error 1
scons: building terminated because of errors.

Last edited by loqs (2021-06-23 11:02:49)

Offline

Board footer

Powered by FluxBB