Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Apr 2002 20:41:24 +0200 (CEST)
From:      Richard Arends <richard@unixguru.nl>
To:        ports@freebsd.org
Subject:   gtk12 port expr errors
Message-ID:  <20020428204107.A38296-100000@mail.unixguru.nl>

next in thread | raw e-mail | index | archive | help
Hello,

The gtk12 port produced the following errors:

expr: illegal option -- L
usage: expr [--] expression
expr: illegal option -- l
usage: expr [--] expression
expr: illegal option -- l
usage: expr [--] expression
expr: illegal option -- L
usage: expr [--] expression
expr: illegal option -- l
usage: expr [--] expression
expr: illegal option -- l
usage: expr [--] expression
expr: illegal option -- l
usage: expr [--] expression

I think the following patch corrects this. Can somebody look at it??

# diff -urN libtool libtool.orig
--- libtool     Sun Apr 28 20:33:29 2002
+++ libtool.orig        Sun Apr 28 20:33:24 2002
@@ -2228,7 +2228,7 @@
          if test $? -eq 0 ; then
            ldd_output=`ldd conftest`
            for i in $deplibs; do
-              name="`echo $i|sed 's/-l.*//'`"
+             name="`expr $i : '-l\(.*\)'`"
              # If $name is empty we are operating on a -L argument.
              if test "$name" != "" ; then
                libname=`eval \\$echo \"$libname_spec\"`
@@ -2253,7 +2253,7 @@
            # Error occured in the first compile.  Let's try to salvage
the situation:
            # Compile a seperate program for each library.
            for i in $deplibs; do
-              name="`echo $i|sed 's/-l.*//'`"
+             name="`expr $i : '-l\(.*\)'`"
             # If $name is empty we are operating on a -L argument.
              if test "$name" != "" ; then
                $rm conftest
@@ -2293,7 +2293,7 @@
          set dummy $deplibs_check_method
          file_magic_regex="`expr \"$deplibs_check_method\" : \"$2
\(.*\)\"`"
          for a_deplib in $deplibs; do
-              name="`echo $a_deplib|sed 's/-l.*//'`"
+           name="`expr $a_deplib : '-l\(.*\)'`"
            # If $name is empty we are operating on a -L argument.
            if test "$name" != "" ; then
              libname=`eval \\$echo \"$libname_spec\"


--------------
# uname -a
FreeBSD pentium2.unixguru.nl 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sun Apr 28 13:27:34 CEST 2002
root@pentium2.unixguru.nl:/usr/obj/usr/src/sys/GENERIC  i386
--------------

Greetings,

Richard.

----
An OS is like swiss cheese, the bigger it is, the more holes you get!



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020428204107.A38296-100000>