GNU bug report logs -
#69313
[PATCH] gnu: tlpui: Fix broken package.
Previous Next
Reported by: Juliana Sims <juli <at> incana.org>
Date: Thu, 22 Feb 2024 20:26:02 UTC
Severity: normal
Tags: patch
Done: Juliana Sims <juli <at> incana.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Juliana Sims <juli <at> incana.org> writes:
>> how does this relate to other changes in the patch (lsusb and lspci)?
>
> It doesn't! I meant to split these into separate commits but was very tired.
> Don't code sleepy, kids!
:)
>> I'm a bit puzzled here: how does
>>
>> (search-input-file inputs "/share/tlp/defaults.conf")
>>
>> differ from
>>
>> #$(file-append tlp "/share/tlp/defaults.conf")
>
> The latter directly accesses the input in question then joins its path with the
> provided string and inserts the result where the `file-append` form was in the
> code. The former searches each input's store directory at build time to find a
> matching file. In other words, since we know exactly where to find these files
> ahead of time, we simply tell the build dæmon where they are rather than making
> it look for them.
>
> Because this is a quite minor performance improvement and code modernization,
> rather than a requirement for the package to build, I've split it into a second
> patch to be applied at the discretion of a commiter.
I understand the performance improvement, but I'm dubious about the
"code modernization" part. I've been out of the loop for a while, but
I think using `search-input-file' is still the way to go. IIUC, the
`file-append' way makes it more difficult to use package
transformations, since you basically bind the executables to a fixed
package.
I let the issue open for you and others to comment about this.
Meanwhile, I applied the first patch. tlpui, even outdated, now builds
again!
Thanks!
This bug report was last modified 1 year and 78 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.