GNU bug report logs -
#29951
[PATCH] WIP guix: Add wrap-script.
Previous Next
Reported by: Ricardo Wurmus <rekado <at> elephly.net>
Date: Tue, 2 Jan 2018 20:46:01 UTC
Severity: important
Tags: patch
Done: Ricardo Wurmus <rekado <at> elephly.net>
Bug is archived. No further changes may be made.
Full log
Message #28 received at 29951 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
2018-01-02 21:44 GMT+01:00 Ricardo Wurmus <rekado <at> elephly.net>:
> * guix/build/utils.scm (wrap-script): New procedure.
> ---
> guix/build/utils.scm | 101 ++++++++++++++++++++++++++++++
> +++++++++++++++++++++
> 1 file changed, 101 insertions(+)
>
> diff --git a/guix/build/utils.scm b/guix/build/utils.scm
> index 7391307c8..a2efcb31c 100644
> --- a/guix/build/utils.scm
> +++ b/guix/build/utils.scm
> @@ -3,6 +3,7 @@
> ;;; Copyright © 2013 Andreas Enge <andreas <at> enge.fr>
> ;;; Copyright © 2013 Nikita Karetnikov <nikita <at> karetnikov.org>
> ;;; Copyright © 2015 Mark H Weaver <mhw <at> netris.org>
> +;;; Copyright © 2018 Ricardo Wurmus <rekado <at> elephly.net>
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
> @@ -84,6 +85,7 @@
> fold-port-matches
> remove-store-references
> wrap-program
> + wrap-script
> invoke
>
> locale-category->string))
> @@ -1068,6 +1070,105 @@ with definitions for VARS."
> (chmod prog-tmp #o755)
>
[...]
> (rename-file prog-tmp prog))))
>
> +(define wrap-script
> + (let ((interpreter-regex
> + (make-regexp
> + (string-append "^#! ?(/bin/sh|/gnu/store/[^/]+/bin/("
>
Won't this be an issue for people using a customized store location?
[snipped]
>
[Message part 2 (text/html, inline)]
This bug report was last modified 6 years and 109 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.