~ruther/guix-local

ref: 79601521fceb6b2f76d87cf3df45a76e43b1ffcf guix-local/gnu/packages/patches/util-linux-perl.patch -rw-r--r-- 592 bytes
79601521 — Ludovic Courtès profiles: Compute transaction effects in a functional way. 11 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Use this common trick that exploits similarities between sh and Perl syntax
to avoid a hard dependency on Perl.  Instead, this script will work only
when 'perl' is available in $PATH.

--- util-linux-2.21.2/misc-utils/chkdupexe.pl	2012-05-15 13:51:45.000000000 +0200
+++ util-linux-2.21.2/misc-utils/chkdupexe.pl	2014-06-01 22:46:06.000000000 +0200
@@ -1,5 +1,6 @@
-#!@PERL@ -w
-#
+eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
+  & eval 'exec perl -wS "$0" $argv:q'
+    if 0;
 # chkdupexe version 2.1.1
 #
 # Simple script to look for and list duplicate executables and dangling