On Wed, Jan 29, 2025 at 03:12:32PM +0000, Daniel P. Berrangé wrote:
> On Thu, Jan 23, 2025 at 08:51:16PM +0000, Zbigniew Jędrzejewski-Szmek wrote:
> > Hi!
> > 
> > In accordance with 
> > https://docs.fedoraproject.org/en-US/fesco/Mass_package_changes/,
> > I plan to do a "mass package change" to add sysusers.d config files for all 
> > packages
> > which currently call 'useradd' and 'groupadd' and drop the calls to
> > getent/id/useradd/groupadd/usermod/gpasswd.
> > 
> > This is part of 
> > https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers.
> > Latest build of rpm will autocreate users and groups for all packages that
> > contain a sysusers.d config file. This means that, for those packages, we 
> > can drop
> > the scriptlets that do that. In fact, rpm will do this unconditionally, so 
> > the
> > scriptlets which are executed later are now noops and having them in the 
> > spec file
> > is unnecessary and confusing.
> 
> This indicates the required support in RPM is present for version 4.20,
> which is the version already available in Fedora 41, and looking at
> old F41 builds I'm seeing the virtual provides already being added
> 
> eg 
> https://kojipkgs.fedoraproject.org/packages/libvirt/10.6.0/6.fc41/data/logs/x86_64/build.log
> 
>   Provides: config(libvirt-daemon-driver-qemu) = 10.6.0-6.fc41 group(kvm) = 
> ZyBrdm0gMzYA group(qemu) group(qemu) = ZyBxZW11IDEwNwAA groupmember(qemu/kvm) 
> = bSBxZW11IGt2bQAA libvirt-daemon-driver-qemu = 10.6.0-6.fc41 
> libvirt-daemon-driver-qemu(x86-64) = 10.6.0-6.fc41 
> libvirt_driver_qemu.so()(64bit) user(qemu) = 
> dSBxZW11IDEwNzpxZW11ICJxZW11IHVzZXIiIC0gLQAA
> 
> does this mean that the %post scripts for useradd were already obsolete
> in Fedora 41, or was there some aspect that was NOT enabled, despite
> the virtual Provides being added ?

The actual creation of the accounts was not enabled in F41.
The commit to enable that only went in about a week ago
in rawhide:
https://src.fedoraproject.org/rpms/rpm/c/8649a762c59ef03fab557cae6c1de9579d84e73f.
(And it _is_ somewhat experimental. We're targeting F42 for the availibility
of the mechanisms, but F43 for the actual switch of all packages.)

> ie would it be wrong to drop %post scripts in F41 branches too ?

Yes, that cannot be done.

Zbyszek
-- 
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to