pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

hardcoded /usr/bin/tr breaks noweb build in archlinux



Greetings everyone!

I am building devel/noweb under archlinux (well, its a dependency of
math/fricas I'm interested in).

At some point it breaks, because it expects tr(1) to be in
/usr/bin/tr, whereas in this specific distro is in /bin/tr. As I've
been informed this might break in solaris also, where tr(1) is in
/usr/ucb/tr.

Here is the exact error:
=> Returning to build of noweb-2.11b
===> Overriding tools for noweb-2.11b
===> Extracting for noweb-2.11b
===> Patching for noweb-2.11b
=> Applying pkgsrc patches for noweb-2.11b
=> Substituting "mktemp" in src/awk/totex.nw src/lib/toascii src/shell/toroff sr
c/shell/noroff src/shell/nonu src/shell/cpif src/awkname src/shell/roff.nw src/s
hell/roff.mm contrib/conrado/d2tex contrib/jobling/correct-refs.nw contrib/norma
n/htmlgif/pstopbm
/bin/sh: /usr/bin/tr: No such file or directory
WARNING: [subst.mk:mktemp] Ignoring non-text file "./src/awk/totex.nw".
/bin/sh: /usr/bin/tr: No such file or directory
WARNING: [subst.mk:mktemp] Ignoring non-text file "./src/lib/toascii".
/bin/sh: /usr/bin/tr: No such file or directory
[ ... some more warnings .... ]
===> Creating toolchain wrappers for noweb-2.11b
===> Configuring for noweb-2.11b
cd /home/stathis/pkgsrc/devel/noweb/work/noweb-2.11b/src && ./awkname awk
./awkname: line 8: @MKTEMP@: command not found
*** Error code 1

Here are the places where the path is hardcoded:
[stathis@voyager noweb]$ grep "usr/bin/tr" -R .
./work/.pkginstall/DEINSTALL.default:TR="/usr/bin/tr"
./work/.pkginstall/INSTALL.default:TR="/usr/bin/tr"
./work/.pkginstall/DEINSTALL:TR="/usr/bin/tr"
./work/.pkginstall/INSTALL:TR="/usr/bin/tr"
[stathis@voyager noweb]$

Anyone willing to fix it ?

Best regards,
Stathis Kamperis


Home | Main Index | Thread Index | Old Index