Re: building RPMs from SRPMs as non-root user

2003-07-24 Thread T. Ribbrock
On Thu, Jul 24, 2003 at 03:01:00PM +0200, Leonard den Ottolander wrote: [...] > > Then add every user that's supposed to build RPMs to "src". :-) > > That's a nice and quite simple setup as well. Too elaborate for my > user pool though ;-) . I have a user pool of, er, two. ;-) > Did you neve

Re: rh-l] building RPMs from SRPMs as non-root user

2003-07-24 Thread R P Herrold
On Thu, 24 Jul 2003, Julian Opificius wrote: > Thanks Russ, > "Don't use a variable". Yep, as Ian Mortimer also suggested, I replaced > "$HOME" with the real absolute path "/home/julian" and it worked perfectly, > thanks. > Thanks also for the links. > Could you tell me (and anyone else followin

Re: building RPMs from SRPMs as non-root user

2003-07-24 Thread Leonard den Ottolander
Hi Thomas, > - make a new group called "src" > - chgrp -R src /usr/src/RedHat > - chmod -R g+w /usr/src/RedHat > > Then add every user that's supposed to build RPMs to "src". :-) That's a nice and quite simple setup as well. Too elaborate for my user pool though ;-) . Did you never come acro

Re: building RPMs from SRPMs as non-root user

2003-07-24 Thread David Hart
On Wed, 2003-07-23 at 22:17, Julian Opificius wrote: > I'm trying to rebuild postfix and cyrus-sasl RPMS from SRPMS to add SMTP auth. > I have it working with the bin SASL rpm. I'm not sure why you feel the need to compile it. The trick is to match your (postfix) "make" statement to the actual (no

Re: building RPMs from SRPMs as non-root user

2003-07-24 Thread T. Ribbrock
On Thu, Jul 24, 2003 at 01:58:26PM +0200, Leonard den Ottolander wrote: > Another simple way to do this is to just chown -R /usr/src to the user > that builds the rpm's. Works like a charm. I've done that in a slightly more refined way: - make a new group called "src" - chgrp -R src /usr/src/Re

Re: building RPMs from SRPMs as non-root user

2003-07-24 Thread Leonard den Ottolander
Hi Julian, > >Replace %HOME with the actual directory path /home/ and it > >should work. > Sure enough, worked like a charm! Another simple way to do this is to just chown -R /usr/src to the user that builds the rpm's. Works like a charm. Bye, Leonard. -- How clean is a war when you shoot ar

Re: rh-l] building RPMs from SRPMs as non-root user

2003-07-23 Thread Julian Opificius
Thanks Russ, "Don't use a variable". Yep, as Ian Mortimer also suggested, I replaced "$HOME" with the real absolute path "/home/julian" and it worked perfectly, thanks. Thanks also for the links. Could you tell me (and anyone else following the thread) how I use your script ? Thanks, jules. ==

Re: building RPMs from SRPMs as non-root user

2003-07-23 Thread Julian Opificius
Ian, Sure enough, worked like a charm! Thanks! jules. = At 09:37 PM 7/23/03, you wrote: > I've created .rpmmacros in my "/home/" containing "%_topdir > %HOME/rpm" as instructed. Is it something to do with the build root, or > file/dir permissions, maybe? Replace %HOME

Re: rh-l] building RPMs from SRPMs as non-root user

2003-07-23 Thread R P Herrold
On Wed, 23 Jul 2003, Julian Opificius wrote: > I'm trying to rebuild postfix and cyrus-sasl RPMS from SRPMS to add SMTP auth. > > Following instructions on the postfix site, I'm trying to build as a > regular user, not as root. However, whenever I run "rpm -ivh > blah.blah.4.17.11.src.rpm" on a

Re: building RPMs from SRPMs as non-root user

2003-07-23 Thread Ian Mortimer
> I've created .rpmmacros in my "/home/" containing "%_topdir > %HOME/rpm" as instructed. Is it something to do with the build root, or > file/dir permissions, maybe? Replace %HOME with the actual directory path /home/ and it should work. -- Ian -- redhat-list mailing list unsubscribe mai

building RPMs from SRPMs as non-root user

2003-07-23 Thread Julian Opificius
I'm trying to rebuild postfix and cyrus-sasl RPMS from SRPMS to add SMTP auth. Following instructions on the postfix site, I'm trying to build as a regular user, not as root. However, whenever I run "rpm -ivh blah.blah.4.17.11.src.rpm" on a source RPM I get this error msg: "error: cannot create