Skip to content

ci: fix mbedtls runners on macOS #1381

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

Merged
merged 1 commit into from
May 8, 2024

Conversation

MichaelBuckley
Copy link
Contributor

No description provided.

@MichaelBuckley
Copy link
Contributor Author

OK, obviously I messed soemthing up there becasue it only ran two checks. Investigating…

@MichaelBuckley MichaelBuckley force-pushed the fix-mbedtls-ci branch 3 times, most recently from f1dec82 to 622ce6a Compare May 8, 2024 18:55
@MichaelBuckley MichaelBuckley merged commit 8441153 into libssh2:master May 8, 2024
@MichaelBuckley MichaelBuckley deleted the fix-mbedtls-ci branch May 8, 2024 19:24
@vszakats
Copy link
Member

vszakats commented May 8, 2024

Isn't this ultmately a bug in our configure scripts?

@MichaelBuckley
Copy link
Contributor Author

It might be, but I also don't think this would affect normal macOS installations. I could be wrong here, but the issue appears to be that libz is only installed on /opt/homebrew on the runners, while most macOS installations also have it in /usr.

But I definitely could be mistaken.

vszakats added a commit to vszakats/libssh2 that referenced this pull request May 8, 2024
@vszakats
Copy link
Member

vszakats commented May 8, 2024

Ah okay, if this is specific to the GHA runners, and not to regular macOS ARM + Homebrew installs, I agree we shouldn't chase it further. (Aside from possibly reporting it to GitHub.)

vszakats added a commit to vszakats/libssh2 that referenced this pull request May 8, 2024
@MichaelBuckley
Copy link
Contributor Author

I can try it on a clean macOS ARM install this evening and see if it works.

vszakats added a commit that referenced this pull request May 8, 2024
vszakats added a commit that referenced this pull request May 8, 2024
autotools lib detection routine failed to extend LDFLAGS for each
detection. This could cause successful detection of a dependency, but
later failing to use it. This did not cause an issue as long as all
dependencies lived under the same prefix, but started breaking on macOS
ARM + Homebrew where this was no longer true for mbedTLS and zlib in
particular.

Follow-up to 8441153 #1381
Follow-up to ae2770d #1377
Closes #1384
agreppin pushed a commit to agreppin/libssh2 that referenced this pull request Jul 14, 2024
Sets LDFLAGS while configuring the autoconf mbedTLS build for macOS.
agreppin pushed a commit to agreppin/libssh2 that referenced this pull request Jul 14, 2024
agreppin pushed a commit to agreppin/libssh2 that referenced this pull request Jul 14, 2024
autotools lib detection routine failed to extend LDFLAGS for each
detection. This could cause successful detection of a dependency, but
later failing to use it. This did not cause an issue as long as all
dependencies lived under the same prefix, but started breaking on macOS
ARM + Homebrew where this was no longer true for mbedTLS and zlib in
particular.

Follow-up to 8441153 libssh2#1381
Follow-up to ae2770d libssh2#1377
Closes libssh2#1384
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