You are not logged in.
Pages: 1
Hello,
I am trying to compile maya2012 (happens too with maya2013) and i get all the time a:
/tmp/yaourt-tmp-user/aur-maya2012/./PKGBUILD: line 26: cd: /tmp/yaourt-tmp-user/aur-maya2012/pkg/maya2012: Permission denied
I have tried also as root user but i get the same error.
Some data:
findmnt: ─/tmp tmpfs tmpfs rw
fstab: there is no tmp or tmpfs entry.
Last edited by polito (2014-07-06 12:24:10)
Offline
What happens if you build it without yaourt?
Offline
Some data:
findmnt: ─/tmp tmpfs tmpfs rw
fstab: there is no tmp or tmpfs entry.
Systemd ships with /usr/lib/systemd/system/tmp.mount which takes care of this for you automatically.
Offline
In line 26, it's trying to access $pkgdir in the build function. You can't do that.
Offline
True, Scimmia. Made a quick test, I can confirm it. Stripping out:
pkgname=maya2012
pkgver=2012.0.499
pkgrel=1
arch=('x86_64')
build() {
cd ${pkgdir}
}
package() {
echo "Creating /var/flexlm..."
}makepkg produces 'Permission denied'.
Offline
so, any solution?. I dont know why it is made like that (inside build) . If its supose to fail always, i dont understand why nobody else had answered the same question.
Last edited by polito (2014-07-04 07:48:06)
Offline
You could contact the maintainer?
Offline
In line 26, it's trying to access $pkgdir in the build function. You can't do that.
It was possible to access $pkgdir in build() in older pacman versions (pre-4.1.x ? ) , maybe the package still worked when it was last updated.
Polito, It looks like those lines can be moved verbatim to the start of the package() function, making build() empty so it can be removed completely..
If that works, post on the aur page about it and/or contact the maintainer.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
so, any solution?
You could move the build code to the package function, as a temporary workaround. Usually this should work.
As an alternative, just make track of which folders and files those rpmextracts create in the build() step, then copy/install them in the package() function.
Offline
Scimmia wrote:In line 26, it's trying to access $pkgdir in the build function. You can't do that.
It was possible to access $pkgdir in build() in older pacman versions (pre-4.1.x ? ) , maybe the package still worked when it was last updated.
Polito, It looks like those lines can be moved verbatim to the start of the package() function, making build() empty so it can be removed completely..
If that works, post on the aur page about it and/or contact the maintainer.
That did the trick
Basicaly i edited the pkgbuild whem prompted and cut/paste the build content at the first line in package section.
Thanks.
Offline
Pages: 1