GNU bug report logs -
#75550
smartd fails to send an email
Previous Next
Reported by: Tomas Volf <~@wolfsden.cz>
Date: Tue, 14 Jan 2025 01:37:01 UTC
Severity: normal
Done: Hilton Chain <hako <at> ultrarare.space>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Hilton Chain <hako <at> ultrarare.space> writes:
> On Fri, 24 Jan 2025 23:31:56 +0800,
> Tomas Volf wrote:
>> [...]
>> >> + (string-append "PATH="
>> >> + #$(file-append sed "/bin") ":"
>> >> + #$(file-append coreutils "/bin") ":"
>> >> + "$PATH\n"))))))))
>> >
>> > Please add sed and coreutils-minimal to inputs and use search-input-file or
>> > this-package-input instead.
>>
>> Why? I will of course do so, but would first like to understand why.
>> The current way seems to work and keeps all the references in just one
>> place. If I switch to the suggested approach, both `sed' and
>> `coreutils' will be referenced in two places (once in the `inputs' and
>> once here) and those will need to be kept in sync. So, uh, why do it?
>
> The reason is to record dependency information at <package> level, since this is
> where the UI and most of the tools work. (`guix show', `guix refresh', package
> transformation etc.)
Is there a technical reason it cannot inspect the gexps used or is it
just matter of "no one wrote the code yet"?
>
> For referencing dependencies from inputs in arguments, the benefit is mainly for
> transformations. Maybe it doesn't make much sense in this case (sed and
> coreutils), but it's a good practice to follow.
I did not realize this at all. That is very good to know.
Tomas
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 114 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.