www/netsurf: prepare for upcoming libcrypto bump.

ok bentley (maintainer)
This commit is contained in:
tb 2021-10-19 19:42:22 +00:00
parent 09da564621
commit 552d78841c
5 changed files with 46 additions and 4 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.41 2021/01/11 02:17:58 cwen Exp $
# $OpenBSD: Makefile,v 1.42 2021/10/19 19:42:22 tb Exp $
COMMENT = lightweight web browser, with GTK interface
NETSURF_PROJECT = netsurf
NETSURF_VERSION = 3.10
REVISION = 1
REVISION = 2
HOMEPAGE = https://www.netsurf-browser.org/
MASTER_SITES = https://download.netsurf-browser.org/netsurf/releases/source/

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-content_fetchers_about_c,v 1.1 2021/10/19 19:42:22 tb Exp $
Index: content/fetchers/about.c
--- content/fetchers/about.c.orig
+++ content/fetchers/about.c
@@ -541,7 +541,7 @@ static nserror free_ns_cert_info(struct ns_cert_info *
#if (defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x1010000fL))
/* 1.0.x */
-#if (defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x1000200fL))
+#if (OPENSSL_VERSION_NUMBER < 0x1000200fL)
/* pre 1.0.2 */
static int ns_X509_get_signature_nid(X509 *cert)
{

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-content_fetchers_curl_c,v 1.3 2021/10/19 19:42:22 tb Exp $
Index: content/fetchers/curl.c
--- content/fetchers/curl.c.orig
+++ content/fetchers/curl.c
@@ -92,7 +92,7 @@
/* OpenSSL 1.0.x to 1.1.0 certificate reference counting changed
* LibreSSL declares its OpenSSL version as 2.1 but only supports the old way
*/
-#if (defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x1010000fL))
+#if (OPENSSL_VERSION_NUMBER < 0x1010000fL)
static int ns_X509_up_ref(X509 *cert)
{
cert->references++;

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.12 2019/11/11 03:21:56 bentley Exp $
# $OpenBSD: Makefile,v 1.13 2021/10/19 19:42:22 tb Exp $
COMMENT = lightweight web browser, with SDL interface
NETSURF_PROJECT = netsurf-fb
NETSURF_VERSION = 3.9
DISTNAME = netsurf-${NETSURF_VERSION}-src
REVISION = 0
REVISION = 1
HOMEPAGE = https://www.netsurf-browser.org/
MASTER_SITES = https://download.netsurf-browser.org/netsurf/releases/source/

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-content_fetchers_curl_c,v 1.1 2021/10/19 19:42:22 tb Exp $
Index: content/fetchers/curl.c
--- content/fetchers/curl.c.orig
+++ content/fetchers/curl.c
@@ -149,7 +149,7 @@ static bool inside_curl = false;
/* OpenSSL 1.0.x to 1.1.0 certificate reference counting changed
* LibreSSL declares its OpenSSL version as 2.1 but only supports the old way
*/
-#if (defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x1010000fL))
+#if (OPENSSL_VERSION_NUMBER < 0x1010000fL)
static int ns_X509_up_ref(X509 *cert)
{
cert->references++;