postit-debian/debian
Paul Schneider 41ab11d7b9
Some checks failed
Forgejo Release postit-deb / release (push) Failing after 3m59s
workflow: crossbuild-essential-arm64 + CONFIG_SITE
The previous two attempts (wget + dpkg-deb -x from packages.debian.org,
apt-get install libc6:arm64) were wrong approaches. The
Debian-recommended way is the crossbuild-essential-<ARCH> meta-package,
which pulls in:

  - gcc-aarch64-linux-gnu / g++-aarch64-linux-gnu (cross-gcc, unused
    for our managed-only build but installed for consistency)
  - binutils-aarch64-linux-gnu (provides aarch64-linux-gnu-objdump
    needed by dh_makeshlibs — replaces the previous binutils-only
    install)
  - libc6-dev:arm64, linux-libc-dev:arm64 (cross-libc for dpkg-shlibdeps
    to resolve the arm64 binaries' NEEDED entries against the system
    shlibs cache)
  - dpkg-cross CONFIG_SITE files under /etc/dpkg-cross/

With crossbuild-essential-arm64 installed:
  - dh_makeshlibs finds its aarch64-linux-gnu-objdump ✓
  - dh_shlibdeps can resolve arm64 binaries against the on-host shlibs
    cache ✓
  - dpkg-buildpackage -Pcross,nocheck runs cleanly

The environment for the arm64 make deb is now:

  CONFIG_SITE=/etc/dpkg-cross/cross-config.arm64 \
    DEB_HOST_ARCH=arm64 DEB_BUILD_ARCH=amd64 \
    DEB_BUILD_OPTIONS=nocheck \
    make deb POSTIT_GIT_TAG= POSTIT_RUNTIME=linux-arm64

which matches the Debian cross-build recipe documented at
https://wiki.debian.org/CrossCompiling (Build without a build
environment section).

debian/rules also drops the now-unused override_dh_shlibdeps
override (the stage dir hack) — standard dh_shlibdeps now
works because the cross-libc is installed.
2026-08-17 19:26:11 +01:00
..
source Initial Debian package for PostIt.Desktop (yavsc) 2026-06-28 00:10:15 +01:00
changelog.in packaging: derive Debian version from POSTIT_GIT_TAG via a changelog template 2026-06-28 13:20:17 +01:00
compat Initial Debian package for PostIt.Desktop (yavsc) 2026-06-28 00:10:15 +01:00
control debian: drop debhelper-compat from Build-Depends (set in compat) 2026-06-28 00:47:30 +01:00
copyright Initial Debian package for PostIt.Desktop (yavsc) 2026-06-28 00:10:15 +01:00
postinst Initial Debian package for PostIt.Desktop (yavsc) 2026-06-28 00:10:15 +01:00
postit.desktop Initial Debian package for PostIt.Desktop (yavsc) 2026-06-28 00:10:15 +01:00
postit.install debian: add postit.install listing files for dh_install 2026-06-28 00:49:14 +01:00
postit.wrapper Initial Debian package for PostIt.Desktop (yavsc) 2026-06-28 00:10:15 +01:00
postrm Initial Debian package for PostIt.Desktop (yavsc) 2026-06-28 00:10:15 +01:00
rules workflow: crossbuild-essential-arm64 + CONFIG_SITE 2026-08-17 19:26:11 +01:00