Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151039747
D42040.id128089.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D42040.id128089.diff
View Options
Index: net/measurement-kit/Makefile
===================================================================
--- net/measurement-kit/Makefile
+++ net/measurement-kit/Makefile
@@ -13,7 +13,6 @@
LIB_DEPENDS= libcurl.so:ftp/curl \
libevent.so:devel/libevent \
libmaxminddb.so:net/libmaxminddb
-RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss
USES= autoreconf:build compiler:c++14-lang libtool ssl
USE_GITHUB= yes
Index: net/measurement-kit/files/patch-m4_mk.m4
===================================================================
--- net/measurement-kit/files/patch-m4_mk.m4
+++ net/measurement-kit/files/patch-m4_mk.m4
@@ -1,6 +1,6 @@
---- m4/mk.m4.orig 2019-05-16 20:09:11 UTC
+--- m4/mk.m4.orig 2021-03-04 14:14:57 UTC
+++ m4/mk.m4
-@@ -90,8 +90,10 @@ AC_DEFUN([MK_AM_OPENSSL], [
+@@ -99,8 +99,10 @@ AC_DEFUN([MK_AM_OPENSSL], [
[SSL toolkit @<:@default=check@:>@])
],
[
@@ -12,4 +12,50 @@
+ fi
],
[
- if test -d /usr/local/Cellar/openssl; then
+ if test -d /usr/local/Cellar/openssl@1.1; then
+@@ -252,43 +254,8 @@ dnl
+ dnl Except as contained in this notice, the name of a copyright holder shall not be
+ dnl used in advertising or otherwise to promote the sale, use or other dealings in
+ dnl this Software without prior written authorization of the copyright holder.
+-AC_DEFUN([MK_MAYBE_CA_BUNDLE], [
+- AC_MSG_CHECKING([CA bundle path])
+- AC_ARG_WITH([ca-bundle], AC_HELP_STRING([--with-ca-bundle=FILE],
+- [Path to CA bundle]), [want_ca="$withval"], [want_ca="unset"])
+- if test "x$want_ca" != "xunset"; then
+- ca="$want_ca"
+- else
+- ca="no"
+- if test "x$cross_compiling" != "xyes"; then
+- for a in /etc/ssl/certs/ca-certificates.crt \
+- /etc/pki/tls/certs/ca-bundle.crt \
+- /usr/share/ssl/certs/ca-bundle.crt \
+- /usr/local/share/certs/ca-root.crt \
+- /etc/ssl/cert.pem \
+- /usr/local/etc/openssl/cert.pem; do
+- if test -f "$a"; then
+- ca="$a"
+- break
+- fi
+- done
+- fi
+- fi
+- if test "x$ca" != "xno"; then
+- MK_CA_BUNDLE="$ca"
+- AC_DEFINE_UNQUOTED(MK_CA_BUNDLE, "$ca", [Location of default ca bundle])
+- AC_SUBST(MK_CA_BUNDLE)
+- AC_MSG_RESULT([$ca])
+- elif test "x$cross_compiling" == "xyes"; then
+- AC_MSG_RESULT([skipped (cross compiling)])
+- AC_MSG_WARN([skipped the ca-bundle detection when cross-compiling])
+- AC_DEFINE_UNQUOTED(MK_CA_BUNDLE, "", [Location of default ca bundle])
+- AC_SUBST(MK_CA_BUNDLE)
+- else
+- AC_MSG_RESULT([no])
+- AC_MSG_ERROR([you should give a ca-bundle location])
+- fi
+-])
++AC_DEFINE_UNQUOTED(MK_CA_BUNDLE, "", [Location of default ca bundle])
++AC_SUBST(MK_CA_BUNDLE)
+
+ AC_DEFUN([MK_PTHREAD], [
+ AX_PTHREAD
Index: net/measurement-kit/files/patch-src_libmeasurement__kit_net_libssl.hpp
===================================================================
--- /dev/null
+++ net/measurement-kit/files/patch-src_libmeasurement__kit_net_libssl.hpp
@@ -0,0 +1,11 @@
+--- src/libmeasurement_kit/net/libssl.hpp.orig 2021-03-04 14:14:57 UTC
++++ src/libmeasurement_kit/net/libssl.hpp
+@@ -156,7 +156,7 @@ class Context : public NonCopyable, public NonMovable
+ SSL_CTX_free(ctx);
+ return {SslCtxLoadVerifyLocationsError(), {}};
+ }
+- } else {
++ } else if (!SSL_CTX_set_default_verify_paths(ctx)) {
+ SSL_CTX_free(ctx);
+ return {MissingCaBundlePathError(), {}};
+ }
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 2:43 PM (12 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30977682
Default Alt Text
D42040.id128089.diff (3 KB)
Attached To
Mode
D42040: net/measurement-kit: Drop ca_root_nss dependency.
Attached
Detach File
Event Timeline
Log In to Comment