https://bugzilla.redhat.com/show_bug.cgi?id=1474072

            Bug ID: 1474072
           Summary: fontconfig-devel provides incorrect includedir in
                    /usr/lib64/pkgconfig/fontconfig.pc
           Product: Fedora
           Version: 26
         Component: fontconfig
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected],
                    [email protected], [email protected],
                    [email protected]



Created attachment 1303238
  --> https://bugzilla.redhat.com/attachment.cgi?id=1303238&action=edit
Compilation check

Description of problem:
See subj.

Version-Release number of selected component (if applicable):
fontconfig-devel-2.12.1-4.fc26.x86_64


How reproducible:

Steps to Reproduce:
1. dnf install fontconfig-devel
2. # Unpack tarball from attachment. 
3. cd xfontchk
4. make

Actual results:
c99 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/libpng16  
-I/usr/include/freetype2 -I/usr/include/libpng16  -DVERSION="0.7"
-D_XOPEN_SOURCE=600 -O -c xfontchk.c
xfontchk.c:2:10: fatal error: fontconfig.h: No such file or directory
 #include <fontconfig.h>
          ^~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:7: xfontchk.o] Error 1


Expected results:
c99 -I/usr/X11R6/include -I/usr/include/fontconfig -I/usr/include/freetype2
-I/usr/include/libpng16   -I/usr/include/freetype2 -I/usr/include/libpng16 
-DVERSION="0.7" -D_XOPEN_SOURCE=600 -O -c xfontchk.c
c99 -L/usr/X11R6/lib -lm -lrt -lX11 -lutil -lXft -lfontconfig -lfreetype 
-lfreetype  -o xfontchk xfontchk.o



Additional info:
Due to fontconfig-devel provides only /usr/include/fontconfig folder, the
solution is:
$ diff /usr/lib64/pkgconfig/fontconfig.pc{.orig,}
4c4
< includedir=/usr/include
---
> includedir=/usr/include/fontconfig

which give expected result.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
fonts-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to