From nobody Sun Oct 30 06:39:59 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N0RV76gsVz4h3Y7; Sun, 30 Oct 2022 06:39:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N0RV76CjSz4Mrv; Sun, 30 Oct 2022 06:39:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667111999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZiEGjmpiZT1xR3hypYoqfEj1QvWN3qRIuwAPWX4hsmw=; b=OyKyWRW+EQlYhwbPc4KbmULeajAnJ9MvoaHJBKmIDRz6Zc8nXrHBxehCjqJ5t/+ADcltiz Ka3cIe/5kNSTNztUXREI68KPO7Qv/bVUyVkM/bGfmw8qhQYEkmG6lvehVO1qY1IHS2zZHF zMn+P4rAmGFYoMQ3LwaAQRWd/by+RGF5zPe+wO1VS7wnbqXM553xUhDZgPYgO4Dz5XVEMC krthEis1Oi3Kx68w17vs2meFFTy/rvzVcs1IlFb07LEiMQgI4I+xLihTzZGzqJd/PqeYx0 IwVQnxBybIuzOkz82WDgJ0bSdvil5ibx1Ho0k6wBxB9NwG/dWi4jykgnVFhwFA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N0RV759MLzmmD; Sun, 30 Oct 2022 06:39:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 29U6dxEZ062078; Sun, 30 Oct 2022 06:39:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29U6dx8k062077; Sun, 30 Oct 2022 06:39:59 GMT (envelope-from git) Date: Sun, 30 Oct 2022 06:39:59 GMT Message-Id: <202210300639.29U6dx8k062077@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Felix Palmen Subject: git: 4f546089d6ac - main - x11/kf5-kdelibs4support: Fix build w/ libressl 3.5 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zirias X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4f546089d6aca6a6090df531d091415687432ae9 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667111999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZiEGjmpiZT1xR3hypYoqfEj1QvWN3qRIuwAPWX4hsmw=; b=xg+nC5XAvV9xGnKS2OKO9Q1qDgTglhrK/NFZqC/VKX9E0888DHqAHBLwiEaCPbZz6EFxYr D7fPYOQi9TfmWBOOZCm7cYAwypkX6EQ5RUFj+b2kJHx1InT1TLVkkIBhLcvLCNent7PGdU q1FsHSWM65EUG0q2skeMiopSSl73WU/Of49D+eESq8ER3kYCPeGuLF+GpYJ0RMtrXGs01d 0UXjcBlCHzNfzvZQKpv8usY+G8YOW8tTTKBqITM8585ACWjyCo/BT5vfp/3op12p4S3cOF p3dIn7NDGq7qacetJxttBdenffyIORrgghsCt7yFiMeKFnug9/c9BeT0hb5jOg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667111999; a=rsa-sha256; cv=none; b=yxS9ohKeOAMPfZ73q53GrDfQZToALah/QyKUL2LBLle7jSIJau4v4zNECDIeYqrH50FXOG wUA4fF1EB6OQ1R8JyEVIBzsaCj4AP3eQumadJj0wk92s8JCTmm59v/cO8nyTmwwWjhDYyP u/xoN5iqE4iWgBtlbhlo9O3g5mKwzwxVBGuxAwwtNbiDWCbw9fZ/V4ajLjG3wOkVw4VhV3 nWWJ5IFght6B7yrmEZSik24Z/Cr9sUsw0YzcpYOp8kUC3cp/VWyAXn96wx/UeRCGl1vHzj gJMItt6rQufdAsMzQjgK0VCt8vVqu1qOlUtSS1fxrnzpkHy+NLehkUQMn2/0sA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by zirias: URL: https://cgit.FreeBSD.org/ports/commit/?id=4f546089d6aca6a6090df531d091415687432ae9 commit 4f546089d6aca6a6090df531d091415687432ae9 Author: Felix Palmen AuthorDate: 2022-10-19 06:17:20 +0000 Commit: Felix Palmen CommitDate: 2022-10-30 06:38:33 +0000 x11/kf5-kdelibs4support: Fix build w/ libressl 3.5 Approved by: tcberner (kde, mentor) Differential Revision: https://reviews.freebsd.org/D37044 --- .../files/patch-src_kssl_kopenssl.cpp | 119 +++++++++++++++++++++ .../files/patch-src_kssl_ksslcertificate.cpp | 11 ++ 2 files changed, 130 insertions(+) diff --git a/x11/kf5-kdelibs4support/files/patch-src_kssl_kopenssl.cpp b/x11/kf5-kdelibs4support/files/patch-src_kssl_kopenssl.cpp new file mode 100644 index 000000000000..d989c72082a3 --- /dev/null +++ b/x11/kf5-kdelibs4support/files/patch-src_kssl_kopenssl.cpp @@ -0,0 +1,119 @@ +--- src/kssl/kopenssl.cpp.orig 2022-10-19 06:07:48 UTC ++++ src/kssl/kopenssl.cpp +@@ -978,7 +978,7 @@ void KOpenSSLProxy::X509_STORE_free(X509_STORE *v) + + void KOpenSSLProxy::X509_STORE_set_verify_cb(X509_STORE *store, int (*verify_cb)(int, X509_STORE_CTX *)) + { +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + X509_STORE_set_verify_cb_func(store, verify_cb); + #else + if (K_X509_STORE_set_verify_cb) { +@@ -1043,7 +1043,7 @@ X509_NAME *KOpenSSLProxy::X509_get_issuer_name(X509 *a + + void KOpenSSLProxy::X509_get0_signature(const ASN1_BIT_STRING **psig, const X509_ALGOR **algor, const X509 *x) + { +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + if (psig) { + *psig = x->signature; + } +@@ -1121,7 +1121,7 @@ X509 *KOpenSSLProxy::X509_dup(X509 *x509) + + ASN1_TIME *KOpenSSLProxy::X509_getm_notBefore(const X509 *x) + { +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + return X509_get_notBefore(x); + #else + if (K_X509_getm_notBefore) { +@@ -1134,7 +1134,7 @@ ASN1_TIME *KOpenSSLProxy::X509_getm_notBefore(const X5 + + ASN1_TIME *KOpenSSLProxy::X509_getm_notAfter(const X509 *x) + { +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + return X509_get_notAfter(x); + #else + if (K_X509_getm_notAfter) { +@@ -1412,7 +1412,7 @@ void KOpenSSLProxy::X509_STORE_CTX_set_purpose(X509_ST + + X509 *KOpenSSLProxy::X509_STORE_CTX_get_current_cert(X509_STORE_CTX *v) + { +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + return v->current_cert; + #else + if (K_X509_STORE_CTX_get_current_cert) { +@@ -1425,7 +1425,7 @@ X509 *KOpenSSLProxy::X509_STORE_CTX_get_current_cert(X + + void KOpenSSLProxy::X509_STORE_CTX_set_error(X509_STORE_CTX *v, int error) + { +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + v->error = error; + #else + if (K_X509_STORE_CTX_set_error) { +@@ -1436,7 +1436,7 @@ void KOpenSSLProxy::X509_STORE_CTX_set_error(X509_STOR + + int KOpenSSLProxy::X509_STORE_CTX_get_error(X509_STORE_CTX *v) + { +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + return v->error; + #else + if (K_X509_STORE_CTX_get_error) { +@@ -1893,7 +1893,7 @@ int KOpenSSLProxy::EVP_PKEY_assign(EVP_PKEY *pkey, int + + int KOpenSSLProxy::EVP_PKEY_base_id(EVP_PKEY *pkey) + { +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + return pkey->type; + #else + if (K_EVP_PKEY_base_id) { +@@ -1906,7 +1906,7 @@ int KOpenSSLProxy::EVP_PKEY_base_id(EVP_PKEY *pkey) + + RSA *KOpenSSLProxy::EVP_PKEY_get0_RSA(EVP_PKEY *pkey) + { +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + return pkey->pkey.rsa; + #else + if (K_EVP_PKEY_get0_RSA) { +@@ -1919,7 +1919,7 @@ RSA *KOpenSSLProxy::EVP_PKEY_get0_RSA(EVP_PKEY *pkey) + + void KOpenSSLProxy::RSA_get0_key(RSA *rsa, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d) + { +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + if (n) { + *n = rsa->n; + } +@@ -1938,7 +1938,7 @@ void KOpenSSLProxy::RSA_get0_key(RSA *rsa, const BIGNU + + DSA *KOpenSSLProxy::EVP_PKEY_get0_DSA(EVP_PKEY *pkey) + { +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + return pkey->pkey.dsa; + #else + if (K_EVP_PKEY_get0_DSA) { +@@ -1951,7 +1951,7 @@ DSA *KOpenSSLProxy::EVP_PKEY_get0_DSA(EVP_PKEY *pkey) + + void KOpenSSLProxy::DSA_get0_pqg(DSA *dsa, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g) + { +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + if (p) { + *p = dsa->p; + } +@@ -1970,7 +1970,7 @@ void KOpenSSLProxy::DSA_get0_pqg(DSA *dsa, const BIGNU + + void KOpenSSLProxy::DSA_get0_key(DSA *dsa, const BIGNUM **pub_key, const BIGNUM **priv_key) + { +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + if (pub_key) { + *pub_key = dsa->pub_key; + } diff --git a/x11/kf5-kdelibs4support/files/patch-src_kssl_ksslcertificate.cpp b/x11/kf5-kdelibs4support/files/patch-src_kssl_ksslcertificate.cpp new file mode 100644 index 000000000000..f43c8e07ac38 --- /dev/null +++ b/x11/kf5-kdelibs4support/files/patch-src_kssl_ksslcertificate.cpp @@ -0,0 +1,11 @@ +--- src/kssl/ksslcertificate.cpp.orig 2022-10-19 06:09:59 UTC ++++ src/kssl/ksslcertificate.cpp +@@ -1222,7 +1222,7 @@ QByteArray KSSLCertificate::toNetscape() + { + QByteArray qba; + // no equivalent in OpenSSL 1.1.0 (?), so behave as if we had no OpenSSL at all +-#if KSSL_HAVE_SSL && (OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)) ++#if KSSL_HAVE_SSL && OPENSSL_VERSION_NUMBER < 0x10100000L + NETSCAPE_X509 nx; + ASN1_OCTET_STRING hdr; + QTemporaryFile ktf;