Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Website
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
100
Issues
100
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
13
Merge Requests
13
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
F-Droid
Website
Commits
cbb54d23
Commit
cbb54d23
authored
Sep 27, 2020
by
Marcus
👻
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'reproduciblebuilds' into 'master'
Reproducible Builds: document NDK build-id See merge request
!586
parents
e20f7cdb
46da2a53
Pipeline
#195003069
passed with stage
in 19 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
_docs/Reproducible_Builds.md
_docs/Reproducible_Builds.md
+11
-2
No files found.
_docs/Reproducible_Builds.md
View file @
cbb54d23
...
...
@@ -198,11 +198,21 @@ shrinking is used.
However, it might be possible that resource shrinker will increase the
APK size on different platforms, especially if there is not too many
resources to shrink, in which case the
n
original APK will be used
resources to shrink, in which case the original APK will be used
instead of the shrinked one (nondeterministic behavior of Gradle
plugin). Avoid using resource shrinker unless it decreases the APK file
size significantly.
### NDK _build-id_
On different build machines different NDK paths and different paths to the
project (and thus to its _jni_ directory) are used. This leads to different
paths to the source files in debug symbols, causing linker to generate
different _build-id_, which is preserved after stripping.
One possible solution is adding
`LOCAL_LDFLAGS += -Wl,--build-id=none`
to
_Android.mk_
files which will disable _build-id_ generation completely.
### Build Server IDs
To describe the build environment used by F-Droid builds, APKs have two files inserted into them:
...
...
@@ -242,7 +252,6 @@ process. But the APK build process can add them. For example:
#### TODO
-
NDK inserts changing _build-id_, probably via
`ld`
-
jar sort order for APKs
-
`aapt`
versions produce different results (XML and res/ subfolder names)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment