FS#38580 - [apache-ant] Package fails to upgrade
Attached to Project:
Arch Linux
Opened by Rick Prego (rprego) - Sunday, 19 January 2014, 22:16 GMT
Last edited by Guillaume ALAUX (galaux) - Friday, 24 January 2014, 14:22 GMT
Opened by Rick Prego (rprego) - Sunday, 19 January 2014, 22:16 GMT
Last edited by Guillaume ALAUX (galaux) - Friday, 24 January 2014, 14:22 GMT
|
Details
Description:
When trying to upgrade from apache-ant-1.9.3-1 to apache-ant-1.9.3-2 using pacman, the install fails with the following error: apache-ant: /usr/share/apache-ant/etc exists in filesystem Additional info: * Currently installed version: apache-ant-1.9.3-1 * New version: apache-ant-1.9.3-2 Steps to reproduce: 1. Attempt system upgrade with pacman 2. Upgrade fails Full details: $ sudo pacman -Su apache-ant :: Starting full system upgrade... resolving dependencies... looking for inter-conflicts... Packages (1): apache-ant-1.9.3-2 Total Installed Size: 2.64 MiB Net Upgrade Size: -11.62 MiB :: Proceed with installation? [Y/n] (1/1) checking keys in keyring [################################] 100% (1/1) checking package integrity [################################] 100% (1/1) loading package files [################################] 100% (1/1) checking for file conflicts [################################] 100% error: failed to commit transaction (conflicting files) apache-ant: /usr/share/apache-ant/etc exists in filesystem Errors occurred, no packages were upgraded. |
This task depends upon
Closed by Guillaume ALAUX (galaux)
Friday, 24 January 2014, 14:22 GMT
Reason for closing: Fixed
Additional comments about closing: User action required
Friday, 24 January 2014, 14:22 GMT
Reason for closing: Fixed
Additional comments about closing: User action required
Little strange is the dir itself (.../share/apache-ant/etc)is not owned by anything, while the files in it (normaly) belong to apache-ant.
(11/11) checking for file conflicts [###############################################################] 100%
error: failed to commit transaction (conflicting files)
apache-ant: /usr/share/apache-ant/etc exists in filesystem
Errors occurred, no packages were upgraded.
[marek@beruska flash]$ yaourt -Qo /usr/share/apache-ant/etc
error: No package owns /usr/share/apache-ant/etc
[marek@beruska flash]$ ls /usr/share/apache-ant/etc/
changelog.xsl coverage-frames.xsl jdepend.xsl junit-frames.xsl log.xsl mmetrics-frames.xsl
checkstyle/ jdepend-frames.xsl junit-frames-xalan1.xsl junit-noframes.xsl maudit-frames.xsl tagdiff.xsl
[marek@beruska flash]$ yaourt -Qo /usr/share/apache-ant/etc/jdepend.xsl
/usr/share/apache-ant/etc/jdepend.xsl is owned by apache-ant 1.9.3-1
[marek@beruska flash]$ yaourt -Qo /usr/share/apache-ant
/usr/share/apache-ant is owned by apache-ant 1.9.3-1
[marek@beruska flash]$ yaourt -Qo /usr/share/apache-ant/etc/
error: No package owns /usr/share/apache-ant/etc
[marek@beruska flash]$ yaourt -Qo /usr/share/apache-ant/etc/log.xsl
/usr/share/apache-ant/etc/log.xsl is owned by apache-ant 1.9.3-1
Thanks
https://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/apache-ant&id=fe2ca4a5a1b0549fd08f5f07262ccd292a90f0e7
Previously, that symlink was getting created in the .install file which is untracked.
Now it gets created in the pkgbuild which is tracked.
Upgrade happens and pacman sees the conflict and stops the upgrade.
It's easy to fix though, sudo rm /usr/share/apache-ant/etc && sudo pacman -Syu
As Thomas says, a simple rm or unlink does the trick.
@Thomas: Thanks for having answered this. Feel free to assign bug reports to me when they involve some of my packages.