Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 46251

Summary: libcroco 0.5.0 : headers installed in wrong directory
Product: Gentoo Linux Reporter: Stephane Loeuillet <leroutier>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: dju
Priority: High    
Version: 1.4   
Hardware: All   
OS: Linux   
URL: http://www.freespiders.org/projects/libcroco/
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 30800    

Description Stephane Loeuillet 2004-03-30 08:44:28 UTC
today, i tried to compile screem 0.10.0 (not in portage yet) and it wasn't able to find libcroco.h even if it found libcroco present at configure time

so, i took a look and found libcroco.h there : 
/usr/include/libcroco/libcroco/libcroco.h (one libcroco/ too much i'd say)

libcroco.pc file says :
includedir=${prefix}/include

so, headers are at the wrong place !!


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Stephane Loeuillet 2004-03-30 10:41:09 UTC
guilty file seems to be : src/Makefile.am :

crocoincdir=$(includedir)/libcroco/@PACKAGE@

which should be :

crocoincdir=$(includedir)/@PACKAGE@

which is equal to

crocoincdir=$(includedir)/libcroco

this file is to be fixed upstream

the patch to file to make it work on gentoo is src/Makefile.in (same line, same change)
Makefile.in,104 : crocoincdir = $(includedir)/libcroco/@PACKAGE@
Comment 2 Stephane Loeuillet 2004-03-30 10:48:57 UTC
opened bug upstream as it is not gentoo specific :
http://bugzilla.gnome.org/show_bug.cgi?id=138542
Comment 3 Stephane Loeuillet 2004-03-30 11:36:58 UTC
it is not libcroco's fault (this header directory thing is volontary)
i read the wrong line of the .pc file, Cflags is ok

i spoke to one of the authors, their headers changed between 0.4.0 and 0.5.0

so, as written there :

screem 0.10.0 should

require libcroco 0.4.0 and #include <libcroco.h>
or
require libcroco 0.5.0 and #include <libcroco/libcroco.h>