Re: Merging /usr/sbin to /usr/bin

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

 



On Thu, Apr 11, 2024 at 02:03:01PM -0700, Brian C. Lane wrote:
> On Thu, Apr 11, 2024 at 01:39:32PM +0000, Zbigniew Jędrzejewski-Szmek wrote:
> >    https://src.fedoraproject.org/rpms/filesystem/pull-request/11
> 
> The commit "Symlink /usr/sbin to /usr/bin if possible" would wipe out
> any symlinks in /usr/sbin that point someplace other than /usr/bin when
> everything becomes a symlink. It should make sure they all point to
> where you expect before removing them all.

Indeed. I added that check, and the same check in the place where
symlinks were removed when package was uninstalled (/usr/sbin/foo
should be removed only if it actually points to ../bin/foo).
I also added one more scriptlet to do create symlinks, so now there's
  %filetriggerin -- /usr/bin
  %filetriggerpostun -- /usr/bin
  %filetriggerpostun -- /usr/sbin
I did more testing and I think this now covers all cases of installs,
upgrades, downgrades, and reinstalls.

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