subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko ─îibej <br...@wandisco.com>
Subject Re: svnpubsub dependcy problem building RPM's for Subverssion 1.8.0
Date Sat, 22 Jun 2013 16:02:32 GMT
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@wandisco.com

Mime
View raw message