Bug 101202

Summary: fontconfig FTBFS if docbook-utils is installed
Product: fontconfig Reporter: Laurent Bigonville <bigon>
Component: docAssignee: fontconfig-bugs
Status: RESOLVED FIXED QA Contact: Behdad Esfahbod <freedesktop>
Severity: normal    
Priority: medium CC: akira
Version: 2.11   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Laurent Bigonville 2017-05-26 14:39:07 UTC
Hi,

The following bug has been reported to the debian bug tracker, I've been able to reproduce it myself:

===========
Dear Maintainer,

Building fontconfig (2.12.1-0.1) as a backport to Dessie/Stable. 
When building *with docbook* enabled, there results the following error message:

Makefile:1309: *** Recursive variable 'CC' references itself (eventually).  Stop.

fontconfig-2.12.1-0.1/doc/Makefile gets generated and at lines 1309-1311 this is:

$(edit_sgml_OBJECTS) : CC=$(CC_FOR_BUILD)
$(edit_sgml_OBJECTS) : CFLAGS=$(CFLAGS_FOR_BUILD)
$(edit_sgml_OBJECTS) : CPPFLAGS=$(CPPFLAGS_FOR_BUILD)

Changing these lines to simple expansion fixes the issue and allows compilation to finish:

$(edit_sgml_OBJECTS) : CC:=$(CC_FOR_BUILD)
$(edit_sgml_OBJECTS) : CFLAGS:=$(CFLAGS_FOR_BUILD)
$(edit_sgml_OBJECTS) : CPPFLAGS:=$(CPPFLAGS_FOR_BUILD)
===========



https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862483
Comment 1 Akira TAGOH 2017-05-31 05:05:52 UTC
Fixed in git. thanks.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.