summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorkamil <kamil>2017-02-25 12:16:44 +0000
committerkamil <kamil>2017-02-25 12:16:44 +0000
commitb8807766c49fa45bafb598ddf6e30ec6d1130573 (patch)
treeeed8ce1461775dd567547cb51e1727f84b337fc4 /archivers
parent2c51afedb2448eaed653e7b1a26d65a985b92958 (diff)
downloadpkgsrc-b8807766c49fa45bafb598ddf6e30ec6d1130573.tar.gz
Fix archivers/zziplib build on NetBSD 7.99.62 amd64
Fix inline function error reference: work/zziplib-0.13.59/zzip/.libs/libzzip.so: undefined reference to `__zzip_aligned4' Replace _zzip_inline with regular static inline.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/zziplib/distinfo3
-rw-r--r--archivers/zziplib/patches/patch-zzip_zip.c27
2 files changed, 29 insertions, 1 deletions
diff --git a/archivers/zziplib/distinfo b/archivers/zziplib/distinfo
index b0b8b61091f..f17d52e0dea 100644
--- a/archivers/zziplib/distinfo
+++ b/archivers/zziplib/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2015/12/08 11:13:04 jperkin Exp $
+$NetBSD: distinfo,v 1.13 2017/02/25 12:16:44 kamil Exp $
SHA1 (zziplib-0.13.59.tar.bz2) = ddbce25cb36c3b4c2b892e2c8a88fa4a0be29a71
RMD160 (zziplib-0.13.59.tar.bz2) = b96f547039ac005f6e9ca2cf92c388a077b9b21e
@@ -8,3 +8,4 @@ SHA1 (patch-aa) = e5687abbc3bbffa2b461f6e835baa18090e2c3a8
SHA1 (patch-ba) = 1f680820112114534318ad46603992b16e183866
SHA1 (patch-bb) = afdcf01c5aea03f7bfd61492acbe4f3743d50b0a
SHA1 (patch-bc) = 897a79994d90124972afdb9fa803e82520e6ae0e
+SHA1 (patch-zzip_zip.c) = bbceb2ed9cd80620a297d4b8c48624bb2824dafb
diff --git a/archivers/zziplib/patches/patch-zzip_zip.c b/archivers/zziplib/patches/patch-zzip_zip.c
new file mode 100644
index 00000000000..4065f9e3c45
--- /dev/null
+++ b/archivers/zziplib/patches/patch-zzip_zip.c
@@ -0,0 +1,27 @@
+$NetBSD: patch-zzip_zip.c,v 1.1 2017/02/25 12:16:44 kamil Exp $
+
+Fix inline function error reference:
+work/zziplib-0.13.59/zzip/.libs/libzzip.so: undefined reference to `__zzip_aligned4'
+
+Replace _zzip_inline with regular static inline.
+
+--- zzip/zip.c.orig 2009-09-24 21:57:00.000000000 +0000
++++ zzip/zip.c
+@@ -90,7 +90,7 @@ int __zzip_parse_root_directory(int fd,
+ struct zzip_dir_hdr **hdr_return,
+ zzip_plugin_io_t io);
+
+-_zzip_inline char *__zzip_aligned4(char *p);
++static inline char *__zzip_aligned4(char *p);
+
+ /* ------------------------ harden routines ------------------------------ */
+
+@@ -377,7 +377,7 @@ __zzip_fetch_disk_trailer(int fd, zzip_o
+ * to pointer types but we do need only the lower bits in this implementation,
+ * so we can just cast the value to a long value.
+ */
+-_zzip_inline char *
++static inline char *
+ __zzip_aligned4(char *p)
+ {
+ #define aligned4 __zzip_aligned4