Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#20314 - pacman incorrectly installs hard links over multiple partitions
Attached to Project:
Pacman
Opened by Rémy Oudompheng (remyoudompheng) - Thursday, 29 July 2010, 12:07 GMT
Last edited by Dan McGee (toofishes) - Friday, 14 January 2011, 12:39 GMT
Opened by Rémy Oudompheng (remyoudompheng) - Thursday, 29 July 2010, 12:07 GMT
Last edited by Dan McGee (toofishes) - Friday, 14 January 2011, 12:39 GMT
|
DetailsSummary and Info:
When pacman installs a package with hard linked files, we might except finding hard links in the system, or symlinks if this is not possible (for example, when hard links would span over multiple partitions). For most packages, this is a non-issue (for example, git is installed with a "no-cross-directory-hard-links" options). Attached is an example PKGBUILD triggering the issue when / and /usr are separate partitions. Steps to Reproduce: * use the attached PKGBUILD or package $ sudo pacman -U dummy-1-1-any.pkg.tar.gz resolving dependencies... looking for inter-conflicts... Targets (1): dummy-1-1 Total Download Size: 0.00 MB Total Installed Size: 0.03 MB Proceed with installation? [Y/n] checking package integrity... (1/1) checking for file conflicts (1/1) installing dummy $ ls /etc/dummy/ alice $ ls /usr/share/dummy/ |
This task depends upon
Closed by Dan McGee (toofishes)
Friday, 14 January 2011, 12:39 GMT
Reason for closing: Implemented
Additional comments about closing: Fixed in namcap, possibly pacman is more resilient as well.
Friday, 14 January 2011, 12:39 GMT
Reason for closing: Implemented
Additional comments about closing: Fixed in namcap, possibly pacman is more resilient as well.
PKGBUILD
dummy-1-1-any.pkg.tar.gz
We should probably add a namcap check for cross-dir hard-links too.
* Where does the actual file go vs. some on the fly symlinks?
* Should we even be changing the package as hard links might be required?
We should probably be more explicit when an extraction like this fails, and yes a namcap check should definitely be added.
dummy E: Cross-directory hardlink in package (usr/share/dummy/bob, etc/dummy/alice)
dummy E: Missing custom license directory (usr/share/licenses/dummy)
Namcap rule added: http://projects.archlinux.org/namcap.git/commit/?id=f6ed514afa8441c2dba6b2d2a3b6a78c27932bee
Should we close this?
So I think this can be closed.