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

Re: svnpubsub dependcy problem building RPM's for Subverssion 1.8.0

From: Branko Čibej <brane_at_wandisco.com>
Date: Sat, 22 Jun 2013 18:02:32 +0200

On 22.06.2013 17:46, Nico Kadel-Garcia wrote:
> There's also an issue with inconsistent use of ;/usr/local/bin/pyton,
> or "/usr/bin/env python", fo the svnpubsub *.py scripts:

That inconsistency is very intentional: some of the python files are
hook scripts, and those use the absolute path of the python interpreter
because hook scripts are typically executed with an empty environment,
and therefore you cannot assume that "#!/usr/bin/env python" will work.
> # 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 above will actually break the hook scripts. At best you can use
"#!/usr/bin/python" in those scripts.

-- Brane

Branko Čibej | Director of Subversion
WANdisco // Non-Stop Data
e. brane_at_wandisco.com
Received on 2013-06-22 18:03:08 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.