Skip to content

ci: fix mbedtls runners on macOS - #1381

Merged
MichaelBuckley merged 1 commit into
libssh2:masterfrom
MichaelBuckley:fix-mbedtls-ci
May 8, 2024
Merged

MichaelBuckley merged 1 commit into
libssh2:masterfrom
MichaelBuckley:fix-mbedtls-ci

Conversation

@MichaelBuckley

Copy link
Copy Markdown
Contributor

No description provided.

@MichaelBuckley

Copy link
Copy Markdown
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

vszakats commented May 8, 2024

Copy link
Copy Markdown
Member

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

@MichaelBuckley

Copy link
Copy Markdown
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

vszakats commented May 8, 2024

Copy link
Copy Markdown
Member

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
Copy Markdown
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