From 62cde3fdc655517e9ee55645e301afbcdaf467a8 Mon Sep 17 00:00:00 2001 From: Stefan Schramm Date: Sat, 11 Jan 2025 12:01:39 +0100 Subject: [PATCH] Update example build container to Debian 12 --- retroload-lib/examples/Dockerfile | 10 ++++++++-- retroload-lib/examples/formats/basicode/Makefile | 4 ++++ retroload-lib/examples/formats/c64_data/Makefile | 4 ++++ .../examples/formats/kc_basic_generic/Makefile | 4 ++++ retroload-lib/examples/rebuild_all.sh | 4 ++++ 5 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 retroload-lib/examples/formats/basicode/Makefile create mode 100644 retroload-lib/examples/formats/c64_data/Makefile create mode 100644 retroload-lib/examples/formats/kc_basic_generic/Makefile diff --git a/retroload-lib/examples/Dockerfile b/retroload-lib/examples/Dockerfile index 89541e4..07834f7 100644 --- a/retroload-lib/examples/Dockerfile +++ b/retroload-lib/examples/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:11 +FROM debian:12 RUN apt-get update && \ apt-get -y install --no-install-recommends \ make \ @@ -8,12 +8,14 @@ RUN apt-get update && \ ca-certificates \ python3 \ python-is-python3 \ + python3-venv \ git \ pip \ build-essential \ libsndfile1-dev \ unzip -RUN pip install zxtaputils tzxtools +RUN python3 -m venv /opt/python-venv +RUN /opt/python-venv/bin/pip install zxtaputils tzxtools WORKDIR /opt RUN wget https://www.luigidifraia.com/hosted/software/prg2tap-1.8-linux-x86_64-with-examples.tar.gz && \ tar -zxvf prg2tap-1.8-linux-x86_64-with-examples.tar.gz && \ @@ -44,5 +46,9 @@ RUN wget "https://www.6809.org.uk/asm6809/dl/asm6809-2.12.tar.gz" -O asm6809-2.1 cd asm6809-2.12 && \ ./configure && \ make install +RUN \ + ln -s /opt/python-venv/bin/bas2tap /usr/local/bin/bas2tap && \ + ln -s /opt/python-venv/bin/tapify /usr/local/bin/tapify && \ + ln -s /opt/python-venv/bin/tzxmerge /usr/local/bin/tzxmerge COPY /rebuild_all.sh / CMD [ "/rebuild_all.sh" ] diff --git a/retroload-lib/examples/formats/basicode/Makefile b/retroload-lib/examples/formats/basicode/Makefile new file mode 100644 index 0000000..2fb6d05 --- /dev/null +++ b/retroload-lib/examples/formats/basicode/Makefile @@ -0,0 +1,4 @@ +all: rl.txt + +clean: + rm -f *.wav diff --git a/retroload-lib/examples/formats/c64_data/Makefile b/retroload-lib/examples/formats/c64_data/Makefile new file mode 100644 index 0000000..2fb6d05 --- /dev/null +++ b/retroload-lib/examples/formats/c64_data/Makefile @@ -0,0 +1,4 @@ +all: rl.txt + +clean: + rm -f *.wav diff --git a/retroload-lib/examples/formats/kc_basic_generic/Makefile b/retroload-lib/examples/formats/kc_basic_generic/Makefile new file mode 100644 index 0000000..2fb6d05 --- /dev/null +++ b/retroload-lib/examples/formats/kc_basic_generic/Makefile @@ -0,0 +1,4 @@ +all: rl.txt + +clean: + rm -f *.wav diff --git a/retroload-lib/examples/rebuild_all.sh b/retroload-lib/examples/rebuild_all.sh index afcad1e..3642ee3 100755 --- a/retroload-lib/examples/rebuild_all.sh +++ b/retroload-lib/examples/rebuild_all.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -e + FORMATS_DIR="$(dirname $(realpath $0))/formats/" if [ ! -d "$FORMATS_DIR" ] ; then @@ -9,7 +11,9 @@ if [ ! -d "$FORMATS_DIR" ] ; then fi for FORMAT in "$(dirname $(realpath $0))/formats/"* ; do + echo "Processing $FORMAT..." if [ -d "${FORMAT}" ] ; then make -C "${FORMAT}" clean all fi + echo done