[arch-commits] Commit in socat/trunk (PKGBUILD add-missing-checks.patch)

Evangelos Foutras foutrelis at archlinux.org
Wed Mar 2 20:08:37 UTC 2016


    Date: Wednesday, March 2, 2016 @ 21:08:36
  Author: foutrelis
Revision: 260551

Fix build with OpenSSL 1.0.2g

Patch taken from Debian.

Added:
  socat/trunk/add-missing-checks.patch
Modified:
  socat/trunk/PKGBUILD

--------------------------+
 PKGBUILD                 |   11 ++++-
 add-missing-checks.patch |   95 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-03-02 19:18:42 UTC (rev 260550)
+++ PKGBUILD	2016-03-02 20:08:36 UTC (rev 260551)
@@ -11,9 +11,16 @@
 license=('GPL2')
 arch=('i686' 'x86_64')
 depends=('readline' 'openssl')
-source=("http://www.dest-unreach.org/socat/download/${pkgname}-${pkgver}.tar.gz")
-sha1sums=('a6f1d8ab3e85f565dbe172f33a9be6708dd52ffb')
+source=("http://www.dest-unreach.org/socat/download/${pkgname}-${pkgver}.tar.gz"
+        'add-missing-checks.patch')
+sha1sums=('a6f1d8ab3e85f565dbe172f33a9be6708dd52ffb'
+          'cfdaa269dac053ceec4c4f763d9075983c4c9307')
 
+prepare() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	patch -Np1 -i ../add-missing-checks.patch
+}
+
 build() {
 	cd "${srcdir}/${pkgname}-${pkgver}"
 	./configure \

Added: add-missing-checks.patch
===================================================================
--- add-missing-checks.patch	                        (rev 0)
+++ add-missing-checks.patch	2016-03-02 20:08:36 UTC (rev 260551)
@@ -0,0 +1,95 @@
+diff -Nru socat-1.7.3.0.orig/sslcls.c socat-1.7.3.0/sslcls.c
+--- socat-1.7.3.0.orig/sslcls.c	2015-01-24 05:15:22.000000000 -0500
++++ socat-1.7.3.0/sslcls.c	2015-11-29 14:14:13.252000000 -0500
+@@ -55,6 +55,7 @@
+ }
+ #endif
+ 
++#if HAVE_SSLv3_client_method
+ const SSL_METHOD *sycSSLv3_client_method(void) {
+    const SSL_METHOD *result;
+    Debug("SSLv3_client_method()");
+@@ -62,7 +63,9 @@
+    Debug1("SSLv3_client_method() -> %p", result);
+    return result;
+ }
++#endif
+ 
++#if HAVE_SSLv3_server_method
+ const SSL_METHOD *sycSSLv3_server_method(void) {
+    const SSL_METHOD *result;
+    Debug("SSLv3_server_method()");
+@@ -70,7 +73,9 @@
+    Debug1("SSLv3_server_method() -> %p", result);
+    return result;
+ }
++#endif
+ 
++#if HAVE_SSLv23_client_method
+ const SSL_METHOD *sycSSLv23_client_method(void) {
+    const SSL_METHOD *result;
+    Debug("SSLv23_client_method()");
+@@ -78,7 +83,9 @@
+    Debug1("SSLv23_client_method() -> %p", result);
+    return result;
+ }
++#endif
+ 
++#if HAVE_SSLv23_server_method
+ const SSL_METHOD *sycSSLv23_server_method(void) {
+    const SSL_METHOD *result;
+    Debug("SSLv23_server_method()");
+@@ -86,7 +93,9 @@
+    Debug1("SSLv23_server_method() -> %p", result);
+    return result;
+ }
++#endif
+ 
++#if HAVE_TLSv1_client_method
+ const SSL_METHOD *sycTLSv1_client_method(void) {
+    const SSL_METHOD *result;
+    Debug("TLSv1_client_method()");
+@@ -94,7 +103,9 @@
+    Debug1("TLSv1_client_method() -> %p", result);
+    return result;
+ }
++#endif
+ 
++#if HAVE_TLSv1_server_method
+ const SSL_METHOD *sycTLSv1_server_method(void) {
+    const SSL_METHOD *result;
+    Debug("TLSv1_server_method()");
+@@ -102,6 +113,7 @@
+    Debug1("TLSv1_server_method() -> %p", result);
+    return result;
+ }
++#endif
+ 
+ #if HAVE_TLSv1_1_client_method
+ const SSL_METHOD *sycTLSv1_1_client_method(void) {
+@@ -143,6 +155,7 @@
+ }
+ #endif
+ 
++#if HAVE_DTLSv1_client_method
+ const SSL_METHOD *sycDTLSv1_client_method(void) {
+    const SSL_METHOD *result;
+    Debug("DTLSv1_client_method()");
+@@ -150,7 +163,9 @@
+    Debug1("DTLSv1_client_method() -> %p", result);
+    return result;
+ }
++#endif
+ 
++#if HAVE_DTLSv1_server_method
+ const SSL_METHOD *sycDTLSv1_server_method(void) {
+    const SSL_METHOD *result;
+    Debug("DTLSv1_server_method()");
+@@ -158,6 +173,7 @@
+    Debug1("DTLSv1_server_method() -> %p", result);
+    return result;
+ }
++#endif
+ 
+ SSL_CTX *sycSSL_CTX_new(const SSL_METHOD *method) {
+    SSL_CTX *result;



More information about the arch-commits mailing list