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#27447 - [pacman] - makepkg prints out comm errors when packaging
Attached to Project:
Pacman
Opened by John (graysky) - Sunday, 04 December 2011, 18:14 GMT
Last edited by Allan McRae (Allan) - Sunday, 04 December 2011, 21:28 GMT
Opened by John (graysky) - Sunday, 04 December 2011, 18:14 GMT
Last edited by Allan McRae (Allan) - Sunday, 04 December 2011, 21:28 GMT
|
DetailsSummary and Info: The error seems to be non-critical in that the pkg gets built. I can get this to happen building any number of packages. In this example, it is expac-git.
Steps to Reproduce: download and try to build expac-git Here is the relevant section of the attached error log showing the error. Note, this same package build fine under pacman 3 series. ==> Finished making: expac-git 20111204-1 (Sun Dec 4 13:08:47 EST 2011) ==> Cleaning up... comm: file 1 is not in sorted order comm: file 2 is not in sorted order comm: file 1 is not in sorted order comm: file 2 is not in sorted order ==> ERROR: An unknown error has occurred. Exiting... ==> Removing installed dependencies... |
This task depends upon
Closed by Allan McRae (Allan)
Sunday, 04 December 2011, 21:28 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#27221
Sunday, 04 December 2011, 21:28 GMT
Reason for closing: Duplicate
Additional comments about closing:
error
==> Leaving fakeroot environment.
==> Finished making: file-roller 3.2.2-1 (Sun Dec 4 13:17:33 EST 2011)
==> Cleaning up...
comm: file 1 is not in sorted order
comm: file 2 is not in sorted order
comm: file 1 is not in sorted order
comm: file 2 is not in sorted order
==> ERROR: An unknown error has occurred. Exiting...
==> Removing installed dependencies...
checking dependencies...
Edit: The errors occurs only when you've installed some dependencies along the way. If e.g. I remove git prior to running 'makepkg -src' I get the same error.
+++ /usr/bin/makepkg1 2011-12-04 19:12:00.000000000 +0000
@@ -506,14 +506,14 @@
# check for packages removed during dependency install (e.g. due to conflicts)
# removing all installed packages is risky in this case
- if [[ -n $(comm -23 <(printf "%s\n" "${original_pkglist[@]}") \
- <(printf "%s\n" "${current_pkglist[@]}")) ]]; then
+ if [[ -n $(comm -23 <(printf "%s\n" "${original_pkglist[@]}"|sort) \
+ <(printf "%s\n" "${current_pkglist[@]}"|sort)) ]]; then
warning "$(gettext "Failed to remove installed dependencies.")"
return 0
fi
- local deplist=($(comm -13 <(printf "%s\n" "${original_pkglist[@]}") \
- <(printf "%s\n" "${current_pkglist[@]}")))
+ local deplist=($(comm -13 <(printf "%s\n" "${original_pkglist[@]}"|sort) \
+ <(printf "%s\n" "${current_pkglist[@]}"|sort)))
(( ${#deplist[@]} == 0 )) && return
msg "Removing installed dependencies..."
Seems to get rid of the errors but I don't know if this is the Right Way (tm) to do it.