FS#75630 - pacman no longer installs packages when /usr/share is a symlink

Attached to Project: Pacman
Opened by Theo Campbell (TheoCGaming) - Wednesday, 17 August 2022, 13:21 GMT
Last edited by Allan McRae (Allan) - Thursday, 18 August 2022, 07:15 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Critical
Priority Normal
Reported Version 6.0.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Info:
platform: x86_64
fs; ext4
link from: /usr/share
link to: /home/user/root/share

Steps to Reproduce:
step 1: create a symlink from /usr/share to another place in the file system
step 2: attempt to install a package

expected result:
package installs with no errors

observed result:
error: failed to commit transaction (conflicting files)
package_name: /usr/share exists in filesystem
Errors occurred, no packages were upgraded.

implications:
not only can new packages not be installed, existing ones can't be updated.

wait how am i going to get the fix?
This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 18 August 2022, 07:15 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Expected behaviour
Comment by Doug Newgard (Scimmia) - Wednesday, 17 August 2022, 13:31 GMT
Intended behavior, don't do that.

Mounts/bind mounts if you really need to, but doing it for /usr/share/ doesn't seem like a good idea.
Comment by Theo Campbell (TheoCGaming) - Wednesday, 17 August 2022, 14:34 GMT
how would I go about doing that?

Loading...