diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2021-09-09 10:09:25 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2021-09-09 10:09:25 +0200 |
| commit | 902de26c1a2462b3374633f724852507d957019a (patch) | |
| tree | 7b40d8a4ed70c3e636982e1aaa6fe529ed05becf /gnu | |
| parent | de15397006c271b5506561b45fa41e110f93dec4 (diff) | |
gnu: autoconf: Unpatch shebangs on files that "autoconf -i" installs.
Fixes <https://issues.guix.gnu.org/50288>.
Reported by Maxim Cournoyer.
* gnu/packages/autotools.scm (autoconf-2.71)[arguments]: Add
'unpatch-shebangs' phase.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/autotools.scm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gnu/packages/autotools.scm b/gnu/packages/autotools.scm index 33e1905a252..6987a8fd40b 100644 --- a/gnu/packages/autotools.scm +++ b/gnu/packages/autotools.scm | |||
| @@ -135,7 +135,18 @@ know anything about Autoconf or M4.") | |||
| 135 | (find-files "bin" | 135 | (find-files "bin" |
| 136 | (lambda (file stat) | 136 | (lambda (file stat) |
| 137 | (executable-file? file))))) | 137 | (executable-file? file))))) |
| 138 | #t)))))))) | 138 | #t)) |
| 139 | (add-after 'install 'unpatch-shebangs | ||
| 140 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 141 | ;; Scripts that "autoconf -i" installs (config.guess, | ||
| 142 | ;; config.sub, and install-sh) must use a regular shebang | ||
| 143 | ;; rather than a reference to the store. Restore it. | ||
| 144 | ;; TODO: Move this phase to 'autoconf-2.69'. | ||
| 145 | (let* ((out (assoc-ref outputs "out")) | ||
| 146 | (build-aux (string-append | ||
| 147 | out "/share/autoconf/build-aux"))) | ||
| 148 | (substitute* (find-files build-aux) | ||
| 149 | (("^#!.*/bin/sh") "#!/bin/sh"))))))))))) | ||
| 139 | 150 | ||
| 140 | (define-public autoconf autoconf-2.69) | 151 | (define-public autoconf autoconf-2.69) |
| 141 | 152 | ||
