bug-gnulib
[Top][All Lists]
Advanced

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

Re: gnulib-tool not working on AIX


From: Ralf Wildenhues
Subject: Re: gnulib-tool not working on AIX
Date: Thu, 4 Sep 2008 20:40:42 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hi Albert,

* Albert Chin wrote on Thu, Sep 04, 2008 at 07:33:36PM CEST:
> Should gnulib-tool work on AIX? On AIX 5.3 and 6.1:

Yes.

>   $ ./gnulib-tool --test --with-tests fcntl
[...]
>   sed: 0602-429 No editing script was provided.
>   Usage:  sed [-n] Script [File ...]
>           sed [-n] [-e Script] ... [-f Script_file] ... [File ...]

Thanks for the report.  OK to apply?

Cheers,
Ralf

2008-09-04  Ralf Wildenhues  <address@hidden>

        * gnulib-tool (func_emit_lib_Makefile_am)
        (func_emit_tests_Makefile_am, func_import, func_add_or_update)
        (func_create_testdir): Do not feed empty scripts to `sed -e',
        for AIX sed.
        Report by Albert Chin.

diff --git a/gnulib-tool b/gnulib-tool
index 4a1d02e..d08dae3 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -1672,7 +1672,7 @@ func_emit_lib_Makefile_am ()
   if test "$libtool" = true; then
     libext=la
     perhapsLT=LT
-    sed_eliminate_LDFLAGS=
+    sed_eliminate_LDFLAGS=s,x,x,
   else
     libext=a
     perhapsLT=
@@ -1685,7 +1685,7 @@ func_emit_lib_Makefile_am ()
     # situation. Turn check_PROGRAMS into noinst_PROGRAMS.
     sed_transform_check_PROGRAMS='s,check_PROGRAMS,noinst_PROGRAMS,g'
   else
-    sed_transform_check_PROGRAMS=
+    sed_transform_check_PROGRAMS=s,x,x,
   fi
   echo "## DO NOT EDIT! GENERATED AUTOMATICALLY!"
   echo "## Process this file with automake to produce Makefile.in."
@@ -1897,7 +1897,7 @@ func_emit_tests_Makefile_am ()
 {
   if test "$libtool" = true; then
     libext=la
-    sed_eliminate_LDFLAGS=
+    sed_eliminate_LDFLAGS=s,x,x,
   else
     libext=a
     sed_eliminate_LDFLAGS='/^lib_LDFLAGS[       ]*+=/d'
@@ -1909,7 +1909,7 @@ func_emit_tests_Makefile_am ()
     # situation. Turn check_PROGRAMS into noinst_PROGRAMS.
     sed_transform_check_PROGRAMS='s,check_PROGRAMS,noinst_PROGRAMS,g'
   else
-    sed_transform_check_PROGRAMS=
+    sed_transform_check_PROGRAMS=s,x,x,
   fi
   testsbase_inverse=`echo "$testsbase" | sed -e 's,/$,,' | sed -e 
's,[^/][^/]*,..,g'`
   echo "## DO NOT EDIT! GENERATED AUTOMATICALLY!"
@@ -2502,7 +2502,7 @@ func_import ()
   func_modules_notice
 
   # Determine script to apply to imported library files.
-  sed_transform_lib_file=
+  sed_transform_lib_file=s,x,x,
   for module in $main_modules; do
     if test $module = config-h; then
       # Assume config.h exists, and that -DHAVE_CONFIG_H is omitted.
@@ -3153,7 +3153,7 @@ func_import ()
           ba
         }'
     else
-      sed_replace_build_aux=
+      sed_replace_build_aux=s,x,x,
     fi
     func_emit_initmacro_start $macro_prefix
     echo "  gl_source_base='$sourcebase'"
@@ -3830,7 +3830,7 @@ func_create_testdir ()
          ba
        }'
    else
-     sed_replace_build_aux=
+     sed_replace_build_aux=s,x,x,
    fi
    func_emit_initmacro_start $macro_prefix
    echo "gl_source_base='$sourcebase'"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]