[Pkg-pascal-devel] help needed

Paul Gevers elbrus at debian.org
Fri Nov 20 13:02:38 UTC 2015

Hi all,

On 19-11-15 23:06, Abou Al Montacir wrote:
> Your patch looks fine, but I don't know if upstream will like adding
> this unit in the dependency of the compiler. Can't you pass the date
> into another format?

In the mean time I managed to get a patch working which indeed did just
that. However, I still would like to get SOURCE_DATE_EPOCH to be
supported, because that is what is spec'ed, so I think that it is the
only variable that makes a chance of being accepted by upstream.

For review, I added my current patch. I saw somewhere¹ that you can
change the date reported by Date via a "With TS do" construction. So I
think it would be great if we can convert SOURCE_DATE_EPOCH in
fpcsrc/compiler/scanner.pas to fpc time before calling getdatestr.

I haven't tried if I have the same issue with the DateUtils unit in this
file, but I expect the underlaying problem to be the same. I will still
try to figure this out, so thank Abou for the idea.

¹ http://www.freepascal.org/docs-html/rtl/sysutils/timestamptodatetime.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-pascal-devel/attachments/20151120/c3cc8881/attachment.sig>

More information about the Pkg-pascal-devel mailing list