Skip to content

linux/arm64: build a vanilla libcurl and link to that - #129

Merged
shiftkey merged 9 commits into
masterfrom
experiment-with-latest-curl
Oct 23, 2018
Merged

shiftkey merged 9 commits into
masterfrom
experiment-with-latest-curl

Conversation

@shiftkey

@shiftkey shiftkey commented Oct 20, 2018 •

Copy link
Copy Markdown
Member

A first pass at resolving #109 by linking to CURL_OPENSSL_4 and libcurl.so.4 rather than our current situation of CURL_OPENSSL_3 and libcurl.so.4.

  • Linux build
    • update config to build against plain libcurl
    • add test to verify clone works with generated binary and downloaded CA bundle
    • cleanup distro-specific curl development packages
  • ARM64 build
    • update config to build against plain libcurl
    • add test to verify clone works with generated binary and downloaded CA bundle
    • cleanup distro-specific curl development packages

@shiftkey
shiftkey force-pushed the experiment-with-latest-curl branch from f86fb38 to 06e2249 Compare October 20, 2018 21:24
@shiftkey shiftkey changed the title build a vanilla libcurl and link to that linux: build a vanilla libcurl and link to that Oct 20, 2018
@shiftkey

shiftkey commented Oct 20, 2018 •

Copy link
Copy Markdown
Member Author

Before this change, the objdump details for git-remote-http look like this:

File: ./libexec/git-core/git-remote-http
readelf output:
 0x0000000000000001 (NEEDED)             Shared library: [libcurl.so.4]
 0x0000000000000001 (NEEDED)             Shared library: [libz.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [librt.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
objdump GLIBC output:
GLIBC_2.14 
GLIBC_2.2.5
GLIBC_2.3 
GLIBC_2.3.4
GLIBC_2.4 
objdump curl output:
 CURL_OPENSSL_3 curl_easy_cleanup
 CURL_OPENSSL_3 curl_easy_duphandle
 CURL_OPENSSL_3 curl_easy_getinfo
 CURL_OPENSSL_3 curl_easy_init
 CURL_OPENSSL_3 curl_easy_setopt
 CURL_OPENSSL_3 curl_easy_strerror
 CURL_OPENSSL_3 curl_global_cleanup
 CURL_OPENSSL_3 curl_global_init
 CURL_OPENSSL_3 curl_multi_add_handle
 CURL_OPENSSL_3 curl_multi_cleanup
 CURL_OPENSSL_3 curl_multi_fdset
 CURL_OPENSSL_3 curl_multi_info_read
 CURL_OPENSSL_3 curl_multi_init
 CURL_OPENSSL_3 curl_multi_perform
 CURL_OPENSSL_3 curl_multi_remove_handle
 CURL_OPENSSL_3 curl_multi_strerror
 CURL_OPENSSL_3 curl_multi_timeout
 CURL_OPENSSL_3 curl_slist_append
 CURL_OPENSSL_3 curl_slist_free_all

With this PR, it now looks like this:

File: ./libexec/git-core/git-remote-http
readelf output:
 0x0000000000000001 (NEEDED)             Shared library: [libcurl.so.4]
 0x0000000000000001 (NEEDED)             Shared library: [libz.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [librt.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
objdump GLIBC output:
GLIBC_2.14 
GLIBC_2.2.5
GLIBC_2.3 
GLIBC_2.3.4
GLIBC_2.4 
objdump curl output:
 curl_easy_cleanup
 curl_easy_duphandle
 curl_easy_getinfo
 curl_easy_init
 curl_easy_setopt
 curl_easy_strerror
 curl_global_cleanup
 curl_global_init
 curl_multi_add_handle
 curl_multi_cleanup
 curl_multi_fdset
 curl_multi_info_read
 curl_multi_init
 curl_multi_perform
 curl_multi_remove_handle
 curl_multi_strerror
 curl_multi_timeout
 curl_slist_append
 curl_slist_free_all

This seems promising, and I'll put together a release candidate for further testing once I wrap up this PR.

@shiftkey
shiftkey force-pushed the experiment-with-latest-curl branch 3 times, most recently from 524afc1 to 8535835 Compare October 21, 2018 14:12
@shiftkey shiftkey changed the title linux: build a vanilla libcurl and link to that linux/arm64: build a vanilla libcurl and link to that Oct 21, 2018
@shiftkey
shiftkey force-pushed the experiment-with-latest-curl branch from 9ae7e49 to 50f635e Compare October 21, 2018 20:19
@shiftkey shiftkey closed this Oct 22, 2018
@shiftkey shiftkey reopened this Oct 22, 2018
@shiftkey
shiftkey force-pushed the experiment-with-latest-curl branch 2 times, most recently from 3b7c89b to 1e9caaf Compare October 23, 2018 11:24
@shiftkey
shiftkey force-pushed the experiment-with-latest-curl branch from 1e9caaf to 5e3e408 Compare October 23, 2018 14:44
@shiftkey

Copy link
Copy Markdown
Member Author

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