Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 779763 - sys-apps/systemd-247.2 - missing fido USE flag
Summary: sys-apps/systemd-247.2 - missing fido USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-01 22:55 UTC by Bertrand Jacquin
Modified: 2021-09-08 19:06 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2021-04-01 22:55:11 UTC
Hi,

sys-apps/systemd-247.2 does not have explicit option to active support for fido2, instead systemd relies on implicit dependency detection.

# emerge -Cv dev-libs/libfido2 ; USE=homectl emerge -v systemd
...
# homectl --fido2-device=list
FIDO2 tokens not supported on this build.

Manually install dev-libs/libfido2 and rebuiding systemd fixes the issue

See: https://github.com/systemd/systemd-stable/blob/v247-stable/meson.build#L1178

Could you please add a USE flag to make the dependency explicit ?

Thanks,

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-01 23:02:32 UTC
Note that it's:
1) dlopen-ed, therefore...

2) RDEPEND, not DEPEND: https://github.com/systemd/systemd/blob/main/NEWS#L99.

Wonder if it's better as optfeature then.
Comment 2 Mike Gilbert gentoo-dev 2021-04-15 19:56:35 UTC
(In reply to Sam James from comment #1)

libfido2 is required at build time to enable the feature.

libfido2 can be removed at runtime if the functionality is not required in some minimal environment (like a container, or initramfs).

I will probably just add libfido2 to both DEPEND and RDEPEND (behind a USE flag).
Comment 3 Larry the Git Cow gentoo-dev 2021-09-08 19:06:12 UTC
The bug has been closed via the following commit(s):

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

commit c3b4b4b5f982639b7a411fab2f58314514b228dd
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-09-08 19:05:41 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-09-08 19:06:08 +0000

    sys-apps/systemd: add fido2 USE flag
    
    Closes: https://bugs.gentoo.org/779763
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-apps/systemd/metadata.xml                                         | 1 +
 sys-apps/systemd/{systemd-249.4-r2.ebuild => systemd-249.4-r3.ebuild} | 4 +++-
 sys-apps/systemd/systemd-9999.ebuild                                  | 4 +++-
 3 files changed, 7 insertions(+), 2 deletions(-)