[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-10 06:03:42 CET

The saga continues:

OKAY, here is what I have learned. I have tried to build two different
flavors of the subversion source RPM for RedHat 9. Neither has yet
succeeded but we are getting closer.

The first flavor was the one from David Summers. It builds successfully
but the tests fail.

The second flavor was the one from
http://dag.wieers.com/packages/subversion/
as recommended by Kris Deugau.

(I should point out that I had to install apr and httpd patches from the
Summers site. Dag's site does not support these).

This srpm failed to build under RH9, because of the -fpie switch. By
commenting out the "pie patch" line of the spec, the build succeeds.
However, by default Dag's spec does not run the tests, unlike Summers'.
  I turned them on and they pass but Dag is not running the full suite
of tests that are included in Summers' spec. If I put those into Dag's
spec, it fails just as Summers' SRPM build does.

I have a pretty good idea why it's failing but I am not an apache
expert. I believe that something is wrong with the httpd.conf file
distributed in the SRPM. (Or at least incompatibule with my Apache
installation):

The third round of tests (from Summers's spec), ie, this fragment:

%if %{make_ra_dav_check}
echo "*** Running regression tests on RA_DAV (HTTP method) layer ***"
killall httpd || true
sleep 1
sed -e "s;@SVNDIR@;`pwd`;" < packages/rpm/redhat-8+/httpd.davcheck.conf
> httpd.conf
/usr/sbin/httpd -f `pwd`/httpd.conf
sleep 1
make check BASE_URL='http://localhost:15835'
killall httpd
echo "*** Finished regression tests on RA_DAV (HTTP method) layer ***"
%endif

causes the following command line to be run:

/usr/sbin/httpd -f /usr/src/redhat/BUILD/subversion-1.1.3/httpd.conf

(Evidently there is some sort of mapping from "/" to the current directory)

Something about that config file (i.e., the one distributed in the src
rpm) causes the apache daemon not to run. I don't know what it is, I'm
not an apache expert and I see no logs indicating the source of the
problem. But apache doesn't like something in that file. I know
this, because if I run the above command manually, it "thinks" for a
second before returning and then ps shows me that the apache daemon
isn't running. The key line of the tests.log output that supports this
conclusion says:

svn: PROPFIND of '/local_tmp/repos': could not connect to server
(http://localhost:15835)

In other words, because the apache server isn't running.

But if instead I just do the command
/usr/sbin/httpd
then apache runs fine, using my normal config of /etc/httpd/conf/httpd.conf.

So, to make a long story short, the DAV tests are failing because
something in the httpd.conf file distributed with the subversion SRC RPM
is wrong for my RedHat 9 installation.

So I guess it makes sense to turn the tests off unless someone can
figure out how to make the config file right. The error with the tests
failing does not indicate any flaw in the subversion build itself, but
they may indicate either a flaw in the apache I am using or something
wrong with the config file itself.

Perhaps someone who knows more about Apache than I do could take a look
at the conf file and figure something out.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 10 06:06:03 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.