diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2014-06-01 22:53:16 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2014-06-01 22:53:16 +0200 |
| commit | 5a6a3ba43a1830c712e29d09e341e3cf14aea507 (patch) | |
| tree | 6fca004cfe7b4c3e982dc86bb4b41540680adccb /gnu | |
| parent | ac52e80b4e02718c9d040062c65f7df24302d226 (diff) | |
gnu: util-linux: Remove dependency on Perl.
* gnu/packages/linux.scm (util-linux)[source](patches): New field.
* gnu/packages/patches/util-linux-perl.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/linux.scm | 18 | ||||
| -rw-r--r-- | gnu/packages/patches/util-linux-perl.patch | 15 |
2 files changed, 24 insertions, 9 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 7b46190d79a..1690cd88058 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm | |||
| @@ -317,15 +317,15 @@ providing the system administrator with some help in common tasks.") | |||
| 317 | (package | 317 | (package |
| 318 | (name "util-linux") | 318 | (name "util-linux") |
| 319 | (version "2.21") | 319 | (version "2.21") |
| 320 | (source | 320 | (source (origin |
| 321 | (origin | 321 | (method url-fetch) |
| 322 | (method url-fetch) | 322 | (uri (string-append "mirror://kernel.org/linux/utils/" |
| 323 | (uri (string-append "mirror://kernel.org/linux/utils/" | 323 | name "/v" version "/" |
| 324 | name "/v" version "/" | 324 | name "-" version ".2" ".tar.xz")) |
| 325 | name "-" version ".2" ".tar.xz")) | 325 | (sha256 |
| 326 | (sha256 | 326 | (base32 |
| 327 | (base32 | 327 | "1rpgghf7n0zx0cdy8hibr41wvkm2qp1yvd8ab1rxr193l1jmgcir")) |
| 328 | "1rpgghf7n0zx0cdy8hibr41wvkm2qp1yvd8ab1rxr193l1jmgcir")))) | 328 | (patches (list (search-patch "util-linux-perl.patch"))))) |
| 329 | (build-system gnu-build-system) | 329 | (build-system gnu-build-system) |
| 330 | (arguments | 330 | (arguments |
| 331 | `(#:configure-flags '("--disable-use-tty-group" | 331 | `(#:configure-flags '("--disable-use-tty-group" |
diff --git a/gnu/packages/patches/util-linux-perl.patch b/gnu/packages/patches/util-linux-perl.patch new file mode 100644 index 00000000000..c657a1b5aeb --- /dev/null +++ b/gnu/packages/patches/util-linux-perl.patch | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Use this common trick that exploits similarities between sh and Perl syntax | ||
| 2 | to avoid a hard dependency on Perl. Instead, this script will work only | ||
| 3 | when 'perl' is available in $PATH. | ||
| 4 | |||
| 5 | --- util-linux-2.21.2/misc-utils/chkdupexe.pl 2012-05-15 13:51:45.000000000 +0200 | ||
| 6 | +++ util-linux-2.21.2/misc-utils/chkdupexe.pl 2014-06-01 22:46:06.000000000 +0200 | ||
| 7 | @@ -1,5 +1,6 @@ | ||
| 8 | -#!@PERL@ -w | ||
| 9 | -# | ||
| 10 | +eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}' | ||
| 11 | + & eval 'exec perl -wS "$0" $argv:q' | ||
| 12 | + if 0; | ||
| 13 | # chkdupexe version 2.1.1 | ||
| 14 | # | ||
| 15 | # Simple script to look for and list duplicate executables and dangling | ||
