Open licaon-kter opened 6 days ago
Do you have any idea on how to fix this issue? Neither https://gitlab.com/fdroid/wiki/-/wikis/HOWTO:-diff-&-fix-APKs-for-Reproducible-Builds nor https://f-droid.org/docs/Reproducible_Builds/#potential-sources-of-unreproducible-builds seem to mention differences in smali
files.
smali files are disassembled from classes.dex, fyi
did you build the APK from https://github.com/chvp/NanoLedger/commit/c21e13bd5ca7213cda52290bf435c83513f9894b for sure? Maybe try to clean up all caches as rebuild?
attach the APK here so I can test locally maybe
The APK is built in GitHub actions, definitely from that commit: https://github.com/chvp/NanoLedger/actions/runs/9680655127/job/26709312310#step:2:83
GitHub does not keep build cache, it only caches dependencies, so it was built with a clean cache. The APK can be found here: https://github.com/chvp/NanoLedger/releases/tag/v0.4.0.
Looking at the docs here though, it might be due coreLibraryDesugaring
(this was introduced relatively recently). Although that bug was fixed in 2021 apparently, so it seems weird that this would still be an issue.
I've tried to "fix" the issue in #139, I will follow the pipelines in the fdroiddata repo to see if it is actually fixed.
It seems to still fail though? https://gitlab.com/fdroid/fdroiddata/-/jobs/7211423746
yeah, I'm already looking into it locally :(
I've disabled again: https://gitlab.com/fdroid/fdroiddata/-/commit/fc9f8774d19a102197993a91dc343270438c3cdb
testing locally, I can see:
tested on 2 machines
tested with limiting CPU cores to 1, 2, 4
not sure I see a pattern but I did see the same APK between these 2 machines, on multiple runs (yet not success vs yours)
@linsui thoughts?
Good find, looks that maybe we can do the same in postbuild then, install that sdk 34, use its zipalign
I can look into upgrading to SDK 35 as well, that's probably a more future-proof solution.
I made another release that uses the latest build tools to build the APK.
https://gitlab.com/linsui/fdroiddata/-/jobs/7220014923 Now the dex file is also different...
nano40300.log here's the diff
Oh, I reverted the removal of useCoreLibraryDesugaring because it didn't fix the issue, I didn't realize that the issue was apparently two-fold. I'll revert the revert and make a new release. Hopefully that will finally fix it.
Made another release :crossed_fingers:
ref: https://gitlab.com/fdroid/fdroiddata/-/jobs/7198511509#L843
diff log: nano40100.log
/LE: fyi https://gitlab.com/fdroid/fdroiddata/-/commit/4ea2ca7bcf9e3eaf1ee66b69c82181dabd447766