You are not logged in.

#1 2005-12-18 21:57:31

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Am I using the AUR correctly?

I find makepkg to be somewhat clumsy, but I assume that I'm doing something wrong.  Maybe I don't quite get it.  Do you build packages as root, or a user?  So far, I've been downloading the tarball, and untarring into in /var/abs/local as root, chowning the directory to my user, and as my user running makepkg. Then as root I run pacman -A on the resulting tarball to actually install the new package.  Is this the correct way?  Obviously, I could do everything as root, but I was under the impression this was frowned upon, and that fakeroot and building the packages as a user was accepted good practice.

Of course, I never su -c to make;make instal, even where it's proscribed, so maybe I'm being over-cautious.


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#2 2005-12-18 22:03:03

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Am I using the AUR correctly?

I chowned /var/abs/local setting my user as an owner. I build packages there using fakeroot and then install 'em using sudo.

Offline

#3 2005-12-18 22:52:55

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 488

Re: Am I using the AUR correctly?

my boxes generally don't have any personal info on them, nor do they fly airplanes. I do it all as root because I'm lazy and I don't see any real risk in doing so.

Offline

#4 2005-12-18 23:13:16

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: Am I using the AUR correctly?

kleptophobiac wrote:

I do it all as root because I'm lazy and I don't see any real risk in doing so.


I am a gated community.

Offline

#5 2005-12-18 23:16:57

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Am I using the AUR correctly?

have you looked at the aurbuild tool written by Penguin. It really makes building stuff from aur almost as painless as using pacman.

Dusty

Offline

#6 2005-12-18 23:30:36

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Am I using the AUR correctly?

I build them in my home directory (~/Packages) as a user. Then I install them with sudo.

Building packages as user is safer especially if you make your own PKGBUILD.  If the building process tries to install files directly in the system (because of wonky Makefile, etc.), it won't have permission to do so and will print an error message. You'll then know that your PKGBUILD needs to be fixed and you won't have orphaned files on your system.

Offline

#7 2005-12-19 00:54:35

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Am I using the AUR correctly?

Or you can use fakeroot.

Offline

#8 2005-12-19 00:59:35

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Am I using the AUR correctly?

er... is it possible to build packages as a normal user without using fakeroot???

Dusty

Offline

#9 2005-12-19 01:34:40

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Re: Am I using the AUR correctly?

Dusty wrote:

er... is it possible to build packages as a normal user without using fakeroot???

Dusty

No.


·¬»· i am shadowhand, powered by webfaction

Offline

#10 2005-12-19 02:28:03

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Am I using the AUR correctly?

that's what I thought....

Offline

#11 2005-12-19 04:32:07

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: Am I using the AUR correctly?

Snowman wrote:

I build them in my home directory (~/Packages) as a user. Then I install them with sudo.

Building packages as user is safer especially if you make your own PKGBUILD.  If the building process tries to install files directly in the system (because of wonky Makefile, etc.), it won't have permission to do so and will print an error message. You'll then know that your PKGBUILD needs to be fixed and you won't have orphaned files on your system.

Ah, I like this solution.


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#12 2005-12-19 04:34:49

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: Am I using the AUR correctly?

Dusty wrote:

have you looked at the aurbuild tool written by Penguin. It really makes building stuff from aur almost as painless as using pacman.

Dusty

No, I'll take a look - thanks!  Building stuff from the AUR isn't much of a hassle to begin with, but it was kind of clumsy the way I was doing it.  I was just wondering if there was a more direct way from point a to point b.


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#13 2005-12-19 08:31:46

sudman1
Member
From: Huntingdon, UK
Registered: 2005-02-18
Posts: 143

Re: Am I using the AUR correctly?

shadowhand wrote:
Dusty wrote:

er... is it possible to build packages as a normal user without using fakeroot???

Dusty

No.

Actually, you can, but the packages have the wrong permissions and could run into problems after install.


v/r
Suds

Offline

#14 2005-12-19 18:46:09

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Am I using the AUR correctly?

Snarkout wrote:
Snowman wrote:

I build them in my home directory (~/Packages) as a user. Then I install them with sudo.

Building packages as user is safer especially if you make your own PKGBUILD.  If the building process tries to install files directly in the system (because of wonky Makefile, etc.), it won't have permission to do so and will print an error message. You'll then know that your PKGBUILD needs to be fixed and you won't have orphaned files on your system.

Ah, I like this solution.

Yeah, same thing I do (~/devel/build/*) - however, the aurbuild tool makes things alot easier... "aurbuild -s aurbuild" 8)

Offline

#15 2005-12-19 20:30:05

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Am I using the AUR correctly?

I added myself to an abs group and chowned /var/abs/local to root.abs with appropriate permissions.

Perhaps I should look into this 'aurbuild' thingamajig though... smile

Offline

Board footer

Powered by FluxBB