From 1dc8e5dea5642d94f070dd2c89953ce58241fe84 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sun, 1 Jan 2023 13:55:33 +0100 Subject: [PATCH] Use i386 instead of i686 Debian uses the architecture name "i386", even if it only supports i486+. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b9784e5..9fb6631 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,18 @@ # Docker files for cross-builds using cargo-deb These files allows you to build Debian packages for the (Debian) architectures -i686, armhf and arm64 using an amd64 system. +i386, armhf and arm64 using an amd64 host system. Note that the `Dockerfile`s use the full Rust Debian Buster Docker image and not the slim version so that some common build-dependencies (such as `libssl-dev`) are already present. -## Cross-compile to i686 +## Cross-compile to i386 Build the image: ```console -$ docker build . -t cargo-deb-crossbuild/i686 --platform linux/386 -f Dockerfile +$ docker build . -t cargo-deb-crossbuild/i386 --platform linux/386 -f Dockerfile STEP 1/5: FROM docker.io/rust:bullseye Trying to pull docker.io/library/rust:bullseye... Getting image source signatures @@ -22,7 +22,7 @@ Getting image source signatures In your Rust project, run: ```console -$ docker run --rm -ti -v `pwd`:/app cargo-deb-crossbuild/i686 +$ docker run --rm -ti -v `pwd`:/app cargo-deb-crossbuild/i386 ... /app/target/debian/.deb ```