[Pkg-samba-maint] Bug#993014: cifs-utils non-parallel FTBFS

Helmut Grohne helmut at subdivi.de
Thu Aug 26 11:31:20 BST 2021


Source: cifs-utils
Version: 2:6.11-3.1
Severity: serious
Tags: ftbfs


cifs-utils fails to build from source when including parallel=1 in
DEB_BUILD_OPTIONS. A failing build ends with:

| dh_auto_install
|         make -j1 install DESTDIR=/<<PKGBUILDDIR>>/debian/cifs-utils AM_UPDATE_INFO_DIR=no
| make[2]: Entering directory '/<<PKGBUILDDIR>>'
| Making install in contrib
| make[3]: Entering directory '/<<PKGBUILDDIR>>/contrib'
| Making install in request-key.d
| make[4]: Entering directory '/<<PKGBUILDDIR>>/contrib/request-key.d'
| make[5]: Entering directory '/<<PKGBUILDDIR>>/contrib/request-key.d'
| make[5]: Nothing to be done for 'install-exec-am'.
| make[5]: Nothing to be done for 'install-data-am'.
| make[5]: Leaving directory '/<<PKGBUILDDIR>>/contrib/request-key.d'
| make[4]: Leaving directory '/<<PKGBUILDDIR>>/contrib/request-key.d'
| make[4]: Entering directory '/<<PKGBUILDDIR>>/contrib'
| make[5]: Entering directory '/<<PKGBUILDDIR>>/contrib'
| make[5]: Nothing to be done for 'install-exec-am'.
| make[5]: Nothing to be done for 'install-data-am'.
| make[5]: Leaving directory '/<<PKGBUILDDIR>>/contrib'
| make[4]: Leaving directory '/<<PKGBUILDDIR>>/contrib'
| make[3]: Leaving directory '/<<PKGBUILDDIR>>/contrib'
| make[3]: Entering directory '/<<PKGBUILDDIR>>'
| make[4]: Entering directory '/<<PKGBUILDDIR>>'
|  /bin/mkdir -p '/<<PKGBUILDDIR>>/debian/cifs-utils/usr/bin'
|   /usr/bin/install -c cifscreds getcifsacl setcifsacl smbinfo '/<<PKGBUILDDIR>>/debian/cifs-utils/usr/bin'
|  /bin/mkdir -p '/<<PKGBUILDDIR>>/debian/cifs-utils/usr/bin'
|  /usr/bin/install -c smb2-quota '/<<PKGBUILDDIR>>/debian/cifs-utils/usr/bin'
|  /bin/mkdir -p '/<<PKGBUILDDIR>>/debian/cifs-utils/usr/sbin'
|   /usr/bin/install -c cifs.upcall cifs.idmap '/<<PKGBUILDDIR>>/debian/cifs-utils/usr/sbin'
| make  install-exec-hook
| make[5]: Entering directory '/<<PKGBUILDDIR>>'
| (cd /<<PKGBUILDDIR>>/debian/cifs-utils/sbin && ln -sf mount.cifs mount.smb3)
| /bin/bash: line 1: cd: /<<PKGBUILDDIR>>/debian/cifs-utils/sbin: No such file or directory
| make[5]: *** [Makefile:1506: install-exec-hook] Error 1
| make[5]: Leaving directory '/<<PKGBUILDDIR>>'
| make[4]: *** [Makefile:1385: install-exec-am] Error 2
| make[4]: Leaving directory '/<<PKGBUILDDIR>>'
| make[3]: *** [Makefile:1307: install-am] Error 2
| make[3]: Leaving directory '/<<PKGBUILDDIR>>'
| make[2]: *** [Makefile:998: install-recursive] Error 1
| make[2]: Leaving directory '/<<PKGBUILDDIR>>'
| dh_auto_install: error: make -j1 install DESTDIR=/<<PKGBUILDDIR>>/debian/cifs-utils AM_UPDATE_INFO_DIR=no returned exit code 2
| make[1]: *** [debian/rules:13: override_dh_auto_install-arch] Error 25
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| make: *** [debian/rules:6: binary] Error 2
| dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2

I suppose that some ordering relation in the makefile is missing and a
parallel build creates the relevant directory quickly enough. In a
parallel=1 build, the race is lost reliably.

Helmut



More information about the Pkg-samba-maint mailing list