Merge branch 'master' into core-updates
[jackhill/guix/guix.git] / gnu / packages / patches / openssl-1.1.0-c-rehash-in.patch
CommitLineData
763899f0
LF
1This patch removes the explicit reference to the 'perl' binary,
2such that OpenSSL does not retain a reference to Perl.
3
4The 'c_rehash' program is seldom used, but it is used nonetheless
5to create symbolic links to certificates, for instance in the 'nss-certs'
6package.
7
8diff --git a/tools/c_rehash.in b/tools/c_rehash.in
9index 2fef627..9d40eae 100644
10--- a/tools/c_rehash.in
11+++ b/tools/c_rehash.in
12@@ -1,4 +1,6 @@
13-#!{- $config{hashbangperl} -}
14+eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
15+ & eval 'exec perl -wS "$0" $argv:q'
16+ if 0;
17
18 # {- join("\n# ", @autowarntext) -}
19 # Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.