[Pkg-pascal-devel] lazarus reproducible build

Paul Gevers elbrus at debian.org
Wed Apr 27 13:13:38 UTC 2016


Hi Alexis,

On 27-04-16 13:44, Alexis Bienvenüe wrote:
> While working on the “reproducible builds” effort [1], we have noticed
> that 'lazarus' could not be built reproducibly [2].

We had this discussion before¹. Have you seen²?
> The timestamp of codehelp.pas is included in codehelp.ppu. This would
> not be a problem if codehelp.pas were not patched: when dpkg-source
> applies debian/patches/Fix-case-issue-with-code-help.patch, the
> timestamp of codehelp.pas is set to the current build time.
> 
> Maybe a solution to this problem is to make fpc honour the
> SOURCE_DATE_EPOCH environment variable [3], so that when this
> environment variable is set, all the source file timestamps included in
> the ppu files are set to the corresponding date.
> 
> What is your opinion?

We agree, but upstream does not³. I am working on a Debian helper script
that can be run from Debian packages to fix the timestamps of patched
files, such that this can be automated. Until now, I have been fixing
this manually in our packages, e.g. take a look at castle-game-engine (4).

Paul

¹
http://lists.alioth.debian.org/pipermail/pkg-pascal-devel/Week-of-Mon-20151102/000814.html
² https://wiki.debian.org/ReproducibleBuilds/TimestampsInPPUGeneratedByFPC ?
³
http://lists.alioth.debian.org/pipermail/pkg-pascal-devel/Week-of-Mon-20151102/000818.html
(4)
http://anonscm.debian.org/cgit/pkg-pascal/castle-game-engine.git/commit/?id=ddb39189afde0d26cd39bf32c5e6a9512782d52a

-------------- 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/20160427/5534acbc/attachment.sig>


More information about the Pkg-pascal-devel mailing list