pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/56167: lang/python39 build failure on FreeBSD 12



The following reply was made to PR pkg/56167; it has been noted by GNATS.

From: Frederic Fauberteau <triaxx%NetBSD.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/56167: lang/python39 build failure on FreeBSD 12
Date: Fri, 14 May 2021 16:55:45 +0200

 >> Fix:
 > $NetBSD$
 > 
 > Fix build failure on FreeBSD 12. 
 > From https://github.com/python/cpython/commit/3309113
 > 
 > --- _ssl.c.orig 2021-05-14 15:52:07.251636000 +0200
 > +++ _ssl.c  2021-05-14 15:52:37.012941000 +0200
 > @@ -151,6 +151,9 @@
 >   * unless OpenSSL is compiled without the methods. It's the easiest way to
 >   * make 1.0.2, 1.1.0, 1.1.1, and 3.0.0 happy without deprecation warnings.
 >   */  
 > +#ifndef OPENSSL_NO_SSL3_METHOD
 > +extern const SSL_METHOD *SSLv3_method(void);
 > +#endif
 >  #ifndef OPENSSL_NO_TLS1_METHOD
 >  extern const SSL_METHOD *TLSv1_method(void);
 >  #endif
 > 
 
 Since mkpatches is broken on FreeBSD, I generated this patch manually and wrongly. The correct patch is:
 $NetBSD$
 
 Fix build failure on FreeBSD 12. 
 From https://github.com/python/cpython/commit/3309113
 
 --- Modules/_ssl.c.orig 2021-05-14 15:52:07.251636000 +0200
 +++ Modules/_ssl.c  2021-05-14 15:52:37.012941000 +0200
 @@ -151,6 +151,9 @@
   * unless OpenSSL is compiled without the methods. It's the easiest way to
   * make 1.0.2, 1.1.0, 1.1.1, and 3.0.0 happy without deprecation warnings.
   */  
 +#ifndef OPENSSL_NO_SSL3_METHOD
 +extern const SSL_METHOD *SSLv3_method(void);
 +#endif
  #ifndef OPENSSL_NO_TLS1_METHOD
  extern const SSL_METHOD *TLSv1_method(void);
  #endif
 


Home | Main Index | Thread Index | Old Index