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

darwin: Fix builds with libtasn1 patch for gnutls #1789

Closed
wants to merge 1 commit into from

Conversation

yondonfu
Copy link
Member

@yondonfu yondonfu commented Mar 11, 2021

What does this pull request do? Explain your changes. (required)

Fixes the broken Darwin build by applying a libtasn1 patch for gnutls.

Darwin builds started failing after the gnutls version was bumped in #1785. The failure did not occur at compile time for gnutls because install_ffmpeg.sh compiles gnutls using the --disable-doc flag and instead it occurred when attempting to link ffmpeg with gnutls. The ffmpeg build then fails with:

ERROR: gnutls not found using pkg-config

tail -n 100 ~/ffmpeg/ffbuild/config.log showed more information about the error.

The error encountered is captured by this gnutls issue. The issue is closed, but the fix does not appear to be shipped with gnutls 3.7.0 yet though. But, a patch was shared in that issue thread and an example of that patch being applied can be found here.

Specific updates (required)

See commit history.

How did you test each of these updates (required)

Successfully created a Darwin build locally.

Now let's see if the Travis build succeeds...

Update: It did! 🥳

Does this pull request close any open issues?

Fixes #1788

Checklist:

  • README and other documentation updated
  • Node runs in OSX and devenv
  • All tests in ./test.sh pass

@yondonfu yondonfu requested a review from iameli March 11, 2021 14:32
@yondonfu yondonfu force-pushed the yf/fix-darwin-build branch from 7ea7c6a to 540ab02 Compare March 11, 2021 15:25
@iameli
Copy link
Contributor

iameli commented Mar 12, 2021

I'm super confused why this fails at link-time rather than compile-time. And... what, libtasn1 has been broken on Darwin for nearly a year? How does that happen?

@yondonfu
Copy link
Member Author

Superseded by #1795

@yondonfu yondonfu closed this Mar 12, 2021
@yondonfu yondonfu deleted the yf/fix-darwin-build branch March 12, 2021 20:01
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.

ci: Darwin builds broken
2 participants