FS#28123 - [yaml-cpp] wrong clfags in yaml-cpp.pc

Attached to Project: Community Packages
Opened by Anton Bazhenov (manwithgrenade) - Friday, 27 January 2012, 09:33 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Saturday, 28 January 2012, 22:34 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

When trying to compile a program using yaml-cpp, it fails with message:
fatal error: yaml.h: No such file or directory

After doing some research I found the error in the file:
/usr/lib/pkgconfig/yaml-cpp.pc

This line:
Cflags: -I${includedir}

should be changed to:
Cflags: -I${includedir}/yaml-cpp

After this change compilation finished without any problems.


Additional info:
* package version - yaml-cpp 0.2.7-1


Steps to reproduce:
* Try to compile a program using yaml-cpp.
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Saturday, 28 January 2012, 22:34 GMT
Reason for closing:  Not a bug
Comment by Anton Bazhenov (manwithgrenade) - Friday, 27 January 2012, 09:42 GMT
Sorry, I forgot to add bug summary... :(
Comment by Alexander F. Rødseth (xyproto) - Friday, 27 January 2012, 20:35 GMT
No worries, thanks for reporting.
Comment by Sven-Hendrik Haase (Svenstaro) - Saturday, 28 January 2012, 21:09 GMT
This is actually an upstream problem because I'm not doing anything except than build the lib. Please report it here: http://code.google.com/p/yaml-cpp/issues/list

Feel free to link to this issue. I'm closing it though as it is an easy fix for upstream.

Reopen it in case upstream thinks this should be changed downstream.
Comment by Sven-Hendrik Haase (Svenstaro) - Saturday, 28 January 2012, 22:34 GMT
Reopened to say that I asked upstream and they told me you are actually supposed to #include <yaml-cpp/yaml.h> so that is that.

Loading...