aboutsummaryrefslogtreecommitdiffstats
path: root/main/openssl/openssl-1.0.1-version-eglibc.patch
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2013-02-07 10:21:20 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2013-02-07 10:21:20 +0000
commit361d85064a456626de3cef491bd797604e9e9d6b (patch)
tree1132f1454d5f9429e5e61e70dcee044daa812271 /main/openssl/openssl-1.0.1-version-eglibc.patch
parent79f1ebc65eae4d9fd12fc13c16717c2be5cabf95 (diff)
downloadaports-361d85064a456626de3cef491bd797604e9e9d6b.tar.bz2
aports-361d85064a456626de3cef491bd797604e9e9d6b.tar.xz
main/openssl: eglibc update verioned symbols
Diffstat (limited to 'main/openssl/openssl-1.0.1-version-eglibc.patch')
-rw-r--r--main/openssl/openssl-1.0.1-version-eglibc.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/main/openssl/openssl-1.0.1-version-eglibc.patch b/main/openssl/openssl-1.0.1-version-eglibc.patch
new file mode 100644
index 0000000000..eb5bb2ed50
--- /dev/null
+++ b/main/openssl/openssl-1.0.1-version-eglibc.patch
@@ -0,0 +1,55 @@
+diff -up openssl-1.0.1/crypto/cversion.c.version openssl-1.0.1/crypto/cversion.c
+--- openssl-1.0.1/crypto/cversion.c.version 2004-04-19 20:09:22.000000000 +0200
++++ openssl-1.0.1/crypto/cversion.c 2012-03-14 20:58:20.630352536 +0100
+@@ -110,8 +110,15 @@ const char *SSLeay_version(int t)
+ return("not available");
+ }
+
+-unsigned long SSLeay(void)
++unsigned long _original_SSLeay(void)
++ {
++ return(0x10000003);
++ }
++
++unsigned long _current_SSLeay(void)
+ {
+ return(SSLEAY_VERSION_NUMBER);
+ }
+
++__asm__(".symver _original_SSLeay,SSLeay@");
++__asm__(".symver _current_SSLeay,SSLeay@@OPENSSL_1.0.1");
+diff -up openssl-1.0.1/crypto/opensslv.h.version openssl-1.0.1/crypto/opensslv.h
+--- openssl-1.0.1/crypto/opensslv.h.version 2012-03-14 20:58:19.914337879 +0100
++++ openssl-1.0.1/crypto/opensslv.h 2012-03-14 20:58:20.630352536 +0100
+@@ -83,7 +83,7 @@
+ * should only keep the versions that are binary compatible with the current.
+ */
+ #define SHLIB_VERSION_HISTORY ""
+-#define SHLIB_VERSION_NUMBER "1.0.0"
++#define SHLIB_VERSION_NUMBER "1.0.1d"
+
+
+ #endif /* HEADER_OPENSSLV_H */
+diff -up openssl-1.0.1/Makefile.shared.version openssl-1.0.1/Makefile.shared
+--- openssl-1.0.1/Makefile.shared.version 2012-03-14 20:58:20.553350959 +0100
++++ openssl-1.0.1/Makefile.shared 2012-03-14 20:58:20.631352556 +0100
+@@ -151,7 +151,7 @@ DO_GNU_SO=$(CALC_VERSIONS); \
+ SHLIB_SUFFIX=; \
+ ALLSYMSFLAGS='-Wl,--whole-archive'; \
+ NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \
+- SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-Bsymbolic -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"
++ SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-Bsymbolic -Wl,--default-symver,--version-script=version.map -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"
+
+ DO_GNU_APP=LDFLAGS="$(CFLAGS)"
+
+diff -up openssl-1.0.1/version.map.version openssl-1.0.1/version.map
+--- openssl-1.0.1/version.map.version 2012-03-14 20:58:20.631352556 +0100
++++ openssl-1.0.1/version.map 2012-03-14 20:58:20.631352556 +0100
+@@ -0,0 +1,7 @@
++OPENSSL_1.0.1 {
++ global:
++ SSLeay;
++ local:
++ _original*;
++ _current*;
++};