Bug 279856 - security/nettle 3.10 breaks gnutls and samba
Summary: security/nettle 3.10 breaks gnutls and samba
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Tijl Coosemans
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-19 12:53 UTC by Laszlo Pusztai
Modified: 2024-06-22 18:27 UTC (History)
2 users (show)

See Also:
sunpoet: maintainer-feedback+


Attachments
patch (439 bytes, patch)
2024-06-21 09:38 UTC, Tijl Coosemans
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(-)