We observed an FTBFS of vim with the attached build log. It seems there are two parallel threads of dh_strip and dh_gencontrol, and they step on each other:
Excerpt:
dh_strip --dbg-package=vim-dbg
dh_strip debug symbol extraction: enabling -a due to Build-Debug-Symbols: yes in /CurrentlyBuilding
dh_strip debug symbol extraction: all non-arch-all packages for this build platform armhf: vim-common vim-tiny vim vim-dbg vim-gtk vim-nox vim-athena vim-gnome
dh_strip debug symbol extraction: not adding gnu debuglinks since --dbg-package is given
dh_strip debug symbol extraction: packages to act on: vim-gtk
dh_strip debug symbol extraction: ignored packages:
dh_strip debug symbol extraction: all non-arch-all packages for this build platform armhf: vim-common vim-tiny vim vim-dbg vim-gtk vim-nox vim-athena vim-gnome
dh_strip debug symbol extraction: all non-arch-all packages for this build platform armhf: vim-common vim-tiny vim vim-dbg vim-gtk vim-nox vim-athena vim-gnome
dh_strip debug symbol extraction: not adding gnu debuglinks since --dbg-package is given
dh_strip debug symbol extraction: packages to act on: vim-athena
dh_strip debug symbol extraction: ignored packages:
dh_strip debug symbol extraction: not adding gnu debuglinks since --dbg-package is given
dh_strip debug symbol extraction: packages to act on: vim-gnome
dh_strip debug symbol extraction: ignored packages:
we have -dbg package(s), not installing anything into ddeb
find: `/«PKGBUILDDIR»/debian/vim-gnome-dbgsym': No such file or directory
we have -dbg package(s), not installing anything into ddeb
we have -dbg package(s), not installing anything into ddeb
find: `/«PKGBUILDDIR»/debian/vim-gtk-dbgsym': No such file or directory
find: `/«PKGBUILDDIR»/debian/vim-athena-dbgsym': No such file or directory
dpkg-gencontrol: warning: -is is deprecated; it is without effect
dpkg-gencontrol: warning: -ip is deprecated; it is without effect
dpkg-gencontrol: warning: -is is deprecated; it is without effect
dpkg-gencontrol: warning: -ip is deprecated; it is without effect
dpkg-gencontrol: warning: -is is deprecated; it is without effect
dpkg-gencontrol: warning: -ip is deprecated; it is without effect
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe
dpkg-gencontrol: error: cannot read dhstrip-dummy-debian-files: No such file or directory
/usr/bin/pkg_create_dbgsym: deferring build of .ddeb to dh_gencontrol
/usr/bin/pkg_create_dbgsym: deferring build of .ddeb to dh_gencontrol
Error: parsed ddeb section or priority is empty
make: *** [binary-arch-vim-athena] Error 1
make: *** Waiting for unfinished jobs....
debian/rules:555: recipe for target 'binary-arch-vim-athena' failed
dh_strip debug symbol extraction: all non-arch-all packages for this build platform armhf: vim-common vim-tiny vim vim-dbg vim-gtk vim-nox vim-athena vim-gnome
dh_strip debug symbol extraction: not adding gnu debuglinks since --dbg-package is given
dh_strip debug symbol extraction: packages to act on: vim-nox
dh_strip debug symbol extraction: ignored packages:
dh_compress
dh_compress
dh_fixperms
dh_fixperms
we have -dbg package(s), not installing anything into ddeb
find: `/«PKGBUILDDIR»/debian/vim-nox-dbgsym': No such file or directory
dh_lintian
dh_lintian
dh_installdeb
dh_installdeb
dpkg-gencontrol: warning: -is is deprecated; it is without effect
dpkg-gencontrol: warning: -ip is deprecated; it is without effect
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe
/usr/bin/pkg_create_dbgsym: deferring build of .ddeb to dh_gencontrol
dh_shlibdeps
dh_shlibdeps
dh_compress
dh_fixperms
dh_lintian
dh_installdeb
dh_shlibdeps
dh_gencontrol
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe
dh_gencontrol debug symbol wrapper: all non-arch-all packages for this build platform armhf: vim-common vim-tiny vim vim-dbg vim-gtk vim-nox vim-athena vim-gnome
dh_gencontrol debug symbol wrapper: packages to act on: vim-nox
dh_gencontrol debug symbol wrapper: ignored packages:
dh_gencontrol debug symbol wrapper: processing package vim-nox (pkgdir debian/vim-nox, ddeb package dir debian/vim-nox-dbgsym)
dh_gencontrol debug symbol wrapper: building vim-nox-dbgsym_7.4.826-1ubuntu1_armhf.ddeb
dpkg-deb: building package 'vim-nox-dbgsym' in '../vim-nox-dbgsym_7.4.826-1ubuntu1_armhf.ddeb'.
dh_gencontrol debug symbol wrapper: dpkg-distaddfile vim-nox-dbgsym_7.4.826-1ubuntu1_armhf.ddeb editors extra
This looks like a bug in vim's debian/rules:
doko | the indep and arch targets are run in parallel
pitti | ah, it never sets DH_OPTIONS=-a or -s, just -i