commit:     1e16690e86b25fa3ead08dfa569b9f61a1dc807f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 22 14:54:01 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Feb 22 17:18:28 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e16690e

net-dns/nsd: drop unaligned access USE

USE=packed means unaligned access, drop it as it's UB. Was disabled
by default in the build system so we can just drop the USE w/o revbump.

Thanks to negril for pointing this USE flag out.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-dns/nsd/metadata.xml      | 1 -
 net-dns/nsd/nsd-4.12.0.ebuild | 6 +++---
 net-dns/nsd/nsd-4.14.0.ebuild | 4 ++--
 net-dns/nsd/nsd-9999.ebuild   | 4 ++--
 4 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/net-dns/nsd/metadata.xml b/net-dns/nsd/metadata.xml
index 75694ed6b25f..5a73de0acb85 100644
--- a/net-dns/nsd/metadata.xml
+++ b/net-dns/nsd/metadata.xml
@@ -15,7 +15,6 @@
                <flag name="minimal-responses">If minimal responses are 
disabled, responses are more likely to get truncated, resulting in TCP 
fallback</flag>
                <flag name="munin">Install a plugin for 
<pkg>net-analyzer/munin</pkg> to graph statistical data from nsd</flag>
                <flag name="nsec3">Enable NSEC3 support</flag>
-               <flag name="packed">Enable packed structure alignment; uses 
less memory but has unaligned reads</flag>
                <flag name="radix-tree">Use a radix tree for main lookups 
instead of a red-black tree</flag>
                <flag name="ratelimit">Enables ratelimiting, based on query 
name, type and source</flag>
                <flag name="recvmmsg">Enable recvmmsg and sendmmsg compilation, 
faster but some kernel versions may have implementation problems for IPv6</flag>

diff --git a/net-dns/nsd/nsd-4.12.0.ebuild b/net-dns/nsd/nsd-4.12.0.ebuild
index 6c9e87b7ba57..68bf56918700 100644
--- a/net-dns/nsd/nsd-4.12.0.ebuild
+++ b/net-dns/nsd/nsd-4.12.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="8"
@@ -27,7 +27,7 @@ fi
 
 LICENSE="BSD"
 SLOT="0"
-IUSE="bind8-stats debug dnstap +ipv6 libevent memclean minimal-responses mmap 
munin +nsec3 packed +radix-tree ratelimit recvmmsg +simdzone ssl systemd +tfo"
+IUSE="bind8-stats debug dnstap +ipv6 libevent memclean minimal-responses mmap 
munin +nsec3 +radix-tree ratelimit recvmmsg +simdzone ssl systemd +tfo"
 
 RDEPEND="
        acct-group/nsd
@@ -74,7 +74,7 @@ src_configure() {
                $(use_enable minimal-responses)
                $(use_enable mmap)
                $(use_enable nsec3)
-               $(use_enable packed)
+               --disable-packed
                $(use_enable radix-tree)
                $(use_enable ratelimit)
                $(use_enable recvmmsg)

diff --git a/net-dns/nsd/nsd-4.14.0.ebuild b/net-dns/nsd/nsd-4.14.0.ebuild
index cad0c1377cf8..69acd35fb834 100644
--- a/net-dns/nsd/nsd-4.14.0.ebuild
+++ b/net-dns/nsd/nsd-4.14.0.ebuild
@@ -28,7 +28,7 @@ fi
 LICENSE="BSD"
 SLOT="0"
 IUSE="+bind8-stats debug +dnstap +ipv6 libevent memclean minimal-responses 
mmap munin"
-IUSE+=" +nsec3 packed +radix-tree +ratelimit recvmmsg +simdzone ssl systemd 
+tfo xdp"
+IUSE+=" +nsec3 +radix-tree +ratelimit recvmmsg +simdzone ssl systemd +tfo xdp"
 
 RDEPEND="
        acct-group/nsd
@@ -87,7 +87,7 @@ src_configure() {
                $(use_enable minimal-responses)
                $(use_enable mmap)
                $(use_enable nsec3)
-               $(use_enable packed)
+               --disable-packed
                $(use_enable radix-tree)
                $(use_enable ratelimit)
                $(use_enable recvmmsg)

diff --git a/net-dns/nsd/nsd-9999.ebuild b/net-dns/nsd/nsd-9999.ebuild
index cad0c1377cf8..69acd35fb834 100644
--- a/net-dns/nsd/nsd-9999.ebuild
+++ b/net-dns/nsd/nsd-9999.ebuild
@@ -28,7 +28,7 @@ fi
 LICENSE="BSD"
 SLOT="0"
 IUSE="+bind8-stats debug +dnstap +ipv6 libevent memclean minimal-responses 
mmap munin"
-IUSE+=" +nsec3 packed +radix-tree +ratelimit recvmmsg +simdzone ssl systemd 
+tfo xdp"
+IUSE+=" +nsec3 +radix-tree +ratelimit recvmmsg +simdzone ssl systemd +tfo xdp"
 
 RDEPEND="
        acct-group/nsd
@@ -87,7 +87,7 @@ src_configure() {
                $(use_enable minimal-responses)
                $(use_enable mmap)
                $(use_enable nsec3)
-               $(use_enable packed)
+               --disable-packed
                $(use_enable radix-tree)
                $(use_enable ratelimit)
                $(use_enable recvmmsg)

Reply via email to