[arch-general] Note: /usr/share/pear/test/Console_Getopt/tests/... conflicts on pear upgrade.
Just a note: Not sure whether it is worth a bug or install note, but when upgrading pear the following conflicting files are noted: ... error: failed to commit transaction (conflicting files) php-pear: /usr/share/pear/test/Console_Getopt/tests/001-getopt.phpt exists in filesystem php-pear: /usr/share/pear/test/Console_Getopt/tests/bug10557.phpt exists in filesystem php-pear: /usr/share/pear/test/Console_Getopt/tests/bug11068.phpt exists in filesystem php-pear: /usr/share/pear/test/Console_Getopt/tests/bug13140.phpt exists in filesystem Errors occurred, no packages were upgraded. Just thought I would pass it along. Let me know if you think it needs a report and I'll file if so. -- David C. Rankin, J.D.,P.E.
Which package versions were involved? Did you manage to get the package to upgrade, or do you want help with that? /Emil
On Sun, 20 Dec 2015 20:57:37 -0600, David C. Rankin wrote:
error: failed to commit transaction (conflicting files) php-pear: /usr/share/pear/test/Console_Getopt/tests/001-getopt.phpt exists in filesystem
And what packages does cause the conflict? $ pacman -Qo /usr/share/pear/test/Console_Getopt/tests/001-getopt.phpt *?*
On 12/21/2015 03:40 AM, Ralf Mardorf wrote:
On Sun, 20 Dec 2015 20:57:37 -0600, David C. Rankin wrote:
error: failed to commit transaction (conflicting files) php-pear: /usr/share/pear/test/Console_Getopt/tests/001-getopt.phpt exists in filesystem
And what packages does cause the conflict?
$ pacman -Qo /usr/share/pear/test/Console_Getopt/tests/001-getopt.phpt
*?*
Ralf, Emil, Sorry, I thought it was apparent, all conflicting packages are owned by php-pear 5.6.16-3 (they are part of the package being upgraded): $ pmql php-pear | grep Getopt\/tests php-pear /usr/share/pear/test/Console_Getopt/tests/ php-pear /usr/share/pear/test/Console_Getopt/tests/001-getopt.phpt php-pear /usr/share/pear/test/Console_Getopt/tests/bug10557.phpt php-pear /usr/share/pear/test/Console_Getopt/tests/bug11068.phpt php-pear /usr/share/pear/test/Console_Getopt/tests/bug13140.phpt Upgrade history for the box: $ grep php-pear /var/log/pacman.log [2015-08-23 08:11] [ALPM] installed php-pear (5.6.12-1) [2015-09-06 12:28] [ALPM] upgraded php-pear (5.6.12-1 -> 5.6.13-1) [2015-10-07 01:59] [ALPM] upgraded php-pear (5.6.13-1 -> 5.6.14-1) [2015-12-20 20:20] [ALPM] upgraded php-pear (5.6.14-1 -> 5.6.16-3) After analyzing the files/packages involved, I did what you should never-never do (except in cases like this), I --forced the upgrade. -- David C. Rankin, J.D.,P.E.
On Mon, 21 Dec 2015 14:00:48 -0600, David C. Rankin wrote:
On 12/21/2015 03:40 AM, Ralf Mardorf wrote:
On Sun, 20 Dec 2015 20:57:37 -0600, David C. Rankin wrote:
error: failed to commit transaction (conflicting files) php-pear: /usr/share/pear/test/Console_Getopt/tests/001-getopt.phpt exists in filesystem
And what packages does cause the conflict?
$ pacman -Qo /usr/share/pear/test/Console_Getopt/tests/001-getopt.phpt
*?*
Ralf, Emil,
Sorry, I thought it was apparent, all conflicting packages are owned by php-pear 5.6.16-3 (they are part of the package being upgraded)
A package's files cannot conflict with files from itself. There is another package providing the same files. Such a conflict at least require two packages providing files with the same name. Note! We at least had one package providing files in the same path with the same name that were absolutely different software. I don't remember this file anymore, I noticed it because I installed both packages. The maintainers couldn't notice it, because they were not interested in both domains and were not aware about the other software. Upstream of both software accidentally used the same name. $ pacman -Qo /path/to/a/file does show the package a file belongs too. After misusing the force option pacman -Qo might not show the culprit anymore. Assumed you build packages on your own or you're using packages from AUR, they likely will not automagically care about transitions done by the official repositories. Perhaps you missed to maintain AUR or self build packages.
On 12/21/2015 02:42 PM, Ralf Mardorf wrote:
A package's files cannot conflict with files from itself. There is another package providing the same files. Such a conflict at least require two packages providing files with the same name. Note! We at least had one package providing files in the same path with the same name that were absolutely different software. I don't remember this file anymore, I noticed it because I installed both packages. The maintainers couldn't notice it, because they were not interested in both domains and were not aware about the other software. Upstream of both software accidentally used the same name.
This is beginning to make sense, and the use of --force wasn't a misuse as there was NO other package providing the files. If I understand what is happening, it is *pear* itself that is causing the conflicts through it's own: # pear install foo install routine. In this case it is the pear Console_Getopt package: # pear list-files Console_Getopt Installed Files For Console_Getopt ================================== Type Install Path php /usr/share/pear/Console/Getopt.php test /usr/share/pear/test/Console_Getopt/tests/001-getopt.phpt test /usr/share/pear/test/Console_Getopt/tests/bug10557.phpt test /usr/share/pear/test/Console_Getopt/tests/bug11068.phpt test /usr/share/pear/test/Console_Getopt/tests/bug13140.phpt So there is no packaging issue, with any Arch package, it is a byproduct of pear install Console_Getopt as part of the eGroupWare install that brought in via the pear channel network install that brought the duplicate files in. So I'll go look when these files first appeared in the php-pear package as this was the first update where they were listed as a conflict. eGroupWare was installed/upgraded on 8/30/15 following the initial install of php-pear on 8/26, so it looks like the files were first flagged as conflicting file on the 5.6.14-1 -> 5.6.16-3 upgrade yesterday. -- David C. Rankin, J.D.,P.E.
participants (3)
-
David C. Rankin
-
Emil Lundberg
-
Ralf Mardorf