upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbitflash-maintainer <noreply@bitflash.invalid>2026-09-02 05:23:05 +0000
committerbitflash-maintainer <noreply@bitflash.invalid>2026-09-02 05:23:05 +0000
commit34cb6e65f171251ad331bdd67f33511904f36fb2 (patch)
tree9f5b4947bb80c41cdfe5ce6ea2fe2fb0c89bfdd4
parentfd627b134c686e7c9afb646dc37c573c5d36fd4a (diff)
build: ask apt for libboost-dev, and update the package lists first
libboost-system-dev is gone from Ubuntu 26.04 -- Boost.System has been header-only since 1.69, and this tree only includes two boost headers and links no boost library. The recipe also installed without an apt-get update, so a fresh image failed on stale or empty lists. Closes #28
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 83a2c73..0eec4c2 100644
--- a/Makefile
+++ b/Makefile
@@ -89,11 +89,17 @@ linux-node: deps-linux
89 89
90deps-linux: deps-apt deps-secp256k1 deps-randomx 90deps-linux: deps-apt deps-secp256k1 deps-randomx
91 91
92# libboost-dev, not libboost-system-dev: Boost.System has been header-only
93# since 1.69 and Ubuntu 26.04 (resolute) no longer ships the -system package.
94# This tree only includes two boost headers and links no boost library. The
95# apt-get update comes first: a fresh image's package lists are empty, and
96# install then fails on the first name it cannot find.
92deps-apt: 97deps-apt:
93 @if command -v apt-get >/dev/null 2>&1; then \ 98 @if command -v apt-get >/dev/null 2>&1; then \
99 $(SUDO) apt-get update; \
94 $(SUDO) apt-get install -y build-essential cmake git pkg-config autoconf \ 100 $(SUDO) apt-get install -y build-essential cmake git pkg-config autoconf \
95 libtool libssl-dev libdb5.3++-dev libsodium-dev nlohmann-json3-dev \ 101 libtool libssl-dev libdb5.3++-dev libsodium-dev nlohmann-json3-dev \
96 libboost-system-dev libglfw3-dev libgl-dev python3-pil clang; \ 102 libboost-dev libglfw3-dev libgl-dev python3-pil clang; \
97 else \ 103 else \
98 echo "Not an apt system — install: g++ cmake git autoconf libtool"; \ 104 echo "Not an apt system — install: g++ cmake git autoconf libtool"; \
99 echo " libssl libdb++ libsodium nlohmann-json boost glfw3 opengl python3-pil"; \ 105 echo " libssl libdb++ libsodium nlohmann-json boost glfw3 opengl python3-pil"; \