GNU bug report logs - #52009
[PATCH core-updates-frozen] openresolv: Wrap it.

Previous Next

Package: guix-patches;

Reported by: Vivien Kraus <vivien <at> planete-kraus.eu>

Date: Sat, 20 Nov 2021 23:06:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Vivien Kraus <vivien <at> planete-kraus.eu>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 52009 <at> debbugs.gnu.org
Subject: [bug#52009] [PATCH core-updates-frozen] openresolv: Wrap it.
Date: Mon, 22 Nov 2021 23:10:46 +0100
[Message part 1 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:
> Vivien Kraus <vivien <at> planete-kraus.eu> skribis:
>> +         (add-after 'install 'wrap-program
>> +           (lambda* (#:key inputs outputs #:allow-other-keys)
>> +             (let ((out (assoc-ref outputs "out"))
>> +                   (coreutils (assoc-ref inputs "coreutils")))
>> +               (wrap-program (string-append out "/sbin/resolvconf")
>> +                 `("PATH" ":" = (,(string-append coreutils "/bin"))))))))))
>> +    (inputs
>> +     `(("bash-minimal" ,bash-minimal)
>> +       ("coreutils" ,coreutils)))
>
> Since /sbin/resolvconf is a shell script, how about, instead of wrapping
> it, inserting with ‘substitute*’ something like:
>
>   PATH=/gnu/store/…-coreutils/bin:$PATH
>
> somewhere at the top?

Good idea.

> (We could also use ‘coreutils-minimal’ here.)

It contains the required binaries, so let’s go with it.

Vivien

[0001-gnu-openresolv-Wrap-resolvconf.patch (text/x-patch, attachment)]

This bug report was last modified 3 years and 218 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.