[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#75568] [PATCH] gnu: smartmontools: Fix PATH in smartd_warning.sh.
From: |
Ludovic Courtès |
Subject: |
[bug#75568] [PATCH] gnu: smartmontools: Fix PATH in smartd_warning.sh. |
Date: |
Wed, 26 Mar 2025 22:35:08 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Tomas Volf <~@wolfsden.cz> skribis:
> The script started with reset of the $PATH to a value not suitable to Guix.
> In addition, the script requires coreutils and sed, so add those into the
> $PATH.
>
> * gnu/packages/admin.scm (smartmontools)[arguments]<#:phases>: Add 'fix-path.
>
> Change-Id: Ide97f572e6f369fe24337f945474dc7a65584eda
[...]
> + (add-after 'install 'fix-path
> + (lambda _
> + (substitute* (string-append #$output "/etc/smartd_warning.sh")
> + (("export PATH=.*$" all)
> + (string-append "PATH="
> + #$(file-append sed "/bin") ":"
> + #$(file-append coreutils "/bin") ":"
Please use (dirname (search-input-file inputs "/bin/sed")) etc. instead.
That way, when creating a variant with different inputs, the right thing
will be used.
Thanks,
Ludo’.
- [bug#75568] [PATCH] gnu: smartmontools: Fix PATH in smartd_warning.sh.,
Ludovic Courtès <=