[pkg-wine-party] Bug#807026: wine: FTBFS when built with dpkg-buildpackage -A (No such file or directory)

Santiago Vila sanvila at debian.org
Fri Dec 4 10:20:04 UTC 2015

Package: src:wine
Version: 1.8~rc2-1
User: sanvila at debian.org
Usertags: binary-indep
Severity: important

Dear maintainer:

I tried to build this package with "dpkg-buildpackage -A"
(i.e. only architecture-independent packages), and it failed:

 debian/rules build-indep
dh build-indep --parallel --with autoreconf
   dh_testdir -i -O--parallel
   dh_autoreconf -i -O--parallel
	find ! -ipath "./debian/*" -a ! \( -path '*/.git/*' -o -path '*/.hg/*' -o -path '*/.bzr/*' -o -path '*/.svn/*' -o -path '*/CVS/*' \) -a  -type f -exec md5sum {} \; > debian/autoreconf.before
	autoreconf -f -i
	find ! -ipath "./debian/*" -a ! \( -path '*/.git/*' -o -path '*/.hg/*' -o -path '*/.bzr/*' -o -path '*/.svn/*' -o -path '*/CVS/*' \) -a  -type f -exec md5sum {} \; > debian/autoreconf.after
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
size: 7907
interpolation noise: -93.68 dB

[... snipped ...]

cp: 'debian/tmp/usr/share/man/de.UTF-8/man1/wineserver.1' and 'debian/tmp/usr/share/man/de.UTF-8/man1/wineserver.1' are the same file
cp: 'debian/tmp/usr/share/man/de.UTF-8/man1/winemaker.1' and 'debian/tmp/usr/share/man/de.UTF-8/man1/winemaker.1' are the same file
cd debian/tmp/usr/share/man/man1 && \
    cp winegcc.1 winegcc64.1
	install -d debian/wine/usr/bin
	cp --reflink=auto -a ./debian/tmp/wine debian/wine/usr/bin/
	install -d debian/wine/usr/lib/wine
	cp --reflink=auto -a ./debian/tmp/wineapploader debian/wine/usr/lib/wine/
	install -d debian/wine-binfmt/usr/share/binfmts
	cp --reflink=auto -a ./debian/binfmt/wine debian/wine-binfmt/usr/share/binfmts/
	install -d debian/fonts-wine//usr/share/wine/wine
	cp --reflink=auto -a ./debian/tmp/usr/share/wine/wine/fonts debian/fonts-wine//usr/share/wine/wine/
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_installdocs -i -O--parallel
	install -d debian/wine/usr/share/doc/wine
	cp --reflink=auto -a debian/tmp/changelog debian/wine/usr/share/doc/wine
	cp --reflink=auto -a debian/tmp/README.winedbg debian/wine/usr/share/doc/wine
	chown -R 0:0 debian/wine/usr/share/doc
	chmod -R go=rX debian/wine/usr/share/doc
	chmod -R u\+rw debian/wine/usr/share/doc
	install -p -m0644 debian/README.debian debian/wine/usr/share/doc/wine/README.Debian
	install -p -m0644 debian/TODO debian/wine/usr/share/doc/wine/TODO.Debian
	install -p -m0644 debian/copyright debian/wine/usr/share/doc/wine/copyright
	install -d debian/wine-binfmt/usr/share/doc/wine-binfmt
	install -p -m0644 debian/copyright debian/wine-binfmt/usr/share/doc/wine-binfmt/copyright
	install -d debian/fonts-wine/usr/share/doc/fonts-wine
	cp --reflink=auto -a debian/tmp/changelog debian/fonts-wine/usr/share/doc/fonts-wine
	chown -R 0:0 debian/fonts-wine/usr/share/doc
	chmod -R go=rX debian/fonts-wine/usr/share/doc
	chmod -R u\+rw debian/fonts-wine/usr/share/doc
	install -p -m0644 debian/copyright debian/fonts-wine/usr/share/doc/fonts-wine/copyright
   dh_installchangelogs -i -O--parallel
	install -p -m0644 debian/changelog debian/wine/usr/share/doc/wine/changelog.Debian
	install -p -m0644 debian/changelog debian/wine-binfmt/usr/share/doc/wine-binfmt/changelog.Debian
	install -p -m0644 debian/changelog debian/fonts-wine/usr/share/doc/fonts-wine/changelog.Debian
   dh_installman -i -O--parallel
debian/tmp/usr/share/man/man1/wine.1: No such file or directory at /usr/bin/dh_installman line 131.
debian/rules:78: recipe for target 'binary-indep' failed
make: *** [binary-indep] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave error exit status 2

Sorry not to have a fix, as I am reporting many bugs similar to
this one. The common hints are:

* If the only architecture-independent packages are dummy transitional
ones and they were released with jessie, the easy fix is to drop them

* When using "dh", it is allowed to use (independently)
optional targets override_dh_foo-arch and override_dh_foo-indep
(for several values of "foo").

Once that both "dpkg-buildpackage -A" and "dpkg-buildpackage -B" work
properly, the package would be suitable to be uploaded in source-only
form if you wish.


More information about the pkg-wine-party mailing list