rmarquis / pacaur

[unmaintained] An AUR helper that minimizes user interaction
https://bbs.archlinux.org/viewtopic.php?pid=1755144#p1755144
ISC License
796 stars 113 forks source link

comm: file 2 is not in sorted order #230

Closed lucy closed 9 years ago

lucy commented 10 years ago

Running pacaur -u --devel with libvpx-git installed causes pacaur to run comm on an improperly sorted list of packages. Relevant part of bash -x output: http://sprunge.us/HdfT

rmarquis commented 10 years ago

I cannot reproduce on my machine, but I believe I fixed the issue in 9c5c37ff47ce9fc505a50a67d4039bc3a14df85a.

Can you try again (pacaur-git) and see if the bug is still present? Also, what locale do you use?

lucy commented 10 years ago

Cannot reproduce after 9c5c37f. Before 9c5c37f I can reproduce with my locale set to C. I think the issue was caused by expac -S %n sh printing bash so sorting packages before passing them to expac doesn't work properly.

rmarquis commented 10 years ago

Right, expac was printing 'bash' since it is the provider of 'sh'. I also understand now why I didn't get the error: I'm using expac-git which doesn't print providers anymore, but that array should be sorted to ensure compatibility with the different locales anyway. Edit: the array is already sorted, so this issue and the patch won't be necessary with the next version of expac.

Thanks for reporting the bug, I'll release the next stable version tonight or tomorrow at the latest.

jamietanna commented 9 years ago

Apologies for the bump, but I still seem to be encountering this issue. I'm running v4.2.27:

% pacaur --version                                                                                                              
pacaur 4.2.27

The following issue occurs when I try and upgrade:

% pacaur -Syu --devel                                                                                                           
:: Synchronising package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 haskell-core is up to date
:: Starting full system upgrade...
 there is nothing to do
:: Starting AUR upgrade...
:: resolving dependencies...
comm: file 2 is not in sorted order
:: no AUR metadata for jmtpfs-git package
:: no AUR metadata for sxhkd-git package
:: no results found for [android-sdk-build-tools]:
:: no results found for [bashmount]:
:: no results found for [bspwm-git]:
:: no results found for [chromium-pepper-flash]:
:: no results found for [cower]:
:: no results found for [docker-compose]:

I have the following packages installed via the AUR:

% pacman -Qqm                                                                                                                     
android-platform
android-sdk
android-sdk-build-tools
android-sdk-platform-tools
bashmount
bspwm-git
chromium-pepper-flash
cower
docker-compose
dropbox
dropbox-cli
eclim
eclipse-emf
eclipse-gef
eclipse-wtp
genymotion
google-talkplugin
i3lock-background
jmtpfs-git
lemonbar-git
nodejs-bower
nodejs-cordova
nodejs-grunt-cli
pacaur
package-query
phonegap
popcorntime-bin
python2-docker-py
python2-dockerpty
python2-texttable
python2-websocket-client
ruby-blankslate-2
ruby-celluloid
ruby-classifier-reborn
ruby-coffee-script
ruby-coffee-script-source
ruby-colorator
ruby-execjs
ruby-fast-stemmer
ruby-ffi
ruby-hitimes
ruby-jekyll
ruby-jekyll-coffeescript
ruby-jekyll-gist
ruby-jekyll-paginate
ruby-jekyll-sass-converter
ruby-jekyll-watch
ruby-kramdown
ruby-liquid-2
ruby-listen
ruby-maruku
ruby-mercenary
ruby-parslet-1.5
ruby-posix-spawn
ruby-pygments.rb
ruby-rb-fsevent
ruby-rb-inotify
ruby-redcarpet
ruby-safe_yaml
ruby-sass
ruby-timers
ruby-toml
ruby-yajl-ruby
ruby-yard
sutils-git
sxhkd-git
xtitle-git
yaourt

Any help you can provide will be appreciated. Please let me know how I can help you with debugging this.

rmarquis commented 9 years ago

Please link the output of "bash -x pacaur -Syu --devel".

jamietanna commented 9 years ago

Please see this Gist for the full output of bash -x pacaur -Syu --devel.

rmarquis commented 9 years ago

Thanks. This seems to be a different issue than the original issue referred in the first post, although resulting in a similar comm sort issue down the track as a side effect. I'll try to find out what's going on here asap.

rmarquis commented 9 years ago

It seems to me that the issue happens with the cower output and not in pacaur itself. Could you test and report the output of cower -uf?

jamietanna commented 9 years ago

Unfortunately I'm at work so won't be able to reply until I get home this evening (~8hrs). I will update you when I'm back.

jamietanna commented 9 years ago
% cower -uf                                                                                                                                    
error: [bspwm-git]: Timeout was reached
error: [android-sdk-platform-tools]: Timeout was reached
error: [android-sdk-build-tools]: Timeout was reached
error: [cower]: Timeout was reached
error: [android-platform]: Timeout was reached
error: [chromium-pepper-flash]: Timeout was reached
error: [android-sdk]: Timeout was reached
rmarquis commented 9 years ago

Please refer to https://wiki.archlinux.org/index.php/Pacaur#Troubleshooting.

Nothing I can do, good luck.