Skip to content

missing dependency when ran on Docker debian:trixie-slim image, missing suite: for 32bit and old raspbian-archive-keyring.gpg #322

Description

@yyang-giatec

Hello,

We did some testing building inside containers with debian:trixie-slim instead, so that the build can run on a broader range of OSes, and we would like to share some findings.

1. layer/raspbian/*/base-apt.yaml declares variant: apt with no suite

The suite: line is missing for 32-bit repos but present in the 64-bit ones. This causes mmdebstrap versions newer than a certain point (1.5.1?) to fail with I: nothing to extract -- skipping....

2. keydir/raspbian-archive-keyring.gpg uses only SHA-1; newer apt versions reject it

We replaced it with a current key obtained from raspbian-archive-keyring_20120528.4_all.deb.

3. Missing dependencies

The following packages were added to depends, although packages other than zlib1g-dev are probably pulled in automatically when --no-install-recommends is not used.

Item Note
zlib1g-dev erofs-utils's lib/gzran.c:9 has #include <zlib.h> above the #ifdef HAVE_ZLIB at line 11, and lib/Makefile.am:95 adds gzran.c unconditionally
xz-utils package/util-linux/util-linux-2.41.3.meta fetches a .tar.xz; util-linux is a PKG_DEPS of erofs-utils (package/erofs-utils/Makefile:4)
ca-certificates bin/vfetch:134 fetches tarballs with curl --fail --location over https://
file layer/base/deploy.sh:67: mime_type=$(file -b --mime-type "$f" 2>/dev/null || echo "unknown")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions