Skip to content

Commit

Permalink
chore: upgrade C dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Mar 21, 2024
1 parent cd86c8b commit 0879056
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
16 changes: 8 additions & 8 deletions internal/cmd/buildtool/android_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -702,12 +702,12 @@ func TestAndroidBuildCdepsOpenSSL(t *testing.T) {
expect: []buildtooltest.ExecExpectations{{
Env: []string{},
Argv: []string{
"curl", "-fsSLO", "https://www.openssl.org/source/openssl-3.2.0.tar.gz",
"curl", "-fsSLO", "https://www.openssl.org/source/openssl-3.2.1.tar.gz",
},
}, {
Env: []string{},
Argv: []string{
"tar", "-xf", "openssl-3.2.0.tar.gz",
"tar", "-xf", "openssl-3.2.1.tar.gz",
},
}, {
Env: []string{},
Expand Down Expand Up @@ -757,12 +757,12 @@ func TestAndroidBuildCdepsOpenSSL(t *testing.T) {
}, {
Env: []string{},
Argv: []string{
"curl", "-fsSLO", "https://www.openssl.org/source/openssl-3.2.0.tar.gz",
"curl", "-fsSLO", "https://www.openssl.org/source/openssl-3.2.1.tar.gz",
},
}, {
Env: []string{},
Argv: []string{
"tar", "-xf", "openssl-3.2.0.tar.gz",
"tar", "-xf", "openssl-3.2.1.tar.gz",
},
}, {
Env: []string{},
Expand Down Expand Up @@ -812,12 +812,12 @@ func TestAndroidBuildCdepsOpenSSL(t *testing.T) {
}, {
Env: []string{},
Argv: []string{
"curl", "-fsSLO", "https://www.openssl.org/source/openssl-3.2.0.tar.gz",
"curl", "-fsSLO", "https://www.openssl.org/source/openssl-3.2.1.tar.gz",
},
}, {
Env: []string{},
Argv: []string{
"tar", "-xf", "openssl-3.2.0.tar.gz",
"tar", "-xf", "openssl-3.2.1.tar.gz",
},
}, {
Env: []string{},
Expand Down Expand Up @@ -867,12 +867,12 @@ func TestAndroidBuildCdepsOpenSSL(t *testing.T) {
}, {
Env: []string{},
Argv: []string{
"curl", "-fsSLO", "https://www.openssl.org/source/openssl-3.2.0.tar.gz",
"curl", "-fsSLO", "https://www.openssl.org/source/openssl-3.2.1.tar.gz",
},
}, {
Env: []string{},
Argv: []string{
"tar", "-xf", "openssl-3.2.0.tar.gz",
"tar", "-xf", "openssl-3.2.1.tar.gz",
},
}, {
Env: []string{},
Expand Down
10 changes: 5 additions & 5 deletions internal/cmd/buildtool/cdepsopenssl.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ func cdepsOpenSSLBuildMain(globalEnv *cBuildEnv, deps buildtoolmodel.Dependencie
defer restore()

// See https://github.com/Homebrew/homebrew-core/blob/master/Formula/o/[email protected]
cdepsMustFetch("https://www.openssl.org/source/openssl-3.2.0.tar.gz")
cdepsMustFetch("https://www.openssl.org/source/openssl-3.2.1.tar.gz")
deps.VerifySHA256( // must be mockable
"14c826f07c7e433706fb5c69fa9e25dab95684844b4c962a2cf1bf183eb4690e",
"openssl-3.2.0.tar.gz",
"83c7329fe52c850677d75e5d0b0ca245309b97e8ecbcfdc1dfdc4ab9fac35b39",
"openssl-3.2.1.tar.gz",
)
must.Run(log.Log, "tar", "-xf", "openssl-3.2.0.tar.gz")
_ = deps.MustChdir("openssl-3.2.0") // must be mockable
must.Run(log.Log, "tar", "-xf", "openssl-3.2.1.tar.gz")
_ = deps.MustChdir("openssl-3.2.1") // must be mockable

mydir := filepath.Join(topdir, "CDEPS", "openssl")
for _, patch := range cdepsMustListPatches(mydir) {
Expand Down
12 changes: 6 additions & 6 deletions internal/cmd/buildtool/ios_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,12 +349,12 @@ func TestIOSBuildCdepsOpenSSL(t *testing.T) {
expect: []buildtooltest.ExecExpectations{{
Env: []string{},
Argv: []string{
"curl", "-fsSLO", "https://www.openssl.org/source/openssl-3.2.0.tar.gz",
"curl", "-fsSLO", "https://www.openssl.org/source/openssl-3.2.1.tar.gz",
},
}, {
Env: []string{},
Argv: []string{
"tar", "-xf", "openssl-3.2.0.tar.gz",
"tar", "-xf", "openssl-3.2.1.tar.gz",
},
}, {
Env: []string{},
Expand Down Expand Up @@ -399,12 +399,12 @@ func TestIOSBuildCdepsOpenSSL(t *testing.T) {
}, {
Env: []string{},
Argv: []string{
"curl", "-fsSLO", "https://www.openssl.org/source/openssl-3.2.0.tar.gz",
"curl", "-fsSLO", "https://www.openssl.org/source/openssl-3.2.1.tar.gz",
},
}, {
Env: []string{},
Argv: []string{
"tar", "-xf", "openssl-3.2.0.tar.gz",
"tar", "-xf", "openssl-3.2.1.tar.gz",
},
}, {
Env: []string{},
Expand Down Expand Up @@ -449,12 +449,12 @@ func TestIOSBuildCdepsOpenSSL(t *testing.T) {
}, {
Env: []string{},
Argv: []string{
"curl", "-fsSLO", "https://www.openssl.org/source/openssl-3.2.0.tar.gz",
"curl", "-fsSLO", "https://www.openssl.org/source/openssl-3.2.1.tar.gz",
},
}, {
Env: []string{},
Argv: []string{
"tar", "-xf", "openssl-3.2.0.tar.gz",
"tar", "-xf", "openssl-3.2.1.tar.gz",
},
}, {
Env: []string{},
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/buildtool/linuxcdeps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ func TestLinuxCdepsBuildMain(t *testing.T) {
expect: []buildtooltest.ExecExpectations{{
Env: []string{},
Argv: []string{
"curl", "-fsSLO", "https://www.openssl.org/source/openssl-3.2.0.tar.gz",
"curl", "-fsSLO", "https://www.openssl.org/source/openssl-3.2.1.tar.gz",
},
}, {
Env: []string{},
Argv: []string{
"tar", "-xf", "openssl-3.2.0.tar.gz",
"tar", "-xf", "openssl-3.2.1.tar.gz",
},
}, {
Env: []string{},
Expand Down

0 comments on commit 0879056

Please sign in to comment.