[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svnpubsub dependcy problem building RPM's for Subverssion 1.8.0

From: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Sat, 22 Jun 2013 11:46:41 -0400

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.
Received on 2013-06-22 17:47:16 CEST

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.