Re: src rpm packages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 27 Jun 2003 14:07:37 -0500 (EST), Mike Burger wrote
> The problem is that unless you want to change the ownerships and/or 
> permissions on the /usr/src/redhat directory, you need to have root 
> privs to recompile .src.rpms, a process which places all of the 
> necessary files under that subdirectory structure, which is owned by 
> root.root.
> 
> On Fri, 27 Jun 2003, Jesse Keating wrote:
> 
> > On Friday 27 June 2003 11:54, Mike Burger wrote:
> > > As root, you would usually run "rpmbuild name-of.src.rpm"
> > >
> > > Alternatively, you could use "rpm -i name-of.src.rpm" to install the
> > > src.rpm, then go to /usr/src/redhat/SPECS, and run "rpmbuild -ba
> > > package-name.spec".  Either way, the resulting binary RPMs will be
> > > placed in the /usr/src/redhat/RPMS/i386 directory (could also be i686
> > > or some such, but most likely in hte i386 subdirectory).
> > 
> > Please note, building rpms as root is a big nono.
> > 
> > Building RPM packages as a non-root user: 
> > ftp://people.redhat.com/mharris/hacks/

Why not put:

[admin@xxx admin]$ cat .rpmmacros
%_topdir /home/admin/rpms
%_tmppath %{_topdir}/tmp

in a non-root account and create the standard rpm structure underneath:

[admin@xxx admin]$ d rpms
total 36K
drwxrwxr--    9 admin    admin        4.0K Apr  8 15:10 ./
drwx------   34 admin    admin        4.0K Jun 27 15:15 ../
drwxrwxr--    2 admin    admin        4.0K Jun 27 09:45 BUILD/
drwxrwxr--    6 admin    admin        4.0K Apr  8 16:03 RPMS/
drwxrwxr--    2 admin    admin        4.0K Jun 27 09:41 SOURCES/
drwxrwxr--    2 admin    admin        4.0K Jun 27 09:44 SPECS/
drwxrwxr--    2 admin    admin        4.0K Jun 10 10:31 SRPMS/
drwxrwxr--    3 admin    admin        4.0K Jun 20 23:18 TARBALLS/
drwxrwxr--    2 admin    admin        4.0K Jun 27 09:44 tmp/

Then one can build rpms all day long as non-root.




[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux