GNU bug report logs - #49722
27.2; Emacs won't build with old versions of fontconfig

Previous Next

Package: emacs;

Reported by: Andrei Kuznetsov <r12451428287 <at> 163.com>

Date: Sat, 24 Jul 2021 16:32:02 UTC

Severity: normal

Found in version 27.2

Fixed in version 28.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #22 received at control <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Andrei Kuznetsov <r12451428287 <at> 163.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 49722 <at> debbugs.gnu.org
Subject: Re: bug#49722: 27.2; Emacs won't build with old versions of fontconfig
Date: Fri, 5 Nov 2021 07:14:10 -0700
close 49722 28.1
thanks

Eli Zaretskii <eliz <at> gnu.org> writes:

>> xftfont.c: In function ‘xftfont_cached_font_ok’:
>> xftfont.c:591: error: ‘FC_LCD_FILTER’ undeclared (first use in this function)
>> xftfont.c:591: error: (Each undeclared identifier is reported only once
>> xftfont.c:591: error: for each function it appears in.)
>>
>> It appears that FC_LCD_FILTER is not present on these older versions of
>> fontconfig.
>
> Thanks.  We once had the following in xftfont.c:
>
>   #ifndef FC_LCD_FILTER
>     /* Older fontconfig versions don't have FC_LCD_FILTER. */
>   #define FC_LCD_FILTER "lcdfilter"
>   #endif
>
> But it got moved to ftfont.c when a function which used it was moved
> there.  However, since xftfont.c still uses this, I think we should
> have this #define in xftfont.c as well, so please try adding that at
> the beginning of xftfont.c, and see if that helps.

Andrei Kuznetsov <r12451428287 <at> 163.com> writes:

> Indeed it does.  With the aformentioned change, Emacs now builds and
> seems to operate normally.

The fix was installed, so I'm closing this bug report.

commit 41a55a330f518254da795719ac6e3085254d4110
Author: Eli Zaretskii <eliz <at> gnu.org>
Date:   Sun Jul 25 15:50:46 2021 +0300

    Fix compilation of xftfont.c with old fontconfig

    * src/xftfont.c (FC_LCD_FILTER): Define if undefined, for older
    versions of fontconfig.  This was mistakenly deleted 2 years ago.
    (Bug#49722)




This bug report was last modified 3 years and 250 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.