Bug#814429: geneweb: debian/mktemplates may fail due to grep binary matching: iconv: conversion from `Binary' is not supported

2016-02-11 Thread Peter Gervai
Package: geneweb
Version: 6.08dfsg-3.1
Severity: serious
Tags: patch
Justification: fails to build from source (but built successfully in the past)

Build fails with
iconv: conversion from `Binary' is not supported
on ca language file. The problem is that grep matches the file as binary, and
outputs "Binary file matches", which gets (mis)parsed and screw up iconv params.
Probably dependent on the version of grep, and the phase of the moon possibly. 
:-)

This should fix it anyway:

--- debian/mktemplates  2016-02-11 14:00:53.103700366 +
+++ debian/mktemplates~ 2016-02-11 13:59:01.0 +
@@ -67,7 +67,7 @@
sed '/^\"Content-Type/s/CHARSET/UTF-8/' \
> debian/pobuild/$pofilename.temp
 
-   pocharset=`grep -ai charset $pofile|cut -f2 -d=| sed 's/n\\"//g'`
+   pocharset=`grep -i charset $pofile|cut -f2 -d=| sed 's/n\\"//g'`
cat $pofile | \
 iconv --from $pocharset --to utf-8 | \
sed "s/$pocharset/UTF-8/g" \



Bug#814429: geneweb: debian/mktemplates may fail due to grep binary matching: iconv: conversion from `Binary' is not supported

2016-02-11 Thread Christian PERRIER
Quoting Peter Gervai (g...@grin.hu):
> Package: geneweb
> Version: 6.08dfsg-3.1
> Severity: serious
> Tags: patch
> Justification: fails to build from source (but built successfully in the past)
> 
> Build fails with
> iconv: conversion from `Binary' is not supported
> on ca language file. The problem is that grep matches the file as binary, and
> outputs "Binary file matches", which gets (mis)parsed and screw up iconv 
> params.
> Probably dependent on the version of grep, and the phase of the moon 
> possibly. :-)
> 
> This should fix it anyway:


Indeed the reverse patch fixes the problem, but I got the point anywa,
thanks!

This ca.po file is weird. It has something strange which I can't catch
in its first line, which explains why grep thinks it's binary data, I
guess.

Anyway, building the package right now. It's quite some time since I
did so, so I hope that nothing else weird happens..:-)




signature.asc
Description: PGP signature