[petsc] 02/03: build-ssl1.1.patch enables build with SSL 1.1.

Drew Parsons dparsons at moszumanska.debian.org
Sat Nov 5 12:52:54 UTC 2016


This is an automated email from the git hooks/post-receive script.

dparsons pushed a commit to tag debian/3.7.4+dfsg1-4
in repository petsc.

commit 354bf3af1b55642c82b85217366a0af25d81e523
Author: Drew Parsons <dparsons at debian.org>
Date:   Sat Nov 5 20:19:39 2016 +0800

    build-ssl1.1.patch enables build with SSL 1.1.
    
    SSLv23_method was redefined to TLS_method in SSL 1.1.  petsc's
    configuration (vi ssl.py) checks for the SSLv23_method to confirm SSL
    is available, but now the symbol is not there.
    
    Instead use TLSv1_2_method as a proxy for the new TLS_method, since
    it's available in both SSL 1.0 and 1.1.
---
 debian/changelog                  |  2 ++
 debian/patches/build-ssl1.1.patch | 13 +++++++++++++
 debian/patches/series             |  1 +
 3 files changed, 16 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 6f54c1b..7651e59 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ petsc (3.7.4+dfsg1-4) UNRELEASED; urgency=medium
   * Version Build-Depends: libhypre-dev (>= 2.11.1-3).
     Earlier hypre versions contained internal superlu header files,
     which confuses petsc when trying to use libsuperlu-dev.
+  * build-ssl1.1.patch enables build with SSL 1.1.
+    (SSLv23_method was redefined to TLS_method in SSL 1.1)
 
  -- Drew Parsons <dparsons at debian.org>  Sat, 05 Nov 2016 19:56:53 +0800
 
diff --git a/debian/patches/build-ssl1.1.patch b/debian/patches/build-ssl1.1.patch
new file mode 100644
index 0000000..4207ca6
--- /dev/null
+++ b/debian/patches/build-ssl1.1.patch
@@ -0,0 +1,13 @@
+Index: petsc/config/BuildSystem/config/packages/ssl.py
+===================================================================
+--- petsc.orig/config/BuildSystem/config/packages/ssl.py
++++ petsc/config/BuildSystem/config/packages/ssl.py
+@@ -4,7 +4,7 @@ import os
+ class Configure(config.package.Package):
+   def __init__(self, framework):
+     config.package.Package.__init__(self, framework)
+-    self.functions         = ['SSLv23_method']
++    self.functions         = ['TLSv1_2_method']
+     self.includes          = ['openssl/ssl.h']
+     self.liblist           = [['libssl.a','libcrypto.a']]
+     self.lookforbydefault  = 1
diff --git a/debian/patches/series b/debian/patches/series
index d6b1be9..4e8ed55 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -15,3 +15,4 @@ python_header
 soname_extension
 hurd.patch
 test_mpi_conditional_bug816101
+build-ssl1.1.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/petsc.git



More information about the debian-science-commits mailing list