Skip to content
Snippets Groups Projects
Commit f101c91d authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Prevent CI (and runtime) apksigner test failures due to lack of binfmt_misc on...

Prevent CI (and runtime) apksigner test failures due to lack of binfmt_misc on Salsa CI and elsewhere.

In Debian, the `apksigner` binary is a symbolic link to the .jar file itself,
requiring binfmt_misc support to execute directly. We therefore resolve its
location and pass that to `java -jar` instead
parent c5f03d53
No related branches found
No related tags found
No related merge requests found
Pipeline #137214 failed
......@@ -193,7 +193,20 @@ class Apksigner(Command):
@tool_required('apksigner')
def cmdline(self):
return ["apksigner", "verify", "--verbose", "--print-certs", self.path]
# In Debian, the `apksigner` binary is a symbolic link to the .jar file
# itself, requiring binfmt_misc support to execute directly. We
# therefore resolve its location and pass that to `java -jar`.
apksigner_jar = find_executable("apksigner")
return [
"java",
"-jar",
apksigner_jar,
"verify",
"--verbose",
"--print-certs",
self.path,
]
class ApkFile(File):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment