Browse Source

upgrading package: ffe 0.2.4 -> 0.2.5

Ralf S. Engelschall 17 years ago
parent
commit
583d067db3
2 changed files with 28 additions and 2 deletions
  1. 24 0
      ffe/ffe.patch
  2. 4 2
      ffe/ffe.spec

+ 24 - 0
ffe/ffe.patch

@@ -0,0 +1,24 @@
+Index: src/parserc.c
+--- src/parserc.c.orig	2008-03-17 19:51:28 +0100
++++ src/parserc.c	2008-03-18 21:48:11 +0100
+@@ -298,7 +298,7 @@
+ #else
+     panic("Command substitution is not supported in this system",NULL,NULL);
+ #endif
+-#ifdef HAVE_SETMODE
++#if defined(HAVE_SETMODE) && defined(O_TEXT)
+     setmode(fileno(ret),O_TEXT);
+ #endif
+     return ret;
+Index: src/xmalloc.c
+--- src/xmalloc.c.orig	2008-03-10 18:46:36 +0100
++++ src/xmalloc.c	2008-03-18 21:47:56 +0100
+@@ -59,7 +59,7 @@
+     FILE *ret = fopen(name,mode);
+ 
+     if(ret == NULL) panic("Error in opening file",name,strerror(errno));
+-#ifdef HAVE_SETMODE
++#if defined(HAVE_SETMODE) && defined(O_TEXT)
+     setmode(fileno(ret),O_TEXT);
+ #endif
+     return ret;

+ 4 - 2
ffe/ffe.spec

@@ -31,11 +31,12 @@ Distribution: OpenPKG Community
 Class:        EVAL
 Group:        ShellUtils
 License:      GPL
-Version:      0.2.4
-Release:      20080302
+Version:      0.2.5
+Release:      20080318
 
 #   list of sources
 Source0:      http://switch.dl.sourceforge.net/ff-extractor/ffe-%{version}.tar.gz
+Patch0:       ffe.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -63,6 +64,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q
+    %patch -p0
 
 %build
     CC="%{l_cc}" \