summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2026-03-18 09:46:54 +0100
committerFelix Morgner <felix.morgner@gmail.com>2026-03-18 09:46:54 +0100
commit19459a9b54a54403d3d40bc6d6d736367339c6dc (patch)
tree015ece81e60fe6c7a0c645142216191a5c7d3e3f
parenta077e34fdeea961f0fe01c1b2cf500846ac51f55 (diff)
downloadteachos-toolchain-19459a9b54a54403d3d40bc6d6d736367339c6dc.tar.xz
teachos-toolchain-19459a9b54a54403d3d40bc6d6d736367339c6dc.zip
chore: update dependencies
-rw-r--r--Containerfile2
-rw-r--r--Makefile20
-rwxr-xr-xscripts/0150-build-static-deps.sh5
3 files changed, 15 insertions, 12 deletions
diff --git a/Containerfile b/Containerfile
index 37fb7a3..07ada9f 100644
--- a/Containerfile
+++ b/Containerfile
@@ -1,4 +1,4 @@
-FROM ubuntu:latest AS builder
+FROM ubuntu:questing AS builder
ARG BINUTILS_VERSION
ARG GCC_VERSION
diff --git a/Makefile b/Makefile
index 2fd73c3..47bec20 100644
--- a/Makefile
+++ b/Makefile
@@ -6,12 +6,12 @@ GDB_VERSION ?= 17.1
NEWLIB_VERSION ?= 4.6.0.20260123
ZLIB_VERSION ?= 1.3.2
-NCURSES_VERSION ?= 6.4
-EXPAT_VERSION ?= 2.6.2
-READLINE_VERSION ?= 8.2
-GMP_VERSION ?= 6.2.1
-MPFR_VERSION ?= 4.1.0
-MPC_VERSION ?= 1.2.1
+NCURSES_VERSION ?= 6.6
+EXPAT_VERSION ?= 2.7.5
+READLINE_VERSION ?= 8.3
+GMP_VERSION ?= 6.3.0
+MPFR_VERSION ?= 4.2.2
+MPC_VERSION ?= 1.3.1
TARGET ?= x86_64-pc-elf
PLATFORM ?= x86-64
@@ -20,14 +20,14 @@ IMAGE_BUILD ?= 3
IMAGE_NAME = "registry.gitlab.ost.ch:45023/teachos/devcontainers"
IMAGE_TAG = "$(PLATFORM):$(GCC_VERSION)-$(IMAGE_BUILD)"
-ARCHIVE_NAME = "teachos-$(PLATFORM)-$(GCC_VERSION)-$(IMAGE_BUILD)"
+ARCHIVE_NAME = "teachos-$(PLATFORM)-$(GCC_VERSION)-$(IMAGE_BUILD).tar.xz"
all: toolchain_archive
toolchain_archive: container_image
- podman create --name teachos-toolchain-archive $(IMAGE_NAME)/$(IMAGE_TAG)
- podman cp teachos-toolchain-archive:/opt/toolchain $(ARCHIVE_NAME)
- tar caf $(ARCHIVE_NAME).tar.xz $(ARCHIVE_NAME)
+ podman run --name teachos-toolchain-archive $(IMAGE_NAME)/$(IMAGE_TAG) tar -C /opt/toolchain -c -a -f /$(ARCHIVE_NAME) .
+ podman cp teachos-toolchain-archive:/$(ARCHIVE_NAME) $(ARCHIVE_NAME)
+ podman rm teachos-toolchain-archive
container_image:
podman pull docker.io/ubuntu:questing
diff --git a/scripts/0150-build-static-deps.sh b/scripts/0150-build-static-deps.sh
index d0a460f..cc68ecb 100755
--- a/scripts/0150-build-static-deps.sh
+++ b/scripts/0150-build-static-deps.sh
@@ -36,7 +36,10 @@ cd ..
echo "Building static gmp..."
tar xf /downloads/gmp-$GMP_VERSION.tar.xz
cd gmp-$GMP_VERSION
-./configure --prefix=$STATIC_DEPS_PREFIX --disable-shared --enable-static
+## PATCH BEGIN
+sed -i 's/void g(){}/void g(int,t1 const*,t1,t2,t1 const*,int){}/' configure
+## PATCH END
+./configure --prefix=$STATIC_DEPS_PREFIX --disable-shared --enable-static || cat config.log
make -j$(nproc) && make install
cd ..