From 62d8f480832b4225aabf2d34c26b97447f2d5193 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Fri, 4 Jan 2013 17:11:11 +0100 Subject: main/openssl: add versioned symbols when building on eglibc we need versioned symbols --- main/openssl/APKBUILD | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) (limited to 'main/openssl/APKBUILD') diff --git a/main/openssl/APKBUILD b/main/openssl/APKBUILD index 526044d0b4..0ee0ed451b 100644 --- a/main/openssl/APKBUILD +++ b/main/openssl/APKBUILD @@ -20,15 +20,35 @@ source="http://www.openssl.org/source/${pkgname}-${pkgver}.tar.gz 0003-engines-e_padlock-implement-sha1-sha224-sha256-accel.patch 0004-crypto-engine-autoload-padlock-dynamic-engine.patch 0005-s_client-ircv3-starttls.patch - " + version-script-eglibc.patch" _builddir="$srcdir"/$pkgname-$pkgver + prepare() { - cd "$_builddir" - for i in ../*.patch; do - msg "Applying $i..." - patch -p1 -N < $i || return 1 - done + cd "$_builddir" + for patch in $source; do + case $patch in + # we concider patches with uclibc in its name + # only usefull on uclibc install + *uclibc*.patch) + if [ "$ALPINE_LIBC" != "eglibc" ]; then + msg "Applying patch $patch" + patch -p1 -i "$srcdir"/$patch || return 1 + fi + ;; + # same applied to eglibc + *eglibc*.patch) + if [ "$ALPINE_LIBC" = "eglibc" ]; then + msg "Applying patch $patch" + patch -p1 -i "$srcdir"/$patch || return 1 + fi + ;; + *.patch) + msg "Applying patch $patch" + patch -p1 -i "$srcdir"/$patch || return 1 + ;; + esac + done } build() { @@ -76,4 +96,5 @@ ddb5fc155145d5b852425adaec32234d 0001-crypto-hmac-support-EVP_MD_CTX_FLAG_ONESH 4a7b9e20beb33a5e262ab64c2b8e5b48 0002-engines-e_padlock-backport-cvs-head-changes.patch d95bbaa38889836afd3c52f3962f3b54 0003-engines-e_padlock-implement-sha1-sha224-sha256-accel.patch c32f42451a07267ee5dfb3781fa40c00 0004-crypto-engine-autoload-padlock-dynamic-engine.patch -c5b1042a3acaf3591f3f5620b7086e12 0005-s_client-ircv3-starttls.patch" +c5b1042a3acaf3591f3f5620b7086e12 0005-s_client-ircv3-starttls.patch +fcf44e9894d87a8bfe368e9b134647d5 version-script-eglibc.patch" -- cgit v1.2.3