Source: bash-completion
Version: 1:2.8-1
Severity: serious
Tags: ftbfs

bash-completion randomly fails to build from source in a parallel
setting. The following log exhibits the failure:

| make[3]: Entering directory '/<<PKGBUILDDIR>>/completions'
| make[3]: Nothing to be done for 'install-exec-am'.
| for file in 7za ; do \
|         rm -f 
/<<PKGBUILDDIR>>/debian/bash-completion/usr/share/bash-completion/completions/$file
 && \
|                 ln -s 7z 
/<<PKGBUILDDIR>>/debian/bash-completion/usr/share/bash-completion/completions/$file
 ; \
| done
|  /bin/mkdir -p 
'/<<PKGBUILDDIR>>/debian/bash-completion/usr/share/bash-completion/completions'
| ln: failed to create symbolic link 
'/<<PKGBUILDDIR>>/debian/bash-completion/usr/share/bash-completion/completions/7za':
 No such file or directory
| make[3]: *** [Makefile:1103: symlinks] Error 1
| make[3]: *** Waiting for unfinished jobs....
|  /usr/bin/install -c -m 644 2to3 7z a2x abook aclocal acpi adb add_members 
alias ant apache2ctl appdata-validate apt-build apt-cache apt-get aptitude arch 
arping arpspoof asciidoc aspe
|  /usr/bin/install -c -m 644 cfrun chage change_pw check_db check_perms 
checksec _chfn chgrp chkconfig chown chpasswd chronyc chrpath _chsh cksfv 
cleanarch clisp clone_member complete c
|  /usr/bin/install -c -m 644 dpkg-source dselect dsniff dumpdb dumpe2fs 
e2freefrag e2label ebtables _eject eog ether-wake evince explodepkg export 
faillog fbgs fbi feh file file-roller 
|  /usr/bin/install -c -m 644 gm gnatmake gnokii gnome-mplayer gpasswd gpg gpg2 
gphoto2 gprof groupadd groupdel groupmems groupmod growisofs grpck gzip hcitool 
hddtemp _hexdump hid2hci h
|  /usr/bin/install -c -m 644 ipsec iptables ipv6calc iscsiadm isql iwconfig 
iwlist iwpriv iwspy jar jarsigner java javaws jpegoptim jps jshint k3b kcov 
kill killall kldload kldunload ko
|  /usr/bin/install -c -m 644 lpr lrzip lsof lsscsi lsusb lua luac luseradd 
luserdel lvm lz4 lzip lzma lzop macof mailmanctl make makepkg man mc mcrypt 
mdadm mdtool medusa mii-diag mii-t
|  /usr/bin/install -c -m 644 mtx munindoc munin-node-configure munin-run 
munin-update mussh mutt mysql mysqladmin nc ncftp nethogs _newgrp newlist 
newusers ngrep nmap _nmcli nproc nsloo
|  /usr/bin/install -c -m 644 pkgrm pkgtool pkgutil plague-client pm-hibernate 
pm-is-supported pm-powersave pngfix portinstall portsnap portupgrade postcat 
postconf postfix postmap posts
|  /usr/bin/install -c -m 644 rdesktop remove_members removepkg _renice 
_repomanage reportbug _reptyr resolvconf _rfkill ri rmlist rmmod route rpcdebug 
rpm rpm2tgz rpmcheck rrdtool rsync
|  /usr/bin/install -c -m 644 sshow strace strings _su sudo svcadm svk _svn 
_svnadmin _svnlook sync_members synclient sysbench sysctl tar tcpdump tcpkill 
tcpnice timeout tipc tox tracepa
|  /usr/bin/install -c -m 644 vmstat vncviewer vpnc watch webmitm wget wine 
withlist wodim wol _write wsimport wtf wvdial xdg-mime xdg-settings xfreerdp 
xgamma xhost xm xmllint xmlwf xmm
| make[3]: Leaving directory '/<<PKGBUILDDIR>>/completions'
| make[2]: *** [Makefile:993: install-am] Error 2
| make[2]: Leaving directory '/<<PKGBUILDDIR>>/completions'
| make[1]: *** [Makefile:485: install-recursive] Error 1
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| dh_auto_install: make -j12 install 
DESTDIR=/<<PKGBUILDDIR>>/debian/bash-completion AM_UPDATE_INFO_DIR=no returned 
exit code 2
| make: *** [debian/rules:40: binary] Error 2
| dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned 
exit status 2

Notably, the completion directory is created after adding symlinks into
it. Looking at the generated completions/Makefile, one can see the
cause: The symlinks target creates the symlinks and depends on
$(targetdir), but there is no target for $(targetdir). Instead, the
completion directory is created by install-bashcompDATA and these
targets are fully independent. install-data-am depends on
install-bashcompDATA and install-data-local. The latter depends on
symlinks. We'd need a dependency from symlinks on install-bashcompDATA,
but I have no clue how to add that in completions/Makefile.am.

Hope this helps anyway

Helmut

Reply via email to