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

Problems with multiple package providers #363

Closed rumpelsepp closed 9 years ago

rumpelsepp commented 9 years ago

When there is more than one package providers pacaur fails, due to an invalid number:

==> Making package: guitar-pro 11621-1 (Wed Sep 16 20:23:35 CEST 2015)
==> Checking runtime dependencies...
==> Installing missing dependencies...
:: There are 4 providers available for lib32-libgl:
:: Repository multilib
   1) lib32-mesa-libgl  2) lib32-nvidia-304xx-libgl  3) lib32-nvidia-340xx-libgl  4) lib32-nvidia-libgl

Enter a number (default=1): error: invalid number: Y

Enter a number (default=1): error: invalid number: Y

Enter a number (default=1): error: invalid number: Y

Enter a number (default=1): error: invalid number: Y

Enter a number (default=1): error: invalid number: Y

Enter a number (default=1): error: invalid number: Y

Enter a number (default=1): error: invalid number: Y

Enter a number (default=1): error: invalid number: Y

Enter a number (default=1): error: invalid number: Y

Enter a number (default=1): error: invalid number: Y

Enter a number (default=1): error: invalid number: Y

Enter a number (default=1): error: invalid number: Y
rmarquis commented 9 years ago

The selected provider should have been installed prior of the package install. Have you seen the prompt? Please also provide a complete debug output.

rumpelsepp commented 9 years ago

The selected provider should have been installed prior of the package install. Have you seen the prompt?

Nope, it just fails awfully.

~ $ bash -x pacaur -Syy guitar-pro
+ version=4.3.1
+ LC_COLLATE=C
+ TEXTDOMAIN=pacaur
+ TEXTDOMAINDIR=/usr/share/locale
+ [[ -n '' ]]
+ configdir=/etc/xdg/pacaur
+ userconfigdir=/home/stefan/.config/pacaur
+ userpacmandir=/home/stefan/.config/pacman
+ [[ -r '' ]]
+ source /etc/makepkg.conf
++ DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' 'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u' 'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u' 'rsync::/usr/bin/rsync --no-motd -z %u %o' 'scp::/usr/bin/scp -C %u %o')
++ CARCH=x86_64
++ CHOST=x86_64-unknown-linux-gnu
++ CPPFLAGS=-D_FORTIFY_SOURCE=2
++ CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4'
++ CXXFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4'
++ LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro
++ MAKEFLAGS=-j4
++ DEBUG_CFLAGS='-g -fvar-tracking-assignments'
++ DEBUG_CXXFLAGS='-g -fvar-tracking-assignments'
++ BUILDENV=(!distcc color !ccache check !sign)
++ BUILDDIR=/tmp/makepkg
++ OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
++ INTEGRITY_CHECK=(md5)
++ STRIP_BINARIES=--strip-all
++ STRIP_SHARED=--strip-unneeded
++ STRIP_STATIC=--strip-debug
++ MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
++ DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
++ PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
++ PACKAGER='Stefan Tatschner <stefan@sevenbyte.org>'
++ COMPRESSGZ=(gzip -c -f -n)
++ COMPRESSBZ2=(bzip2 -c -f)
++ COMPRESSXZ=(xz -T0 -c -z -)
++ COMPRESSLRZ=(lrzip -q)
++ COMPRESSLZO=(lzop -q)
++ COMPRESSZ=(compress -c -f)
++ PKGEXT=.pkg.tar.xz
++ SRCEXT=.src.tar.gz
+ [[ -r /home/stefan/.config/pacman/makepkg.conf ]]
+ [[ -r /home/stefan/.makepkg.conf ]]
+ tmpdir=/tmp/stefan/pacaurtmp-stefan
+ builddir=/tmp/makepkg
+ editor=vim
+ editpkgbuild=true
+ fallback=true
+ clean=true
+ cleandevel=true
+ silent=false
+ sortby=popularity
+ sudoloop=false
+ pacmanbin=pacman
+ aururl=aur.archlinux.org
+ aurrpc='/rpc.php?type=multiinfo&v=4'
+ source /etc/xdg/pacaur/config
+ [[ -r /home/stefan/.config/pacaur/config ]]
+ [[ -d /tmp/stefan/pacaurtmp-stefan ]]
+ [[ ! -w /tmp/stefan/pacaurtmp-stefan ]]
+ [[ ! -d /tmp/stefan/pacaurtmp-stefan ]]
+ [[ ! -d /tmp/makepkg ]]
+ trap Cancel INT
+ args=($@)
+ for i in '"${args[@]}"'
+ [[ -Syy =~ ^-[a-zA-Z0-9] ]]
+ opts+=($i)
+ for i in '"${args[@]}"'
+ [[ guitar-pro =~ ^-[a-zA-Z0-9] ]]
+ count=0
+ [[ -n -Syy ]]
+ getopts sidmykufecqrahvVDQRSTUbglnoptw-: OPT
+ pacmanarg+=("-$OPT")
+ case "$OPT" in
+ pacS=1
+ operation=sync
+ coweropts+=("-f")
+ [[ -Syy =~ w ]]
+ installpkg=true
+ [[ -Syy =~ g ]]
+ [[ -Syy =~ l ]]
+ [[ -Syy =~ p ]]
+ getopts sidmykufecqrahvVDQRSTUbglnoptw-: OPT
+ pacmanarg+=("-$OPT")
+ case "$OPT" in
+ [[ -n 1 ]]
+ operation=sync
+ refresh=true
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ continue
+ getopts sidmykufecqrahvVDQRSTUbglnoptw-: OPT
+ pacmanarg+=("-$OPT")
+ case "$OPT" in
+ [[ -n 1 ]]
+ operation=sync
+ refresh=true
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ continue
+ getopts sidmykufecqrahvVDQRSTUbglnoptw-: OPT
+ [[ -z guitar-pro ]]
+ pkgs+=(${!OPTIND})
+ shift 2
+ OPTIND=1
+ [[ -n '' ]]
++ grep '^Color' /etc/pacman.conf
+ [[ -n Color ]]
+ [[ '' != \n\e\v\e\r ]]
+ [[ '' = \a\l\w\a\y\s ]]
+ coweropts+=("--color=auto")
+ reset='\e[0m'
+ colorR='\e[1;31m'
+ colorG='\e[1;32m'
+ colorY='\e[1;33m'
+ colorB='\e[1;34m'
+ colorM='\e[1;35m'
+ colorW='\e[1;39m'
+ pacmanarg=(${pacmanarg[@]/--/})
+ pacmanarg=(${pacmanarg[@]/-r/})
+ pacmanarg=(${pacmanarg[@]/-a/})
+ [[ sync = sync ]]
+ [[ ! -n '' ]]
+ [[ ! -n '' ]]
+ [[ ! -n '' ]]
+ [[ 1000 -eq 0 ]]
+ [[ -n 1 ]]
+ pacmanarg=(${pacmanarg[@]/-e/})
+ [[ -n 1 ]]
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ [[ -n '' ]]
+ [[ ! -n vim ]]
+ [[ ! -w /tmp/makepkg ]]
+ [[ -z guitar-pro ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ case $operation in
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -z guitar-pro ]]
+ ClassifyPkgs guitar-pro
+ [[ true = true ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ ! -n '' ]]
+ [[ ! -n '' ]]
+ unset noaurpkgs
+ for i in '"${pkgs[@]}"'
+ [[ guitar-pro == aur/* ]]
+ noaurpkgs+=($i)
+ [[ -n guitar-pro ]]
+ norepopkgs=($(LANG=C $pacmanbin -Sp ${noaurpkgs[@]} 2>&1 >/dev/null | awk '{print $NF}'))
++ LANG=C
++ pacman -Sp guitar-pro
++ awk '{print $NF}'
+ for i in '"${norepopkgs[@]}"'
+ [[ !  guitar-pro  =~ [a-zA-Z0-9.+-]+/guitar-pro[^a-zA-Z0-9.+-] ]]
+ aurpkgs+=($i)
+ repopkgs=($(LC_COLLATE=C comm -23 <(tr ' ' '\n' <<< ${noaurpkgs[@]} | LC_COLLATE=C sort -u) <(tr ' ' '\n' <<< ${aurpkgs[@]} | LC_COLLATE=C sort -u)))
++ LC_COLLATE=C
++ comm -23 /dev/fd/63 /dev/fd/62
+++ tr ' ' '\n'
+++ tr ' ' '\n'
+++ LC_COLLATE=C
+++ sort -u
+++ LC_COLLATE=C
+++ sort -u
+ [[ -n '' ]]
+ [[ -n guitar-pro ]]
+ [[ -n true ]]
+ [[ -z '' ]]
+ sudo pacman -Sy
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 infinality-bundle is up to date
 infinality-bundle-fonts is up to date
+ [[ true = true ]]
+ [[ ! -n '' ]]
+ Note w 'Package(s) \e[1;39mguitar-pro\e[0m not found in repositories, trying \e[1;35mAUR\e[0m...'
+ case "$1" in
+ echo -e '\e[1;33m::\e[0m Package(s) \e[1;39mguitar-pro\e[0m not found in repositories, trying \e[1;35mAUR\e[0m...'
:: Package(s) guitar-pro not found in repositories, trying AUR...
+ Core guitar-pro
+ GetIgnoredPkgs
+ ignoredpkgs+=($(grep '^IgnorePkg' '/etc/pacman.conf' | cut -d '=' -f 2- | tr -d "'\""))
++ grep '^IgnorePkg' /etc/pacman.conf
++ cut -d = -f 2-
++ tr -d ''\''"'
+ [[ -e /home/stefan/.config/cower/config ]]
+ ignoredpkgs=(${ignoredpkgs[@]//,/ })
+ [[ -n '' ]]
+ IgnoreChecks
+ [[ -z '' ]]
+ return
+ DepsSolver
+ Note i 'resolving dependencies...'
+ case "$1" in
+ echo -e '\e[1;34m::\e[0m resolving dependencies...'
:: resolving dependencies...
+ (( i=0 ))
+ (( i<1 ))
++ awk -F '>|<|=' '{print $1}'
+ aurpkgs[$i]=guitar-pro
+ (( i++ ))
+ (( i<1 ))
+ deps+=(${aurpkgs[@]})
++ DownloadJson guitar-pro
++ urlencodedpkgs=($(sed 's/+/%2b/g;s/@/%40/g' <<< $@))
+++ sed 's/+/%2b/g;s/@/%40/g'
+++ printf '&arg[]=%s' guitar-pro
++ urlargs='&arg[]=guitar-pro'
++ [[ 17 -lt 8125 ]]
++ curl -sfg --compressed -C 0 'https://aur.archlinux.org/rpc.php?type=multiinfo&v=4&arg[]=guitar-pro'
+ json='{"version":4,"type":"multiinfo","resultcount":1,"results":[{"ID":198478,"Name":"guitar-pro","PackageBaseID":36390,"PackageBase":"guitar-pro","Version":"11621-1","Description":"A popular tablature editor software for guitar, bass, and many other instruments.","URL":"http:\/\/www.guitar-pro.com","NumVotes":20,"Popularity":0.702789,"OutOfDate":0,"Maintainer":"M0Rf30","FirstSubmitted":1271017317,"LastModified":1434548259,"URLPath":"\/cgit\/aur.git\/snapshot\/guitar-pro.tar.gz","Depends":["gksu","glib2","libgl","libxml2","portaudio","pulseaudio","zlib","libxrender","freetype2","libpng12"],"MakeDepends":["binutils","tar"],"License":["proprietary"]}]}'
+ aurpkgsproviders=($(GetJson "array" "$json" "Provides"))
++ GetJson array '{"version":4,"type":"multiinfo","resultcount":1,"results":[{"ID":198478,"Name":"guitar-pro","PackageBaseID":36390,"PackageBase":"guitar-pro","Version":"11621-1","Description":"A popular tablature editor software for guitar, bass, and many other instruments.","URL":"http:\/\/www.guitar-pro.com","NumVotes":20,"Popularity":0.702789,"OutOfDate":0,"Maintainer":"M0Rf30","FirstSubmitted":1271017317,"LastModified":1434548259,"URLPath":"\/cgit\/aur.git\/snapshot\/guitar-pro.tar.gz","Depends":["gksu","glib2","libgl","libxml2","portaudio","pulseaudio","zlib","libxrender","freetype2","libpng12"],"MakeDepends":["binutils","tar"],"License":["proprietary"]}]}' Provides
++ json_verify -q
++ case "$1" in
++ json_reformat
++ tr -d ', '
++ sed -e '/^"Provides"/,/]/!d'
++ awk -F : '{print $2}'
++ tr -d '\n'
++ tr -d '[]"'
++ tr -d '\"'
++ sed 's/] /]\n/g'
++ tr '\n' ' '
+ [[ -n '' ]]
+ [[ -z '' ]]
+ foreignpkgs=($($pacmanbin -Qmq))
++ pacman -Qmq
+ FindDepsAur guitar-pro
+ [[ -n '' ]]
+ [[ -z '' ]]
+ depspkgsaur=(${aurpkgs[@]})
++ DownloadJson guitar-pro
++ urlencodedpkgs=($(sed 's/+/%2b/g;s/@/%40/g' <<< $@))
+++ sed 's/+/%2b/g;s/@/%40/g'
+++ printf '&arg[]=%s' guitar-pro
++ urlargs='&arg[]=guitar-pro'
++ [[ 17 -lt 8125 ]]
++ curl -sfg --compressed -C 0 'https://aur.archlinux.org/rpc.php?type=multiinfo&v=4&arg[]=guitar-pro'
+ json='{"version":4,"type":"multiinfo","resultcount":1,"results":[{"ID":198478,"Name":"guitar-pro","PackageBaseID":36390,"PackageBase":"guitar-pro","Version":"11621-1","Description":"A popular tablature editor software for guitar, bass, and many other instruments.","URL":"http:\/\/www.guitar-pro.com","NumVotes":20,"Popularity":0.702789,"OutOfDate":0,"Maintainer":"M0Rf30","FirstSubmitted":1271017317,"LastModified":1434548259,"URLPath":"\/cgit\/aur.git\/snapshot\/guitar-pro.tar.gz","Depends":["gksu","glib2","libgl","libxml2","portaudio","pulseaudio","zlib","libxrender","freetype2","libpng12"],"MakeDepends":["binutils","tar"],"License":["proprietary"]}]}'
+ [[ -z '' ]]
+ errdeps+=($(LC_COLLATE=C comm -3 <(tr ' ' '\n' <<< $(GetJson "var" "$json" "Name") | sort -u) <(tr ' ' '\n' <<< ${aurpkgs[@]} | sort -u)))
++ LC_COLLATE=C
++ comm -3 /dev/fd/63 /dev/fd/62
+++ tr ' ' '\n'
+++ sort -u
+++ tr ' ' '\n'
++++ GetJson var '{"version":4,"type":"multiinfo","resultcount":1,"results":[{"ID":198478,"Name":"guitar-pro","PackageBaseID":36390,"PackageBase":"guitar-pro","Version":"11621-1","Description":"A popular tablature editor software for guitar, bass, and many other instruments.","URL":"http:\/\/www.guitar-pro.com","NumVotes":20,"Popularity":0.702789,"OutOfDate":0,"Maintainer":"M0Rf30","FirstSubmitted":1271017317,"LastModified":1434548259,"URLPath":"\/cgit\/aur.git\/snapshot\/guitar-pro.tar.gz","Depends":["gksu","glib2","libgl","libxml2","portaudio","pulseaudio","zlib","libxrender","freetype2","libpng12"],"MakeDepends":["binutils","tar"],"License":["proprietary"]}]}' Name
++++ json_verify -q
+++ sort -u
++++ case "$1" in
++++ json_reformat
++++ tr -d '", '
++++ sed -r s/Name:/Name#/g
++++ grep -Po 'Name:.*'
++++ awk -F '#' '{print $2}'
+ [[ -n '' ]]
+ depspkgs=($(GetJson "array" "$json" "Depends"))
++ GetJson array '{"version":4,"type":"multiinfo","resultcount":1,"results":[{"ID":198478,"Name":"guitar-pro","PackageBaseID":36390,"PackageBase":"guitar-pro","Version":"11621-1","Description":"A popular tablature editor software for guitar, bass, and many other instruments.","URL":"http:\/\/www.guitar-pro.com","NumVotes":20,"Popularity":0.702789,"OutOfDate":0,"Maintainer":"M0Rf30","FirstSubmitted":1271017317,"LastModified":1434548259,"URLPath":"\/cgit\/aur.git\/snapshot\/guitar-pro.tar.gz","Depends":["gksu","glib2","libgl","libxml2","portaudio","pulseaudio","zlib","libxrender","freetype2","libpng12"],"MakeDepends":["binutils","tar"],"License":["proprietary"]}]}' Depends
++ json_verify -q
++ case "$1" in
++ json_reformat
++ tr -d ', '
++ sed -e '/^"Depends"/,/]/!d'
++ tr '\n' ' '
++ tr -d '\"'
++ tr -d '\n'
++ sed 's/] /]\n/g'
++ tr -d '[]"'
++ awk -F : '{print $2}'
+ [[ ! -n '' ]]
+ depspkgs+=($(GetJson "array" "$json" "MakeDepends"))
++ GetJson array '{"version":4,"type":"multiinfo","resultcount":1,"results":[{"ID":198478,"Name":"guitar-pro","PackageBaseID":36390,"PackageBase":"guitar-pro","Version":"11621-1","Description":"A popular tablature editor software for guitar, bass, and many other instruments.","URL":"http:\/\/www.guitar-pro.com","NumVotes":20,"Popularity":0.702789,"OutOfDate":0,"Maintainer":"M0Rf30","FirstSubmitted":1271017317,"LastModified":1434548259,"URLPath":"\/cgit\/aur.git\/snapshot\/guitar-pro.tar.gz","Depends":["gksu","glib2","libgl","libxml2","portaudio","pulseaudio","zlib","libxrender","freetype2","libpng12"],"MakeDepends":["binutils","tar"],"License":["proprietary"]}]}' MakeDepends
++ json_verify -q
++ case "$1" in
++ json_reformat
++ tr -d ', '
++ tr -d '\"'
++ tr '\n' ' '
++ sed 's/] /]\n/g'
++ sed -e '/^"MakeDepends"/,/]/!d'
++ tr -d '\n'
++ tr -d '[]"'
++ awk -F : '{print $2}'
+ [[ ! -n '' ]]
+ [[ ! -n '' ]]
+ depspkgs=($($pacmanbin -T ${depspkgs[@]} | sort -u))
++ sort -u
++ pacman -T gksu glib2 libgl libxml2 portaudio pulseaudio zlib libxrender freetype2 libpng12 binutils tar
+ unset depspkgsaur
+ [[ -n '' ]]
+ unset depspkgs
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
++ DownloadJson guitar-pro
++ urlencodedpkgs=($(sed 's/+/%2b/g;s/@/%40/g' <<< $@))
+++ sed 's/+/%2b/g;s/@/%40/g'
+++ printf '&arg[]=%s' guitar-pro
++ urlargs='&arg[]=guitar-pro'
++ [[ 17 -lt 8125 ]]
++ curl -sfg --compressed -C 0 'https://aur.archlinux.org/rpc.php?type=multiinfo&v=4&arg[]=guitar-pro'
+ json='{"version":4,"type":"multiinfo","resultcount":1,"results":[{"ID":198478,"Name":"guitar-pro","PackageBaseID":36390,"PackageBase":"guitar-pro","Version":"11621-1","Description":"A popular tablature editor software for guitar, bass, and many other instruments.","URL":"http:\/\/www.guitar-pro.com","NumVotes":20,"Popularity":0.702789,"OutOfDate":0,"Maintainer":"M0Rf30","FirstSubmitted":1271017317,"LastModified":1434548259,"URLPath":"\/cgit\/aur.git\/snapshot\/guitar-pro.tar.gz","Depends":["gksu","glib2","libgl","libxml2","portaudio","pulseaudio","zlib","libxrender","freetype2","libpng12"],"MakeDepends":["binutils","tar"],"License":["proprietary"]}]}'
+ depsAname=($(GetJson "var" "$json" "Name"))
++ GetJson var '{"version":4,"type":"multiinfo","resultcount":1,"results":[{"ID":198478,"Name":"guitar-pro","PackageBaseID":36390,"PackageBase":"guitar-pro","Version":"11621-1","Description":"A popular tablature editor software for guitar, bass, and many other instruments.","URL":"http:\/\/www.guitar-pro.com","NumVotes":20,"Popularity":0.702789,"OutOfDate":0,"Maintainer":"M0Rf30","FirstSubmitted":1271017317,"LastModified":1434548259,"URLPath":"\/cgit\/aur.git\/snapshot\/guitar-pro.tar.gz","Depends":["gksu","glib2","libgl","libxml2","portaudio","pulseaudio","zlib","libxrender","freetype2","libpng12"],"MakeDepends":["binutils","tar"],"License":["proprietary"]}]}' Name
++ json_verify -q
++ case "$1" in
++ json_reformat
++ tr -d '", '
++ awk -F '#' '{print $2}'
++ sed -r s/Name:/Name#/g
++ grep -Po 'Name:.*'
+ depsAver=($(GetJson "var" "$json" "Version"))
++ GetJson var '{"version":4,"type":"multiinfo","resultcount":1,"results":[{"ID":198478,"Name":"guitar-pro","PackageBaseID":36390,"PackageBase":"guitar-pro","Version":"11621-1","Description":"A popular tablature editor software for guitar, bass, and many other instruments.","URL":"http:\/\/www.guitar-pro.com","NumVotes":20,"Popularity":0.702789,"OutOfDate":0,"Maintainer":"M0Rf30","FirstSubmitted":1271017317,"LastModified":1434548259,"URLPath":"\/cgit\/aur.git\/snapshot\/guitar-pro.tar.gz","Depends":["gksu","glib2","libgl","libxml2","portaudio","pulseaudio","zlib","libxrender","freetype2","libpng12"],"MakeDepends":["binutils","tar"],"License":["proprietary"]}]}' Version
++ json_verify -q
++ case "$1" in
++ json_reformat
++ tr -d '", '
++ grep -Po 'Version:.*'
++ awk -F '#' '{print $2}'
++ sed -r s/Version:/Version#/g
+ depsAood=($(GetJson "var" "$json" "OutOfDate"))
++ GetJson var '{"version":4,"type":"multiinfo","resultcount":1,"results":[{"ID":198478,"Name":"guitar-pro","PackageBaseID":36390,"PackageBase":"guitar-pro","Version":"11621-1","Description":"A popular tablature editor software for guitar, bass, and many other instruments.","URL":"http:\/\/www.guitar-pro.com","NumVotes":20,"Popularity":0.702789,"OutOfDate":0,"Maintainer":"M0Rf30","FirstSubmitted":1271017317,"LastModified":1434548259,"URLPath":"\/cgit\/aur.git\/snapshot\/guitar-pro.tar.gz","Depends":["gksu","glib2","libgl","libxml2","portaudio","pulseaudio","zlib","libxrender","freetype2","libpng12"],"MakeDepends":["binutils","tar"],"License":["proprietary"]}]}' OutOfDate
++ json_verify -q
++ case "$1" in
++ json_reformat
++ tr -d '", '
++ grep -Po 'OutOfDate:.*'
++ sed -r s/OutOfDate:/OutOfDate#/g
++ awk -F '#' '{print $2}'
+ (( i=0 ))
+ (( i<1 ))
++ expac -Qs %v '^guitar-pro$'
+ depsQver[$i]=
+ [[ -z '' ]]
+ depsQver[$i]='#'
++ grep -E '\-(cvs|svn|git|hg|bzr|darcs|nightly.*)$'
+ [[ -n '' ]]
+ (( i++ ))
+ (( i<1 ))
+ [[ -n '' ]]
+ FindDepsRepo
+ [[ -z '' ]]
+ return
+ IgnoreDepsChecks
+ [[ -z '' ]]
+ return
+ ProviderChecks
+ [[ -z '' ]]
+ return
+ ConflictChecks
+ Note i 'looking for inter-conflicts...'
+ case "$1" in
+ echo -e '\e[1;34m::\e[0m looking for inter-conflicts...'
:: looking for inter-conflicts...
+ allQprovides=($(expac -Q '%n'))
++ expac -Q %n
+ allQprovides+=($(expac -Q '%S'))
++ expac -Q %S
+ allQconflicts=($(expac -Q '%C'))
++ expac -Q %C
+ Aprovides=(${depsAname[@]})
+ Aprovides+=($(GetJson "array" "$json" "Provides"))
++ GetJson array '{"version":4,"type":"multiinfo","resultcount":1,"results":[{"ID":198478,"Name":"guitar-pro","PackageBaseID":36390,"PackageBase":"guitar-pro","Version":"11621-1","Description":"A popular tablature editor software for guitar, bass, and many other instruments.","URL":"http:\/\/www.guitar-pro.com","NumVotes":20,"Popularity":0.702789,"OutOfDate":0,"Maintainer":"M0Rf30","FirstSubmitted":1271017317,"LastModified":1434548259,"URLPath":"\/cgit\/aur.git\/snapshot\/guitar-pro.tar.gz","Depends":["gksu","glib2","libgl","libxml2","portaudio","pulseaudio","zlib","libxrender","freetype2","libpng12"],"MakeDepends":["binutils","tar"],"License":["proprietary"]}]}' Provides
++ json_verify -q
++ case "$1" in
++ json_reformat
++ tr -d ', '
++ sed -e '/^"Provides"/,/]/!d'
++ tr -d '\n'
++ tr -d '[]"'
++ awk -F : '{print $2}'
++ sed 's/] /]\n/g'
++ tr '\n' ' '
++ tr -d '\"'
+ Aconflicts=($(GetJson "array" "$json" "Conflicts"))
++ GetJson array '{"version":4,"type":"multiinfo","resultcount":1,"results":[{"ID":198478,"Name":"guitar-pro","PackageBaseID":36390,"PackageBase":"guitar-pro","Version":"11621-1","Description":"A popular tablature editor software for guitar, bass, and many other instruments.","URL":"http:\/\/www.guitar-pro.com","NumVotes":20,"Popularity":0.702789,"OutOfDate":0,"Maintainer":"M0Rf30","FirstSubmitted":1271017317,"LastModified":1434548259,"URLPath":"\/cgit\/aur.git\/snapshot\/guitar-pro.tar.gz","Depends":["gksu","glib2","libgl","libxml2","portaudio","pulseaudio","zlib","libxrender","freetype2","libpng12"],"MakeDepends":["binutils","tar"],"License":["proprietary"]}]}' Conflicts
++ json_verify -q
++ case "$1" in
++ json_reformat
++ tr -d ', '
++ sed -e '/^"Conflicts"/,/]/!d'
++ tr -d '\"'
++ tr '\n' ' '
++ awk -F : '{print $2}'
++ tr -d '\n'
++ tr -d '[]"'
++ sed 's/] /]\n/g'
+ (( i=0 ))
+ (( i<1 ))
++ awk -F '>|<|=' '{print $1}'
+ Aprovides[$i]=guitar-pro
+ (( i++ ))
+ (( i<1 ))
+ (( i=0 ))
+ (( i<0 ))
+ aurconflicts+=($(LC_COLLATE=C comm -12 <(tr ' ' '\n' <<< ${Aprovides[@]} | LC_COLLATE=C sort -u) <(tr ' ' '\n' <<< ${allQconflicts[@]} | LC_COLLATE=C sort -u)))
++ LC_COLLATE=C
++ comm -12 /dev/fd/63 /dev/fd/62
+++ LC_COLLATE=C
+++ tr ' ' '\n'
+++ sort -u
+++ LC_COLLATE=C
+++ sort -u
+++ tr ' ' '\n'
+ aurconflicts+=($(LC_COLLATE=C comm -12 <(tr ' ' '\n' <<< ${Aconflicts[@]} | LC_COLLATE=C sort -u) <(tr ' ' '\n' <<< ${allQprovides[@]} | LC_COLLATE=C sort -u)))
++ LC_COLLATE=C
++ comm -12 /dev/fd/63 /dev/fd/62
+++ tr ' ' '\n'
+++ tr ' ' '\n'
+++ LC_COLLATE=C
+++ LC_COLLATE=C
+++ sort -u
+++ sort -u
+ aurconflicts=($(tr ' ' '\n' <<< ${aurconflicts[@]} | LC_COLLATE=C sort -u))
++ tr ' ' '\n'
++ LC_COLLATE=C
++ sort -u
+ NothingToDo guitar-pro
+ [[ -z guitar-pro ]]
+ return 0
+ [[ -n '' ]]
+ ReinstallChecks
+ depsAtmp=(${depsAname[@]})
+ (( i=0 ))
+ (( i<1 ))
+ [[ ! -n '' ]]
+ [[ !  guitar-pro  =~  guitar-pro  ]]
+ [[    =~  guitar-pro  ]]
+ [[ -z # ]]
+ [[ # = \# ]]
+ continue
+ (( i++ ))
+ (( i<1 ))
+ [[ -n '' ]]
+ NothingToDo guitar-pro
+ [[ -z guitar-pro ]]
+ return 0
+ OutofdateChecks
+ (( i=0 ))
+ (( i<1 ))
+ [[ 0 -gt 0 ]]
+ (( i++ ))
+ (( i<1 ))
+ Prompt
+ [[ -n '' ]]
+ (( i=0 ))
+ (( i<1 ))
+ [[ ! -n '' ]]
+ break
++ grep '^VerbosePkgLists' /etc/pacman.conf
+ [[ -n VerbosePkgLists ]]
+ strname=Name
+ stroldver='Old Version'
+ strnewver='New Version'
+ strsize='Download Size'
+ depsArepo=(${depsAname[@]/#/aur/})
++ GetLength aur/guitar-pro Name
++ local length=0
++ for i in '"$@"'
++ x=14
++ [[ 14 -gt 0 ]]
++ length=14
++ for i in '"$@"'
++ x=4
++ [[ 4 -gt 14 ]]
++ echo 14
+ lname=14
++ GetLength '#' 11621-1 'Old Version' 'New Version'
++ local length=0
++ for i in '"$@"'
++ x=1
++ [[ 1 -gt 0 ]]
++ length=1
++ for i in '"$@"'
++ x=7
++ [[ 7 -gt 1 ]]
++ length=7
++ for i in '"$@"'
++ x=11
++ [[ 11 -gt 7 ]]
++ length=11
++ for i in '"$@"'
++ x=11
++ [[ 11 -gt 11 ]]
++ echo 11
+ lver=11
++ GetLength 'Download Size'
++ local length=0
++ for i in '"$@"'
++ x=13
++ [[ 13 -gt 0 ]]
++ length=13
++ echo 13
+ lsize=13
+ (( i=0 ))
+ (( i<1 ))
+ [[ # =~ # ]]
+ unset 'depsQver[0]'
+ (( i++ ))
+ (( i<1 ))
+ printf '\n\e[1;33m%s\e[0m\n\n' 'AUR Packages  (1):'

AUR Packages  (1):

+ printf '\e[1;39m%-14s  %-11s  %-11s\e[0m\n\n' Name 'Old Version' 'New Version'
Name            Old Version  New Version

+ (( i=0 ))
+ (( i<1 ))
+ printf '%-14s  \e[1;31m%-11s\e[0m  \e[1;32m%-11s\e[0m  %13s\n' aur/guitar-pro '' 11621-1 ''
aur/guitar-pro               11621-1                   
+ (( i++ ))
+ (( i<1 ))
+ [[ -n '' ]]
+ [[ -n '' ]]
+ echo

+ [[ ! -n '' ]]
+ [[ -n true ]]
+ action=installation
+ Proceed y 'Proceed with installation?'
++ gettext pacman Y
+ Y=Y
+ y=y
++ gettext pacman N
+ N=N
+ n=n
+ case "$1" in
+ printf '\e[1;34m%s\e[0m \e[1;39m%s\e[0m' :: 'Proceed with installation? [Y/n] '
:: Proceed with installation? [Y/n] + read -n 1 answer

+ echo

+ case $answer in
+ return 0
+ DownloadPkgs
+ Note i '\e[1;39mRetrieving package(s)...\e[0m'
+ case "$1" in
+ echo -e '\e[1;34m::\e[0m \e[1;39mRetrieving package(s)...\e[0m'
:: Retrieving package(s)...
+ coweropts+=("-d")
+ DownloadAur guitar-pro
+ [[ '' != \n\e\v\e\r ]]
+ coweropts=(${coweropts[@]/auto/always})
+ read -r flag pkg info
++ cower -f --color=always -d -b guitar-pro -t /tmp/makepkg
+ case $flag in
+ [[ sync = download ]]
+ read -r flag pkg info
+ wait
+ GetPkgbase guitar-pro
++ DownloadJson guitar-pro
++ urlencodedpkgs=($(sed 's/+/%2b/g;s/@/%40/g' <<< $@))
+++ sed 's/+/%2b/g;s/@/%40/g'
+++ printf '&arg[]=%s' guitar-pro
++ urlargs='&arg[]=guitar-pro'
++ [[ 17 -lt 8125 ]]
++ curl -sfg --compressed -C 0 'https://aur.archlinux.org/rpc.php?type=multiinfo&v=4&arg[]=guitar-pro'
+ json='{"version":4,"type":"multiinfo","resultcount":1,"results":[{"ID":198478,"Name":"guitar-pro","PackageBaseID":36390,"PackageBase":"guitar-pro","Version":"11621-1","Description":"A popular tablature editor software for guitar, bass, and many other instruments.","URL":"http:\/\/www.guitar-pro.com","NumVotes":20,"Popularity":0.702789,"OutOfDate":0,"Maintainer":"M0Rf30","FirstSubmitted":1271017317,"LastModified":1434548259,"URLPath":"\/cgit\/aur.git\/snapshot\/guitar-pro.tar.gz","Depends":["gksu","glib2","libgl","libxml2","portaudio","pulseaudio","zlib","libxrender","freetype2","libpng12"],"MakeDepends":["binutils","tar"],"License":["proprietary"]}]}'
+ for i in '"$@"'
+ pkgsbase+=($(GetJson "varvar" "$json" "PackageBase" "$i"))
++ GetJson varvar '{"version":4,"type":"multiinfo","resultcount":1,"results":[{"ID":198478,"Name":"guitar-pro","PackageBaseID":36390,"PackageBase":"guitar-pro","Version":"11621-1","Description":"A popular tablature editor software for guitar, bass, and many other instruments.","URL":"http:\/\/www.guitar-pro.com","NumVotes":20,"Popularity":0.702789,"OutOfDate":0,"Maintainer":"M0Rf30","FirstSubmitted":1271017317,"LastModified":1434548259,"URLPath":"\/cgit\/aur.git\/snapshot\/guitar-pro.tar.gz","Depends":["gksu","glib2","libgl","libxml2","portaudio","pulseaudio","zlib","libxrender","freetype2","libpng12"],"MakeDepends":["binutils","tar"],"License":["proprietary"]}]}' PackageBase guitar-pro
++ json_verify -q
++ case "$1" in
++ json_reformat
++ tr -d ', '
++ sed -e '/"Name":"guitar-pro"/,/}/!d'
++ tr -d '"'
++ sed -r s/PackageBase:/PackageBase#/g
++ grep -Po 'PackageBase:.*'
++ awk -F '#' '{print $2}'
+ for i in '"${pkgsbase[@]}"'
+ [[    =~  guitar-pro  ]]
+ basepkgs+=($i)
+ EditPkgs guitar-pro
+ [[ -n '' ]]
+ for i in '"$@"'
+ [[    =~  guitar-pro  ]]
+ GetInstallScripts guitar-pro
+ [[ ! -d /tmp/makepkg/guitar-pro ]]
+ unset installscriptspath installscripts
+ installscriptspath=($(find "$builddir/$1/" -maxdepth 1 -name "*.install"))
++ find /tmp/makepkg/guitar-pro/ -maxdepth 1 -name '*.install'
+ [[ -n '' ]]
+ [[ ! -n '' ]]
+ [[ ! true = false ]]
+ Proceed y 'View guitar-pro PKGBUILD?'
++ gettext pacman Y
+ Y=Y
+ y=y
++ gettext pacman N
+ N=N
+ n=n
+ case "$1" in
+ printf '\e[1;34m%s\e[0m \e[1;39m%s\e[0m' :: 'View guitar-pro PKGBUILD? [Y/n] '
:: View guitar-pro PKGBUILD? [Y/n] + read -n 1 answer
n+ echo

+ case $answer in
+ return 1
+ [[ -n '' ]]
+ MakePkgs
+ oldorphanpkgs=($($pacmanbin -Qdtq))
++ pacman -Qdtq
+ sudo -v
+ (( i=0 ))
+ (( i<1 ))
+ (( j=0 ))
+ (( j<1 ))
+ [[ false = true ]]
+ [[ guitar-pro = \g\u\i\t\a\r\-\p\r\o ]]
+ [[ !    =~  guitar-pro  ]]
+ pkgsdeps+=(${deps[$j]})
+ (( j++ ))
+ (( j<1 ))
+ pkgsdeps+=("#")
+ (( i++ ))
+ (( i<1 ))
+ pkgsdeps=($(sed 's/ # /\n/g' <<< ${pkgsdeps[@]} | tr -d '#' | sed '/^ $/d' | tr ' ' ',' | sed 's/^,//g;s/,$//g'))
++ sed 's/ # /\n/g'
++ sed '/^ $/d'
++ tr -d '#'
++ tr ' ' ,
++ sed 's/^,//g;s/,$//g'
+ basepkgs=($(awk '{for (i=NF;i>=1;i--) print $i}' <<< ${basepkgs[@]} | awk -F "\n" '{print}'))
++ awk '{for (i=NF;i>=1;i--) print $i}'
++ awk -F '\n' '{print}'
+ pkgsdeps=($(awk '{for (i=NF;i>=1;i--) print $i}' <<< ${pkgsdeps[@]} | awk -F "\n" '{print}'))
++ awk '{for (i=NF;i>=1;i--) print $i}'
++ awk -F '\n' '{print}'
+ (( i=0 ))
+ (( i<1 ))
+ pkgsdepslist=($(awk -F "," '{for (k=1;k<=NF;k++) print $k}' <<< ${pkgsdeps[$i]}))
++ awk -F , '{for (k=1;k<=NF;k++) print $k}'
+ unset cachedpkg
++ grep -E '\-(bzr|git|hg|svn)$'
+ [[ -z '' ]]
+ for j in '"${pkgsdepslist[@]}"'
++ GetJson varvar '{"version":4,"type":"multiinfo","resultcount":1,"results":[{"ID":198478,"Name":"guitar-pro","PackageBaseID":36390,"PackageBase":"guitar-pro","Version":"11621-1","Description":"A popular tablature editor software for guitar, bass, and many other instruments.","URL":"http:\/\/www.guitar-pro.com","NumVotes":20,"Popularity":0.702789,"OutOfDate":0,"Maintainer":"M0Rf30","FirstSubmitted":1271017317,"LastModified":1434548259,"URLPath":"\/cgit\/aur.git\/snapshot\/guitar-pro.tar.gz","Depends":["gksu","glib2","libgl","libxml2","portaudio","pulseaudio","zlib","libxrender","freetype2","libpng12"],"MakeDepends":["binutils","tar"],"License":["proprietary"]}]}' Version guitar-pro
++ json_verify -q
++ case "$1" in
++ json_reformat
++ tr -d ', '
++ sed -e '/"Name":"guitar-pro"/,/}/!d'
++ sed -r s/Version:/Version#/g
++ tr -d '"'
++ awk -F '#' '{print $2}'
++ grep -Po 'Version:.*'
+ depsAver=11621-1
+ [[ -n '' ]]
+ [[ ! -n '' ]]
+ cd /tmp/makepkg/guitar-pro
+ Note i 'Checking \e[1;39mguitar-pro\e[0m integrity...'
+ case "$1" in
+ echo -e '\e[1;34m::\e[0m Checking \e[1;39mguitar-pro\e[0m integrity...'
:: Checking guitar-pro integrity...
+ [[ false = true ]]
+ makepkg -f --verifysource
==> Making package: guitar-pro 11621-1 (Wed Sep 16 20:36:42 CEST 2015)
==> Retrieving sources...
  -> Found gp6-full-linux-demo-r11621.deb
  -> Found libcrypto.so.0.9.8
  -> Found libssl.so.0.9.8
==> Validating source files with md5sums...
    gp6-full-linux-demo-r11621.deb ... Passed
    libcrypto.so.0.9.8 ... Passed
    libssl.so.0.9.8 ... Passed
+ ((  0 > 0 ))
+ makepkg -od --noprepare --skipinteg
+ (( i++ ))
+ (( i<1 ))
+ [[ -n '' ]]
+ [[ -e /tmp/stefan/pacaurtmp-stefan/build.lck ]]
+ touch /tmp/stefan/pacaurtmp-stefan/build.lck
+ [[ -n '' ]]
+ (( i=0 ))
+ (( i<1 ))
+ pkgsdepslist=($(awk -F "," '{for (k=1;k<=NF;k++) print $k}' <<< ${pkgsdeps[$i]}))
++ awk -F , '{for (k=1;k<=NF;k++) print $k}'
+ cd /tmp/makepkg/guitar-pro
+ unset aurdevelpkgsAall
++ grep -E '\-(bzr|git|hg|svn)$'
+ [[ -n '' ]]
+ for j in '"${pkgsdepslist[@]}"'
+ unset cachedpkg
+ [[ -n '' ]]
++ GetJson varvar '{"version":4,"type":"multiinfo","resultcount":1,"results":[{"ID":198478,"Name":"guitar-pro","PackageBaseID":36390,"PackageBase":"guitar-pro","Version":"11621-1","Description":"A popular tablature editor software for guitar, bass, and many other instruments.","URL":"http:\/\/www.guitar-pro.com","NumVotes":20,"Popularity":0.702789,"OutOfDate":0,"Maintainer":"M0Rf30","FirstSubmitted":1271017317,"LastModified":1434548259,"URLPath":"\/cgit\/aur.git\/snapshot\/guitar-pro.tar.gz","Depends":["gksu","glib2","libgl","libxml2","portaudio","pulseaudio","zlib","libxrender","freetype2","libpng12"],"MakeDepends":["binutils","tar"],"License":["proprietary"]}]}' Version guitar-pro
++ json_verify -q
++ case "$1" in
++ json_reformat
++ tr -d ', '
++ sed -r s/Version:/Version#/g
++ grep -Po 'Version:.*'
++ tr -d '"'
++ sed -e '/"Name":"guitar-pro"/,/}/!d'
++ awk -F '#' '{print $2}'
+ depsAver=11621-1
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ guitar-pro = \# ]]
+ Note i 'Building \e[1;39mguitar-pro\e[0m package(s)...'
+ case "$1" in
+ echo -e '\e[1;34m::\e[0m Building \e[1;39mguitar-pro\e[0m package(s)...'
:: Building guitar-pro package(s)...
+ [[ -n true ]]
+ [[ false = true ]]
+ makepkg -sfi --pkg guitar-pro
++ gettext pacman Y
+ yes Y
==> Making package: guitar-pro 11621-1 (Wed Sep 16 20:36:43 CEST 2015)
==> Checking runtime dependencies...
==> Installing missing dependencies...
:: There are 4 providers available for lib32-libgl:
:: Repository multilib
   1) lib32-mesa-libgl  2) lib32-nvidia-304xx-libgl  3) lib32-nvidia-340xx-libgl  4) lib32-nvidia-libgl

Enter a number (default=1): error: invalid number: Y

Enter a number (default=1): error: invalid number: Y

Enter a number (default=1): error: invalid number: Y

Enter a number (default=1): error: invalid number: Y
rmarquis commented 9 years ago

Found the issue: the RPC response is actually incorrect as it returns the 32 bit deps only.

Nothing I can do. You'll have to ask the maintainer to use the correct architecture dependent fields in the PKGBUILD, such as depends_x86_64 and depends_i686, or use a helper that relies on PKGBUILD parsing instead of the RPC interface.

Closing as "Invalid".

rumpelsepp commented 9 years ago

Thanks for clarification, I have reported the problem to the maintainer. :+1: