Bug#831946: python-pcs: FTBFS with dpkg-buildpackage -A: dpkg-genchanges: error: binary build with no binary artifacts found; cannot distribute

2016-07-22 Thread Santiago Vila
tags 831946 + patch
thanks

This happens because debian/rules has its binary-arch and binary-indep
targets swapped.

The following trivial (but untested) patch might fix it.

Thanks.--- a/debian/rules
+++ b/debian/rules
@@ -26,8 +26,8 @@ install: build
dh_clean -k 
for python in $(PYVERS); do $$python setup.py install --no-compile 
--root=debian/$(PKG) --install-layout=deb; done
 
+binary-arch:
 binary-indep: build install
-binary-arch: build install
dh_testdir
dh_testroot
dh_python2


Bug#831946: python-pcs: FTBFS with dpkg-buildpackage -A: dpkg-genchanges: error: binary build with no binary artifacts found; cannot distribute

2016-07-20 Thread Lucas Nussbaum
Source: python-pcs
Version: 0.5+debian-1.2
Severity: important
Tags: stretch sid
User: debian...@lists.debian.org
Usertags: qa-ftbfs-20160720 qa-ftbfs qa-indep
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.  This rebuild was done by building only the architecture-independent
packages.  At the same time, a normal build succeeded, which points the
problem specifically to build-indep/binary-indep targets.


The specific error below usually happens there is a binary-indep target in
debian/rules which is either empty or does not do anything useful.

If all the arch-independent packages are dummy transitional packages released
with jessie, the easy fix is to drop them now. If not, debian/rules should be
modified so that the binary-indep target generates the architecture independent
packages (and only those).

After checking that both "dpkg-buildpackage -A" and "dpkg-buildpackage -B" work
properly, this package will be suitable to be uploaded in source-only form if
you wish.

I file this bug as severity: important, but Santiago Vila, who led this
effort (kudos to him), got approval from the release team to consider those
bugs RC for stretch. The severity will be increased to 'serious' shortly.
See #830997 for details.

Relevant part (hopefully):
>  fakeroot debian/rules binary-indep
> pyversions: missing X(S)-Python-Version in control file, fall back to 
> debian/pyversions
> pyversions: missing debian/pyversions file, fall back to supported versions
> dh_testdir
> for python in python2.7; do $python setup.py config build; done
> running config
> running build
> running build_py
> mkdir -p docs/tmp
> cd docs \
>   && pdflatex --output-directory=tmp pcs.tex \
>   && pdflatex --output-directory=tmp pcs.tex
> This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) 
> (preloaded format=pdflatex)
>  restricted \write18 enabled.
> entering extended mode
> (./pcs.tex
> LaTeX2e <2016/03/31> patch level 1
> Babel <3.9r> and hyphenation patterns for 3 language(s) loaded.
> (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
> Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
> (/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo))
> (./codespelunking.sty)
> (/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty
> (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
> (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
> (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
> (/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
> (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/auxhook.sty)
> (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
> (/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)
> (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
> (/usr/share/texlive/texmf-dist/tex/latex/url/url.sty))
> 
> Package hyperref Message: Driver: hpdftex.
> 
> (/usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def
> (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
> (tmp/pcs.aux) (/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
> (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
> (tmp/pcs.out) (tmp/pcs.out)
> 
> LaTeX Warning: Citation `rfc791' on page 1 undefined on input line 42.
> 
> 
> Overfull \hbox (13.6647pt too wide) in paragraph at lines 63--63
> []\OT1/cmtt/m/n/10.95 0   1   2   
>  
>3[] 
> 
> Overfull \hbox (25.16208pt too wide) in paragraph at lines 63--63
> []\OT1/cmtt/m/n/10.95 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 
> 6
>  7 8 9 0 1[] 
> 
> Overfull \hbox (30.91077pt too wide) in paragraph at lines 63--63
> []   \OT1/cmtt/m/n/10.95 
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
> +-+-+-+-+-+[] 
> 
> Overfull \hbox (30.91077pt too wide) in paragraph at lines 63--63
> []   \OT1/cmtt/m/n/10.95 |Version|  IHL  |Type of Service|  Total 
> Lengt
> h |[] 
> 
> Overfull \hbox (30.91077pt too wide) in paragraph at lines 63--63
> []   \OT1/cmtt/m/n/10.95 
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
> +-+-+-+-+-+[] 
> 
> Overfull \hbox (30.91077pt too wide) in paragraph at lines 63--63
> []   \OT1/cmtt/m/n/10.95 | Identification|Flags|  
> Fragment 
> Offset|[] 
> 
> Overfull \hbox (30.91077pt too wide) in paragraph at lines 63--63
> []   \OT1/cmtt/m/n/10.95 
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
> +-+-+-+-+-+[] 
> 
> Overfull \hbox (30.91077pt too wide) in paragraph at lines 63--63
> []   \OT1/cmtt/m/n/10.95 |  Time to Live |Protocol   | Header 
> Check
> sum   |[] 
> 
> Overfull \hbox (30.91077pt too wide) in paragraph at lines 63--63
> []   \OT1/cmtt/m/n/10.95 
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
> +-+-+-+-+-+[] 
> 
> Overfull \hbox (30.91077pt