pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/buildlink3 Add missing "$" that was causing the reo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5a63e2bbe891
branches:  trunk
changeset: 468335:5a63e2bbe891
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Feb 12 20:20:35 2004 +0000

description:
Add missing "$" that was causing the reorderlibs script to create a
variable with an exponentially increasing size.  Fixes infinite loop when
building security/cyrus-saslauthd.

diffstat:

 mk/buildlink3/gen-transform.sh |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 9a45ecbd3923 -r 5a63e2bbe891 mk/buildlink3/gen-transform.sh
--- a/mk/buildlink3/gen-transform.sh    Thu Feb 12 19:07:00 2004 +0000
+++ b/mk/buildlink3/gen-transform.sh    Thu Feb 12 20:20:35 2004 +0000
@@ -1,6 +1,6 @@
 #!@BUILDLINK_SHELL@
 #
-# $NetBSD: gen-transform.sh,v 1.21 2004/02/12 08:28:58 jlam Exp $
+# $NetBSD: gen-transform.sh,v 1.22 2004/02/12 20:20:35 jlam Exp $
 
 transform="@_BLNK_TRANSFORM_SEDFILE@"
 untransform="@_BLNK_UNTRANSFORM_SEDFILE@"
@@ -130,7 +130,7 @@
                -l$2)
                        case "\${_libs}" in
                        -l$3" "*|*" "-l$3" "*)
-                               _libs="\${_libs%%-l$3 *}-l$2 -l$3 \${_libs#*-l3 }"
+                               _libs="\${_libs%%-l$3 *}-l$2 -l$3 \${_libs#*-l$3 }"
                                ;;
                        -l$3|*" "-l$3)
                                _libs="\${_libs%%-l$3}-l$2 -l$3"
@@ -308,6 +308,7 @@
 
 # Write out header for reorderlibs 
 @CAT@ > $reorderlibs << EOF
+\$echo "==> Reordering libraries: \$libs" >> \$wrapperlog
 prevlibs=
 while \$test "\$libs" != "\$prevlibs" -a -n "\$libs"; do
        _libs=



Home | Main Index | Thread Index | Old Index