[nsd-users] NSD - enable XDP in Debian?

Simon Josefsson simon at josefsson.org
Wed Sep 10 20:25:35 UTC 2025


"Jannik Peters" <jannik at nlnetlabs.nl> writes:

> Hi,
>
>> What do you think about building with this flag in the Debian package?
>> [...] Which may be a good fit to get wider testing.
>
> Building with XDP enabled in Debian testing would be great and indeed
> a good fit to get wider testing.

Thanks for confirming.  I tried to enable it but ran into build errors:

https://salsa.debian.org/jas/nsd/-/jobs/8255756

As far as I some XDP objects are needed during linking, this patch fixed
it for us:

https://github.com/NLnetLabs/nsd/pull/460

With that it builds reasonable well:

https://salsa.debian.org/jas/nsd/-/pipelines/933804

Also, by default, it seems some *.o files are installed into
$(sharedfilesdir) which became /usr/share/nsd for me, see Makefile.in:

	if test -n "@xdp@"; then $(INSTALL_DATA) xdp-dns-redirect_kern.o $(DESTDIR)$(sharedfilesdir)/xdp-dns-redirect_kern.o; fi
	if test -n "@xdp@"; then $(INSTALL_DATA) xdp-dns-redirect_kern_pinned.o $(DESTDIR)$(sharedfilesdir)/xdp-dns-redirect_kern_pinned.o; fi

These are architecture-dependent files, aren't they?  Is there some
standard non-/usr/share location for these files that you could use?
This may be a Debian-specific concern, I asked the same here:

https://lists.debian.org/debian-devel/2025/09/msg00143.html

/Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1251 bytes
Desc: not available
URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20250910/2640f6ee/attachment.bin>


More information about the nsd-users mailing list