Makefile + workflow: -Pcross profile, drop arm64 libs install
Some checks failed
Forgejo Release postit-deb / release (push) Failing after 1m28s
Some checks failed
Forgejo Release postit-deb / release (push) Failing after 1m28s
For the arm64 cross-build: - dotnet publish --runtime linux-arm64 cross-compiles natively on amd64, no arm64 toolchain required. - dpkg-buildpackage now runs with -Pcross (cross-build profile), which tells debhelper to skip arch-specific helper tools that aren't available on the host (e.g. aarch64-linux-gnu-objdump used by dh_makeshlibs). - -d (--no-check-builddeps) skips the build-deps check for arm64 because dotnet-sdk-10.0:arm64 isn't installed and we don't need it — the dotnet publish runs on the host, not on the target. The workflow no longer installs libc6:arm64 etc. via multi-arch — it was a workaround for dpkg-shlibdeps that we no longer need once -Pcross handles the cross-build profile correctly.
This commit is contained in:
parent
61a678d7af
commit
ad5bc578e7
2 changed files with 12 additions and 28 deletions
2
Makefile
2
Makefile
|
|
@ -74,7 +74,7 @@ deb:
|
|||
# would normally export (host arch, build arch, host GNU
|
||||
# type, build GNU type) so debhelper rules see a consistent
|
||||
# cross-build environment.
|
||||
DPKG_HOST=$$(case "$(POSTIT_RUNTIME)" in linux-arm64) echo arm64 ;; linux-x64) echo amd64 ;; *) echo "unsupported POSTIT_RUNTIME=$(POSTIT_RUNTIME)" >&2; exit 1 ;; esac) && DEB_HOST_ARCH=$$DPKG_HOST DEB_BUILD_ARCH=amd64 DEB_HOST_GNU_TYPE=aarch64-linux-gnu DEB_BUILD_GNU_TYPE=x86_64-linux-gnu POSTIT_GIT_URL=$(POSTIT_GIT_URL) POSTIT_GIT_TAG=$(POSTIT_GIT_TAG) POSTIT_RUNTIME=$(POSTIT_RUNTIME) dpkg-buildpackage -us -uc -b -d -a$$DPKG_HOST
|
||||
DPKG_HOST=$$(case "$(POSTIT_RUNTIME)" in linux-arm64) echo arm64 ;; linux-x64) echo amd64 ;; *) echo "unsupported POSTIT_RUNTIME=$(POSTIT_RUNTIME)" >&2; exit 1 ;; esac) && DEB_HOST_ARCH=$$DPKG_HOST DEB_BUILD_ARCH=amd64 DEB_HOST_GNU_TYPE=aarch64-linux-gnu DEB_BUILD_GNU_TYPE=x86_64-linux-gnu POSTIT_GIT_URL=$(POSTIT_GIT_URL) POSTIT_GIT_TAG=$(POSTIT_GIT_TAG) POSTIT_RUNTIME=$(POSTIT_RUNTIME) dpkg-buildpackage -us -uc -b -d -Pcross -a$$DPKG_HOST
|
||||
# dpkg-buildpackage already writes the produced .deb to
|
||||
# /src/_src/../ = $POSTIT_OUT_DIR (its default — there's no
|
||||
# flag to change it). So no 'mv' is needed. The old 'mv'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue