Package: mailutils
Version: 0.6.90-1
Severity: serious
Tags: patch

This package fails to build from source:

if cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../lib
-I../include/mailutils/gnu   -DSYSCONFDIR=\"/etc\"  -g -Wall -O2 -MT
common.o -MD -MP -MF ".deps/common.Tpo" -c -o common.o common.c; \
then mv -f ".deps/common.Tpo" ".deps/common.Po"; else rm -f
".deps/common.Tpo"; exit 1; fi
common.c: In function 'puts_bidi':
common.c:125: warning: passing argument 1 of 'fribidi_parse_charset'
discards qualifiers from pointer target type
common.c:170: error: 'FRIBIDI_CHARSET_CAP_RTL' undeclared (first use
in this function)
common.c:170: error: (Each undeclared identifier is reported only once
common.c:170: error: for each function it appears in.)
make[4]: *** [common.o] Error 1
make[4]: Leaving directory `/tmp/buildd/mailutils-0.6.90/frm'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/buildd/mailutils-0.6.90/frm'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/buildd/mailutils-0.6.90'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/buildd/mailutils-0.6.90'
make: *** [debian/stamp-makefile-build] Error 2

The attached patch makes it use FRIBIDI_CHAR_SET_CAP_RTL instead,
which fixes the problem.

-- 
Matt
--- mailutils-0.6.90.orig/frm/common.c
+++ mailutils-0.6.90/frm/common.c
@@ -167,7 +167,7 @@
              wid = 3 * logical_size;
              st = idx;
 
-             if (fb_charset_num != FRIBIDI_CHARSET_CAP_RTL)
+             if (fb_charset_num != FRIBIDI_CHAR_SET_CAP_RTL)
                {
                  while (wid > 0 && idx < len)
                    wid -= fribidi_wcwidth (visual[idx++]);

Attachment: signature.asc
Description: Digital signature

Reply via email to