Skip to content
This repository has been archived by the owner on May 31, 2018. It is now read-only.

pacaur line 179: syntax error: invalid arithmetic operator #260

Closed
vertoe opened this issue Aug 12, 2014 · 15 comments
Closed

pacaur line 179: syntax error: invalid arithmetic operator #260

vertoe opened this issue Aug 12, 2014 · 15 comments

Comments

@vertoe
Copy link

vertoe commented Aug 12, 2014

Hi,as already reported in AUR comments, I can not update aur packages with the recent versions.
(Currently v4.2.9)
As requested here is the full output of bash -x, the issue is quite down at the end, look out for invalid arithmetic operator:

0 ✓ afri@kixel ~ $ bash -x pacaur -Syu
+ version=4.2.9
+ LC_COLLATE=C
+ TEXTDOMAIN=pacaur
+ TEXTDOMAINDIR=/usr/share/locale
+ 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
++ DEBUG_CFLAGS='-g -fvar-tracking-assignments'
++ DEBUG_CXXFLAGS='-g -fvar-tracking-assignments'
++ BUILDENV=(fakeroot !distcc color !ccache check !sign)
++ 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)
++ COMPRESSGZ=(gzip -c -f -n)
++ COMPRESSBZ2=(bzip2 -c -f)
++ COMPRESSXZ=(xz -c -z -)
++ COMPRESSLRZ=(lrzip -q)
++ COMPRESSLZO=(lzop -q)
++ COMPRESSZ=(compress -c -f)
++ PKGEXT=.pkg.tar.xz
++ SRCEXT=.src.tar.gz
+ [[ -r /home/afri/.makepkg.conf ]]
+ tmpdir=/tmp/pacaurtmp-afri
+ builddir=/tmp/pacaurtmp-afri
+ editor=vi
+ editpkgbuild=true
+ editinstall=true
+ fallback=true
+ clean=true
+ cleandevel=true
+ sudoloop=false
+ sortbyvotes=true
+ hybridsolver=false
+ pacmanbin=pacman
+ [[ -n '' ]]
+ configdir=/etc/xdg/pacaur
+ userconfigdir=/home/afri/.config/pacaur
+ source /etc/xdg/pacaur/config
+ [[ -r /home/afri/.config/pacaur/config ]]
+ [[ -d /tmp/pacaurtmp-afri ]]
+ [[ ! -w /tmp/pacaurtmp-afri ]]
+ [[ ! -d /tmp/pacaurtmp-afri ]]
+ [[ ! -d /tmp/pacaurtmp-afri ]]
+ trap ctrlc INT
+ args=("$@")
+ for i in '"${args[@]}"'
+ [[ -Syu =~ ^-[a-zA-Z0-9] ]]
+ opts+=("$i")
+ count=0
+ [[ -n -Syu ]]
+ getopts sidmykufecqrahvVDQRSTUbglnoptw-: OPT
+ pacmanarg+=("-$OPT")
+ case "$OPT" in
+ pacS=1
+ operation=sync
+ coweropts+=("-f")
+ [[ -Syu =~ w ]]
+ installpkg=true
+ [[ -Syu =~ g ]]
+ [[ -Syu =~ l ]]
+ [[ -Syu =~ 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 '' ]]
+ [[ -n 1 ]]
+ operation=sync
+ upgrade=true
+ coweropts+=("-f")
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ continue
+ getopts sidmykufecqrahvVDQRSTUbglnoptw-: OPT
+ [[ -z '' ]]
+ break
++ grep '^Color' /etc/pacman.conf
+ [[ -n '' ]]
++ grep '^Color' /etc/pacman.conf
+ [[ -z '' ]]
+ [[ '' = \a\l\w\a\y\s ]]
+ [[ '' = \a\u\t\o ]]
+ [[ '' != \a\l\w\a\y\s ]]
+ [[ '' != \a\u\t\o ]]
+ makeopts+=("--nocolor")
+ pacmanarg=(${pacmanarg[@]/--/})
+ pacmanarg=(${pacmanarg[@]/-r/})
+ pacmanarg=(${pacmanarg[@]/-a/})
+ [[ -n 1 ]]
+ pacmanarg=(${pacmanarg[@]/-e/})
+ [[ -n 1 ]]
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ [[ -n '' ]]
+ [[ ! -n vi ]]
+ [[ ! -w /tmp/pacaurtmp-afri ]]
+ [[ -z '' ]]
+ [[ sync = download ]]
+ [[ sync = sync ]]
+ [[ ! -n true ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ case $operation in
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n true ]]
+ [[ ! -n '' ]]
+ ClassifyPkgs
+ [[ true = true ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ ! -n '' ]]
+ [[ ! -n '' ]]
+ pkgs=(${pkgs[@]/aur\//})
+ repopkgs=($(LC_COLLATE=C comm -23 <(tr ' ' '\n' <<< ${pkgs[@]} | 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'
+++ LC_COLLATE=C
+++ sort -u
+++ tr ' ' '\n'
+++ LC_COLLATE=C
+++ sort -u
+ unset pkgs
+ [[ ! -n '' ]]
+ sudo pacman -S -y -u
[sudo] password for afri: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date                                                            0.0   B  0.00B/s 00:00 [------------------------------------------------------------]   0%
 community is up to date                                                        0.0   B  0.00B/s 00:00 [------------------------------------------------------------]   0%
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do
+ [[ ! -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ ! -n '' ]]
+ [[ true = true ]]
+ Core
+ 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/afri/.config/cower/config ]]
+ ignoredpkgs=(${ignoredpkgs[@]//,/ })
+ [[ -n true ]]
+ UpgradeAur
+ note i 'Starting AUR upgrade...'
+ case "$1" in
+ echo -e ':: Starting AUR upgrade...'
:: Starting AUR upgrade...
+ [[ -e /tmp/pacaurtmp-afri/ignoretmp ]]
+ rm /tmp/pacaurtmp-afri/ignoretmp
+ aurpkgs+=($(cower -u ${coweropts[@]} ${pkgs[@]} 2>"$tmpdir/ignoretmp" | sed -r "s:\x1B\[[0-9;]*[mK]::g" | awk -F " " '{print $2}'))
++ cower -u -f -f
++ sed -r 's:\x1B\[[0-9;]*[mK]::g'
++ awk -F ' ' '{print $2}'
+ [[ -e /tmp/pacaurtmp-afri/ignoretmp ]]
+ aurpkgs+=($(awk -F " " '{print $2}' "$tmpdir/ignoretmp" | sed -r "s:\x1B\[[0-9;]*[mK]::g"))
++ awk -F ' ' '{print $2}' /tmp/pacaurtmp-afri/ignoretmp
++ sed -r 's:\x1B\[[0-9;]*[mK]::g'
+ foreignpkgs=($($pacmanbin -Qmq))
++ pacman -Qmq
+ downloadjson bluez4 cachecoin-git caja-dropbox cower cpuminer-git darkcoin-git dropbox feathercoin-git google-talkplugin guisu intel-opencl-sdk laptop-mode-tools lib32-llvm-amdgpu-lib-snapshot libffi5 libmatekeyring libmatewnck litecoin-qt llvm-amdgpu-lib-snapshot mate-character-map mate-doc-utils mate-keyring obex-data-server obexd-client pacaur pip primecoin-qt protoshares-qt-git pybitmessage qt5-jsbackend rstudio-desktop-git skype4pidgin speedcrunch spideroak teamviewer
+ aururl='https://aur.archlinux.org/rpc.php?type=multiinfo&v=3'
+ urlencodedpkgs=($(sed 's/+/%2b/g' <<< $@ | sed 's/@/%40/g'))
++ sed s/+/%2b/g
++ sed s/@/%40/g
++ printf '&arg[]=%s' bluez4 cachecoin-git caja-dropbox cower cpuminer-git darkcoin-git dropbox feathercoin-git google-talkplugin guisu intel-opencl-sdk laptop-mode-tools lib32-llvm-amdgpu-lib-snapshot libffi5 libmatekeyring libmatewnck litecoin-qt llvm-amdgpu-lib-snapshot mate-character-map mate-doc-utils mate-keyring obex-data-server obexd-client pacaur pip primecoin-qt protoshares-qt-git pybitmessage qt5-jsbackend rstudio-desktop-git skype4pidgin speedcrunch spideroak teamviewer
+ urlargs='&arg[]=bluez4&arg[]=cachecoin-git&arg[]=caja-dropbox&arg[]=cower&arg[]=cpuminer-git&arg[]=darkcoin-git&arg[]=dropbox&arg[]=feathercoin-git&arg[]=google-talkplugin&arg[]=guisu&arg[]=intel-opencl-sdk&arg[]=laptop-mode-tools&arg[]=lib32-llvm-amdgpu-lib-snapshot&arg[]=libffi5&arg[]=libmatekeyring&arg[]=libmatewnck&arg[]=litecoin-qt&arg[]=llvm-amdgpu-lib-snapshot&arg[]=mate-character-map&arg[]=mate-doc-utils&arg[]=mate-keyring&arg[]=obex-data-server&arg[]=obexd-client&arg[]=pacaur&arg[]=pip&arg[]=primecoin-qt&arg[]=protoshares-qt-git&arg[]=pybitmessage&arg[]=qt5-jsbackend&arg[]=rstudio-desktop-git&arg[]=skype4pidgin&arg[]=speedcrunch&arg[]=spideroak&arg[]=teamviewer'
+ [[ 669 -lt 8125 ]]
+ curl -sfg --compressed -C 0 'https://aur.archlinux.org/rpc.php?type=multiinfo&v=3&arg[]=bluez4&arg[]=cachecoin-git&arg[]=caja-dropbox&arg[]=cower&arg[]=cpuminer-git&arg[]=darkcoin-git&arg[]=dropbox&arg[]=feathercoin-git&arg[]=google-talkplugin&arg[]=guisu&arg[]=intel-opencl-sdk&arg[]=laptop-mode-tools&arg[]=lib32-llvm-amdgpu-lib-snapshot&arg[]=libffi5&arg[]=libmatekeyring&arg[]=libmatewnck&arg[]=litecoin-qt&arg[]=llvm-amdgpu-lib-snapshot&arg[]=mate-character-map&arg[]=mate-doc-utils&arg[]=mate-keyring&arg[]=obex-data-server&arg[]=obexd-client&arg[]=pacaur&arg[]=pip&arg[]=primecoin-qt&arg[]=protoshares-qt-git&arg[]=pybitmessage&arg[]=qt5-jsbackend&arg[]=rstudio-desktop-git&arg[]=skype4pidgin&arg[]=speedcrunch&arg[]=spideroak&arg[]=teamviewer' -o /tmp/pacaurtmp-afri/rpc.json
+ allaurpkgs=($(getjsonvar "Name"))
++ getjsonvar Name
++ json_reformat
++ tr -d '", '
++ grep -Po 'Name:.*'
++ sed -r s/Name:/Name#/g
++ awk -F '#' '{print $2}'
+ aurforeignpkgs=($(LC_COLLATE=C comm -23 <(tr ' ' '\n' <<< ${foreignpkgs[@]} | LC_COLLATE=C sort -u) <(tr ' ' '\n' <<< ${allaurpkgs[@]} | LC_COLLATE=C sort -u)))
++ LC_COLLATE=C
++ comm -23 /dev/fd/63 /dev/fd/62
+++ tr ' ' '\n'
+++ LC_COLLATE=C
+++ sort -u
+++ LC_COLLATE=C
+++ sort -u
+++ tr ' ' '\n'
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'bluez4 is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: bluez4 is not present in AUR -- skipping'
:: bluez4 is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'cachecoin-git is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: cachecoin-git is not present in AUR -- skipping'
:: cachecoin-git is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'caja-dropbox is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: caja-dropbox is not present in AUR -- skipping'
:: caja-dropbox is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'cower is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: cower is not present in AUR -- skipping'
:: cower is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'cpuminer-git is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: cpuminer-git is not present in AUR -- skipping'
:: cpuminer-git is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'darkcoin-git is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: darkcoin-git is not present in AUR -- skipping'
:: darkcoin-git is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'dropbox is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: dropbox is not present in AUR -- skipping'
:: dropbox is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'feathercoin-git is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: feathercoin-git is not present in AUR -- skipping'
:: feathercoin-git is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'google-talkplugin is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: google-talkplugin is not present in AUR -- skipping'
:: google-talkplugin is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'guisu is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: guisu is not present in AUR -- skipping'
:: guisu is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'intel-opencl-sdk is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: intel-opencl-sdk is not present in AUR -- skipping'
:: intel-opencl-sdk is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'laptop-mode-tools is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: laptop-mode-tools is not present in AUR -- skipping'
:: laptop-mode-tools is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'lib32-llvm-amdgpu-lib-snapshot is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: lib32-llvm-amdgpu-lib-snapshot is not present in AUR -- skipping'
:: lib32-llvm-amdgpu-lib-snapshot is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'libffi5 is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: libffi5 is not present in AUR -- skipping'
:: libffi5 is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'libmatekeyring is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: libmatekeyring is not present in AUR -- skipping'
:: libmatekeyring is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'libmatewnck is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: libmatewnck is not present in AUR -- skipping'
:: libmatewnck is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'litecoin-qt is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: litecoin-qt is not present in AUR -- skipping'
:: litecoin-qt is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'llvm-amdgpu-lib-snapshot is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: llvm-amdgpu-lib-snapshot is not present in AUR -- skipping'
:: llvm-amdgpu-lib-snapshot is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'mate-character-map is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: mate-character-map is not present in AUR -- skipping'
:: mate-character-map is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'mate-doc-utils is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: mate-doc-utils is not present in AUR -- skipping'
:: mate-doc-utils is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'mate-keyring is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: mate-keyring is not present in AUR -- skipping'
:: mate-keyring is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'obex-data-server is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: obex-data-server is not present in AUR -- skipping'
:: obex-data-server is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'obexd-client is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: obexd-client is not present in AUR -- skipping'
:: obexd-client is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'pacaur is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: pacaur is not present in AUR -- skipping'
:: pacaur is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'pip is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: pip is not present in AUR -- skipping'
:: pip is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'primecoin-qt is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: primecoin-qt is not present in AUR -- skipping'
:: primecoin-qt is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'protoshares-qt-git is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: protoshares-qt-git is not present in AUR -- skipping'
:: protoshares-qt-git is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'pybitmessage is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: pybitmessage is not present in AUR -- skipping'
:: pybitmessage is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'qt5-jsbackend is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: qt5-jsbackend is not present in AUR -- skipping'
:: qt5-jsbackend is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'rstudio-desktop-git is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: rstudio-desktop-git is not present in AUR -- skipping'
:: rstudio-desktop-git is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'skype4pidgin is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: skype4pidgin is not present in AUR -- skipping'
:: skype4pidgin is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'speedcrunch is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: speedcrunch is not present in AUR -- skipping'
:: speedcrunch is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'spideroak is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: spideroak is not present in AUR -- skipping'
:: spideroak is not present in AUR -- skipping
+ for i in '"${aurforeignpkgs[@]}"'
+ note w 'teamviewer is not present in AUR -- skipping'
+ case "$1" in
+ echo -e ':: teamviewer is not present in AUR -- skipping'
:: teamviewer is not present in AUR -- skipping
+ [[ -n '' ]]
+ aurpkgs=($(tr ' ' '\n' <<< ${aurpkgs[@]} | sort -u))
++ tr ' ' '\n'
++ sort -u
+ nothingtodo bluez4 cachecoin-git caja-dropbox dropbox pybitmessage rstudio-desktop-git spideroak
+ [[ -z bluez4 cachecoin-git caja-dropbox dropbox pybitmessage rstudio-desktop-git spideroak ]]
+ return 0
+ IgnoreChecks
+ [[ -z '' ]]
+ return
+ DepsSolver
+ note i 'resolving dependencies...'
+ case "$1" in
+ echo -e ':: resolving dependencies...'
:: resolving dependencies...
+ (( i=0 ))
+ (( i<7 ))
++ awk -F '>|<|=' '{print $1}'
+ aurpkgs[$i]=bluez4
+ (( i++ ))
+ (( i<7 ))
++ awk -F '>|<|=' '{print $1}'
+ aurpkgs[$i]=cachecoin-git
+ (( i++ ))
+ (( i<7 ))
++ awk -F '>|<|=' '{print $1}'
+ aurpkgs[$i]=caja-dropbox
+ (( i++ ))
+ (( i<7 ))
++ awk -F '>|<|=' '{print $1}'
+ aurpkgs[$i]=dropbox
+ (( i++ ))
+ (( i<7 ))
++ awk -F '>|<|=' '{print $1}'
+ aurpkgs[$i]=pybitmessage
+ (( i++ ))
+ (( i<7 ))
++ awk -F '>|<|=' '{print $1}'
+ aurpkgs[$i]=rstudio-desktop-git
+ (( i++ ))
+ (( i<7 ))
++ awk -F '>|<|=' '{print $1}'
+ aurpkgs[$i]=spideroak
+ (( i++ ))
+ (( i<7 ))
+ allaurdeps+=("${aurpkgs[@]}")
+ FindDepsAur bluez4 cachecoin-git caja-dropbox dropbox pybitmessage rstudio-desktop-git spideroak
+ [[ -n '' ]]
+ [[ -z '' ]]
+ depspkgsaur=("${aurpkgs[@]}")
+ downloadjson bluez4 cachecoin-git caja-dropbox dropbox pybitmessage rstudio-desktop-git spideroak
+ aururl='https://aur.archlinux.org/rpc.php?type=multiinfo&v=3'
+ urlencodedpkgs=($(sed 's/+/%2b/g' <<< $@ | sed 's/@/%40/g'))
++ sed s/+/%2b/g
++ sed s/@/%40/g
++ printf '&arg[]=%s' bluez4 cachecoin-git caja-dropbox dropbox pybitmessage rstudio-desktop-git spideroak
+ urlargs='&arg[]=bluez4&arg[]=cachecoin-git&arg[]=caja-dropbox&arg[]=dropbox&arg[]=pybitmessage&arg[]=rstudio-desktop-git&arg[]=spideroak'
+ [[ 127 -lt 8125 ]]
+ curl -sfg --compressed -C 0 'https://aur.archlinux.org/rpc.php?type=multiinfo&v=3&arg[]=bluez4&arg[]=cachecoin-git&arg[]=caja-dropbox&arg[]=dropbox&arg[]=pybitmessage&arg[]=rstudio-desktop-git&arg[]=spideroak' -o /tmp/pacaurtmp-afri/rpc.json
+ errdeps+=($(LC_COLLATE=C comm -3 <(tr ' ' '\n' <<< $(getjsonvar "Name") | sort -u) <(tr ' ' '\n' <<< ${depspkgsaur[@]} | sort -u)))
++ LC_COLLATE=C
++ comm -3 /dev/fd/63 /dev/fd/62
+++ tr ' ' '\n'
+++ sort -u
+++ tr ' ' '\n'
+++ sort -u
++++ getjsonvar Name
++++ json_reformat
++++ sed -r s/Name:/Name#/g
++++ awk -F '#' '{print $2}'
++++ grep -Po 'Name:.*'
++++ tr -d '", '
+ depspkgs=($(getjsonarray "Depends"))
++ getjsonarray Depends
++ json_reformat
++ sed -e '/^"Depends"/,/]/!d'
++ tr -d '\"'
++ tr '\n' ' '
++ tr -d '[]"'
++ sed 's/] /]\n/g'
++ tr -d '\n'
++ awk -F : '{print $2}'
++ tr -d ', '
+ depspkgs+=($(getjsonarray "MakeDepends"))
++ getjsonarray MakeDepends
++ json_reformat
++ tr -d ', '
++ sed -e '/^"MakeDepends"/,/]/!d'
++ tr '\n' ' '
++ sed 's/] /]\n/g'
++ tr -d '[]"'
++ tr -d '\n'
++ awk -F : '{print $2}'
++ tr -d '\"'
+ [[ false = true ]]
+ depspkgs=($($pacmanbin -T "${depspkgs[@]}" | sort -u))
++ sort -u
++ pacman -T dbus bluez-utils 'qt4>=4.6' 'boost-libs>=1.46' 'miniupnpc>=1.6' caja glib2 libnotify polkit procps pygtk xdg-utils dbus-glib gtk2 libsm openssl python2 python2-pyqt4 qt4 sqlite gmp4 libffi5 'r>=2.11.1' qtwebkit shared-mime-info 'boost-libs>=1.5' gstreamer0.10-base libusb-compat libsndfile libusbx git boost gcc make automoc4 mate-common python2-docutils git 'cmake>=2.8' 'boost>=1.5' jdk7-openjdk apache-ant unzip openssl pango pam wget desktop-file-utils
+ unset deps depspkgsaur
+ [[ -n apache-ant gmp4 ]]
+ [[ -n '' ]]
+ depspkgsaur=($($pacmanbin -Sp "${depspkgs[@]}" 2>&1 >/dev/null | awk -F " " '{print $NF}'))
++ pacman -Sp apache-ant gmp4
++ awk -F ' ' '{print $NF}'
+ repodeps+=($(LC_COLLATE=C comm -23 <(tr ' ' '\n' <<< ${depspkgs[@]} | LC_COLLATE=C sort -u)  <(tr ' ' '\n' <<< ${depspkgsaur[@]} | LC_COLLATE=C sort -u)))
++ LC_COLLATE=C
++ comm -23 /dev/fd/63 /dev/fd/62
+++ LC_COLLATE=C
+++ sort -u
+++ tr ' ' '\n'
+++ LC_COLLATE=C
+++ sort -u
+++ tr ' ' '\n'
+ unset depspkgs
+ [[ -n gmp4 ]]
+ (( i=0 ))
+ (( i<1 ))
++ awk -F '>|<|=' '{print $1}'
+ depspkgsaur[$i]=gmp4
+ (( i++ ))
+ (( i<1 ))
+ depspkgsaur=($(tr ' ' '\n' <<< ${depspkgsaur[@]} | sort -u))
++ tr ' ' '\n'
++ sort -u
+ (( i=0 ))
+ (( i<1 ))
+ [[  bluez4 cachecoin-git caja-dropbox dropbox pybitmessage rstudio-desktop-git spideroak  =~  gmp4  ]]
+ (( i++ ))
+ (( i<1 ))
+ [[ -n gmp4 ]]
+ allaurdeps+=("${depspkgsaur[@]}")
+ FindDepsAur gmp4
+ [[ -n '' ]]
+ [[ -z gmp4 ]]
+ downloadjson gmp4
+ aururl='https://aur.archlinux.org/rpc.php?type=multiinfo&v=3'
+ urlencodedpkgs=($(sed 's/+/%2b/g' <<< $@ | sed 's/@/%40/g'))
++ sed s/+/%2b/g
++ sed s/@/%40/g
++ printf '&arg[]=%s' gmp4
+ urlargs='&arg[]=gmp4'
+ [[ 11 -lt 8125 ]]
+ curl -sfg --compressed -C 0 'https://aur.archlinux.org/rpc.php?type=multiinfo&v=3&arg[]=gmp4' -o /tmp/pacaurtmp-afri/rpc.json
+ errdeps+=($(LC_COLLATE=C comm -3 <(tr ' ' '\n' <<< $(getjsonvar "Name") | sort -u) <(tr ' ' '\n' <<< ${depspkgsaur[@]} | sort -u)))
++ LC_COLLATE=C
++ comm -3 /dev/fd/63 /dev/fd/62
+++ tr ' ' '\n'
+++ tr ' ' '\n'
+++ sort -u
++++ getjsonvar Name
++++ json_reformat
+++ sort -u
++++ tr -d '", '
++++ grep -Po 'Name:.*'
++++ awk -F '#' '{print $2}'
++++ sed -r s/Name:/Name#/g
+ depspkgs=($(getjsonarray "Depends"))
++ getjsonarray Depends
++ json_reformat
++ tr -d ', '
++ sed -e '/^"Depends"/,/]/!d'
++ tr -d '\"'
++ tr -d '[]"'
++ tr '\n' ' '
++ tr -d '\n'
++ sed 's/] /]\n/g'
++ awk -F : '{print $2}'
+ depspkgs+=($(getjsonarray "MakeDepends"))
++ getjsonarray MakeDepends
++ json_reformat
++ tr -d ', '
++ sed -e '/^"MakeDepends"/,/]/!d'
++ tr -d '\"'
++ tr '\n' ' '
++ sed 's/] /]\n/g'
++ awk -F : '{print $2}'
++ tr -d '\n'
++ tr -d '[]"'
+ [[ false = true ]]
+ depspkgs=($($pacmanbin -T "${depspkgs[@]}" | sort -u))
++ pacman -T gcc-libs sh
++ sort -u
+ unset deps depspkgsaur
+ [[ -n '' ]]
+ unset depspkgs
+ [[ -n '' ]]
+ [[ -n '' ]]
+ deps=("${allaurdeps[@]}")
+ downloadjson bluez4 cachecoin-git caja-dropbox dropbox pybitmessage rstudio-desktop-git spideroak gmp4
+ aururl='https://aur.archlinux.org/rpc.php?type=multiinfo&v=3'
+ urlencodedpkgs=($(sed 's/+/%2b/g' <<< $@ | sed 's/@/%40/g'))
++ sed s/+/%2b/g
++ sed s/@/%40/g
++ printf '&arg[]=%s' bluez4 cachecoin-git caja-dropbox dropbox pybitmessage rstudio-desktop-git spideroak gmp4
+ urlargs='&arg[]=bluez4&arg[]=cachecoin-git&arg[]=caja-dropbox&arg[]=dropbox&arg[]=pybitmessage&arg[]=rstudio-desktop-git&arg[]=spideroak&arg[]=gmp4'
+ [[ 138 -lt 8125 ]]
+ curl -sfg --compressed -C 0 'https://aur.archlinux.org/rpc.php?type=multiinfo&v=3&arg[]=bluez4&arg[]=cachecoin-git&arg[]=caja-dropbox&arg[]=dropbox&arg[]=pybitmessage&arg[]=rstudio-desktop-git&arg[]=spideroak&arg[]=gmp4' -o /tmp/pacaurtmp-afri/rpc.json
+ depsAname=($(getjsonvar "Name"))
++ getjsonvar Name
++ json_reformat
++ tr -d '", '
++ grep -Po 'Name:.*'
++ sed -r s/Name:/Name#/g
++ awk -F '#' '{print $2}'
+ depsAver=($(getjsonvar "Version"))
++ getjsonvar Version
++ json_reformat
++ tr -d '", '
++ grep -Po 'Version:.*'
++ sed -r s/Version:/Version#/g
++ awk -F '#' '{print $2}'
+ depsAood=($(getjsonvar "OutOfDate"))
++ getjsonvar OutOfDate
++ json_reformat
++ tr -d '", '
++ sed -r s/OutOfDate:/OutOfDate#/g
++ grep -Po 'OutOfDate:.*'
++ awk -F '#' '{print $2}'
+ (( i=0 ))
+ (( i<8 ))
++ expac -Qs %v '^bluez4$'
+ depsQver[$i]=
+ [[ -z '' ]]
+ depsQver[$i]='#'
++ grep -E '\-(cvs|svn|git|hg|bzr|darcs)$'
+ [[ -n '' ]]
+ (( i++ ))
+ (( i<8 ))
++ expac -Qs %v '^cachecoin-git$'
+ depsQver[$i]=
+ [[ -z '' ]]
+ depsQver[$i]='#'
++ grep -E '\-(cvs|svn|git|hg|bzr|darcs)$'
+ [[ -n '' ]]
+ (( i++ ))
+ (( i<8 ))
++ expac -Qs %v '^caja-dropbox$'
+ depsQver[$i]=
+ [[ -z '' ]]
+ depsQver[$i]='#'
++ grep -E '\-(cvs|svn|git|hg|bzr|darcs)$'
+ [[ -n '' ]]
+ (( i++ ))
+ (( i<8 ))
++ expac -Qs %v '^dropbox$'
+ depsQver[$i]=
+ [[ -z '' ]]
+ depsQver[$i]='#'
++ grep -E '\-(cvs|svn|git|hg|bzr|darcs)$'
+ [[ -n '' ]]
+ (( i++ ))
+ (( i<8 ))
++ expac -Qs %v '^gmp4$'
+ depsQver[$i]=
+ [[ -z '' ]]
+ depsQver[$i]='#'
++ grep -E '\-(cvs|svn|git|hg|bzr|darcs)$'
+ [[ -n '' ]]
+ (( i++ ))
+ (( i<8 ))
++ expac -Qs %v '^pybitmessage$'
+ depsQver[$i]=
+ [[ -z '' ]]
+ depsQver[$i]='#'
++ grep -E '\-(cvs|svn|git|hg|bzr|darcs)$'
+ [[ -n '' ]]
+ (( i++ ))
+ (( i<8 ))
++ expac -Qs %v '^rstudio-desktop-git$'
+ depsQver[$i]=
+ [[ -z '' ]]
+ depsQver[$i]='#'
++ grep -E '\-(cvs|svn|git|hg|bzr|darcs)$'
+ [[ -n '' ]]
+ (( i++ ))
+ (( i<8 ))
++ expac -Qs %v '^spideroak$'
+ depsQver[$i]=
+ [[ -z '' ]]
+ depsQver[$i]='#'
++ grep -E '\-(cvs|svn|git|hg|bzr|darcs)$'
+ [[ -n '' ]]
+ (( i++ ))
+ (( i<8 ))
+ [[ false = false ]]
+ depsAlastmodified=($(getjsonvar "LastModified"))
++ getjsonvar LastModified
++ json_reformat
++ tr -d '", '
++ grep -Po 'LastModified:.*'
++ sed -r s/LastModified:/LastModified#/g
++ awk -F '#' '{print $2}'
+ (( i=0 ))
+ (( i<8 ))
+ [[ 1404311667 -lt 1401215749 ]]
/usr/bin/pacaur: line 179: 1404311667: syntax error: invalid arithmetic operator (error token is "")
+ (( i++ ))
+ (( i<8 ))
+ [[ 1405945826 -lt 1401215749 ]]
/usr/bin/pacaur: line 179: 1405945826: syntax error: invalid arithmetic operator (error token is "")
+ (( i++ ))
+ (( i<8 ))
+ [[ 1406628774 -lt 1401215749 ]]
/usr/bin/pacaur: line 179: 1406628774: syntax error: invalid arithmetic operator (error token is "")
+ (( i++ ))
+ (( i<8 ))
+ [[ 1406884468 -lt 1401215749 ]]
/usr/bin/pacaur: line 179: 1406884468: syntax error: invalid arithmetic operator (error token is "")
+ (( i++ ))
+ (( i<8 ))
+ [[ 1394023466 -lt 1401215749 ]]
/usr/bin/pacaur: line 179: 1394023466: syntax error: invalid arithmetic operator (error token is "")
+ (( i++ ))
+ (( i<8 ))
+ [[ 1407443457 -lt 1401215749 ]]
/usr/bin/pacaur: line 179: 1407443457: syntax error: invalid arithmetic operator (error token is "")
+ (( i++ ))
+ (( i<8 ))
+ [[ 1407136644 -lt 1401215749 ]]
/usr/bin/pacaur: line 179: 1407136644: syntax error: invalid arithmetic operator (error token is "")
+ (( i++ ))
+ (( i<8 ))
+ [[ 1404951948 -lt 1401215749 ]]
/usr/bin/pacaur: line 179: 1404951948: syntax error: invalid arithmetic operator (error token is "")
+ (( i++ ))
+ (( i<8 ))
+ for i in '"${errdeps[@]}"'
+ note f 'no results found for bluez4'
+ case "$1" in
+ echo -e ':: no results found for bluez4'
:: no results found for bluez4
+ for i in '"${errdeps[@]}"'
+ note f 'no results found for bluez4'
+ case "$1" in
+ echo -e ':: no results found for bluez4'
:: no results found for bluez4
+ for i in '"${errdeps[@]}"'
+ note f 'no results found for cachecoin-git'
+ case "$1" in
+ echo -e ':: no results found for cachecoin-git'
:: no results found for cachecoin-git
+ for i in '"${errdeps[@]}"'
+ note f 'no results found for cachecoin-git'
+ case "$1" in
+ echo -e ':: no results found for cachecoin-git'
:: no results found for cachecoin-git
+ for i in '"${errdeps[@]}"'
+ note f 'no results found for caja-dropbox'
+ case "$1" in
+ echo -e ':: no results found for caja-dropbox'
:: no results found for caja-dropbox
+ for i in '"${errdeps[@]}"'
+ note f 'no results found for caja-dropbox'
+ case "$1" in
+ echo -e ':: no results found for caja-dropbox'
:: no results found for caja-dropbox
+ for i in '"${errdeps[@]}"'
+ note f 'no results found for dropbox'
+ case "$1" in
+ echo -e ':: no results found for dropbox'
:: no results found for dropbox
+ for i in '"${errdeps[@]}"'
+ note f 'no results found for dropbox'
+ case "$1" in
+ echo -e ':: no results found for dropbox'
:: no results found for dropbox
+ for i in '"${errdeps[@]}"'
+ note f 'no results found for pybitmessage'
+ case "$1" in
+ echo -e ':: no results found for pybitmessage'
:: no results found for pybitmessage
+ for i in '"${errdeps[@]}"'
+ note f 'no results found for pybitmessage'
+ case "$1" in
+ echo -e ':: no results found for pybitmessage'
:: no results found for pybitmessage
+ for i in '"${errdeps[@]}"'
+ note f 'no results found for rstudio-desktop-git'
+ case "$1" in
+ echo -e ':: no results found for rstudio-desktop-git'
:: no results found for rstudio-desktop-git
+ for i in '"${errdeps[@]}"'
+ note f 'no results found for rstudio-desktop-git'
+ case "$1" in
+ echo -e ':: no results found for rstudio-desktop-git'
:: no results found for rstudio-desktop-git
+ for i in '"${errdeps[@]}"'
+ note f 'no results found for spideroak'
+ case "$1" in
+ echo -e ':: no results found for spideroak'
:: no results found for spideroak
+ for i in '"${errdeps[@]}"'
+ note f 'no results found for spideroak'
+ case "$1" in
+ echo -e ':: no results found for spideroak'
:: no results found for spideroak
+ for i in '"${errdeps[@]}"'
+ note f 'no results found for gmp4'
+ case "$1" in
+ echo -e ':: no results found for gmp4'
:: no results found for gmp4
+ for i in '"${errdeps[@]}"'
+ note f 'no results found for gmp4'
+ case "$1" in
+ echo -e ':: no results found for gmp4'
:: no results found for gmp4
+ [[ -n bluez4 bluez4 cachecoin-git cachecoin-git caja-dropbox caja-dropbox dropbox dropbox pybitmessage pybitmessage rstudio-desktop-git rstudio-desktop-git spideroak spideroak gmp4 gmp4 ]]
+ exit 1
@rmarquis
Copy link
Owner

Thanks. I don't know why the "invalid arithmetic operator" error happens, but it seems something goes wrong prior to this. The output seems to have lot of "package is not present in AUR -- skipping" that shouldn't be displayed at all.

Please check the output of "cower -u". Also, have a look at the "/tmp/pacaurtmp-afri/rpc.json" file. Its content should be similar to this.

@rmarquis rmarquis added this to the 4.2.x - maintenance milestone Aug 12, 2014
@rmarquis rmarquis added the bug label Aug 12, 2014
@vertoe
Copy link
Author

vertoe commented Aug 13, 2014

This is my /tmp/pacaur-afri/rpc.json:

{"version":3,"type":"multiinfo","resultcount":8,"results":[{"ID":92374,"Name":"bluez4","PackageBaseID":75681,"PackageBase":"bluez4","Version":"4.101-5","CategoryID":1,"Description":"Deprecated daemon and tools for the Bluetooth protocol stack","URL":"http:\/\/www.bluez.org\/","NumVotes":27,"OutOfDate":0,"Maintainer":"felixonmars","FirstSubmitted":1385374425,"LastModified":1404311667,"URLPath":"\/packages\/bl\/bluez4\/bluez4.tar.gz","Depends":["dbus","bluez-utils"],"MakeDepends":["gstreamer0.10-base","libusb-compat","libsndfile","libusbx"],"OptDepends":["gstreamer0.10-base: bluetooth GStreamer support","alsa-lib: Audio bluetooth devices support","python2: to run bluez-simple-agent","python2-dbus: to run bluez-simple-agent","python2-gobject2: to run bluez-simple-agent","libusb-compat: USB adapters support","cups: CUPS backend"],"Conflicts":["bluez","bluez-cups"],"Replaces":["bluez<=4.101"],"License":["GPL2"]},{"ID":96808,"Name":"cachecoin-git","PackageBaseID":80432,"PackageBase":"cachecoin-git","Version":"1:100.02e544b-1","CategoryID":13,"Description":"Cachecoin is a peer-to-peer network-based digital currency (git version).","URL":"http:\/\/cachecoin.org\/","NumVotes":1,"OutOfDate":0,"Maintainer":"vertoe","FirstSubmitted":1396190720,"LastModified":1405945826,"URLPath":"\/packages\/ca\/cachecoin-git\/cachecoin-git.tar.gz","Depends":["qt4>=4.6","boost-libs>=1.46","miniupnpc>=1.6"],"MakeDepends":["git","boost","gcc","make","automoc4"],"Provides":["cachecoin"],"License":["MIT"]},{"ID":98537,"Name":"caja-dropbox","PackageBaseID":57463,"PackageBase":"caja-dropbox","Version":"1.8.0-1","CategoryID":10,"Description":"Dropbox for Linux - Caja extension","URL":"http:\/\/forums.dropbox.com\/topic.php?id=21111","NumVotes":20,"OutOfDate":0,"Maintainer":"flexiondotorg","FirstSubmitted":1331334753,"LastModified":1406628774,"URLPath":"\/packages\/ca\/caja-dropbox\/caja-dropbox.tar.gz","Depends":["caja","glib2","libnotify","polkit","procps","pygtk","xdg-utils"],"MakeDepends":["mate-common","python2-docutils"],"OptDepends":["dropbox: Dropbox support"],"License":["GPL","custom:CC-BY-ND-3"]},{"ID":99266,"Name":"dropbox","PackageBaseID":23363,"PackageBase":"dropbox","Version":"2.10.27-1","CategoryID":13,"Description":"A free service that lets you bring your photos, docs, and videos anywhere and share them easily.","URL":"http:\/\/www.dropbox.com","NumVotes":2322,"OutOfDate":1407592390,"Maintainer":"mtorromeo","FirstSubmitted":1232634085,"LastModified":1406884468,"URLPath":"\/packages\/dr\/dropbox\/dropbox.tar.gz","Depends":["dbus-glib","gtk2","libsm"],"OptDepends":["ufw-extras: ufw rules for dropbox","perl-file-mimeinfo: opening dropbox folder on some desktop environments"],"Conflicts":["dropbox-experimental"],"License":["custom"]},{"ID":36512,"Name":"gmp4","PackageBaseID":36512,"PackageBase":"gmp4","Version":"5.1.3-1","CategoryID":10,"Description":"Legacy version of gmp.  Provides libgmp.so.3","URL":"http:\/\/gmplib.org\/","NumVotes":32,"OutOfDate":1395081113,"Maintainer":"jmh92","FirstSubmitted":1271413422,"LastModified":1394023466,"URLPath":"\/packages\/gm\/gmp4\/gmp4.tar.gz","Depends":["gcc-libs","sh"],"License":["LGPL3"]},{"ID":100758,"Name":"pybitmessage","PackageBaseID":73912,"PackageBase":"pybitmessage","Version":"0.4.3-1","CategoryID":14,"Description":"Decentralized and trustless P2P communications protocol for sending encrypted messages to another person or to many subscribers","URL":"https:\/\/github.com\/Bitmessage\/PyBitmessage","NumVotes":23,"OutOfDate":0,"Maintainer":"kurnevsky","FirstSubmitted":1380556367,"LastModified":1407443457,"URLPath":"\/packages\/py\/pybitmessage\/pybitmessage.tar.gz","Depends":["openssl","python2","python2-pyqt4","qt4","sqlite"],"OptDepends":["mpg123: MP3 sounds support","alsa-utils: WAV sounds support"],"Conflicts":["pybitmessage-git"],"Provides":["pybitmessage"],"License":["MIT"]},{"ID":99889,"Name":"rstudio-desktop-git","PackageBaseID":47225,"PackageBase":"rstudio-desktop-git","Version":"0.98.996-1","CategoryID":15,"Description":"A powerful and productive integrated development environment (IDE) for R programming language","URL":"http:\/\/www.rstudio.org\/","NumVotes":35,"OutOfDate":0,"Maintainer":"unikum","FirstSubmitted":1299651203,"LastModified":1407136644,"URLPath":"\/packages\/rs\/rstudio-desktop-git\/rstudio-desktop-git.tar.gz","Depends":["gmp4","libffi5","r>=2.11.1","qtwebkit","shared-mime-info","boost-libs>=1.5"],"MakeDepends":["git","cmake>=2.8","boost>=1.5","jdk7-openjdk","apache-ant","unzip","openssl","pango","pam","wget"],"OptDepends":["git: for git support","subversion: for subversion suuport","openssh-askpass: for a git ssh access"],"Conflicts":["rstudio-desktop","rstudio-desktop-bin"],"Provides":["rstudio-desktop","rstudio-desktop-bin"],"License":["AGPL3"]},{"ID":94257,"Name":"spideroak","PackageBaseID":24401,"PackageBase":"spideroak","Version":"5.1.6-1","CategoryID":13,"Description":"Secure file backup, sync and sharing client","URL":"https:\/\/spideroak.com\/","NumVotes":245,"OutOfDate":0,"Maintainer":"coolpyrofreak","FirstSubmitted":1236110703,"LastModified":1404951948,"URLPath":"\/packages\/sp\/spideroak\/spideroak.tar.gz","MakeDepends":["desktop-file-utils"],"Conflicts":["spideroak-beta"],"Provides":["spideroak"],"License":["custom"]}]}

This is cower -u:

0 ✓ afri@kixel ~ $ cower -u
:: bluez4 4.101-4 -> 4.101-5
:: dropbox 2.8.4-1 -> 2.10.27-1
:: caja-dropbox 1.7.90-1 -> 1.8.0-1
:: cachecoin-git 1:71.ff8a44d-1 -> 1:100.02e544b-1
:: pybitmessage 0.4.2-3 -> 0.4.3-1
:: rstudio-desktop-git 0.98.309-1 -> 0.98.996-1
:: spideroak 5.1.5-1 -> 5.1.6-1

@rmarquis
Copy link
Owner

These cower and json outputs seem correct. To be honest, I am totally clueless about what's going on. You're the only one that seem affected by this strange behavior, so I guess there is something specific to your setting/machine that prevents pacaur to work as expected.

There might also be more than one issues, but let's have a look at the first one to begin.

Could you add the following lines in /usr/bin/pacaur, between lines 101 and 102 (just before the for loop)?

echo DEBUG ${foreignpkgs[@]}
echo DEBUG ${allaurpkgs[@]}
echo DEBUG ${aurforeignpkgs[@]}

Then run "pacaur -Syua", and paste the 3 DEBUG lines that should now appear. Also, do you still have the "packagename is not present in AUR - skipping" warning messages?

@vertoe
Copy link
Author

vertoe commented Aug 13, 2014

Yes, no change.

1 ✗ afri@kixel ~ $ pacaur -Syua
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting AUR upgrade...
DEBUG bluez4 cachecoin-git caja-dropbox cower cpuminer-git darkcoin-git dropbox feathercoin-git google-talkplugin guisu intel-opencl-sdk laptop-mode-tools lib32-llvm-amdgpu-lib-snapshot libffi5 libmatekeyring libmatewnck litecoin-qt llvm-amdgpu-lib-snapshot mate-character-map mate-doc-utils mate-keyring obex-data-server obexd-client pacaur pip primecoin-qt protoshares-qt-git pybitmessage qt5-jsbackend rstudio-desktop-git skype4pidgin speedcrunch spideroak teamviewer
DEBUG bluez4 cachecoin-git caja-dropbox cower cpuminer-git darkcoin-git dropbox feathercoin-git google-talkplugin guisu intel-opencl-sdk laptop-mode-tools libffi5 litecoin-qt obex-data-server pacaur pip primecoin-qt protoshares-qt-git pybitmessage rstudio-desktop-git skype4pidgin speedcrunch spideroak teamviewer
DEBUG bluez4 cachecoin-git caja-dropbox cower cpuminer-git darkcoin-git dropbox feathercoin-git google-talkplugin guisu intel-opencl-sdk laptop-mode-tools lib32-llvm-amdgpu-lib-snapshot libffi5 libmatekeyring libmatewnck litecoin-qt llvm-amdgpu-lib-snapshot mate-character-map mate-doc-utils mate-keyring obex-data-server obexd-client pacaur pip primecoin-qt protoshares-qt-git pybitmessage qt5-jsbackend rstudio-desktop-git skype4pidgin speedcrunch spideroak teamviewer
:: bluez4 is not present in AUR -- skipping
:: cachecoin-git is not present in AUR -- skipping
:: caja-dropbox is not present in AUR -- skipping
:: cower is not present in AUR -- skipping
:: cpuminer-git is not present in AUR -- skipping
:: darkcoin-git is not present in AUR -- skipping
:: dropbox is not present in AUR -- skipping
:: feathercoin-git is not present in AUR -- skipping
:: google-talkplugin is not present in AUR -- skipping
:: guisu is not present in AUR -- skipping
:: intel-opencl-sdk is not present in AUR -- skipping
:: laptop-mode-tools is not present in AUR -- skipping
:: lib32-llvm-amdgpu-lib-snapshot is not present in AUR -- skipping
:: libffi5 is not present in AUR -- skipping
:: libmatekeyring is not present in AUR -- skipping
:: libmatewnck is not present in AUR -- skipping
:: litecoin-qt is not present in AUR -- skipping
:: llvm-amdgpu-lib-snapshot is not present in AUR -- skipping
:: mate-character-map is not present in AUR -- skipping
:: mate-doc-utils is not present in AUR -- skipping
:: mate-keyring is not present in AUR -- skipping
:: obex-data-server is not present in AUR -- skipping
:: obexd-client is not present in AUR -- skipping
:: pacaur is not present in AUR -- skipping
:: pip is not present in AUR -- skipping
:: primecoin-qt is not present in AUR -- skipping
:: protoshares-qt-git is not present in AUR -- skipping
:: pybitmessage is not present in AUR -- skipping
:: qt5-jsbackend is not present in AUR -- skipping
:: rstudio-desktop-git is not present in AUR -- skipping
:: skype4pidgin is not present in AUR -- skipping
:: speedcrunch is not present in AUR -- skipping
:: spideroak is not present in AUR -- skipping
:: teamviewer is not present in AUR -- skipping
:: resolving dependencies...
/usr/bin/pacaur: line 182: 1404311667: syntax error: invalid arithmetic operator (error token is "")
/usr/bin/pacaur: line 182: 1405945826: syntax error: invalid arithmetic operator (error token is "")
/usr/bin/pacaur: line 182: 1406628774: syntax error: invalid arithmetic operator (error token is "")
/usr/bin/pacaur: line 182: 1406884468: syntax error: invalid arithmetic operator (error token is "")
/usr/bin/pacaur: line 182: 1394023466: syntax error: invalid arithmetic operator (error token is "")
/usr/bin/pacaur: line 182: 1407443457: syntax error: invalid arithmetic operator (error token is "")
/usr/bin/pacaur: line 182: 1407136644: syntax error: invalid arithmetic operator (error token is "")
/usr/bin/pacaur: line 182: 1404951948: syntax error: invalid arithmetic operator (error token is "")
:: no results found for bluez4
:: no results found for bluez4
:: no results found for cachecoin-git
:: no results found for cachecoin-git
:: no results found for caja-dropbox
:: no results found for caja-dropbox
:: no results found for dropbox
:: no results found for dropbox
:: no results found for pybitmessage
:: no results found for pybitmessage
:: no results found for rstudio-desktop-git
:: no results found for rstudio-desktop-git
:: no results found for spideroak
:: no results found for spideroak
:: no results found for gmp4
:: no results found for gmp4

@rmarquis
Copy link
Owner

Thanks. About the 3 DEBUG lines:

  • Line 1 is the list of packages that aren't in any repo (pacman -Qm)
  • Line 2 is the list of the previous packages list that are found in the AUR
  • Line 3 is the list of packages that are not in the repo, nor in the AUR (Line 1 - Line 2)

In this case, something is completely wrong with the third list. It is the very same as the first one, although the second list isn't empty. It should contain the following instead:

  • lib32-llvm-amdgpu-lib-snapshot
  • libmatekeyring
  • libmatewnck
  • llvm-amdgpu-lib-snapshot
  • mate-character-map
  • mate-doc-utils
  • mate-keyring
  • obexd-client
  • qt5-jsbackend

Where did you install these packages from? Also, what is the locale that you are using on your system? This can have an impact on the sort algorithm (although pacaur ensures to use the C locale when using lists comparison to avoid problem here).

@vertoe
Copy link
Author

vertoe commented Aug 14, 2014

Locale:

0 ✓ afri@kixel ~ $ locale -a
C
POSIX
de_DE
de_DE.iso88591
de_DE.iso885915@euro
de_DE.utf8
de_DE@euro
deutsch
en_US
en_US.iso88591
en_US.utf8
german

I replaced the mate packages with the ones from the official repositories, I used to install them from external repos. But that's not the reason.

@vertoe
Copy link
Author

vertoe commented Aug 17, 2014

I tried to reproduce this with a minimal bash script but it's not reproducable with this code:

#!/bin/bash

#    # hard check for AURINFO metadata
#    if [[ $hybridsolver = false ]]; then
#        depsAlastmodified=($(getjsonvar "LastModified"))
#        for ((i=0; i<${#depsAlastmodified[@]}; i++)); do
#            # first package submitted to AUR 3.0.0 on 2014-05-27 18:35
#            [[ "${depsAlastmodified[$i]}" -lt 1401215749 ]] && note "f" $"no AUR metadata for ${colorR}${depsAname[$i]}${reset} package"
#        done
#    fi

if [[ 1407136644 -lt 1401215749 ]]; then
  echo "True"
else
  echo "False"
fi

if [[ "1407136644" -lt 1401215749 ]]; then
  echo "True"
else
  echo "False"
fi

i=0
depsAlastmodified[0]=1407136644
[[ "${depsAlastmodified[$i]}" -lt 1401215749 ]] && note "f" $"no AUR metadata for blablabla package"

@vertoe
Copy link
Author

vertoe commented Aug 17, 2014

Ok, I think I found the issue, someone at stackoverflow suggested there might be additional characters in the variable holding the number.

What I did now is basicly:

            echo ${depsAlastmodified[$i]} | od -c

The output is:

+ echo '1408039118'
+ od -c
0000000   1   4   0   8   0   3   9   1   1   8 033   [   m 033   [   K
0000020  \n
0000021

Not fully understanding the output, but could it be possible there is this new line character appended to the number in the variable? Any idea how to fix that?

@vertoe
Copy link
Author

vertoe commented Aug 17, 2014

I also tried running that number through bc:

echo ${depsAlastmodified[$i]} | bc | od -c

This is the output:

+ echo '1408039118'
+ bc
+ od -c
(standard_in) 1: illegal character: ^[
(standard_in) 1: syntax error
(standard_in) 1: illegal character: ^[
(standard_in) 1: illegal character: K
0000000

Any idea?

@rmarquis
Copy link
Owner

Hi,

Sorry for the late answer. I currently don't have access to my main Arch box, but I haven't forgotten you.

0000000 1 4 0 8 0 3 9 1 1 8 033 [ m 033 [ K

The last part looks like the yellow color code. See the "colorY" variable above in the code, which is used in warning messages. However, the json file which is downloaded from the AUR RPC interface never includes such color code.

My best guest at the moment would be that there is a "ghost" color code which is not interpreted correctly for some reason and that it messes with the json parser code. It's possible that it belongs to the buggy "not present in AUR" warning above. That would actually makes lot of sense.

Maybe try to enable (or disable) the Color variable in pacman.conf and see if this has an effect.

Edit: In addition, the "\033[K " code corresponds to "Erase to end of line".

EDIT2: I talked too fast. I don't think it is the yellow color (which is \e[1;33m, but we have \e[m here). But please check your PS1 if you added some fancy colors in it.

@rmarquis
Copy link
Owner

So, back to business.

I tested the first issue (buggy 'skipping' list), and of course I obtain the correct result. My bet is that there is also a ghost invisible character inserted there on your machine. Could you test both the ${foreignpkgs[@]} and ${allaurpkgs[@]} variables with bc and od?

If your PS1 is correct and doesn't insert unwanted character to the input, then you'll have to track that ghost character. Check the "getjsonvar()" function, and possibly the content of rpc.json file too.
You might end up tracking this ghost character in the parent "downloadjson() function, which accepts input in its ${urlencodedpkgs[@]} variable.

As I'm unable to reproduce this issue, I'm afraid you'll have to do this work yourself. As long as I'm unsure where this ghost character is inserted first, I'm unable to fix this issue.

@vertoe
Copy link
Author

vertoe commented Aug 20, 2014

Thanks for your time and inputs. I just noticed this is not related with pacaur. I also get this for example compiling some other software. Something is really messed up with my system, inserting special characters everywhere. I'm still totally clueless, but finally I'm sure this is not a pacaur bug.

Thanks anyways :)

@vertoe vertoe closed this as completed Aug 20, 2014
@rmarquis rmarquis added invalid and removed bug labels Aug 20, 2014
@rmarquis
Copy link
Owner

You're welcome. I'd still first check your colored PS1 if you have one :)

Good luck in tracking this issue.

@vertoe
Copy link
Author

vertoe commented Aug 20, 2014

It has something to do with grep adding color escape stuff at the end of line, http://unix.stackexchange.com/q/45190/19062

It's really no easy task to track this down and fix this.
For reference, if anyone else comes across this issue:
I had GREP_OPTIONS="--color=always" in my bashrc file, to fix this, you need to do the following:

  1. Uninstall pacaur, remove the complete /tmp/pacaurtmp-*/ directory.
  2. Put export GREP_COLORS=ne and GREP_OPTIONS="--color=never" into your ~/.bashrc and source ~/.bashrc it.
  3. Reinstall pacaur and do a whole system upgrade pacaur -Syua

@rmarquis
Copy link
Owner

Hmm, interesting.

Here what I have in my .bashrc:

# color
export GREP_COLOR="1;33"
alias grep='grep --color=auto'

The issue you've encountered might also depends on the terminal you're using.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants