From a42c514411347d36ddcc2c9bcc4f597faa393164 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sun, 28 Aug 2016 19:52:22 +0200 Subject: [PATCH] zlib: export Haiku versionning symbols. --- sys-libs/zlib/patches/zlib-1.2.8.patchset | 24 +++++++++++++++++++++++ sys-libs/zlib/zlib-1.2.8.recipe | 1 + 2 files changed, 25 insertions(+) create mode 100644 sys-libs/zlib/patches/zlib-1.2.8.patchset diff --git a/sys-libs/zlib/patches/zlib-1.2.8.patchset b/sys-libs/zlib/patches/zlib-1.2.8.patchset new file mode 100644 index 000000000..d4310652e --- /dev/null +++ b/sys-libs/zlib/patches/zlib-1.2.8.patchset @@ -0,0 +1,24 @@ +From faf76068355cc9169c3b3cc6564a352218ee47d1 Mon Sep 17 00:00:00 2001 +From: Adrien Destugues +Date: Sun, 28 Aug 2016 18:33:07 +0200 +Subject: zlib: export Haiku shared object symbols + +zlib by default hides all symbols starting with _ from its ABI, which +also hides symbols used for ABI versionning on Haiku. This makes +runtime_loader complain that it can't identify the version used. + +diff --git a/zlib.map b/zlib.map +index 55c6647..0a6e90e 100644 +--- a/zlib.map ++++ b/zlib.map +@@ -6,6 +6,7 @@ ZLIB_1.2.0 { + inflateBackEnd; + inflateBackInit_; + inflateCopy; ++ _gSharedObjectHaiku*; + local: + deflate_copyright; + inflate_copyright; +-- +2.7.0 + diff --git a/sys-libs/zlib/zlib-1.2.8.recipe b/sys-libs/zlib/zlib-1.2.8.recipe index a26ed62c8..69a96e89b 100644 --- a/sys-libs/zlib/zlib-1.2.8.recipe +++ b/sys-libs/zlib/zlib-1.2.8.recipe @@ -16,6 +16,7 @@ LICENSE="Zlib" REVISION="4" SOURCE_URI="http://zlib.net/zlib-1.2.8.tar.xz" CHECKSUM_SHA256="831df043236df8e9a7667b9e3bb37e1fcb1220a0f163b6de2626774b9590d057" +PATCHES="zlib-$portVersion.patchset" ARCHITECTURES="x86_gcc2 x86 x86_64 arm ?ppc" SECONDARY_ARCHITECTURES="x86_gcc2 x86"