-
-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: reproducible builds fail due to build-timestamp #1372
Comments
Hello Izzy! Thanks for the heads-up! I'll have this fixed soon and report back. |
Thanks Andre! You might wonder that the current release meanwhile shows the "green badge" for a successful RB; I decided to "patch" your apk_url: https://github.com/meshtastic/Meshtastic-Android/releases/download/2.5.6/fdroidRelease-2.5.6.apk
build:
- sed -r '/signingConfigs.release/d' -i app/build.gradle
- sed -r 's/System.currentTimeSeconds\(\).toString\(\)/"1730201604"/' -i app/build.gradle
- chmod +x gradlew
- ./gradlew assembleFdroidRelease (and yes, we have to remove the signing call as we need an unsigned APK – and don't have your credentials anyway) |
Thank you for that! I removed the build timestamp in 605ef12. I’ll keep this open until we push a new release. |
Wonderful, thanks a lot! I have a note in the recipe here: notes:
- 'FIXME: 2.5.6 introduced embedded build timestamp, see https://github.com/meshtastic/Meshtastic-Android/issues/1372 (should be removed with next release)' The |
Contact Details
No response
What happened?
At IzzyOnDroid we support Reproducible Builds (see: Reproducible Builds, special client support and more at IzzyOnDroid). Yours was reproducible until today, but now fails. Looking at the DEX diff:
suggests a kind of timestamp being included – more precisely, a build timestamp, as the "new" value (from our build) matches the time we built it. And right, here's the culprit:
That makes RB impossible, as we'll never build synchronously at the exact same second. Is such a timestamp really needed? Could you remove it again (it wasn't there on the previous version) – or replace it by something else that is deterministic?
We'd appreciate if you could help making your build reproducible. We've prepared some hints on reproducible builds for that.
Looking forward to your reply!
App Version
2.5.6
Phone
n/a
Device
n/a
Firmware
n/a
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: