Potential issues with the snippet to parse SOURCE_DATE_EPOCH in C
Alejandro Colomar
alx at kernel.org
Fri Jan 19 21:21:31 UTC 2024
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
--
<https://www.alejandro-colomar.es/>
Looking for a remote C programming job at the moment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.reproducible-builds.org/pipermail/rb-general/attachments/20240119/2c94d8f3/attachment.sig>
More information about the rb-general
mailing list