reassign 470250 libtext-wrapi18n-perl tags 470250 patch thanks On Mon, Mar 10, 2008 at 09:23:24AM +0000, [EMAIL PROTECTED] wrote: > Package: po4a > Version: 0.33-1 > > dpkg 1.15.1 (on the branch whose status is currently disputed) does > not build on sid because po4a spins on the cpu consuming more and more > memory. > > I reproduced the bug like this: > > really pbuilder --build --distribution sid --buildresult > /u/ian/an-things/Dpkg2/build/result dpkg_1.15.1.dsc 2>&1 |tee log > > of which the important part is this: > > pbuilder --build --distribution sid dpkg_1.15.1.dsc > > At http://www.chiark.greenend.org.uk/~ian/2008-03-10-po4a-bug/ you can > find dpkg 1.15.1 in Debian source package format, and the full log > from the build (the file `log' from tee, above).
The infinite loop occurs in Text::WrapI18N when po4a tries to report an error in the PO files. This can be fixed currently in po4a by: * fixing the POs * setting COLUMNS to another (high) number * enlarging the terminal * removing libtext-wrapi18n-perl (it's only recommended). I could reproduce the problem in WrapI18N::wrap() with the short test.pl attached, and I also proposes the attached patch to WrapI18N::wrap(). (A word should be placed on the next line if it fits on this line, but the leading header must be taken into account, thus $columns -> $columns - length $header) Best Regards, -- Nekral -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]