Re: [rfc] mass package change to introduce sysusers.d configs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 29, 2025 at 03:43:56PM +0000, Daniel P. Berrangé wrote:
> On Wed, Jan 29, 2025 at 03:37:07PM +0000, Zbigniew Jędrzejewski-Szmek wrote:
> > 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:
> > > > 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.)
> 
> Hmm, so I'm confused now.  The top message of yours above indicates
> the intention to do a "mass package change" for sysusers, which I
> assumed to mean convert everything in F42, but here you indicate
> F43 ?  If I'm removing %post scripts manually is it valid to do
> it in F42, or should we wait till F43 ?

Everything should work in F42 and it should be OK to drop the scriptlets
already in F42. Nevertheless, the mass change of packages is now planned
for F43, in the sense that I'd be opening pull requests for the rawhide
branch only after branching.

Zbyszek
-- 
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux