Potential issues with the snippet to parse SOURCE_DATE_EPOCH in C

Pol Dellaiera pol.dellaiera at gmail.com
Sat Jan 20 12:57:36 UTC 2024


Hi,

I made a pull request for Nix at https://github.com/NixOS/nixpkgs/pull/282329

There are many issue while building it (see the log in the PR), but in the end, it seems to build fine.

On 1/19/24 22:21, Alejandro Colomar wrote:
> Hi,
> 
> On Fri, Jan 19, 2024 at 12:03:17PM -0800, Chris Lamb wrote:
>>> I was wondering... maybe I could write a library, libgetnum, and add
>>> these functions there. That way, all those code bases in Debian that
>>> have the problem we found in gettime() could be fixed easily by just
>>> calling getnum() internally as I did here.
>>>
>>> I also fixed so many other hidden bugs in this PR, that other
>>> projects could benefit from such a library.
>>
>> Speaking just for myself, I worry that most codebases won't rush to
>> introduce a new library dependency "just" to parse this value (even if
>> they should), but no doubt we should iron out any problems in the
>> snippet regardless.
> 
> I've finished writing the library:
> <https://www.alejandro-colomar.es/src/alx/alx/liba2i.git/>
> 
> At least to a point that it works.  I still need to tweak the build
> system a little bit to produce release tarballs; but I'll leave that for
> when someone shows real interest in packaging it.
> 
> Have a lovely day,
> Alex
> 

-- 
-Pol Dellaiera-
  https://not-a-number.io/


More information about the rb-general mailing list