pkgsrc/lang/go14/patches/patch-src_crypto_x509_root__unix.go
bsiegert 4f034c2357 Create lang/go14 as a copy of lang/go but which installs under
$PREFIX/go14.

Go 1.5 is going to be released soon, and it will depend on an existing
installation of Go 1.4 to compile. So let's provide one.
2015-07-31 14:46:25 +00:00

15 lines
773 B
Go

$NetBSD: patch-src_crypto_x509_root__unix.go,v 1.1 2015/07/31 14:46:25 bsiegert Exp $
Also look for the right path for the SSL certificate repository on NetBSD.
https://github.com/golang/go/issues/9285
--- src/crypto/x509/root_unix.go.orig 2014-12-11 01:18:10.000000000 +0000
+++ src/crypto/x509/root_unix.go
@@ -13,6 +13,7 @@ var certFiles = []string{
"/etc/ssl/certs/ca-certificates.crt", // Debian/Ubuntu/Gentoo etc.
"/etc/pki/tls/certs/ca-bundle.crt", // Fedora/RHEL
"/etc/ssl/ca-bundle.pem", // OpenSUSE
+ "/etc/openssl/certs/ca-certificates.crt", // NetBSD
"/etc/ssl/cert.pem", // OpenBSD
"/usr/local/share/certs/ca-root-nss.crt", // FreeBSD/DragonFly
"/etc/pki/tls/cacert.pem", // OpenELEC