Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928526 - net-fs/nfs-utils: Service files explicitly depend on nfsv3's nfs-server.service
Summary: net-fs/nfs-utils: Service files explicitly depend on nfsv3's nfs-server.service
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL: https://lore.kernel.org/linux-nfs/CAE...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-03 17:02 UTC by Matt Turner
Modified: 2024-04-07 03:46 UTC (History)
1 user (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 Matt Turner gentoo-dev 2024-04-03 17:02:11 UTC
Trying to start nfs-idmapd when nfs-utils is built with USE=-nfsv3 results in:

> server ~ # systemctl start nfs-idmapd
> Failed to start nfs-idmapd.service: Unit nfs-server.service not found.

This is because a number of service files depend on nfs-server.service rather than nfsv4-server.service:

> server ~ # grep nfs-server.service $(qlist nfs-utils | grep service)
> /usr/lib/systemd/system/rpc-statd-notify.service:After=nfs-server.service
> /usr/lib/systemd/system/nfs-mountd.service:BindsTo=nfs-server.service
> /usr/lib/systemd/system/rpc-svcgssd.service:PartOf=nfs-server.service
> /usr/lib/systemd/system/fsidd.service:Before=nfs-mountd.service nfs-server.service
> /usr/lib/systemd/system/fsidd.service:RequiredBy=nfs-mountd.service nfs-server.service
> /usr/lib/systemd/system/nfs-idmapd.service:BindsTo=nfs-server.service

Should we s/nfs-server/nfsv4-server/ if USE=-nfsv3, or should we rename nfsv4-server.service -> nfs-server.service?

The only service file that depends on nfsv4-server is nfsv4-exportd:

> server ~ # grep nfsv4-server.service $(qlist nfs-utils | grep service)
> /usr/lib/systemd/system/nfsv4-exportd.service:BindsTo=nfsv4-server.service
Comment 1 Matt Turner gentoo-dev 2024-04-03 17:21:50 UTC
> Should we s/nfs-server/nfsv4-server/ if USE=-nfsv3, ...

This seems to work for me.
Comment 2 Mike Gilbert gentoo-dev 2024-04-03 17:28:24 UTC
Those BindsTo and PartOf statements are nasty looking.

I think this mess should really be fixed by the dev who added nfsv4-server.service upstream.