You are not logged in.

#1 2009-10-30 09:21:16

cb474
Member
Registered: 2009-04-04
Posts: 476

makepkg with --asroot option

I'm a little confused about the use of makepkg and abs. I want to compile mplayer from source (to get live-media support). So I got the package with abs, with "abs extra/mplayer." The I cd-ed to "/var/abs/extra/mplayer," edited the PKGBUILD, and tried to run "makepkg -g >> PKGBUILD." But I got a message saying running makepkg as root is a bad idea. So I exited my root prompt and tried to run it not as root and got an error saying permission denied. So I tried sudo and that didn't work either.

What am I missing? Should I just move the mplayer directory with the PKGBUILD file to a directory in my home partition? Should I just go ahead and use the --asroot option? I looked at the wiki article on makepkg, but don't see an answer to what's going on.

Thanks for any help.

Offline

#2 2009-10-30 09:29:48

stojic
Member
From: Zagreb, Croatia
Registered: 2008-02-24
Posts: 51

Re: makepkg with --asroot option

Just copy the directory somewhere and build there as a normal user. I usually use ~/builds. Also, you need "makepkg -g >> PKGBUILD" only if you modify sources, patches etc, not if you modify PKGBUILD.

Offline

#3 2009-10-30 09:33:42

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: makepkg with --asroot option

Install fakeroot, and do all your building in your $HOME, as recommended on various related wiki pages.

Offline

#4 2009-10-30 09:42:53

cb474
Member
Registered: 2009-04-04
Posts: 476

Re: makepkg with --asroot option

Okay, thanks for the explanations.

Offline

Board footer

Powered by FluxBB