[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: Steve Cohen <scohen_at_javactivity.org>
Date: 2005-02-09 01:14:13 CET

Kenneth Porter wrote:
> --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.

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

I would care about this if I was actively serving anything over apache.
    But it's irrelevant to the problem at hand. As I said in a later
post, I tried killing httpd manually (/sbin/service httpd stop) BEFORE I
ran the build and got the same errors as before. To me that indicates
that this is not the problem.

The problem we have here is that the tests are finding something wrong
with my configuration but aren't giving me the slightest usable clue as
to what it might be. They are tests meant for the developers of the
package and not for a user who just wants to get subversion going on his
system. As a matter a fact, I already have subversion going - from
binary RPMs. I am trying to build from source so I can also build
javaHL and run subeclipse. But no one on this list is apparently able
to look at the error messages I originally submitted and tell me
anything to get me off square one.

What is being tested? Is is subversion or is it my system
configuration? I shouldn't need to test subversion functionality.
That's for the subversion developers to do and sign off on. Does my
system lack some prerequisite needed to run subversion? That's what I
need to know - and that's exactly what these tests don't tell me. We
are trying to make a set of tests designed for the first purpose serve
the second purpose.

Granted, building from source is sort of a gray area, but I don't see
any way this is going to work unless someone who knows what these tests
test can tell me.

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

Duly noted.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 9 01:16:44 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.