Bug#431664: apt-howto: FTBFS: cannot find apt-howto.de.sgml [a fix]

2007-11-04 Thread rollingbits (aka Lucas)
On Mon, Aug 27, 2007 at 08:52:22PM +0530, Kumar Appaiah wrote:
 I figured that I could get rid of the block in the build process by
 reducing the minumum threshold for translation and ensuring that
 po4a-* is called at all places with -k; a patch is attached to get
 here. But I then run into some issues with apt-howto.ks.sgml.

Hi.

I'm attaching a fix for this bug. The po4a-updatepo doesn't have a -k
option so this doesn't helps to solve the problem. The original error
message says that the apt-howto.de.sgml wasn't created because 39.8%
of it was translated and that this isn't enough. My patch changes the
lower limit to 39% and updates the build dependencies. The
apt-howto.ko.pdf wasn't created because the texlive (the TeX system is
now provided by texlive) doesn't have all needed files. So it closes
the bug#435010. I don't used the proposed patch for it because I think
it will make the package depends on a excessive number of packages
indirectly (the TeX system is huge) and some more transitions happened
since then (gs* to ghostscript for example).

My patch also declares three Build-Conflict-Indep that the patch for
#435010 doesn't do. I verified here that the package doesn't build
when they are installed but I don't verified what happens when only
their dependencies and recommends are installed. The missing ones
aren't directly used anyway: the conflicts are made with transitional
packages. The bug#435010 doesn't quote any other field or file, so I
understand that the bug was requesting an update on the
build-dependencies to ACK transitions. So I did. I also removed some
build dependencies. The build system don't cried and the
dpkg-genbuilddeps don't detected that they are used. I'm not merging
both bugs because the requests are different. My patch makes the
package built on newer systems (with texlive) and don't build on older
ones (with tetex) but I think this is the expected behaviour. I also
want to inform that the ./debian/rules clean target is buggy and
doesn't clear the tree properly. There is a dependency on
(/bin/sh-)bash, too. This patch doesn't solve any of them.

rollingbits

-- 
,-. rollingbits -- [EMAIL PROTECTED], [EMAIL PROTECTED]
\`' [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
 `  Get my public GPG key in http://rollingbits.tripod.com/mykey.html
diff -urN apt-howto-2.0.2.orig/debian/control apt-howto-2.0.2/debian/control
--- apt-howto-2.0.2.orig/debian/control	2007-11-03 23:01:16.0 -0200
+++ apt-howto-2.0.2/debian/control	2007-11-03 21:58:57.0 -0200
@@ -1,9 +1,10 @@
 Source: apt-howto
 Section: doc
+Build-Conflicts-Indep: tetex-base, tetex-bin, tetex-extra
 Priority: optional
 Maintainer: Gustavo Noronha Silva [EMAIL PROTECTED]
 Uploaders: Osamu Aoki [EMAIL PROTECTED], Debian-BR Team Maintainers [EMAIL PROTECTED], Eduardo Marcel Macan [EMAIL PROTECTED], Goedson Teixeira Paixao [EMAIL PROTECTED], Guilherme de S. Pastore [EMAIL PROTECTED],  Gustavo Franco [EMAIL PROTECTED], Marcio Roberto Teixeira [EMAIL PROTECTED], Otavio Salvador [EMAIL PROTECTED], Tiago Bortoletto Vaz [EMAIL PROTECTED] 
-Build-Depends-Indep: debhelper ( 3.0.0), debiandoc-sgml(= 1.1.86), tetex-bin, tetex-extra, w3m (= 0.3) | w3m-ssl (= 0.3) | w3mmee (= 0.3), cjk-latex, freetype1-tools, tfm-arphic-bsmi00lp, tfm-arphic-bkai00mp, tfm-arphic-gbsn00lp, tfm-arphic-gkai00mp, hbf-jfs56, hbf-cns40-b5, hbf-kanji48, gs, cjk-latex, hlatex, hlatex-fonts-base, po4a
+Build-Depends-Indep: debhelper ( 3.0.0), debiandoc-sgml(= 1.1.86), latex-ucs, texlive-latex-extra, texlive-fonts-recommended, texlive-latex-recommended, texlive-lang-cyrillic, texlive-lang-french, texlive-lang-german, texlive-lang-greek, texlive-lang-italian, texlive-lang-other, texlive-lang-polish, texlive-lang-portuguese, texlive-lang-spanish, w3m (= 0.3) | w3m-ssl (= 0.3) | w3mmee (= 0.3), latex-cjk-common, ghostscript-x, ko.tex, po4a, context, texlive-lang-latin
 Standards-Version: 3.6.2
 
 Package: apt-howto
diff -urN apt-howto-2.0.2.orig/debian/control.in apt-howto-2.0.2/debian/control.in
--- apt-howto-2.0.2.orig/debian/control.in	2007-11-03 23:01:16.0 -0200
+++ apt-howto-2.0.2/debian/control.in	2007-11-03 22:13:02.0 -0200
@@ -1,9 +1,10 @@
 Source: apt-howto
 Section: doc
+Build-Conflicts-Indep: tetex-base, tetex-bin, tetex-extra
 Priority: optional
 Maintainer: Gustavo Noronha Silva [EMAIL PROTECTED]
 Uploaders: Osamu Aoki [EMAIL PROTECTED], @DEBIAN_BR_TEAM@
-Build-Depends-Indep: debhelper ( 3.0.0), debiandoc-sgml(= 1.1.86), tetex-bin, tetex-extra, w3m (= 0.3) | w3m-ssl (= 0.3) | w3mmee (= 0.3), cjk-latex, freetype1-tools, tfm-arphic-bsmi00lp, tfm-arphic-bkai00mp, tfm-arphic-gbsn00lp, tfm-arphic-gkai00mp, hbf-jfs56, hbf-cns40-b5, hbf-kanji48, gs, cjk-latex, hlatex, hlatex-fonts-base, po4a
+Build-Depends-Indep: debhelper ( 3.0.0), debiandoc-sgml(= 1.1.86), latex-ucs, texlive-latex-extra, texlive-fonts-recommended, texlive-latex-recommended, texlive-lang-cyrillic, texlive-lang-french, texlive-lang-german, 

Bug#431664: apt-howto: FTBFS: cannot find apt-howto.de.sgml

2007-07-04 Thread Daniel Schepler
Package: apt-howto
Version: 2.0.2-2
Severity: serious

From my pbuilder build log:

...
po4a-translate -k 40 -f sgml -m apt-howto.en.sgml -p po4a/po/de.po -l 
apt-howto.de.sgml -a po4a/addendum.doc.de -a po4a/addendum.doc2.de -a 
po4a/addendum.doc3.de -a po4a/addendum.doc4.de
Discard the translation of apt-howto.en.sgml (only 39.8% translated; need
40%).
debiandoc2html  -tapt-howto -l $(echo de | bin/getlocale) -c apt-howto.de.sgml
nsgmls:E: cannot find apt-howto.de.sgml; tried apt-howto.de.sgml, 
/usr/local/share/sgml/apt-howto.de.sgml, /usr/share/sgml/apt-howto.de.sgml
nsgmls:/usr/share/sgml/debiandoc/dtd/sgml/1.0/debiandoc.dcl:67:40:E: end of 
document in prolog
make[1]: *** [apt-howto.de.html.stamp] Error 1
make[1]: Leaving directory `/tmp/buildd/apt-howto-2.0.2'
make: *** [build-stamp] Error 2
-- 
Daniel Schepler