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(buildtool): let libevent use OpenSSL's pkgconfig #1369

Merged
merged 15 commits into from
Oct 12, 2023
Merged

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Oct 12, 2023

This diff modifies ./internal/cmd/buildtool to (1) stop removing OpenSSL's pkgconfig, (2) use such a pkgconfig during libevent's ./configure step, and (3) make sure libevent's install does not remove OpenSSL's pkgconfig.

We're implementing changes (1) and (2) because libevent fails to properly configure for iOS if you have a system with homebrew with OpenSSL@3 installed. Unless we force the PKG_CONFIG_PATH, libevent's configure uses the OpenSSL@3 headers and library installed with homebrew rather than the ones we cross compiled.

Change (3) is there because otherwise we cannot recompile libevent without recompiling OpenSSL, since the libevent build fails unless we have a suitable OpenSSL pkgconfig, as explained before.

This diff was extracted and refined from #1366.

The reference issue is: ooni/probe#2564.

@bassosimone bassosimone changed the title Fullbuild fix(buildtool): let libevent use OpenSSL's pkgconfig Oct 12, 2023
@bassosimone bassosimone marked this pull request as ready for review October 12, 2023 13:42
@bassosimone bassosimone requested a review from hellais as a code owner October 12, 2023 13:42
@bassosimone bassosimone merged commit ea4ef4e into master Oct 12, 2023
@bassosimone bassosimone deleted the fullbuild branch October 12, 2023 14:46
bassosimone added a commit that referenced this pull request Oct 12, 2023
This diff backports #1369 to the release/3.19 branch.

This diff modifies `./internal/cmd/buildtool` to (1) stop removing
OpenSSL's pkgconfig, (2) use such a pkgconfig during libevent's
`./configure` step, and (3) make sure libevent's install does not remove
OpenSSL's pkgconfig.

We're implementing changes (1) and (2) because libevent fails to
properly configure for iOS if you have a system with homebrew with
OpenSSL@3 installed. Unless we force the `PKG_CONFIG_PATH`, libevent's
`configure` uses the OpenSSL@3 headers and library installed with
homebrew rather than the ones we cross compiled.

Change (3) is there because otherwise we cannot recompile libevent
without recompiling OpenSSL, since the libevent build fails unless we
have a suitable OpenSSL pkgconfig, as explained before.

This diff was extracted and refined from
#1366.

The reference issue is: ooni/probe#2564.
Murphy-OrangeMud pushed a commit to Murphy-OrangeMud/probe-cli that referenced this pull request Feb 13, 2024
This diff modifies `./internal/cmd/buildtool` to (1) stop removing
OpenSSL's pkgconfig, (2) use such a pkgconfig during libevent's
`./configure` step, and (3) make sure libevent's install does not remove
OpenSSL's pkgconfig.

We're implementing changes (1) and (2) because libevent fails to
properly configure for iOS if you have a system with homebrew with
OpenSSL@3 installed. Unless we force the `PKG_CONFIG_PATH`, libevent's
`configure` uses the OpenSSL@3 headers and library installed with
homebrew rather than the ones we cross compiled.

Change (3) is there because otherwise we cannot recompile libevent
without recompiling OpenSSL, since the libevent build fails unless we
have a suitable OpenSSL pkgconfig, as explained before.

This diff was extracted and refined from
ooni#1366.

The reference issue is: ooni/probe#2564.
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.

1 participant