Subject: pkg/27182: libtool prints strange message when installing libraries on Interix
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hiramatu@boreas.dti.ne.jp>
List: pkgsrc-bugs
Date: 10/08/2004 01:30:44
>Number:         27182
>Category:       pkg
>Synopsis:       libtool prints strange message when installing libraries on Interix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 07 16:29:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Hiramatsu Yoshifumi
>Release:        SFU 3.5
>Organization:
	
>Environment:
	
	
System: Interix nile 3.5 SP-8.0.1969.1 x86 AMD_x86_Family15_Model12_Stepping0
Architecture: i386
Machine: i386
>Description:
libtool prints following message when installing library packages(devel/glib for example).

/usr/pkg/bin/libtool[6545]: print: --: unknown option

>How-To-Repeat:
cd /usr/pkgsrc/devel/glib
bmake install

>Fix:
On Interix, libtool use "print -r" as echo command. But according to
the manual page of ksh, "print" command requires - to emulate
"echo" command.

diff -buNr libtool.orig/distinfo libtool/distinfo
--- libtool.orig/distinfo	Fri Oct  8 00:47:32 2004
+++ libtool/distinfo	Fri Oct  8 00:48:09 2004
@@ -3,6 +3,6 @@
 SHA1 (libtool-1.5.10.tar.gz) = bb2cab7f405c5eb08ab8ba193cbac59ebe6e6e9e
 Size (libtool-1.5.10.tar.gz) = 2699923 bytes
 SHA1 (patch-aa) = 173b8f40ebb067e3bcea798b87e822a445d5688e
-SHA1 (patch-ab) = b6602584eb17c343838af13c706961ffeae7745a
+SHA1 (patch-ab) = e4d48afd2562269d163a0e4497650c9c326d54e0
 SHA1 (patch-ac) = e5cb5ca2303ebb82bb17db6c785580c23db2c6d3
 SHA1 (patch-ad) = 10c4330056c6a7c20bff0ed81407c21a5ac00b32
diff -buNr libtool.orig/patches/patch-ab libtool/patches/patch-ab
--- libtool.orig/patches/patch-ab	Fri Oct  8 00:47:32 2004
+++ libtool/patches/patch-ab	Fri Oct  8 00:47:57 2004
@@ -1,8 +1,22 @@
-$NetBSD: patch-ab,v 1.40 2004/10/03 00:13:31 tv Exp $
+$NetBSD$
 
---- configure.orig	2004-09-19 08:22:04.000000000 -0400
-+++ configure
-@@ -4534,6 +4534,10 @@ hpux10.20* | hpux11*)
+--- configure.orig	Sun Sep 19 21:22:04 2004
++++ configure	Fri Oct  8 00:32:23 2004
+@@ -322,11 +322,11 @@
+ 
+   if test "X$echo" = Xecho; then
+     # We didn't find a better echo, so look for alternatives.
+-    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
++    if test "X`(print -r - '\t') 2>/dev/null`" = 'X\t' &&
+        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
+        test "X$echo_testing_string" = "X$echo_test_string"; then
+       # This shell has a builtin print -r that does the trick.
+-      echo='print -r'
++      echo='print -r -'
+     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
+ 	 test "X$CONFIG_SHELL" != X/bin/ksh; then
+       # If we have ksh, try running configure again with it.
+@@ -4534,6 +4534,10 @@
    esac
    ;;
  
@@ -13,7 +27,7 @@
  irix5* | irix6* | nonstopux*)
    case $LD in
    *-32|*"-32 ") libmagic=32-bit;;
-@@ -6909,9 +6913,11 @@ echo $ECHO_N "checking for $compiler opt
+@@ -6909,9 +6913,11 @@
        ;;
  
      darwin* | rhapsody*)
@@ -26,7 +40,7 @@
        ;;
  
      msdosdjgpp*)
-@@ -6940,6 +6946,11 @@ echo $ECHO_N "checking for $compiler opt
+@@ -6940,6 +6946,11 @@
        esac
        ;;
  
@@ -38,7 +52,7 @@
      *)
        lt_prog_compiler_pic='-fPIC'
        ;;
-@@ -7325,6 +7336,17 @@ EOF
+@@ -7325,6 +7336,17 @@
        fi
        ;;
  
@@ -56,7 +70,7 @@
      netbsd*)
        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
-@@ -7832,6 +7854,20 @@ if test -z "$aix_libpath"; then aix_libp
+@@ -7832,6 +7854,20 @@
        fi
        ;;
  
@@ -77,7 +91,7 @@
      irix5* | irix6* | nonstopux*)
        if test "$GCC" = yes; then
  	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
-@@ -8223,6 +8259,7 @@ beos*)
+@@ -8223,6 +8259,7 @@
  bsdi[45]*)
    version_type=linux
    need_version=no
@@ -85,7 +99,7 @@
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
-@@ -8337,16 +8374,17 @@ kfreebsd*-gnu)
+@@ -8337,16 +8374,17 @@
    ;;
  
  freebsd*)
@@ -109,7 +123,7 @@
        need_version=yes
        ;;
    esac
-@@ -8422,15 +8460,22 @@ hpux9* | hpux10* | hpux11*)
+@@ -8422,15 +8460,22 @@
    postinstall_cmds='chmod 555 $lib'
    ;;
  
@@ -138,7 +152,7 @@
    esac
    need_lib_prefix=no
    need_version=no
-@@ -8507,11 +8552,11 @@ knetbsd*-gnu)
+@@ -8507,11 +8552,11 @@
    ;;
  
  netbsd*)
@@ -152,7 +166,7 @@
      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
      dynamic_linker='NetBSD (a.out) ld.so'
    else
-@@ -8542,10 +8587,10 @@ nto-qnx*)
+@@ -8542,10 +8587,10 @@
    ;;
  
  openbsd*)
@@ -165,7 +179,7 @@
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    shlibpath_var=LD_LIBRARY_PATH
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
-@@ -10817,6 +10862,8 @@ if test -z "$aix_libpath"; then aix_libp
+@@ -10817,6 +10862,8 @@
  	;;
      esac
      ;;
@@ -174,7 +188,7 @@
    irix5* | irix6*)
      case $cc_basename in
        CC)
-@@ -10936,6 +10983,13 @@ if test -z "$aix_libpath"; then aix_libp
+@@ -10936,6 +10983,13 @@
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
        archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
        wlarc=
@@ -188,7 +202,7 @@
        hardcode_libdir_flag_spec_CXX='-R$libdir'
        hardcode_direct_CXX=yes
        hardcode_shlibpath_var_CXX=no
-@@ -11324,6 +11378,14 @@ if { (eval echo "$as_me:$LINENO: \"$ac_c
+@@ -11324,6 +11378,14 @@
      esac
    done
  
@@ -203,7 +217,7 @@
    # Clean up.
    rm -f a.out a.exe
  else
-@@ -11371,9 +11433,11 @@ echo $ECHO_N "checking for $compiler opt
+@@ -11371,9 +11433,11 @@
        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
        ;;
      darwin* | rhapsody*)
@@ -216,7 +230,7 @@
        ;;
      *djgpp*)
        # DJGPP does not support shared libraries at all
-@@ -11395,6 +11459,10 @@ echo $ECHO_N "checking for $compiler opt
+@@ -11395,6 +11459,10 @@
  	;;
        esac
        ;;
@@ -227,7 +241,7 @@
      *)
        lt_prog_compiler_pic_CXX='-fPIC'
        ;;
-@@ -11469,6 +11537,8 @@ echo $ECHO_N "checking for $compiler opt
+@@ -11469,6 +11537,8 @@
  	    ;;
  	esac
  	;;
@@ -236,7 +250,7 @@
        irix5* | irix6* | nonstopux*)
  	case $cc_basename in
  	  CC)
-@@ -11939,6 +12009,7 @@ beos*)
+@@ -11939,6 +12009,7 @@
  bsdi[45]*)
    version_type=linux
    need_version=no
@@ -244,7 +258,7 @@
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
-@@ -12053,16 +12124,17 @@ kfreebsd*-gnu)
+@@ -12053,16 +12124,17 @@
    ;;
  
  freebsd*)
@@ -268,7 +282,7 @@
        need_version=yes
        ;;
    esac
-@@ -12138,15 +12210,22 @@ hpux9* | hpux10* | hpux11*)
+@@ -12138,15 +12210,22 @@
    postinstall_cmds='chmod 555 $lib'
    ;;
  
@@ -297,7 +311,7 @@
    esac
    need_lib_prefix=no
    need_version=no
-@@ -12223,11 +12302,11 @@ knetbsd*-gnu)
+@@ -12223,11 +12302,11 @@
    ;;
  
  netbsd*)
@@ -311,7 +325,7 @@
      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
      dynamic_linker='NetBSD (a.out) ld.so'
    else
-@@ -12258,10 +12337,10 @@ nto-qnx*)
+@@ -12258,10 +12337,10 @@
    ;;
  
  openbsd*)
@@ -324,7 +338,7 @@
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    shlibpath_var=LD_LIBRARY_PATH
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
-@@ -13805,9 +13884,11 @@ echo $ECHO_N "checking for $compiler opt
+@@ -13805,9 +13884,11 @@
        ;;
  
      darwin* | rhapsody*)
@@ -337,7 +351,7 @@
        ;;
  
      msdosdjgpp*)
-@@ -13836,6 +13917,11 @@ echo $ECHO_N "checking for $compiler opt
+@@ -13836,6 +13917,11 @@
        esac
        ;;
  
@@ -349,7 +363,7 @@
      *)
        lt_prog_compiler_pic_F77='-fPIC'
        ;;
-@@ -14221,6 +14307,17 @@ EOF
+@@ -14221,6 +14307,17 @@
        fi
        ;;
  
@@ -367,7 +381,7 @@
      netbsd*)
        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
-@@ -14708,6 +14805,20 @@ if test -z "$aix_libpath"; then aix_libp
+@@ -14708,6 +14805,20 @@
        fi
        ;;
  
@@ -388,7 +402,7 @@
      irix5* | irix6* | nonstopux*)
        if test "$GCC" = yes; then
  	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
-@@ -15099,6 +15210,7 @@ beos*)
+@@ -15099,6 +15210,7 @@
  bsdi[45]*)
    version_type=linux
    need_version=no
@@ -396,7 +410,7 @@
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
-@@ -15213,16 +15325,17 @@ kfreebsd*-gnu)
+@@ -15213,16 +15325,17 @@
    ;;
  
  freebsd*)
@@ -420,7 +434,7 @@
        need_version=yes
        ;;
    esac
-@@ -15298,15 +15411,22 @@ hpux9* | hpux10* | hpux11*)
+@@ -15298,15 +15411,22 @@
    postinstall_cmds='chmod 555 $lib'
    ;;
  
@@ -449,7 +463,7 @@
    esac
    need_lib_prefix=no
    need_version=no
-@@ -15383,11 +15503,11 @@ knetbsd*-gnu)
+@@ -15383,11 +15503,11 @@
    ;;
  
  netbsd*)
@@ -463,7 +477,7 @@
      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
      dynamic_linker='NetBSD (a.out) ld.so'
    else
-@@ -15418,10 +15538,10 @@ nto-qnx*)
+@@ -15418,10 +15538,10 @@
    ;;
  
  openbsd*)
@@ -476,7 +490,7 @@
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    shlibpath_var=LD_LIBRARY_PATH
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
-@@ -16147,9 +16267,11 @@ echo $ECHO_N "checking for $compiler opt
+@@ -16147,9 +16267,11 @@
        ;;
  
      darwin* | rhapsody*)
@@ -489,7 +503,7 @@
        ;;
  
      msdosdjgpp*)
-@@ -16178,6 +16300,11 @@ echo $ECHO_N "checking for $compiler opt
+@@ -16178,6 +16300,11 @@
        esac
        ;;
  
@@ -501,7 +515,7 @@
      *)
        lt_prog_compiler_pic_GCJ='-fPIC'
        ;;
-@@ -16563,6 +16690,17 @@ EOF
+@@ -16563,6 +16690,17 @@
        fi
        ;;
  
@@ -519,7 +533,7 @@
      netbsd*)
        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
-@@ -17070,6 +17208,20 @@ if test -z "$aix_libpath"; then aix_libp
+@@ -17070,6 +17208,20 @@
        fi
        ;;
  
@@ -540,7 +554,7 @@
      irix5* | irix6* | nonstopux*)
        if test "$GCC" = yes; then
  	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
-@@ -17461,6 +17613,7 @@ beos*)
+@@ -17461,6 +17613,7 @@
  bsdi[45]*)
    version_type=linux
    need_version=no
@@ -548,7 +562,7 @@
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
-@@ -17575,16 +17728,17 @@ kfreebsd*-gnu)
+@@ -17575,16 +17728,17 @@
    ;;
  
  freebsd*)
@@ -572,7 +586,7 @@
        need_version=yes
        ;;
    esac
-@@ -17660,15 +17814,22 @@ hpux9* | hpux10* | hpux11*)
+@@ -17660,15 +17814,22 @@
    postinstall_cmds='chmod 555 $lib'
    ;;
  
@@ -601,7 +615,7 @@
    esac
    need_lib_prefix=no
    need_version=no
-@@ -17745,11 +17906,11 @@ knetbsd*-gnu)
+@@ -17745,11 +17906,11 @@
    ;;
  
  netbsd*)
@@ -615,7 +629,7 @@
      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
      dynamic_linker='NetBSD (a.out) ld.so'
    else
-@@ -17780,10 +17941,10 @@ nto-qnx*)
+@@ -17780,10 +17941,10 @@
    ;;
  
  openbsd*)
>Release-Note:
>Audit-Trail:
>Unformatted: