From 7cf0fb9f8b585d8a1151058a237d207d443710c4 Mon Sep 17 00:00:00 2001 From: Clawdie Operator Date: Thu, 4 Jun 2026 10:05:53 +0000 Subject: [PATCH 1/2] =?UTF-8?q?Add=20python3=20=E2=86=92=20python3.11=20sy?= =?UTF-8?q?mlink=20in=20live=20image?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FreeBSD packages ship python3.11 but no bare python3 symlink, breaking scripts that use #!/usr/bin/env python3. --- build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.sh b/build.sh index 3a8e90b4..0d27255b 100755 --- a/build.sh +++ b/build.sh @@ -996,6 +996,13 @@ configure_live_operator_session() { chmod 0644 "${MOUNT_POINT}/etc/resolv.conf" fi + # FreeBSD packages ship python3.11 but not a bare python3 symlink. + # Scripts that use /usr/bin/env python3 break without this. + if [ -x "${MOUNT_POINT}/usr/local/bin/python3.11" ] && \ + [ ! -e "${MOUNT_POINT}/usr/local/bin/python3" ]; then + ln -sf python3.11 "${MOUNT_POINT}/usr/local/bin/python3" + fi + mkdir -p "${MOUNT_POINT}/usr/local/etc/sddm.conf.d" install -m 0644 "${LIVE_SESSION_DIR}/sddm.conf" \ "${MOUNT_POINT}/usr/local/etc/sddm.conf.d/50-clawdie-live.conf" -- 2.45.3 From 9e837dcc2fc6c01fa83e8207bb966b174b04515b Mon Sep 17 00:00:00 2001 From: Clawdie Operator Date: Thu, 4 Jun 2026 10:08:19 +0000 Subject: [PATCH 2/2] =?UTF-8?q?Also=20symlink=20python=20=E2=86=92=20pytho?= =?UTF-8?q?n3.11=20(bare=20python=20shebangs)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index 0d27255b..88fc8fc2 100755 --- a/build.sh +++ b/build.sh @@ -1001,6 +1001,7 @@ configure_live_operator_session() { if [ -x "${MOUNT_POINT}/usr/local/bin/python3.11" ] && \ [ ! -e "${MOUNT_POINT}/usr/local/bin/python3" ]; then ln -sf python3.11 "${MOUNT_POINT}/usr/local/bin/python3" + ln -sf python3.11 "${MOUNT_POINT}/usr/local/bin/python" fi mkdir -p "${MOUNT_POINT}/usr/local/etc/sddm.conf.d" -- 2.45.3