Rebase multilib patch
This commit is contained in:
parent
088381c912
commit
2a386021d9
@ -1,42 +0,0 @@
|
|||||||
diff -up ./x86_64-redhat-linux-gnu/zzip/_config.h.orig ./x86_64-redhat-linux-gnu/zzip/_config.h
|
|
||||||
--- ./x86_64-redhat-linux-gnu/zzip/_config.h.orig 2018-02-01 22:13:36.593910695 +0200
|
|
||||||
+++ ./x86_64-redhat-linux-gnu/zzip/_config.h 2018-02-01 22:15:40.341476130 +0200
|
|
||||||
@@ -133,7 +133,11 @@
|
|
||||||
|
|
||||||
/* whether the system defaults to 32bit off_t but can do 64bit when requested
|
|
||||||
*/
|
|
||||||
-/* #undef LARGEFILE_SENSITIVE */
|
|
||||||
+#if __WORDSIZE == 32
|
|
||||||
+#ifndef ZZIP_LARGEFILE_SENSITIVE
|
|
||||||
+#define ZZIP_LARGEFILE_SENSITIVE 1
|
|
||||||
+#endif
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|
||||||
*/
|
|
||||||
@@ -183,8 +187,12 @@
|
|
||||||
|
|
||||||
/* The number of bytes in type long */
|
|
||||||
#ifndef ZZIP_SIZEOF_LONG
|
|
||||||
+#if __WORDSIZE == 32
|
|
||||||
+#define ZZIP_SIZEOF_LONG 4
|
|
||||||
+#elif __WORDSIZE == 64
|
|
||||||
#define ZZIP_SIZEOF_LONG 8
|
|
||||||
#endif
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
/* The number of bytes in type short */
|
|
||||||
#ifndef ZZIP_SIZEOF_SHORT
|
|
||||||
@@ -219,7 +227,11 @@
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
|
||||||
-/* #undef _FILE_OFFSET_BITS */
|
|
||||||
+#if __WORDSIZE == 32
|
|
||||||
+#ifndef ZZIP__FILE_OFFSET_BITS
|
|
||||||
+#define ZZIP__FILE_OFFSET_BITS 64
|
|
||||||
+#endif
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
/* Define for large files, on AIX-style hosts. */
|
|
||||||
/* #undef _LARGE_FILES */
|
|
31
zziplib-0.13.69-multilib.patch
Normal file
31
zziplib-0.13.69-multilib.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
diff -up ./_builddir/zzip/_config.h.orig ./_builddir/zzip/_config.h
|
||||||
|
--- ./_builddir/zzip/_config.h.orig 2018-07-23 09:11:59.971840954 +0300
|
||||||
|
+++ ./_builddir/zzip/_config.h 2018-07-23 09:12:07.438731527 +0300
|
||||||
|
@@ -139,6 +139,11 @@
|
||||||
|
/* whether the system defaults to 32bit off_t but can do 64bit when requested
|
||||||
|
*/
|
||||||
|
/* #undef LARGEFILE_SENSITIVE */
|
||||||
|
+#if __WORDSIZE == 32
|
||||||
|
+#ifndef ZZIP_LARGEFILE_SENSITIVE
|
||||||
|
+#define ZZIP_LARGEFILE_SENSITIVE 1
|
||||||
|
+#endif
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
/* Define to the sub-directory where libtool stores uninstalled libraries. */
|
||||||
|
#ifndef ZZIP_LT_OBJDIR
|
||||||
|
@@ -197,6 +202,15 @@
|
||||||
|
/* The number of bytes in type short */
|
||||||
|
/* #undef SIZEOF_SHORT */
|
||||||
|
|
||||||
|
+/* The number of bytes in type long */
|
||||||
|
+#ifndef ZZIP_SIZEOF_LONG
|
||||||
|
+#if __WORDSIZE == 32
|
||||||
|
+#define ZZIP_SIZEOF_LONG 4
|
||||||
|
+#elif __WORDSIZE == 64
|
||||||
|
+#define ZZIP_SIZEOF_LONG 8
|
||||||
|
+#endif
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
/* Define to 1 if you have the ANSI C header files. */
|
||||||
|
#ifndef ZZIP_STDC_HEADERS
|
||||||
|
#define ZZIP_STDC_HEADERS 1
|
@ -6,7 +6,7 @@ License: LGPLv2+ or MPLv1.1
|
|||||||
Group: Applications/Archiving
|
Group: Applications/Archiving
|
||||||
URL: http://zziplib.sourceforge.net/
|
URL: http://zziplib.sourceforge.net/
|
||||||
Source: https://github.com/gdraheim/zziplib/archive/v%{version}.tar.gz
|
Source: https://github.com/gdraheim/zziplib/archive/v%{version}.tar.gz
|
||||||
Patch0: zziplib-0.13.67-multilib.patch
|
Patch0: zziplib-0.13.69-multilib.patch
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: perl-interpreter
|
BuildRequires: perl-interpreter
|
||||||
BuildRequires: python2
|
BuildRequires: python2
|
||||||
|
Loading…
Reference in New Issue
Block a user