Bug 279856

Summary: security/nettle 3.10 breaks gnutls and samba
Product: Ports & Packages Reporter: Laszlo Pusztai <laszlo>
Component: Individual Port(s)Assignee: Tijl Coosemans <tijl>
Status: Closed FIXED    
Severity: Affects Many People CC: tijl, vvd
Priority: --- Flags: sunpoet: maintainer-feedback+
Version: Latest   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
patch none

Description Laszlo Pusztai 2024-06-19 12:53:12 UTC
After updating to nettle 3.10, smbstatus in Samba complains:
ld-elf.so.1: /usr/local/lib/libnettle.so.8: version NETTLE_8 required by /usr/local/lib/libgnutls.so.30 not defined

Restarting samba also fails with:
Performing sanity check on Samba configuration: FAILED
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2024-06-19 13:15:15 UTC
Try to rebuild security/gnutls.
Comment 2 Laszlo Pusztai 2024-06-19 13:28:15 UTC
That worked. Please consider adding an entry to /usr/ports/UPDATING about the gnutls rebuild requirement.
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2024-06-19 13:32:10 UTC
Better just bump gnutls PORTREVISION.
Comment 4 Tijl Coosemans freebsd_committer freebsd_triage 2024-06-21 09:38:39 UTC
Created attachment 251598 [details]
patch

Fix libnettle.so symbol versioning.
Comment 5 Tijl Coosemans freebsd_committer freebsd_triage 2024-06-21 09:42:47 UTC
The problem is caused by a configure test for --version-script that fails.  The patch above enables the use of --version-script and skips the test.
Comment 6 Po-Chuan Hsieh freebsd_committer freebsd_triage 2024-06-22 17:03:47 UTC
(In reply to Tijl Coosemans from comment #4)

Thanks for the fix.
Comment 7 commit-hook freebsd_committer freebsd_triage 2024-06-22 18:25:56 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8c210e46352d9752ded68ca31f75504fb500e263

commit 8c210e46352d9752ded68ca31f75504fb500e263
Author:     Tijl Coosemans <tijl@FreeBSD.org>
AuthorDate: 2024-06-21 09:53:10 +0000
Commit:     Tijl Coosemans <tijl@FreeBSD.org>
CommitDate: 2024-06-22 18:20:33 +0000

    security/nettle: Restore symbol versions

    PR:             279856
    Approved by:    sunpoet (maintainer)
    Fixes:          b2a6480826f3

 security/nettle/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)