eclipse-kanto / kanto

Kanto
https://eclipse.dev/kanto
Other
20 stars 7 forks source link

Installing kanto deb package fails in multi-platform docker build #320

Closed dimitar-dimitrow closed 6 months ago

dimitar-dimitrow commented 6 months ago

I try to build a multi-platform(linux/amd64, linux/arm64 and linux/arm/v7) docker image that installs the kanto deb package on top of jrei/systemd-ubuntu:22.04(used as a base image). However the build fails on the non-host architectures - linux/arm64 and linux/arm/v7, with the following error:

34.41 Setting up kanto (0.1.0~M3) ...
34.66 Error while loading /var/lib/dpkg/info/kanto.postinst: Exec format error
34.66 dpkg: error processing package kanto (--configure):
34.66  installed kanto package post-installation script subprocess returned error exit status 1
34.67 Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
34.90 Errors were encountered while processing:
34.90  kanto
34.99 E: Sub-process /usr/bin/dpkg returned an error code (1)
dimitar-dimitrow commented 6 months ago

Adding a shebang to the beginning of the scripts solved the issue. According to the debian documentation a shebang is a must - introduction-to-package-maintainer-scripts.