[Pkg-pascal-devel] help needed

Paul Gevers elbrus at debian.org
Tue Nov 17 20:43:21 UTC 2015

Hi all,

I try to fix a reproducibility issue in fpc in a generic way. I tried
the attached patch, but it fails with

/usr/bin/ppcx64 -Ur -Xs -O2 -n -Fux86_64 -Fusystems
-Fix86_64 -FE. -FUx86_64/units/x86_64-linux -Cg -dRELEASE
@/tmp/buildd/fpc-3.0.0~rc2+dfsg/debian/deb-host-fpc.cfg   -dx86_64 -dGDB
-dBROWSERLOG -Fux86 -Sew pp.pas
globals.pas(46,15) Fatal: Can't find unit DateUtils used by globals

Is that because the DateUtils unit isn't compiled yet? Am I doing
something else wrong?

What I try to do is making sure that dates that get included into
binaries with the "{$INCLUDE %DATE%}" command to honor the
SOURCE_DATE_EPOCH environment variable if it exists. Does anybody know
how to get that done? (I rather have a patch that I can send upstream, I
think I could get it to work by exporting the already generated DEB_DATE
variable and using that in fpcsrc/compiler/scanner.pas, but I rather not).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: honor_SOURCE_DATE_EPOCH_in_date.patch
Type: text/x-patch
Size: 1093 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-pascal-devel/attachments/20151117/ee8380fb/attachment.bin>
-------------- 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/20151117/ee8380fb/attachment.sig>

More information about the Pkg-pascal-devel mailing list