Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

use pkg-config to find evhtp #1040

Closed
wants to merge 1 commit into from

Conversation

philandstuff
Copy link
Contributor

ellzey/libevhtp#166 (released in 1.2.11) installs a pkgconfig file in the right place which can be used to pull in headers and libs appropriately.

I found this useful when trying to build on Nixos. Haven't yet tested in other environments but happy to test ubuntu at least.

@googlebot
Copy link
Collaborator

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@philandstuff
Copy link
Contributor Author

ACK on the CLA. Will get back to you.

@pphaneuf pphaneuf self-assigned this Nov 10, 2015
@pphaneuf
Copy link
Contributor

This breaks our continuous build, so it's unlikely that we'd accept it in this form...

Two options:

  • have the call to configure (in build/configure-ct) include the necessary evhtp_CFLAGS and evhtp_LIBS
  • update to the newer version of libevhtp

@googlebot
Copy link
Collaborator

CLAs look good, thanks!

@googlebot
Copy link
Collaborator

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@philandstuff
Copy link
Contributor Author

I think I worked out why the build was failing, and have updated the branch which (hopefully) should resolve the build errors.

@benlaurie
Copy link
Collaborator

Hmm. You seem to have broken the CLA checking.

@philandstuff
Copy link
Contributor Author

maybe it can't cope with force pushes? I can close this and open another PR if that would help?

@AlCutter AlCutter added cla: yes and removed cla: no labels Nov 19, 2015
@pphaneuf
Copy link
Contributor

I think you might have changed the email address you were using in the commits?

@pphaneuf
Copy link
Contributor

We have forced many pushes in the past, I'm sure it can deal with those. 😃

@philandstuff
Copy link
Contributor Author

@pphaneuf yeah I think the email address is probably it. I'll update my user.email setting for this repo for future.

@pphaneuf
Copy link
Contributor

You can fix this in a few ways... First, I think you can add additional email addresses to your CLA signature?

Alternatively, you could squash your commits into a single commit, make sure your user.email setting is correct, and do git commit --amend -C HEAD --reset-author. This will, well, reset the author in the commit. 😃

@googlebot
Copy link
Collaborator

CLAs look good, thanks!

@philandstuff
Copy link
Contributor Author

I used git filter-branch to rewrite the commits in the end.

@pphaneuf
Copy link
Contributor

Would it be possible to have this without upgrading evhtp? As in, modify the configure-ct script to add the evhtp_CFLAGS and evhtp_LIBS flags?

@benlaurie
Copy link
Collaborator

On Thu, 19 Nov 2015 at 19:48 Philip Potter notifications@github.com wrote:

I used git filter-branch to rewrite the commits in the end.

A corner of git-land I have not explored!

@philandstuff
Copy link
Contributor Author

@pphaneuf I'm not sure I fully understand but I've opened #1062 to do what I think you're asking for? :)

The libevhtp 1.2.10 creates a .pc file for pkg-config but doesn't
install it.  ellzey/libevhtp#166 fixed this and was released in 1.2.11.
@philandstuff
Copy link
Contributor Author

Now that #1062 has been merged, I've updated this PR. It's much simpler now :)

@pphaneuf
Copy link
Contributor

I like simple a lot. 😃

Not sure if we'll merge that in immediately, I'd like to look at the changes in evhtp a bit first, but at least, anyone can build with what they want, easily (so you shouldn't be blocked).

Thanks!

@philandstuff
Copy link
Contributor Author

agree, happy for this to sit for a while. 👍

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants