rpms/libtar/devel libtar-1.2.11-missing-protos.patch, NONE, 1.1 libtar.spec, 1.13, 1.14

Hans de Goede (jwrdegoede) fedora-extras-commits at redhat.com
Thu Apr 3 13:51:07 UTC 2008


Author: jwrdegoede

Update of /cvs/extras/rpms/libtar/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv25436

Modified Files:
	libtar.spec 
Added Files:
	libtar-1.2.11-missing-protos.patch 
Log Message:
* Thu Apr  3 2008 Hans de Goede <j.w.r.degoede at hhs.nl> 1.2.11-11
- Fix missing prototype compiler warnings


libtar-1.2.11-missing-protos.patch:

--- NEW FILE libtar-1.2.11-missing-protos.patch ---
diff -up libtar-1.2.11/lib/append.c.foo libtar-1.2.11/lib/append.c
--- libtar-1.2.11/lib/append.c.foo	2003-01-07 02:40:59.000000000 +0100
+++ libtar-1.2.11/lib/append.c	2008-04-03 15:08:07.000000000 +0200
@@ -13,6 +13,8 @@
 #include <internal.h>
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <sys/param.h>
diff -up libtar-1.2.11/configure.foo libtar-1.2.11/configure
--- libtar-1.2.11/configure.foo	2008-04-03 15:08:07.000000000 +0200
+++ libtar-1.2.11/configure	2008-04-03 15:09:20.000000000 +0200
@@ -4943,8 +4943,8 @@ main ()
   for (i = 0; i < 256; i++)
     if (XOR (islower (i), ISLOWER (i))
 	|| toupper (i) != TOUPPER (i))
-      exit(2);
-  exit (0);
+      return 2;
+  return 0;
 }
 _ACEOF
 rm -f conftest$ac_exeext
@@ -20083,8 +20083,8 @@ main ()
   for (i = 0; i < 256; i++)
     if (XOR (islower (i), ISLOWER (i))
 	|| toupper (i) != TOUPPER (i))
-      exit(2);
-  exit (0);
+      return (2);
+  return (0);
 }
 _ACEOF
 rm -f conftest$ac_exeext
@@ -22411,6 +22411,7 @@ cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
 
 #include <stdio.h>
+#include <string.h>
 
 typedef struct {
   int length;
@@ -22437,10 +22438,10 @@ int main() {
     if ((snprintf(test1, tests[i].length, "%s", tests[i].test)
          != tests[i].retval) ||
         (tests[i].result && strcmp(tests[i].result, test1)))
-      exit(1);
+      return (1);
   }
 
-  exit(0);
+  return (0);
 }
 
 _ACEOF
diff -up libtar-1.2.11/lib/output.c~ libtar-1.2.11/lib/output.c
--- libtar-1.2.11/lib/output.c~	2008-04-03 15:11:07.000000000 +0200
+++ libtar-1.2.11/lib/output.c	2008-04-03 15:11:07.000000000 +0200
@@ -13,6 +13,7 @@
 #include <internal.h>
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <pwd.h>
 #include <grp.h>
 #include <time.h>
diff -up libtar-1.2.11/lib/wrapper.c~ libtar-1.2.11/lib/wrapper.c
--- libtar-1.2.11/lib/wrapper.c~	2008-04-03 15:11:28.000000000 +0200
+++ libtar-1.2.11/lib/wrapper.c	2008-04-03 15:11:28.000000000 +0200
@@ -13,6 +13,7 @@
 #include <internal.h>
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <sys/param.h>
 #include <dirent.h>
 #include <errno.h>


Index: libtar.spec
===================================================================
RCS file: /cvs/extras/rpms/libtar/devel/libtar.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- libtar.spec	19 Feb 2008 09:06:50 -0000	1.13
+++ libtar.spec	3 Apr 2008 13:50:28 -0000	1.14
@@ -1,12 +1,13 @@
 Summary:        Tar file manipulation API
 Name:           libtar
 Version:        1.2.11
-Release:        10%{?dist}
+Release:        11%{?dist}
 License:        MIT
 Group:          System Environment/Libraries
 URL:            http://www.feep.net/libtar/
 Source0:        ftp://ftp.feep.net/pub/software/libtar/libtar-%{version}.tar.gz
 Patch0:         http://ftp.debian.org/debian/pool/main/libt/libtar/libtar_1.2.11-4.diff.gz
+Patch1:         libtar-1.2.11-missing-protos.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
 BuildRequires:  zlib-devel libtool
 
@@ -29,6 +30,7 @@
 %prep
 %setup -q
 %patch0 -p1 -z .deb
+%patch1 -p1
 # set correct version for .so build
 %define ltversion %(echo %{version} | tr '.' ':')
 sed -i 's/-rpath $(libdir)/-rpath $(libdir) -version-number %{ltversion}/' \
@@ -75,6 +77,9 @@
 
 
 %changelog
+* Thu Apr  3 2008 Hans de Goede <j.w.r.degoede at hhs.nl> 1.2.11-11
+- Fix missing prototype compiler warnings
+
 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 1.2.11-10
 - Autorebuild for GCC 4.3
 




More information about the fedora-extras-commits mailing list