Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 926843

Summary: net-dns/dnsmasq-2.90: build with support for nftables sets
Product: Gentoo Linux Reporter: GriffOn <yily_101>
Component: Current packagesAssignee: Patrick McLean <chutzpah>
Status: UNCONFIRMED ---    
Severity: enhancement CC: yily_101
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/35732
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dnsmasq_nftset.patch

Description GriffOn 2024-03-12 15:13:59 UTC
dnsmasq add --nftset option to support nftables, see: https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=47aefca5e405b4b6627ef952fdc42e61b1baa770

It's enabled by building with `-DHAVE_NFTSET` and depends net-firewall/nftables(provide libnftables )

There should be a USE flag like nftset to enable this feature.

Reproducible: Always
Comment 1 GriffOn 2024-03-12 15:32:20 UTC
Created attachment 887485 [details, diff]
dnsmasq_nftset.patch

I add the nftset USE flag in the ebuild. It works well.
Comment 2 GriffOn 2024-03-13 13:03:52 UTC
I made a pullrequest but it fails in ci check:
nonsolvable depset(bdepend) keyword(~s390) stable profile (default/linux/s390/17.0) (3 total): solutions: [ net-firewall/nftables ]

The nftset USE makes it depend on nftables which does not have keyword ~s390 .

It seems need remove keyword ~s390 from dnsmasq or add ~s390 for nftables, but the latter may lead to other keyword fails.