Bug 784861

Summary: Need pkg-config cflag and deps to build generated IDL headers
Product: [Fedora] Fedora Reporter: Marc-Andre Lureau <marcandre.lureau>
Component: xulrunnerAssignee: Martin Stransky <stransky>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: gecko-bugs-nobody, johnp, jrb, stransky, walters
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-20 09:44:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Marc-Andre Lureau 2012-01-26 14:02:15 UTC
Description of problem:

The following line seems to be the new way of generating headers from idl files

python /usr/lib64/xulrunner-sdk-2/sdk/bin/header.py -I `pkg-config --variable=idldir libxul` nsISpicec.idl -o  nsISpicec.h

However, the generated header includes a file from nspr.

  CXX    libnsISpicec_la-nsScriptablePeer.lo
In file included from /usr/include/xulrunner-sdk-2/nsError.h:42:0,
                 from nsScriptablePeer.cpp:54:
/usr/include/xulrunner-sdk-2/nscore.h:58:21: fatal error: prtypes.h: No such file or directory
compilation terminated.

It would be great to have the needed cflags given by a pkgconfig, instead of hardcoding something that might change. Same applies to rpm package depedencies.


Version-Release number of selected component (if applicable):

xulrunner-devel-9.0.1-1.fc16.x86_64

Comment 1 Martin Stransky 2012-03-20 09:44:29 UTC
`pkg-config --cflags libxul` will work here for the include dir.