On Tue, Apr 15, 2025 at 11:20:29AM +0000, Zbigniew Jędrzejewski-Szmek wrote:
> Hi,
> 
> When a system is _upgraded_ to F42, we try to "merge", by making
> /usr/sbin a symlink to /usr/bin. This is blocked when a package lists
> files under /usr/sbin.

Slight tangent, but I've just discovered an unanticipated consequence
of this difference between upgraded & fresh Fedora installs, that is
worth pointing out, as it would affect other packages.

When building in Koji, /sbin & /usr/sbin are symlinks to /usr/bin.
In meson.build libvirt searchs for a bunch of programs, unfortunately
searching in /sbin & /usr/sbin, before /bin & /usr/bin. The qualified
paths of the programs detected then get built into the binary RPMs to
be executed later at runtime.

Due to the /sbin symlink, we can find stuff in /sbin in koji even if
it has existed in /usr/bin for the entire life of Fedora.

All is fine on fresh Fedora installs, as the /sbin symlink works.
When deployed on an upgraded Fedora host,  /sbin is still a dir
and only populated with symlinks for programs that were known to
exist in /sbin in Fedora 41. So the /sbin/<BLAH> binary we detected
in koji thanks to the /sbin symlink, doesn't exist :-(

I rather wish that for upgrades /sbin had been populated with
symlinks for everything in /usr/binm, so behaviour would be
a better match between new & upgraded hosts.

I presume it's too late todo anything about this now, so this mail
is mostly a heads up in case other maintainers have packages affected
by this kind of problem, which will only affect upgraded hosts.

With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

-- 
_______________________________________________
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