diff options
Diffstat (limited to 'recipes/tcltk/tcl-8.5.8/tclpackagepath.diff')
-rw-r--r-- | recipes/tcltk/tcl-8.5.8/tclpackagepath.diff | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes/tcltk/tcl-8.5.8/tclpackagepath.diff b/recipes/tcltk/tcl-8.5.8/tclpackagepath.diff new file mode 100644 index 0000000000..a9511566e7 --- /dev/null +++ b/recipes/tcltk/tcl-8.5.8/tclpackagepath.diff @@ -0,0 +1,32 @@ +Patch by Sergei Golovan allows to specify TCL_PACKAGE_PATH at configure stage +without adding /usr/lib to it. It helps to put the policy compliant value to +::tcl_pkgPath variable and to TCL_PACKAGE_PATH variable in tclConfig.sh. + +--- tcl8.5-8.5.8.orig/unix/configure ++++ tcl8.5-8.5.8/unix/configure +@@ -18945,9 +18945,9 @@ + test -z "$TCL_MODULE_PATH" && \ + TCL_MODULE_PATH="~/Library/Tcl /Library/Tcl /System/Library/Tcl" + elif test "$prefix/lib" != "$libdir"; then +- TCL_PACKAGE_PATH="${libdir} ${prefix}/lib ${TCL_PACKAGE_PATH}" ++ test -z "$TCL_PACKAGE_PATH" && TCL_PACKAGE_PATH="${libdir} ${prefix}/lib" + else +- TCL_PACKAGE_PATH="${prefix}/lib ${TCL_PACKAGE_PATH}" ++ test -z "$TCL_PACKAGE_PATH" && TCL_PACKAGE_PATH="${prefix}/lib" + fi + + #-------------------------------------------------------------------- +--- tcl8.5-8.5.8.orig/unix/configure.in ++++ tcl8.5-8.5.8/unix/configure.in +@@ -833,9 +833,9 @@ + test -z "$TCL_MODULE_PATH" && \ + TCL_MODULE_PATH="~/Library/Tcl /Library/Tcl /System/Library/Tcl" + elif test "$prefix/lib" != "$libdir"; then +- TCL_PACKAGE_PATH="${libdir} ${prefix}/lib ${TCL_PACKAGE_PATH}" ++ test -z "$TCL_PACKAGE_PATH" && TCL_PACKAGE_PATH="${libdir} ${prefix}/lib" + else +- TCL_PACKAGE_PATH="${prefix}/lib ${TCL_PACKAGE_PATH}" ++ test -z "$TCL_PACKAGE_PATH" && TCL_PACKAGE_PATH="${prefix}/lib" + fi + + #-------------------------------------------------------------------- |