oshazard / apacman

ArchLinux User Repository (AUR) helper and pacman wrapper
https://aur.archlinux.org/packages/apacman/
GNU General Public License v3.0
70 stars 11 forks source link

libc++ missing #88

Closed ebell2-macu closed 6 years ago

ebell2-macu commented 7 years ago

I have libc++ installed as the dependencies require, but everytime i run apacman -Syu, it prints out

: Synchronizing aur database...
:: There are 117 packages that provide libc++:

and then fails to update anything

Here's the the full bash debug: http://pastebin.com/0Rvge879

ghost commented 7 years ago

Removing the aurpkglist() function results in command not found lines, but otherwise fixes this.

Edit: I mean that it very specifically fixes this -Syu.

ghost commented 7 years ago

print debugging suggests the hang doesn't occur in aurpkglist, it happens when selectprovider() calls pickone()

ghost commented 7 years ago

(Still print debugging) It does not appear to enter pickone(), it just hangs. This is the limit of my usefulness. Good luck.

ghost commented 7 years ago

Oooh, it appears that this might fix this issue:

@@ -360,7 +360,7 @@ existsinaur() {
   regexmatch="$(echo $val | tr -dc '0-9a-z-.\n')"
   if [[ $val != $regexmatch ]]; then
      matches=$(aurpkglist "$val")
-     selectprovider "$val" $matches
+     selectprovider "$val" "${matches[@]}"
      if [[ $providepkg ]]; then
        eval "$2=\"$providepkg\"" 2>/dev/null
        chosenpkg="$providepkg"
ghost commented 7 years ago

That patch solves -Syu for me

ghost commented 7 years ago

Aaaand the code is being removed with regex mode anyway. Fun distraction.

ghost commented 7 years ago

Deleted my fork pull request #91 was based on. Posting the patch here because relevant issue.

0001-Remove-regex-mode.patch.txt