ports/devel/subversion-devel/files/patch-build.conf
Ollivier Robert 809d3bb905 The FreeBSD port of Subversion goes to some length to link against the system
version of expat, rather than the expat-lite we distribute, so it will be a
good citizen of the ports tree and avoid spamming over the installed version
of expat that already exists.  The patch to build.conf that was accomplishing
this was flawed, and only happened to work on my system because I had a copy
of libexpat.la sitting around in my /usr/local/lib, I imagine from a previous
subversion install I never cleaned out fully.

This alters the patch to build.conf such that instead of just replacing
libexpat with -lexpat, it replaces it with $(SVN_APRUTIL_LIBS), which in
addition to -lexpat, will also include -L/usr/local/lib, which makes the
build work.  It also includes /usr/local/lib/libaprutil.la, which we don't
strictly need, but it doesn't hurt anything, and will get us by until we
are smarter about finding expat.

Submitted by:	Garrett Rooney <rooneg@electricjellyfish.net> (MAINTAINER)
2002-03-21 09:47:35 +00:00

226 lines
7.2 KiB
Text

--- build.conf.orig Fri Mar 8 17:19:05 2002
+++ build.conf Fri Mar 8 18:42:28 2002
@@ -63,7 +63,7 @@
type = exe
path = subversion/clients/cmdline
libs = libsvn_client libsvn_wc libsvn_ra libsvn_delta libsvn_subr
- $(SVN_APR_LIBS) libexpat
+ $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
manpages = subversion/clients/cmdline/man/svn.1
infopages = doc/user/manual/svn-manual.info
doc/user/svn_for_cvs_users/svn_for_cvs_users.info
@@ -77,14 +77,14 @@
type = exe
path = subversion/svnadmin
install = fs-bin
-libs = libsvn_repos libsvn_fs libsvn_delta libsvn_subr $(SVN_APR_LIBS) libexpat
+libs = libsvn_repos libsvn_fs libsvn_delta libsvn_subr $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
# The subversion repository inspection tool
[svnlook]
type = exe
path = subversion/svnlook
install = fs-bin
-libs = libsvn_repos libsvn_fs libsvn_delta libsvn_subr $(SVN_APR_LIBS) libexpat
+libs = libsvn_repos libsvn_fs libsvn_delta libsvn_subr $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
# Library needed by all subversion clients
[libsvn_client]
@@ -141,7 +141,7 @@
type = lib
install = base-lib
path = subversion/libsvn_subr
-libs = $(SVN_APR_LIBS) libexpat
+libs = $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
# Working copy management lib
[libsvn_wc]
@@ -161,12 +161,12 @@
install = apache-mod
# Simple XML-parsing lib
-[libexpat]
-type = lib
-install = base-lib
-path = expat-lite
+#[libexpat]
+#type = lib
+#install = base-lib
+#path = expat-lite
# there are some .c files included by others, so *.c isn't appropriate
-sources = hashtable.c xmlparse.c xmlrole.c xmltok.c
+#sources = hashtable.c xmlparse.c xmlrole.c xmltok.c
# ----------------------------------------------------------------------------
#
@@ -210,7 +210,7 @@
sources = fs-test.c
install = fs-test
libs = libsvn_test libsvn_test_fs libsvn_fs libsvn_delta libsvn_subr
- $(SVN_APR_LIBS) libexpat
+ $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
# run-fs-tests.sh will run this for us
testing = skip
@@ -220,7 +220,7 @@
path = subversion/tests/libsvn_fs
sources = skel-test.c
install = fs-test
-libs = libsvn_test libsvn_fs libsvn_delta libsvn_subr $(SVN_APR_LIBS) libexpat
+libs = libsvn_test libsvn_fs libsvn_delta libsvn_subr $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
# run-fs-tests.sh will run this for us
testing = skip
@@ -230,7 +230,7 @@
path = subversion/tests/libsvn_fs
sources = key-test.c
install = fs-test
-libs = libsvn_test libsvn_fs libsvn_delta libsvn_subr $(SVN_APR_LIBS) libexpat
+libs = libsvn_test libsvn_fs libsvn_delta libsvn_subr $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
# run-fs-tests.sh will run this for us
testing = skip
@@ -241,7 +241,7 @@
sources = strings-reps-test.c
install = fs-test
libs = libsvn_test libsvn_test_fs libsvn_fs libsvn_delta libsvn_subr
- $(SVN_APR_LIBS) libexpat
+ $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
# run-fs-tests.sh will run this for us
testing = skip
@@ -251,7 +251,7 @@
path = subversion/tests/libsvn_repos
sources = md5args.c
install = test
-libs = libsvn_subr $(SVN_APR_LIBS) libexpat
+libs = libsvn_subr $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
# run-repos-tests.sh will run this for us
testing = skip
@@ -262,7 +262,7 @@
sources = repos-test.c dir-delta-editor.c
install = fs-test
libs = libsvn_test libsvn_test_fs libsvn_repos libsvn_fs libsvn_delta
- libsvn_subr $(SVN_APR_LIBS) libexpat
+ libsvn_subr $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
# run-repos-tests.sh will run this for us
testing = skip
@@ -272,7 +272,7 @@
path = subversion/tests/libsvn_subr
sources = hashdump-test.c
install = test
-libs = libsvn_test libsvn_delta libsvn_subr $(SVN_APR_LIBS) libexpat
+libs = libsvn_test libsvn_delta libsvn_subr $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
# test svn_stringbuf_t utilities
[stringtest]
@@ -280,7 +280,7 @@
path = subversion/tests/libsvn_subr
sources = stringtest.c
install = test
-libs = libsvn_test libsvn_delta libsvn_subr $(SVN_APR_LIBS) libexpat
+libs = libsvn_test libsvn_delta libsvn_subr $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
# test path library
[path-test]
@@ -296,7 +296,7 @@
path = subversion/tests/libsvn_wc
sources = translate-test.c
install = test
-libs = libsvn_test libsvn_delta libsvn_wc libsvn_subr $(SVN_APR_LIBS) libexpat
+libs = libsvn_test libsvn_delta libsvn_wc libsvn_subr $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
# use random data to test delta processing
[random-test]
@@ -304,7 +304,7 @@
path = subversion/tests/libsvn_delta
sources = random-test.c
install = test
-libs = libsvn_test libsvn_delta libsvn_subr $(SVN_APR_LIBS) libexpat
+libs = libsvn_test libsvn_delta libsvn_subr $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
### Tests that are simply broken (fix?) ----------
@@ -315,7 +315,7 @@
path = subversion/tests/libsvn_delta
sources = delta-combine-test.c
install = test
-libs = libsvn_delta libsvn_subr $(SVN_APR_LIBS) libexpat
+libs = libsvn_delta libsvn_subr $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
# disabled for now -- the delta combiner isn't written, and we
# don't really have any idea if the interface would be compatible
# with this test, anyway.
@@ -328,7 +328,7 @@
sources = ra-local-test.c
install = fs-test
libs = libsvn_test libsvn_ra libsvn_fs libsvn_delta libsvn_subr
- $(SVN_APR_LIBS) libexpat
+ $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
# disabled for now, BROKEN.
testing = skip
@@ -341,7 +341,7 @@
path = subversion/tests/libsvn_subr
sources = target-test.c
install = test
-libs = libsvn_subr $(SVN_APR_LIBS) libexpat
+libs = libsvn_subr $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
# target-test.sh will run this for us
testing = skip
@@ -351,7 +351,7 @@
path = subversion/tests/libsvn_delta
sources = xml-output-test.c
install = test
-libs = libsvn_delta libsvn_subr $(SVN_APR_LIBS) libexpat
+libs = libsvn_delta libsvn_subr $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
# this is really redundant with our XML svn-test*.sh tests.
testing = skip
@@ -361,7 +361,7 @@
path = subversion/tests/libsvn_wc
sources = checkout-test.c
install = test
-libs = libsvn_wc libsvn_delta libsvn_subr $(SVN_APR_LIBS) libexpat
+libs = libsvn_wc libsvn_delta libsvn_subr $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
# this is really redundant with our XML svn-test*.sh tests.
testing = skip
@@ -371,7 +371,7 @@
path = subversion/tests/libsvn_wc
sources = commit-test.c
install = test
-libs = libsvn_test libsvn_wc libsvn_delta libsvn_subr $(SVN_APR_LIBS) libexpat
+libs = libsvn_test libsvn_wc libsvn_delta libsvn_subr $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
# this is really redundant with our XML svn-test*.sh tests.
testing = skip
@@ -384,7 +384,7 @@
path = subversion/tests/libsvn_delta
sources = deltaparse-test.c
install = test
-libs = libsvn_test libsvn_delta libsvn_subr $(SVN_APR_LIBS) libexpat
+libs = libsvn_test libsvn_delta libsvn_subr $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
testing = skip
@@ -397,7 +397,7 @@
path = subversion/tests/libsvn_delta
sources = svndiff-test.c
install = test
-libs = libsvn_delta libsvn_subr $(SVN_APR_LIBS) libexpat
+libs = libsvn_delta libsvn_subr $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
testing = skip
# compare two files, print txdelta windows
@@ -406,7 +406,7 @@
path = subversion/tests/libsvn_delta
sources = vdelta-test.c
install = test
-libs = libsvn_delta libsvn_subr $(SVN_APR_LIBS) libexpat
+libs = libsvn_delta libsvn_subr $(SVN_APR_LIBS) $(SVN_APRUTIL_LIBS)
testing = skip