forked from ooni/probe-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade C dependencies (ooni#1194)
Part of ooni/probe#2524. Prompted by observing a failing Linux build test for zlib. Upgrading to OpenSSL v3 is tracked by ooni/probe#2498 and implemented by ooni#1191. While there, fix ./pkg/oonimkall integration tests as well.
- Loading branch information
1 parent
709df6a
commit 58629f0
Showing
7 changed files
with
53 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,14 +26,14 @@ func cdepsOpenSSLBuildMain(globalEnv *cBuildEnv, deps buildtoolmodel.Dependencie | |
restore := cdepsMustChdir(work) | ||
defer restore() | ||
|
||
// See https://github.com/Homebrew/homebrew-core/blob/master/Formula/[email protected] | ||
cdepsMustFetch("https://www.openssl.org/source/openssl-1.1.1u.tar.gz") | ||
// See https://github.com/Homebrew/homebrew-core/blob/master/Formula/o/[email protected] | ||
cdepsMustFetch("https://www.openssl.org/source/openssl-1.1.1v.tar.gz") | ||
deps.VerifySHA256( // must be mockable | ||
"e2f8d84b523eecd06c7be7626830370300fbcc15386bf5142d72758f6963ebc6", | ||
"openssl-1.1.1u.tar.gz", | ||
"d6697e2871e77238460402e9362d47d18382b15ef9f246aba6c7bd780d38a6b0", | ||
"openssl-1.1.1v.tar.gz", | ||
) | ||
must.Run(log.Log, "tar", "-xf", "openssl-1.1.1u.tar.gz") | ||
_ = deps.MustChdir("openssl-1.1.1u") // must be mockable | ||
must.Run(log.Log, "tar", "-xf", "openssl-1.1.1v.tar.gz") | ||
_ = deps.MustChdir("openssl-1.1.1v") // must be mockable | ||
|
||
mydir := filepath.Join(topdir, "CDEPS", "openssl") | ||
for _, patch := range cdepsMustListPatches(mydir) { | ||
|
@@ -47,12 +47,12 @@ func cdepsOpenSSLBuildMain(globalEnv *cBuildEnv, deps buildtoolmodel.Dependencie | |
mergedEnv := cBuildMerge(globalEnv, localEnv) | ||
envp := cBuildExportOpenSSL(mergedEnv) | ||
|
||
// QUIRK: OpenSSL-1.1.1u wants ANDROID_NDK_HOME | ||
// QUIRK: OpenSSL-1.1.1v wants ANDROID_NDK_HOME | ||
if mergedEnv.ANDROID_NDK_ROOT != "" { | ||
envp.Append("ANDROID_NDK_HOME", mergedEnv.ANDROID_NDK_ROOT) | ||
} | ||
|
||
// QUIRK: OpenSSL-1.1.1u wants the PATH to contain the | ||
// QUIRK: OpenSSL-1.1.1v wants the PATH to contain the | ||
// directory where the Android compiler lives. | ||
if mergedEnv.BINPATH != "" { | ||
envp.Append("PATH", cdepsPrependToPath(mergedEnv.BINPATH)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ func TestOONIRunFetch(t *testing.T) { | |
} | ||
|
||
expect := map[string]any{ | ||
"archived": false, | ||
"descriptor_creation_time": "2023-07-18T15:38:21Z", | ||
"descriptor": map[string]any{ | ||
"author": "[email protected]", | ||
|
@@ -48,6 +49,7 @@ func TestOONIRunFetch(t *testing.T) { | |
"short_description": "Integration testing descriptor for ooni/probe-cli/v3/pkg/oonimkall.", | ||
"short_description_intl": map[string]any{}, | ||
}, | ||
"mine": false, | ||
"translation_creation_time": "2023-07-18T15:38:21Z", | ||
"v": 1.0, | ||
} | ||
|