Package: aptitude Version: 0.4.11.11-1+b1 Severity: normal There is a sed instruction in aptitude doc/fi that relies on the environment *not* being UTF-8. I'm testing with this script snippet:
$ cat test.sh #!/bin/bash set -x set -e cd doc/fi xsltproc -o output-man/aptitude.8 ./../aptitude-man.xsl ./aptitude.xml mv output-man/aptitude.8 aptitude.fi.8 /bin/bash ./fixman (started from the aptitude top level directory.) The commands themselves are taken directly from the aptitude build logs. $ LC_ALL=en_GB.UTF-8 ./test.sh + set -e + xsltproc -o output-man/aptitude.8 ./../aptitude-man.xsl ./aptitude.xml Note: meta source : no *info/productname or alternative aptitude Note: meta source : see http://docbook.sf.net/el/productname aptitude Note: meta source : no refentry/refmeta/refmisci...@class=source aptitude Note: meta source : see http://docbook.sf.net/el/refmiscinfo aptitude Note: meta version: no *info/productnumber or alternative aptitude Note: meta version: see http://docbook.sf.net/el/productnumber aptitude Note: meta version: no refentry/refmeta/refmisci...@class=version aptitude Note: meta version: see http://docbook.sf.net/el/refmiscinfo aptitude Warn: meta source : no fallback for source, so inserted a fixme aptitude Warn: AUTHOR sect.: no personblurb|contrib for Daniel Burrows Note: AUTHOR sect.: see see http://docbook.sf.net/el/contrib Note: AUTHOR sect.: see see http://docbook.sf.net/el/personblurb Warn: AUTHOR sect.: no personblurb|contrib for Daniel Burrows aptitude Note: AUTHOR sect.: see see http://docbook.sf.net/el/contrib aptitude Note: AUTHOR sect.: see see http://docbook.sf.net/el/personblurb aptitude Note: Writing aptitude.8 + mv output-man/aptitude.8 aptitude.fi.8 + /bin/bash ./fixman + MANPAGE=aptitude.fi.8 + sed -i 's/'\'''\''/"/g;s/``/"/g' aptitude.fi.8 + sed -i 's/search hakuehdot/\\fBsearch\\fR hakuehdot/' aptitude.fi.8 + sed -i 's/\\fBaptitude\\fR help/\\fBaptitude\\fR \\fBhelp\\fR/' aptitude.fi.8 + sed -i s/Note/Huom/ aptitude.fi.8 + sed -i 's/^\.SH NAME$/.SH NIMI/' aptitude.fi.8 + sed -i 's/^\.SH "SYNOPSIS"$/.SH "KOMENTORIVI"/' aptitude.fi.8 + sed -i $'s/AUTHOR/TEKIJ\304/' aptitude.fi.8 sed: -e expression #1, char 16: unterminated `s' command This sed failure fails the build. In a non-UTF-8 mode: $ LC_ALL=en_GB ./test.sh + set -e + xsltproc -o output-man/aptitude.8 ./../aptitude-man.xsl ./aptitude.xml Note: meta source : no *info/productname or alternative aptitude Note: meta source : see http://docbook.sf.net/el/productname aptitude Note: meta source : no refentry/refmeta/refmisci...@class=source aptitude Note: meta source : see http://docbook.sf.net/el/refmiscinfo aptitude Note: meta version: no *info/productnumber or alternative aptitude Note: meta version: see http://docbook.sf.net/el/productnumber aptitude Note: meta version: no refentry/refmeta/refmisci...@class=version aptitude Note: meta version: see http://docbook.sf.net/el/refmiscinfo aptitude Warn: meta source : no fallback for source, so inserted a fixme aptitude Warn: AUTHOR sect.: no personblurb|contrib for Daniel Burrows Note: AUTHOR sect.: see see http://docbook.sf.net/el/contrib Note: AUTHOR sect.: see see http://docbook.sf.net/el/personblurb Warn: AUTHOR sect.: no personblurb|contrib for Daniel Burrows aptitude Note: AUTHOR sect.: see see http://docbook.sf.net/el/contrib aptitude Note: AUTHOR sect.: see see http://docbook.sf.net/el/personblurb aptitude Note: Writing aptitude.8 + mv output-man/aptitude.8 aptitude.fi.8 + /bin/bash ./fixman + MANPAGE=aptitude.fi.8 + sed -i 's/'\'''\''/"/g;s/``/"/g' aptitude.fi.8 + sed -i 's/search hakuehdot/\\fBsearch\\fR hakuehdot/' aptitude.fi.8 + sed -i 's/\\fBaptitude\\fR help/\\fBaptitude\\fR \\fBhelp\\fR/' aptitude.fi.8 + sed -i s/Note/Huom/ aptitude.fi.8 + sed -i 's/^\.SH NAME$/.SH NIMI/' aptitude.fi.8 + sed -i 's/^\.SH "SYNOPSIS"$/.SH "KOMENTORIVI"/' aptitude.fi.8 + sed -i $'s/AUTHOR/TEKIJ\304/' aptitude.fi.8 and the build continues - this explains why my builds are OK in a clean chroot, where LC_ALL is typically 'C'. $ LC_ALL=C ./test.sh + set -e + xsltproc -o output-man/aptitude.8 ./../aptitude-man.xsl ./aptitude.xml Note: meta source : no *info/productname or alternative aptitude Note: meta source : see http://docbook.sf.net/el/productname aptitude Note: meta source : no refentry/refmeta/refmisci...@class=source aptitude Note: meta source : see http://docbook.sf.net/el/refmiscinfo aptitude Note: meta version: no *info/productnumber or alternative aptitude Note: meta version: see http://docbook.sf.net/el/productnumber aptitude Note: meta version: no refentry/refmeta/refmisci...@class=version aptitude Note: meta version: see http://docbook.sf.net/el/refmiscinfo aptitude Warn: meta source : no fallback for source, so inserted a fixme aptitude Warn: AUTHOR sect.: no personblurb|contrib for Daniel Burrows Note: AUTHOR sect.: see see http://docbook.sf.net/el/contrib Note: AUTHOR sect.: see see http://docbook.sf.net/el/personblurb Warn: AUTHOR sect.: no personblurb|contrib for Daniel Burrows aptitude Note: AUTHOR sect.: see see http://docbook.sf.net/el/contrib aptitude Note: AUTHOR sect.: see see http://docbook.sf.net/el/personblurb aptitude Note: Writing aptitude.8 + mv output-man/aptitude.8 aptitude.fi.8 + /bin/bash ./fixman + MANPAGE=aptitude.fi.8 + sed -i 's/'\'''\''/"/g;s/``/"/g' aptitude.fi.8 + sed -i 's/search hakuehdot/\\fBsearch\\fR hakuehdot/' aptitude.fi.8 + sed -i 's/\\fBaptitude\\fR help/\\fBaptitude\\fR \\fBhelp\\fR/' aptitude.fi.8 + sed -i s/Note/Huom/ aptitude.fi.8 + sed -i 's/^\.SH NAME$/.SH NIMI/' aptitude.fi.8 + sed -i 's/^\.SH "SYNOPSIS"$/.SH "KOMENTORIVI"/' aptitude.fi.8 + sed -i $'s/AUTHOR/TEKIJ\304/' aptitude.fi.8 dpkg-buildpackage and debuild do not enforce LC_ALL=C. I think (but haven't tested) that if the XML itself is modified to actually set the tags listed in the Note: and Warn: output of xsltproc, most (if not the entire) fixman script can be removed - as long as the XML itself is UTF-8 compatible at the end. Of course, an alternative fix would be to modify the build: - /bin/bash ./fixman + LC_ALL=C /bin/bash ./fixman I have tested that bit, it's fine. Doesn't seem ideal though, with UTF-8 being the preferred environment for many users. -- Package-specific info: aptitude 0.4.11.11 compiled at Apr 16 2009 23:38:07 Compiler: g++ 4.3.3 Compiled against: apt version 4.6.0 NCurses version 5.7 libsigc++ version: 2.0.18 Ept support enabled. Current library versions: NCurses version: ncurses 5.7.20090523 cwidget version: 0.5.12 Apt version: 4.6.0 linux-vdso.so.1 => (0x00007fff3f5ff000) libapt-pkg-libc6.9-6.so.4.7 => /usr/lib/libapt-pkg-libc6.9-6.so.4.7 (0x00007f03370b0000) libncursesw.so.5 => /lib/libncursesw.so.5 (0x00007f0336e65000) libsigc-2.0.so.0 => /usr/lib/libsigc-2.0.so.0 (0x00007f0336c60000) libcwidget.so.3 => /usr/lib/libcwidget.so.3 (0x00007f033698d000) libept.so.0 => /usr/lib/libept.so.0 (0x00007f0336714000) libxapian.so.15 => /usr/lib/libxapian.so.15 (0x00007f03363a8000) libz.so.1 => /usr/lib/libz.so.1 (0x00007f0336191000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007f0335f76000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f0335c67000) libm.so.6 => /lib/libm.so.6 (0x00007f03359e4000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f03357c9000) libc.so.6 => /lib/libc.so.6 (0x00007f0335476000) libutil.so.1 => /lib/libutil.so.1 (0x00007f0335273000) libdl.so.2 => /lib/libdl.so.2 (0x00007f033506f000) /lib64/ld-linux-x86-64.so.2 (0x00007f0337371000) Terminal: xterm $DISPLAY is set. `which aptitude`: /usr/bin/aptitude aptitude version information: aptitude linkage: -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages aptitude depends on: ii apt [libapt-pkg-libc6. 0.7.21 Advanced front-end for dpkg ii libc6 2.9-13 GNU C Library: Shared libraries ii libcwidget3 0.5.12-4 high-level terminal interface libr ii libept0 0.5.26+b1 High-level library for managing De ii libgcc1 1:4.4.0-5 GCC support library ii libncursesw5 5.7+20090523-1 shared libraries for terminal hand ii libsigc++-2.0-0c2a 2.0.18-2 type-safe Signal Framework for C++ ii libstdc++6 4.4.0-5 The GNU Standard C++ Library v3 ii libxapian15 1.0.12-2 Search engine library ii zlib1g 1:1.2.3.3.dfsg-13 compression library - runtime Versions of packages aptitude recommends: pn aptitude-doc-en | aptitude-do <none> (no description available) ii libparse-debianchangelog-perl 1.1.1-2 parse Debian changelogs and output Versions of packages aptitude suggests: pn debtags <none> (no description available) ii tasksel 2.79 Tool for selecting tasks for insta -- no debconf information -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

