-
Notifications
You must be signed in to change notification settings - Fork 16
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
Require and use measurement-kit v0.10.11 #374
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I explained the changes in detail:
@@ -5,4 +5,4 @@ jobs: | |||
runs-on: ubuntu-latest | |||
steps: | |||
- uses: actions/checkout@v2 | |||
- run: docker run -v`pwd`:/mk -w/mk openobservatory/mk-alpine:20200225 /mk/.github/workflows/mk.sh | |||
- run: docker run -v`pwd`:/mk -w/mk openobservatory/mk-alpine:20200226 /mk/.github/workflows/mk.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docker image with MK v0.10.11
@@ -23,19 +23,17 @@ import ( | |||
// #cgo windows,amd64 CFLAGS: -I/usr/local/opt/mingw-w64-measurement-kit/include/ | |||
// #cgo windows,amd64 LDFLAGS: /usr/local/opt/mingw-w64-measurement-kit/lib/libmeasurement_kit.a | |||
// #cgo windows,amd64 LDFLAGS: /usr/local/opt/mingw-w64-libmaxminddb/lib/libmaxminddb.a | |||
// #cgo windows,amd64 LDFLAGS: /usr/local/opt/mingw-w64-curl/lib/libcurl.a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MK v0.10.11 doesn't depend anymore on curl on Windows
// #cgo windows,amd64 LDFLAGS: /usr/local/opt/mingw-w64-libevent/lib/libevent_openssl.a | ||
// #cgo windows,amd64 LDFLAGS: /usr/local/opt/mingw-w64-libressl/lib/libssl.a | ||
// #cgo windows,amd64 LDFLAGS: /usr/local/opt/mingw-w64-libressl/lib/libcrypto.a | ||
// #cgo windows,amd64 LDFLAGS: /usr/local/opt/mingw-w64-libevent/lib/libevent_core.a | ||
// #cgo windows,amd64 LDFLAGS: /usr/local/opt/mingw-w64-libevent/lib/libevent_extra.a | ||
// #cgo windows,amd64 LDFLAGS: -lws2_32 | ||
// #cgo windows,amd64 LDFLAGS: -fstack-protector-strong |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is inherited by LibreSSL, which forces this flag. It's super annoying because this flag is not allowed by CGO by default and, to be able to use it, we need to export CGO_LDFLAGS_ALLOW='-fstack-.*'
// | ||
// #cgo linux,amd64,ooni LDFLAGS: -static | ||
// #cgo linux,amd64,ooni LDFLAGS: /usr/local/lib/libmeasurement_kit.a | ||
// #cgo linux,amd64,ooni LDFLAGS: /usr/lib/libmaxminddb.a | ||
// #cgo linux,amd64,ooni LDFLAGS: /usr/lib/libcurl.a | ||
// #cgo linux,amd64,ooni LDFLAGS: /usr/lib/libnghttp2.a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also on Linux (the OONI flavour), we don't depend on libcurl and its dependencies anymore.
@@ -46,7 +44,7 @@ import ( | |||
// | |||
// #cgo linux,!ooni LDFLAGS: -lmeasurement_kit | |||
// | |||
// #if MK_VERSION_NUMERIC != 0x00000000010000101LL | |||
// #if MK_VERSION_NUMERIC != 0x00000000010000111LL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we're saying we want MK v0.10.11
Also part of #334