From 71a56a8645d9ba5a0acbe807ce7c2c5303c68cb1 Mon Sep 17 00:00:00 2001 From: pho4cexa Date: Fri, 16 Dec 2022 16:39:50 -0800 Subject: [PATCH] add janky makefile target to build for glibc-2.31+ "make compile-on-debian-11" should work now... --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Makefile b/Makefile index cc2b62f..68aa909 100644 --- a/Makefile +++ b/Makefile @@ -24,3 +24,20 @@ uninstall: clean: rm $(DIR_BUILD)/$(BIN) +compile-on-debian-11: + # builds repo2html compatible with systems running glibc-2.31 and higher. + # + # this will download a debian docker container that has glibc 2.31, then + # download chicken scheme, gcc compiler, and tons of related packages, then + # download all the dependency eggs, then compile them, then compile this + # project, then except for that one output executable it will delete + # *everything* it has done and downloaded including any caches meant to + # save you some time and bandwidth the next time you need to compile this + # + # what i'm saying is, if we need to run this frequently, we should find a + # better mechanism. providing a dockerfile would probably be sufficient... + docker run --rm -it -v "$(shell pwd)":/tmp/x -w /tmp/x debian:bullseye-slim sh -c '\ + apt update &&\ + apt install -y chicken-bin build-essential make &&\ + make dependencies &&\ + make compile'