Hello,
I'm working on updating the OpenBSD subversion port to v1.5.0. I've ran
into two problems: Ruby SWIG configuration in `configure' and building
subversion in a separate directory.
First, subversion's configure script has invalid sed commands when
detecting the Ruby lib and arch directories. I can workaround this
problem by passing $svn_cv_ruby_sitedir_libsuffix and
$svn_cv_ruby_sitedir_archsuffix to `configure'. Here's the output of
`configure' when configuring SWIG:
checking for ruby... /usr/local/bin/ruby
checking for rb_hash_foreach()... yes
checking for rdoc... /usr/local/bin/rdoc
checking for Ruby major version... 1
checking for Ruby minor version... 8
checking swig version... 1.3.24
configure: WARNING: Detected SWIG version 1.3.24
configure: WARNING: Subversion requires 1.3.24 or later, and is known to
work
configure: WARNING: with versions up to 1.3.31
configure: Configuring python swig binding
checking for Python includes... -I/usr/local/include/python2.5
checking for compiling Python extensions... cc -pthread
-fno-strict-aliasing -DNDEBUG -O2 -pipe -DTHREAD_STACK_SIZE=0x20000
-fPIC -fPIC
checking for linking Python extensions... cc -shared
-L/usr/ports/lang/python/2.5/w-Python-2.5.2/Python-2.5.2
-L/usr/local/lib/python2.5/config -lpython2.5
checking for linking Python libraries...
-L/usr/ports/lang/python/2.5/w-Python-2.5.2/Python-2.5.2
-L/usr/local/lib/python2.5/config -lpython2.5
checking for apr_int64_t Python/C API format string... L
checking perl version... 5008008
configure: Configuring Ruby SWIG binding
checking for Ruby include path... -I.
-I/usr/local/lib/ruby/1.8/i386-openbsd4.4
checking how to compile Ruby extensions... cc -O2 -pipe -fPIC
checking how to link Ruby extensions... cc -shared -fPIC -shrext .so
checking for linking Ruby libraries... -Wl,-R -Wl,/usr/local/lib
-L/usr/local/lib -lruby
checking where to install Ruby scripts... sed: 1:
""s,^/usr/local/lib/ruby ...: invalid command code "
/usr/local/lib/ruby/site_ruby
checking where to install Ruby extensions... sed: 1:
""s,^/usr/local/lib/ruby ...: invalid command code "
/usr/local/lib/ruby/site_ruby
checking how to use output level for Ruby bindings tests... normal
configure: creating ./config.status
Subversion 1.4.6 built fine with configure run from a separate
directory, but 1.5.0 has problems making swig-py and swig-rb and
installing gettext files. OpenBSD ports extracts subversion
into /usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/,
creates a
directory /usr/ports/devel/subversion/w-subversion-1.5.0/build-`uname
-m`/, and then runs configure from the build-`uname -m` directory. It
next runs make in the separate build directory. It builds fine until it
it gets to the SWIG bindings and cannot find the files:
[root_at_gibson /usr/ports/devel/subversion/w-subversion-1.5.0/build-i386]#
make swig-py
/bin/sh /usr/ports/devel/subversion/w-subversion-1.5.0/build-i386/libtool --tag=CC --mode=compile cc -pthread -fno-strict-aliasing -DNDEBUG -O2 -pipe -DTHREAD_STACK_SIZE=0x20000 -fPIC -fPIC -D_POSIX_THREADS -I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/include -I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/bindings/swig -I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/bindings/swig/include -I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/bindings/swig/proxy -I/usr/ports/devel/subversion/w-subversion-1.5.0/build-i386/subversion/bindings/swig/proxy -I/usr/local/include/apr-1/ -I/usr/local/include/apr-1/ -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include/python2.5 -I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/bindings/swig/python/libsvn_swig_py -prefer-pic -c -o subversion/bindings/swig/python/svn_client.lo su!
bversion/bindings/swig/python/svn_client.c
mkdir subversion/bindings/swig/python/.libs
cc -pthread -fno-strict-aliasing -DNDEBUG -O2 -pipe
-DTHREAD_STACK_SIZE=0x20000 -fPIC -fPIC -D_POSIX_THREADS
-I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/include -I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/bindings/swig -I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/bindings/swig/include -I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/bindings/swig/proxy -I/usr/ports/devel/subversion/w-subversion-1.5.0/build-i386/subversion/bindings/swig/proxy -I/usr/local/include/apr-1/ -I/usr/local/include/apr-1/ -I/usr/local/include/db4 -I/usr/local/include -I/usr/local/include/python2.5 -I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/bindings/swig/python/libsvn_swig_py -c subversion/bindings/swig/python/svn_client.c -fPIC -DPIC -o subversion/bindings/swig/python/.libs/svn_client.o
cc: subversion/bindings/swig/python/svn_client.c: No such file or
directory
cc: no input files
*** Error code 1
Stop in /usr/ports/devel/subversion/w-subversion-1.5.0/build-i386 (line
1434
of /usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/build-outputs.mk).
[root_at_gibson /usr/ports/devel/subversion/w-subversion-1.5.0/build-i386]#
make swig-rb
/bin/sh /usr/ports/devel/subversion/w-subversion-1.5.0/build-i386/libtool --tag=CC --mode=compile cc -O2 -pipe -fPIC -D_POSIX_THREADS -I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/include -I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/bindings/swig -I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/bindings/swig/include -I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/bindings/swig/proxy -I/usr/ports/devel/subversion/w-subversion-1.5.0/build-i386/subversion/bindings/swig/proxy -I/usr/local/include/apr-1/ -I/usr/local/include/apr-1/ -I/usr/local/include/db4 -I/usr/local/include -I. -I/usr/local/lib/ruby/1.8/i386-openbsd4.4 -I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/bindings/swig/ruby/libsvn_swig_ruby -prefer-pic -c -o subversion/bindings/swig/ruby/svn_client.lo subversion/bindings/swig/ruby/svn_client.c
cc -O2 -pipe -fPIC -D_POSIX_THREADS
-I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/include -I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/bindings/swig -I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/bindings/swig/include -I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/bindings/swig/proxy -I/usr/ports/devel/subversion/w-subversion-1.5.0/build-i386/subversion/bindings/swig/proxy -I/usr/local/include/apr-1/ -I/usr/local/include/apr-1/ -I/usr/local/include/db4 -I/usr/local/include -I. -I/usr/local/lib/ruby/1.8/i386-openbsd4.4 -I/usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/subversion/bindings/swig/ruby/libsvn_swig_ruby -c subversion/bindings/swig/ruby/svn_client.c -fPIC -DPIC -o subversion/bindings/swig/ruby/.libs/svn_client.o
cc: subversion/bindings/swig/ruby/svn_client.c: No such file or
directory
cc: no input files
*** Error code 1
Stop in /usr/ports/devel/subversion/w-subversion-1.5.0/build-i386 (line
1461
of /usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/build-outputs.mk).
Make target `swig-pl' works for whatever reason. I've worked around this
by patching build-outputs.mk:
http://bradmwalker.com/ports/patch-build-outputs_mk.diff
Also, make target `install-locale' can't find the locale files. The
`install` make target doesn't install them either. Here's the
`install-locale' output:
[root_at_gibson /usr/ports/devel/subversion/w-subversion-1.5.0/build-i386]#
make install-locale
/bin/mkdir -p /usr/local/share/locale
/bin/mkdir -p /usr/local/share/locale/de/LC_MESSAGES
cd subversion/po ; /usr/bin/install -c -o root -g bin -m 644
de.mo /usr/local/share/locale/de/LC_MESSAGES/subversion.mo
install: de.mo: No such file or directory
*** Error code 71
Stop in /usr/ports/devel/subversion/w-subversion-1.5.0/build-i386 (line
773
of /usr/ports/devel/subversion/w-subversion-1.5.0/subversion-1.5.0/build-outputs.mk).
My patch against OpenBSD's subversion 1.4.6 port can be found at:
http://bradmwalker.com/ports/subversion-1.5.0.diff
Brad Walker
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-07-15 01:49:18 CEST