diff options
| author | Dominyk Tiller | 2015-04-13 19:42:47 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-04-13 12:08:06 -0700 |
| commit | 6d534d861e5028ae1c5d2d5a6ff48613468d4b8a (patch) | |
| tree | b8ae0ec142678e4606813a31418d9fba40998844 /Library | |
| parent | e3edfcc857b9f55240765a34cd67477624cd28e6 (diff) | |
| download | homebrew-6d534d861e5028ae1c5d2d5a6ff48613468d4b8a.tar.bz2 | |
gnutls: tweak postinstall
Since we’ve had to stick a temporary patch to OpenSSL’s postinstall
pending Apple’s response on the Equifax situation, GnuTLS which leans
on the OpenSSL formula to do postinstall is blowing up on every
Yosemite test-bot that calls GnuTLS as a dep.
```
==> Downloading
https://www.geotrust.com/resources/root_certificates/certificates/Equifa
x_Secure_Certificate_Authority.pem
Already downloaded:
/Library/Caches/Homebrew/openssl--Equifax_CA-Secure.pem
==> Verifying openssl--Equifax_CA-Secure.pem checksum
==> /usr/local/Cellar/openssl/1.0.2a-1/bin/c_rehash
Failed to execute: /usr/local/Cellar/openssl/1.0.2a-1/bin/c_rehash
Warning: The post-install step did not complete successfully
You can try again using `brew postinstall gnutls`
```
This works around that for now to stop the bot flagging failures
everywhere.
Closes #38619.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/gnutls.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/gnutls.rb b/Library/Formula/gnutls.rb index c9064bb4a..54bf01d75 100644 --- a/Library/Formula/gnutls.rb +++ b/Library/Formula/gnutls.rb @@ -52,7 +52,14 @@ class Gnutls < Formula end def post_install - Formula["openssl"].post_install + keychains = %w[ + /Library/Keychains/System.keychain + /System/Library/Keychains/SystemRootCertificates.keychain + ] + + openssldir = etc/"openssl" + openssldir.mkpath + (openssldir/"cert.pem").atomic_write `security find-certificate -a -p #{keychains.join(" ")}` end test do |
