Bug#806655: libzen: FTBFS when built with dpkg-buildpackage -A (dh_installdocs fails)

2016-07-13 Thread Santiago Vila
Greetings.

I have the ok from the Release Managers to consider this issue as RC
for stretch. I'm going to wait at least one week before raising
this to "serious".

There is a patch available for this bug. If you need someone to make
an upload, please ask for a sponsor in debian-mentors.

Thanks.



Bug#806655: libzen: FTBFS when built with dpkg-buildpackage -A (dh_installdocs fails)

2016-04-17 Thread Santiago Vila
tags 806655 + patch
thanks

> dh_installdocs
> fromdos debian/*/usr/share/doc/*/*.txt
> fromdos: Unable to access file "debian/*/usr/share/doc/*/*.txt".
> debian/rules:32: recipe for target 'override_dh_installdocs' failed

Explanation: There is only one file in the pattern above:

debian/libzen0v5/usr/share/doc/libzen0v5/ReadMe.txt

but we are creating arch-independent packages only,
so debian/libzen0v5/[...] does not exist because libzen0v5
is arch-dependent.

The trivial fix is to override dh_installdocs only
when creating arch-dependent packages.

Patch follows.

Thanks.--- a/debian/rules
+++ b/debian/rules
@@ -28,7 +28,7 @@ override_dh_auto_clean:
 override_dh_auto_install:
dh_auto_install -D$(libpath) -B$(builddir)
 
-override_dh_installdocs:
+override_dh_installdocs-arch:
dh_installdocs
fromdos debian/*/usr/share/doc/*/*.txt
 


Bug#806655: libzen: FTBFS when built with dpkg-buildpackage -A (dh_installdocs fails)

2015-11-29 Thread Santiago Vila
Package: src:libzen
Version: 0.4.32-1
User: sanv...@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
   dh_testdir -i -O--parallel
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<>'
mkdir -p build/
dh_auto_configure -DProject/CMake -Bbuild/
cmake ../Project/CMake -DCMAKE_INSTALL_PREFIX=/usr 
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None 
-DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var
-- The C compiler identification is GNU 5.2.1
-- The CXX compiler identification is GNU 5.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works

[... snipped ...]

-- Installing: /<>/debian/tmp/usr/include/ZenLib/Conf_Internal.h
-- Installing: /<>/debian/tmp/usr/include/ZenLib/CriticalSection.h
-- Installing: /<>/debian/tmp/usr/include/ZenLib/Dir.h
-- Installing: /<>/debian/tmp/usr/include/ZenLib/File.h
-- Installing: /<>/debian/tmp/usr/include/ZenLib/FileName.h
-- Installing: 
/<>/debian/tmp/usr/include/ZenLib/Format/Html/Html_Handler.h
-- Installing: 
/<>/debian/tmp/usr/include/ZenLib/Format/Html/Html_Request.h
-- Installing: 
/<>/debian/tmp/usr/include/ZenLib/Format/Http/Http_Cookies.h
-- Installing: 
/<>/debian/tmp/usr/include/ZenLib/Format/Http/Http_Handler.h
-- Installing: 
/<>/debian/tmp/usr/include/ZenLib/Format/Http/Http_Request.h
-- Installing: 
/<>/debian/tmp/usr/include/ZenLib/Format/Http/Http_Utils.h
-- Installing: /<>/debian/tmp/usr/include/ZenLib/InfoMap.h
-- Installing: /<>/debian/tmp/usr/include/ZenLib/MemoryDebug.h
-- Installing: /<>/debian/tmp/usr/include/ZenLib/OS_Utils.h
-- Installing: /<>/debian/tmp/usr/include/ZenLib/PreComp.h
-- Installing: /<>/debian/tmp/usr/include/ZenLib/Thread.h
-- Installing: /<>/debian/tmp/usr/include/ZenLib/Trace.h
-- Installing: /<>/debian/tmp/usr/include/ZenLib/Translation.h
-- Installing: /<>/debian/tmp/usr/include/ZenLib/Utils.h
-- Installing: /<>/debian/tmp/usr/include/ZenLib/Ztring.h
-- Installing: /<>/debian/tmp/usr/include/ZenLib/ZtringList.h
-- Installing: /<>/debian/tmp/usr/include/ZenLib/ZtringListList.h
-- Installing: /<>/debian/tmp/usr/include/ZenLib/ZtringListListF.h
-- Installing: /<>/debian/tmp/usr/include/ZenLib/int128s.h
-- Installing: /<>/debian/tmp/usr/include/ZenLib/int128u.h
-- Installing: 
/<>/debian/tmp/usr/lib/x86_64-linux-gnu/pkgconfig/libzen.pc
-- Installing: 
/<>/debian/tmp/usr/lib/x86_64-linux-gnu/cmake/zenlib/ZenLibConfig.cmake
-- Installing: 
/<>/debian/tmp/usr/lib/x86_64-linux-gnu/cmake/zenlib/ZenLibConfigVersion.cmake
make[2]: Leaving directory '/<>/build'
make[1]: Leaving directory '/<>'
   debian/rules override_dh_installdocs
make[1]: Entering directory '/<>'
dh_installdocs
fromdos debian/*/usr/share/doc/*/*.txt
fromdos: Unable to access file "debian/*/usr/share/doc/*/*.txt".
debian/rules:32: recipe for target 'override_dh_installdocs' failed
make[1]: *** [override_dh_installdocs] Error 1
make[1]: Leaving directory '/<>'
debian/rules:39: 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
now.

* 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.

Thanks.