Use i386 instead of i686
Debian uses the architecture name "i386", even if it only supports i486+.
This commit is contained in:
parent
54b88801a1
commit
1dc8e5dea5
|
@ -1,18 +1,18 @@
|
||||||
# Docker files for cross-builds using cargo-deb
|
# Docker files for cross-builds using cargo-deb
|
||||||
|
|
||||||
These files allows you to build Debian packages for the (Debian) architectures
|
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
|
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
|
not the slim version so that some common build-dependencies (such as
|
||||||
`libssl-dev`) are already present.
|
`libssl-dev`) are already present.
|
||||||
|
|
||||||
## Cross-compile to i686
|
## Cross-compile to i386
|
||||||
|
|
||||||
Build the image:
|
Build the image:
|
||||||
|
|
||||||
```console
|
```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
|
STEP 1/5: FROM docker.io/rust:bullseye
|
||||||
Trying to pull docker.io/library/rust:bullseye...
|
Trying to pull docker.io/library/rust:bullseye...
|
||||||
Getting image source signatures
|
Getting image source signatures
|
||||||
|
@ -22,7 +22,7 @@ Getting image source signatures
|
||||||
In your Rust project, run:
|
In your Rust project, run:
|
||||||
|
|
||||||
```console
|
```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/<your crate>.deb
|
/app/target/debian/<your crate>.deb
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue