Bug 73686

Summary: confdir is not set correctly in fontconfig.pc
Product: fontconfig Reporter: Vikraman Choudhury <vikraman.choudhury>
Component: libraryAssignee: fontconfig-bugs
Status: RESOLVED FIXED QA Contact: Behdad Esfahbod <freedesktop>
Severity: normal    
Priority: medium CC: akira
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: 0001-Set-confdir-correctly.patch

Description Vikraman Choudhury 2014-01-16 07:45:24 UTC
$ cat /usr/lib/pkgconfig/fontconfig.pc
prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib
includedir=${prefix}/include
sysconfdir=/etc
localstatedir=/var
PACKAGE=fontconfig
confdir=@baseconfigdir@
cachedir=${localstatedir}/cache/${PACKAGE}

Name: Fontconfig
Description: Font configuration and customization library
Version: 2.11.0
Requires:  freetype2
Requires.private:  expat
Libs: -L${libdir} -lfontconfig
Libs.private: -lexpat  -lfreetype
Cflags: -I${includedir}  -I/usr/include/freetype2 -I/usr/include/libpng16

@baseconfigdir@ is not expanded since it is set in Makefile.am while fontconfig.pc is generated from configure.ac. The correct value should be @BASECONFIGDIR@ which is known in configure.ac.

I have attached a one line patch which fixes this.
Comment 1 Vikraman Choudhury 2014-01-16 07:46:37 UTC
Created attachment 92206 [details] [review]
0001-Set-confdir-correctly.patch
Comment 2 Akira TAGOH 2014-01-16 10:31:57 UTC
Thanks for reporting. fixed in git.

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.