[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[OT] RPM building as non-root (was RE: Victory - built subversion from RH9 source rpm!)

From: Robert Hunter <robert.hunter_at_gen-i.co.nz>
Date: 2005-02-13 21:52:04 CET

Steve Cohen wrote:
>> When I started building SRPMS back in Red Hat 5.2 days, I couldn't
>> imagine having to be root to do it, so I asked on the RPM mailing list
>> and found the black magic for doing it as a mortal.
>That would be changing the ownership of /usr/src/redhat? Actually, I
>didn't even have to do that. I chmodded it to g+w and put myself into
>the root group. That also did the job.

All RPM building really needs is a directory structure to write to,
and a one-line entry in ~/.rpmmacros to tell it where that is.

I've included an untested script to demonstrate this process :-)

mkdir ~/rpm
for fulldir in /usr/src/redhat/*
        dir=$(basename "$fulldir")
        mkdir ~/rpm/"$dir"
cat > ~/.rpmmacrostest << EOT
%_topdir %(echo ${HOME}/rpm}
%_tmppath %{$_topdir}/tmp

This communication, including any attachments, is confidential.
If you are not the intended recipient, you should not read it
- please contact me immediately, destroy it, and do not copy
or use any part of this communication or disclose anything about it,
Thank you.
Please note that this communication does not designate an information system
for the purposes of the Electronic Transactions Act 2002

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Feb 14 03:34:31 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.