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

Bug 950211

Summary: app-containers/incus: dependency on nftables[json] required
Product: Gentoo Linux Reporter: Marc Schiffbauer <mschiff>
Component: Current packagesAssignee: Joonas Niilola <juippis>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://discuss.linuxcontainers.org/t/when-does-incus-generate-insert-its-nftables-rules/22218/6?u=mschiff
Whiteboard:
Package list:
Runtime testing required: ---

Description Marc Schiffbauer gentoo-dev 2025-02-23 23:51:06 UTC
incus uses `nft --json` to run nft commands which is why it fails to succeed detecting nftables on a system if json support is not compiled in (USE=json)

So it requires a dependency on nftables[json] to work.

But looking at the incus code, it only uses the --json option when detecting nftables but not when actually using it.

I asked the maintainer about it in the mentioned URL
Comment 1 Joonas Niilola gentoo-dev 2025-02-24 06:41:19 UTC
I'll monitor the discussion forum for a bit before adding the dependency. If it's taken out in the next upstream release, that should be good.
Comment 2 Larry the Git Cow gentoo-dev 2025-02-28 08:41:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9e8847b0174f73e549d06e7936dd26a3006c165

commit b9e8847b0174f73e549d06e7936dd26a3006c165
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2025-02-28 08:00:16 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2025-02-28 08:41:54 +0000

    app-containers/incus: add 6.10
    
     - update nftables dependency to have 'json' use flag enabled, for now.
    
    Closes: https://bugs.gentoo.org/950211
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 app-containers/incus/Manifest          |   2 +
 app-containers/incus/incus-6.10.ebuild | 223 +++++++++++++++++++++++++++++++++
 2 files changed, 225 insertions(+)