diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-04 17:11:11 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-04 17:11:11 +0100 |
commit | 62d8f480832b4225aabf2d34c26b97447f2d5193 (patch) | |
tree | db6dcfc622c704fc8da7be2c9796bfb4fec506e0 /main/openssl/APKBUILD | |
parent | 2660da36ac591d084bb33bbe9906e95bda7c0a61 (diff) | |
download | aports-62d8f480832b4225aabf2d34c26b97447f2d5193.tar.bz2 aports-62d8f480832b4225aabf2d34c26b97447f2d5193.tar.xz |
main/openssl: add versioned symbols
when building on eglibc we need versioned symbols
Diffstat (limited to 'main/openssl/APKBUILD')
-rw-r--r-- | main/openssl/APKBUILD | 35 |
1 files changed, 28 insertions, 7 deletions
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" |