Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix include path for pkg-config #235

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

roolebo
Copy link

@roolebo roolebo commented Apr 4, 2021

yajl headers are supposed to be installed straight into $PREFIX/include/yajl
and they're supposed to be included as <yajl/yajl_something.h>, according to
the documentation.

However, pkg-config returns CFLAGS as $PREFIX/include/yajl and that
breaks build because "#include <yajl/yajl_something.h>" can't find the
header.

This is a problem if $PREFIX is different from /usr or other include
directory that's used implicitly (which is a case on macOS with
homebrew, where every package has its own $PREFIX).

yajl headers are supposed to be installed straight into $PREFIX/include/yajl
and they're supposed to be included as <yajl/yajl_something.h>, according to
the documentation.

However, pkg-config returns CFLAGS as $PREFIX/include/yajl and that
breaks build because "#include <yajl/yajl_something.h>" can't find the
header.

This is a problem if $PREFIX is different from /usr or other include
directory that's used implicitly (which is a case on macOS with
homebrew, where every package has its own $PREFIX).
robohack added a commit to robohack/yajl that referenced this pull request May 13, 2021
This is from lloyd/yajl#235

Also fix and update some comments, and the package description.
@robohack
Copy link

I've fixed this on my fork: https://github.com/robohack/yajl (on the default "bsdmake" branch). There are other fixes also included in my branch, as well as a rewrite of the build system and documentation generation (to avoid the CMake disaster), as well as a full replacement for the pgksrc devel/yajl module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants