From nobody Thu Dec 07 05:48:23 2023 X-Original-To: dev-commits-ports-all@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 4Sm3Gb5Sv6z53f0c; Thu, 7 Dec 2023 05:48:23 +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 4Sm3Gb4xjWz3WVp; Thu, 7 Dec 2023 05:48:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701928103; 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=hfRg1yDhhy8AD4+SaxOVYHJ8Ys8SNBbADBFomjyw7I8=; b=bgv1Py+bhlaVOO0/+cQUIqLNqHLtkjIQOqoo+/gE5H4mVGl2w+4a4DK8w/VSNUELbHwfiK H5oNMdBmI0h3QxWctBw+/VLzk/llKJHLGkkFAY+p9fCTfCF7op81ftivrlGfgpi5tmCXwk HwnUkH0OExeSmdaWj1FLKIGiXp/KOqvMPc8qJEA6SwSpBpJoJHJtlT8/Q5gQQ3KsDlrHB8 yFzGvbl6dEwJdOfK1yi/XSJvgGJWADAtaxSw9ZENK+dQOKOgNHhOz5CD9qxxQPJ/i/8ypV z/9DaBmNd8d3d+KGbYxyRymq+a9M42NtPhn7KJulpyMQLwFZN9LfPpoWg11/Kw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701928103; a=rsa-sha256; cv=none; b=GkFsqTW3W41NBYJRRlGnrGRncK4K66A2IZ0Hr6tlMjEXmyDu0NEi6gus/pNkOs8r96b2QL 32j4P+gihiLSpfEpXjt1AqpxtJvC/eE+Y6HtMfaBjzWIo8Sag32h9+6+pJ+4NDhgbbkjDJ 04c9SL27jHbMndi79F29eUE1YVKA9oBwD4yqvHAjhKJn8kPOU3ITnCbSTIKXZpqluWud7Y xMJWlFj1V1Mh1s5Nm/4JVCHM27RuLbeyhkQxaz0iVHkBg1SXsxbllKOamsd88NX/Y1B33P 2S7S/SsqsmK2C2W/6mYOwkKNf1myMIWM5cRCxDY42w9piYlweMfYQt2WciISbA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701928103; 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=hfRg1yDhhy8AD4+SaxOVYHJ8Ys8SNBbADBFomjyw7I8=; b=SO3tpxP7sTKoWchAB53AIzhck9bQF/pWpQTb6Xe7PiKnDfHFSb4ZuZVD1MaG9KC9TyTSGU ZgP6JtJwae2bei5lvi5Kt/gdaQYtCsBw9QDiJDwJHm5HXy9LrirnlTAG3hnsSpmRkFMiag XCQTvptMIIqyUP7pVM60K3YtyyUr1xGG8Qehec7uuoNdGidf1a95FQsyLNTC/RhufyAgEX Sx5JcnpKdj1gFPNOh/UMEddLSp34vosJHfiHgxYAjkFBl2meG+yQgutLOKPFLkWFRVpEdL 2JdCmUbdhInMxAturedehryliORJpCo42cxBfG/J58Np5NG94fAPSwux5KcB6Q== 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 4Sm3Gb3zn6z9H2; Thu, 7 Dec 2023 05:48:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3B75mN8O062783; Thu, 7 Dec 2023 05:48:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3B75mN55062780; Thu, 7 Dec 2023 05:48:23 GMT (envelope-from git) Date: Thu, 7 Dec 2023 05:48:23 GMT Message-Id: <202312070548.3B75mN55062780@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Stephen Montgomery-Smith Subject: git: 003fde6b296d - main - devel/gdcm: Fix build when with LibreSSL 3.8.2. List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: stephen X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 003fde6b296d6047db112bb72e2f7a7eb794c4e8 Auto-Submitted: auto-generated The branch main has been updated by stephen: URL: https://cgit.FreeBSD.org/ports/commit/?id=003fde6b296d6047db112bb72e2f7a7eb794c4e8 commit 003fde6b296d6047db112bb72e2f7a7eb794c4e8 Author: Stephen Montgomery-Smith AuthorDate: 2023-12-07 05:44:17 +0000 Commit: Stephen Montgomery-Smith CommitDate: 2023-12-07 05:44:17 +0000 devel/gdcm: Fix build when with LibreSSL 3.8.2. gdcm uses the BUF_memdup() function which was removed from LibreSSL. Attached patch adds a local copy when built with LibreSSL. PR: 275568 Reported by: zirias@ --- ...ommon_gdcmOpenSSLCryptographicMessageSyntax.cxx | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/devel/gdcm/files/patch-Source_Common_gdcmOpenSSLCryptographicMessageSyntax.cxx b/devel/gdcm/files/patch-Source_Common_gdcmOpenSSLCryptographicMessageSyntax.cxx new file mode 100644 index 000000000000..200f9919ba73 --- /dev/null +++ b/devel/gdcm/files/patch-Source_Common_gdcmOpenSSLCryptographicMessageSyntax.cxx @@ -0,0 +1,25 @@ +--- Source/Common/gdcmOpenSSLCryptographicMessageSyntax.cxx.orig 2023-12-04 07:33:11 UTC ++++ Source/Common/gdcmOpenSSLCryptographicMessageSyntax.cxx +@@ -24,6 +24,22 @@ + #include + #include + ++#if LIBRESSL_VERSION_NUMBER >= 0x3080200fL ++// implementation copied from LibreSSL before removal in 3.8.2 ++static void *BUF_memdup(const void *data, size_t siz) ++{ ++ void *ret = NULL; ++ if (data != NULL) ++ { ++ if ((ret = malloc(siz)) == NULL) ++ ERR_PUT_error(ERR_LIB_BUF,(0xfff),ERR_R_MALLOC_FAILURE,__FILE__,__LINE__); ++ else ++ (void) memcpy(ret, data, siz); ++ } ++ return ret; ++} ++#endif ++ + namespace gdcm + { +