Browse Source

fix syntax error in generated code (fixed building under at least NetBSD /bin/sh)

Ralf S. Engelschall 20 years ago
parent
commit
ca274b9a65
2 changed files with 15 additions and 1 deletions
  1. 12 0
      diffstat/diffstat.patch
  2. 3 1
      diffstat/diffstat.spec

+ 12 - 0
diffstat/diffstat.patch

@@ -0,0 +1,12 @@
+Index: configure
+--- configure.orig	2005-08-16 02:41:39 +0200
++++ configure	2005-10-14 08:57:12 +0200
+@@ -4447,8 +4447,6 @@
+   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
+   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
+ 
+-  case $ac_dest in
+-  esac
+ done
+ EOF
+ 

+ 3 - 1
diffstat/diffstat.spec

@@ -33,10 +33,11 @@ Class:        PLUS
 Group:        Converter
 License:      GPL
 Version:      1.41
-Release:      20050825
+Release:      20051014
 
 #   list of sources
 Source0:      ftp://invisible-island.net/diffstat/diffstat-%{version}.tgz
+Patch0:       diffstat.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -60,6 +61,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q
+    %patch -p0
 
 %build
     CC="%{l_cc}" \