diff options
author | Andreas Fankhauser hiddenalpha.ch | 2023-08-26 13:06:41 +0200 |
---|---|---|
committer | Andreas Fankhauser hiddenalpha.ch | 2023-08-26 13:06:41 +0200 |
commit | e5fea8382b8cf32fa349d613df32afa187ae969c (patch) | |
tree | 14e2e0d18c44ee1d9a264bd0275758113373a5ac /contrib/build-with-debian | |
parent | 54d94d6c3318850c340d18f51343e1caf1ef56f4 (diff) | |
download | DeflateAndInflate-e5fea8382b8cf32fa349d613df32afa187ae969c.zip DeflateAndInflate-e5fea8382b8cf32fa349d613df32afa187ae969c.tar.gz |
Replace build env doc by qemu.
Diffstat (limited to 'contrib/build-with-debian')
-rw-r--r-- | contrib/build-with-debian/README.md | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/contrib/build-with-debian/README.md b/contrib/build-with-debian/README.md deleted file mode 100644 index 0e3b895..0000000 --- a/contrib/build-with-debian/README.md +++ /dev/null @@ -1,73 +0,0 @@ - -Showcase how to build and install on debian -=========================================== - -Guide how to build on a debian based system. - - -## Get Source - -Change into an EMPTY directory and do: - -```sh -git clone --depth=256 https://github.com/hiddenalpha/DeflateAndInflate.git ./. -``` - - -## Choose a debian 9 system. - -Take the debian system you want to use to build. A nice way to achieve -this is via docker (TIPP: take an older image for better ABI -portability): - -In the command below, make sure WORK points to the dir where you cloned -the project to. - -```sh -true \ - && WORK="$PWD" \ - && IMG=debian:oldstable-20230208-slim \ - && CNTR=DeflateAndInflate-DebianBuild \ - && docker pull "${IMG:?}" \ - && docker create --name "${CNTR:?}" -v "${WORK:?}:/work" -w /work "${IMG:?}" sh -c "while true;do sleep 1||break;done" \ - && docker start "${CNTR:?}" \ - && true -``` - - -## Setup build environment - -```sh -docker exec -ti -u0:0 "${CNTR:?}" sh -c 'true\ - && apt-get update \ - && apt-get install -y --no-install-recommends \ - curl gcc git make libc-dev ca-certificates tar zlib1g-dev \ - && true' -``` - - -## configure & make - -```sh -docker exec -ti -u$(id -u):$(id -g) "${CNTR:?}" sh -c 'true\ - && ./configure \ - && make -e clean \ - && make -e \ - && true' -``` - -A ready-to-distribute tarball is now ready in `./dist/`. If you'd like -to install it somewhere else, all you need is this tarball. If you want -to install on same system where you did build you can continue with the -*install* step below. - - -## install - -BTW: This does nothing else than unpacking the built tar into configured - directories. - -```sh -make -e install -``` - |