You are not logged in.

#1 2014-07-03 20:31:00

polito
Member
Registered: 2012-04-28
Posts: 7

yaourt PKGBUILD permission denied (SOLVED)

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

#2 2014-07-03 20:37:51

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: yaourt PKGBUILD permission denied (SOLVED)

What happens if you build it without yaourt?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-07-03 20:44:41

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: yaourt PKGBUILD permission denied (SOLVED)

polito wrote:

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

#4 2014-07-03 21:01:24

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: yaourt PKGBUILD permission denied (SOLVED)

In line 26, it's trying to access $pkgdir in the build function. You can't do that.

Offline

#5 2014-07-04 01:08:50

thiagowfx
Member
Registered: 2013-07-09
Posts: 586

Re: yaourt PKGBUILD permission denied (SOLVED)

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

#6 2014-07-04 07:47:49

polito
Member
Registered: 2012-04-28
Posts: 7

Re: yaourt PKGBUILD permission denied (SOLVED)

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

#7 2014-07-04 08:22:13

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: yaourt PKGBUILD permission denied (SOLVED)

You could contact the maintainer?

Offline

#8 2014-07-04 11:45:19

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: yaourt PKGBUILD permission denied (SOLVED)

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.


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

#9 2014-07-04 16:32:31

thiagowfx
Member
Registered: 2013-07-09
Posts: 586

Re: yaourt PKGBUILD permission denied (SOLVED)

polito wrote:

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

#10 2014-07-06 12:23:47

polito
Member
Registered: 2012-04-28
Posts: 7

Re: yaourt PKGBUILD permission denied (SOLVED)

Lone_Wolf wrote:
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

Board footer

Powered by FluxBB