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

Re: Victory - built subversion from RH9 source rpm!

From: Kenneth Porter <shiva_at_sewingwitch.com>
Date: 2005-02-11 20:36:46 CET

--On Friday, February 11, 2005 5:59 AM -0600 Steve Cohen
<scohen@javactivity.org> wrote:

> 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.

If only one person does packaging on the box, give that person ownership of
/usr/src/redhat.

But my preferred method is to create a private build tree under a new user
who by convention I call "buildmeister". (This is the user mentioned in Red
Hat tarballs.) You could also give yourself a build tree and other users
could have their own private trees. They just need the proper directory
hierarchy created and ~.rpmmacros needs to be created to tell rpmbuild
where to find it.

Create and "become" the user:

useradd buildmeister
su -l buildmeister

Then create a build tree:

cd ~
mkdir BUILD Download RPMS SOURCES SPECS SRPMS

Use the Download directory to store all the SRPM's you download. (I have
subdirectories under Download for each SRPM repository I collect them from,
like Fedora, Apt, Dag, etc.)

Create ~buildmeister/.rpmmacros to tell rpmbuild about your new build tree:

echo "%_topdir /home/buildmeister" > ~/.rpmmacros

(You can add other macros here to override the definitions in
/usr/lib/rpm/macros. I like to override %packager.)

Now you can build packages in your new tree and totally ignore
/usr/src/redhat.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 11 20:39:23 2005

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

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