Skip to content

Make builds reproducible #289

@licaon-kter

Description

@licaon-kter

Your app is not built reproducible in F-Droid, but we continuously test older versions on https://verification.f-droid.org/ and would like more and more apps to become repro

Looking at this report: https://verification.f-droid.org/net.christianbeier.droidvnc_ng_46.apk.diffoscope.html

We see two issues:

The build-id can be removed in this repo: #290

But the timestamp is picked up (not sure why) from libjpeg-turbo: https://github.com/libjpeg-turbo/libjpeg-turbo/blob/21b5817e609fb0ab66d97d0c644d07f6b44be41a/CMakeLists.txt#L43 and for that I had to set a common date, based on the last commit of your repo and inject that instead:

$ export BUILD_DATE=$(git show --no-patch --format=%cd --date=format-local:'%Y%m%d')
$ sed -i -e "s/string(TIMESTAMP DEFAULT_BUILD \"%Y%m%d\")/set(DEFAULT_BUILD \"$BUILD_DATE\")/" libjpeg-turbo/CMakeLists.txt

...well... if you want a date there, an empty string could be enough too

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions