subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nico Kadel-Garcia <nka...@gmail.com>
Subject svnpubsub dependcy problem building RPM's for Subverssion 1.8.0
Date Sat, 22 Jun 2013 15:46:41 GMT
I'm working with SRPM packaging of Subversion 1.8.0. So far so good,
but there's an RPM dependency problem for the svnpubsub scripts.

The issue is that there's a stack of init scripts stoed in
tools-doc/server-side/svnpubsub/rc.d That's all well and good, they're
for different operating systems and use things like
/usr/local/bin/pyghon, /usr/bin/bash, and other  tools for different
operating systems.

The problem is that, up to now, I've just been grabbing the contents
of "tools-doc" as documents. And because those are *executable*
scripts, they get parsed for dependencies. So the "subversion-tools"
package winds up depending on /usr/local/bin/python, /usr/bin/bash,
and the like.

So, the fix for RPM is easy. From my subversion.spec file:

# Disable binary scripts in svnpubsub, or they get parsed for
# dependencies on /usr/local/bin/python, /usr/bin/bash, and
# package dependencies for other operating systems
find tools/server-side/svnpubsub/rc.d -type l -exec rm -f {} \;
find tools/server-side/svnpubsub/rc.d -type f | sort | while read name; do
    chmod a-x "$name"
done

There's also an issue with inconsistent use of ;/usr/local/bin/pyton,
or "/usr/bin/env python", fo the svnpubsub *.py scripts:

# Canonicalize path to python, correctly
for name in tools/server-side/svnpubsub/*.py; do
    sed -i 's|#!/usr/local/bin/python|#!/usr/bin/env python|g' $name
done

The resulting changes are non-critical, but do clean up RPM building,
and I'd appreciate them.

Mime
View raw message