[packagers] subversion testing

Dries Verachtert dries at ulyssis.org
Wed Mar 18 11:18:14 CET 2009

On Tuesday 17 March 2009 11:03:14 am Christoph Maser wrote:
> I have updated the subversion package to 1.5.6. However updating the
> swig_version to 1.3.38 fail with the following error:
> DEBUG: /usr/bin/install: cannot create regular file
> `/usr/share/man/man1/ccache-swig.1': Permission denied
> DEBUG: make[1]: *** [install] Error 1
> DEBUG: make[1]: Leaving directory
> `/builddir/build/BUILD/subversion-1.5.6/swig-1.3.38/CCache'
> DEBUG: make: *** [install-ccache] Error 2
> I wonder how that error can happen inside a mock-chroot since everything
> is done as root. Any ideas?

That newer swig version also tries to install manpages. Within the 
subversion.spec file, swig is installed in some temporary directory within 
the build directory and a bit later this directory is used for the %configure 
of subversion. You can add the configure option so the manpages are also 
installed in this temporary directory. The following seems to build on my 
laptop (build as non-root, without mock):

[dries at duvel subversion]$ svn diff subversion.spec
Index: subversion.spec
--- subversion.spec     (revision 6736)
+++ subversion.spec     (working copy)
@@ -16,7 +16,7 @@
 %{?el2:%define _without_pie 1}
 %{?el2:%define _without_swig 1}

-%define swig_version 1.3.36
+%define swig_version 1.3.38

 # set to zero to avoid running test suite
 %define make_check 0
@@ -138,7 +138,7 @@
 %if %{!?_without_swig:1}0
 cd swig-%{swig_version}
 [ ! -r configure ] && ./autogen.sh
-%configure --prefix="$(pwd)/install" --exec-prefix="$(pwd)/install" --bindir="$(pwd)/install/bin" --datadir="$(pwd)/install/share"
+%configure --prefix="$(pwd)/install" --exec-prefix="$(pwd)/install" --bindir="$(pwd)/install/bin" --datadir="$(pwd)/install/share" --mandir="$(pwd)/install/man"
 %{__make} install
 cd -

More information about the packagers mailing list