Tags: patch Here is a patch that hardcode the resources directory.
Description: Hard code the locatation for the resources (XSL,…). This mitigates the problem if the script is invoked as `/bin/svn2cl`. In Bookworm – with usrmege – is this the case. From: H.-Dirk Schmitt <d...@computer42.org> Index: svn2cl-0.14/svn2cl.sh =================================================================== --- svn2cl-0.14.orig/svn2cl.sh 2013-09-13 23:10:18.000000000 +0200 +++ svn2cl-0.14/svn2cl.sh 2023-04-03 23:51:20.772453644 +0200 @@ -270,14 +270,18 @@ done # find the directory that this script resides in -prog="$0" -while [ -h "$prog" ] -do - dir=`dirname "$prog"` - prog=`ls -ld "$prog" | sed "s/^.*-> \(.*\)/\1/;/^[^/]/s,^,$dir/,"` -done -dir=`dirname "$prog"` -dir=`cd "$dir" && pwd` +# bug #1033919 – this fails if called as /bin/svn2cl which is the default after usrmerge +# prog="$0" +# while [ -h "$prog" ] +# do +# dir=`dirname "$prog"` +# prog=`ls -ld "$prog" | sed "s/^.*-> \(.*\)/\1/;/^[^/]/s,^,$dir/,"` +# done +# dir=`dirname "$prog"` +# dir=`cd "$dir" && pwd` +# Mitigation: Hard code the Debian location. +dir=/usr/share/svn2cl +# end bug #1033919 XSL="$dir/svn2${OUTSTYLE}.xsl" # check if the authors file is formatted as a legacy