Bug 275568

Summary: devel/gdcm: Fails to build with LibreSSL 3.8.2
Product: Ports & Packages Reporter: Felix Palmen <zirias>
Component: Individual Port(s)Assignee: Stephen Montgomery-Smith <stephen>
Status: Closed FIXED    
Severity: Affects Only Me CC: stephen
Priority: --- Flags: bugzilla: maintainer-feedback? (stephen)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
gdcm_fix_build_libressl zirias: maintainer-approval? (stephen)

Description Felix Palmen freebsd_committer freebsd_triage 2023-12-06 12:15:41 UTC
Created attachment 246818 [details]
gdcm_fix_build_libressl

Uses the BUF_memdup() function which was removed from LibreSSL. Attached patch adds a local copy when built with LibreSSL.
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-12-07 05:48:27 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=003fde6b296d6047db112bb72e2f7a7eb794c4e8

commit 003fde6b296d6047db112bb72e2f7a7eb794c4e8
Author:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
AuthorDate: 2023-12-07 05:44:17 +0000
Commit:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
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@

 ...gdcmOpenSSLCryptographicMessageSyntax.cxx (new) | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)
Comment 2 Stephen Montgomery-Smith freebsd_committer freebsd_triage 2023-12-07 05:49:10 UTC
Committed.  Thank you very much.