Bug#780330: context: mtxrun script calls texfont with hardcoded nonsense parameters "binary-indep"
On 12.03.2015 09:08, proctor wrote:
Hi,
> so i ran strace and found that indeed texfont was being called with
> the strange parameter "binary-indep"
>
> removing "binary-indep" and replacing it with "$@" prevents the
> error and allows the program to proceed normally
>
Same for /usr/bin/pdftrimwhite & /usr/bin/texfind.
The following code in debian/rules does not work as expected:
binary-indep: build-indep
dh_testdir
<snip>
#
# scripts dealing
cp bin/i386-linux/* $(instbase)/usr/bin
rm -r $(instbase)/usr/share/texmf/scripts/context/stubs
#
##cp texmf-dist/scripts/context/stubs/unix/* $(instbase)/usr/bin
(echo "#!/bin/sh"; echo "mtxrun --script pdftrimwhite \"$@\"" ) >
$(instbase)/usr/bin/pdftrimwhite
(echo "#!/bin/sh"; echo "mtxrun --script texfind \"$@\"" ) >
$(instbase)/usr/bin/texfind
(echo "#!/bin/sh"; echo "mtxrun --script texfont \"$@\"" ) >
$(instbase)/usr/bin/texfont
The $@ is replaced by $1 (in this case "binary-indep") during execution of the
binary-indep target.
H.
--
sigfault
Reply to: