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

Re: building subversion from source rpm - failures

From: Kenneth Porter <shiva_at_sewingwitch.com>
Date: 2005-02-08 17:12:22 CET

--On Tuesday, February 08, 2005 5:58 AM -0600 Steve Cohen
<scohen@javactivity.org> wrote:

> + killall httpd
> + sleep 1
> ++ pwd
> + sed -e 's;@SVNDIR@;/usr/src/redhat/BUILD/subversion-1.1.3;'

I see two critical problems here. First, you're building as root. NEVER
package as root. Bad things can happen to your system from errors in the
RPM spec file or the Makefile.

Second, the spec file is killing the system-wide Apache ("killall httpd")
which it can only do because you're running as root. It looks like it wants
to start a private copy of Apache (which is reasonable for testing; you can
run multiple copies if they use different ports and files) but because
you're running as root it's stepping on the system-wide Apache as well.

To run rpmbuild as a mortal, chown the entire /usr/src/redhat hierarchy to
some mortal user you'll use for packaging, and then (if it's different from
your regular login) su to that user before using rpmbuild. (This assumes
only one user on the machine will package. You can also set it up so
multiple packagers can each have their own private packaging directories.)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Feb 8 17:14:52 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.