You are not logged in.
Pages: 1
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
I chowned /var/abs/local setting my user as an owner. I build packages there using fakeroot and then install 'em using sudo.
Offline
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
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
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
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
Or you can use fakeroot.
Offline
er... is it possible to build packages as a normal user without using fakeroot???
Dusty
Offline
er... is it possible to build packages as a normal user without using fakeroot???
Dusty
No.
·¬»· i am shadowhand, powered by webfaction
Offline
that's what I thought....
Offline
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
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
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
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
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...
Offline
Pages: 1