From e2f68de8da5dbc6936478f53fb9497817c2ce7ef Mon Sep 17 00:00:00 2001 From: "Lance R. Vick" Date: Thu, 4 May 2023 12:10:38 -0700 Subject: [PATCH 1/2] drop manifest.txt support favoring diff and git-sig --- Makefile | 11 +---------- README.md | 15 --------------- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/Makefile b/Makefile index 96e1487..eb6bae4 100644 --- a/Makefile +++ b/Makefile @@ -107,7 +107,7 @@ reproduce: toolchain-clean mkdir -p $(OUT_DIR) cp $(DIST_DIR)/release.env $(OUT_DIR)/release.env $(MAKE) TARGET=$(TARGET) VERSION=$(VERSION) - diff -q $(OUT_DIR)/manifest.txt $(DIST_DIR)/manifest.txt \ + diff -q $(OUT_DIR) $(DIST_DIR) \ && echo "Success: $(OUT_DIR) and $(DIST_DIR) are identical" .PHONY: $(DIST_DIR) @@ -164,15 +164,6 @@ $(OUT_DIR)/release.env: | $(OUT_DIR) echo 'GIT_KEY=$(GIT_KEY)' >> $(OUT_DIR)/release.env echo 'GIT_TIMESTAMP=$(GIT_TIMESTAMP)' >> $(OUT_DIR)/release.env -$(OUT_DIR)/manifest.txt: $(wildcard $(OUT_DIR)/*) - find -L $(OUT_DIR) \ - -type f \ - -not -path "$(OUT_DIR)/manifest.txt" \ - -exec openssl sha256 -r {} \; \ - | sed -e 's/ \*out\// /g' -e 's/ \.\// /g' \ - | LC_ALL=C sort -k2 \ - > $@ - check_executables := $(foreach exec,$(executables),\$(if \ $(shell which $(exec)),some string,$(error "No $(exec) in PATH"))) diff --git a/README.md b/README.md index 255d6dc..4902cb5 100644 --- a/README.md +++ b/README.md @@ -80,21 +80,6 @@ us as desired. ") ``` -7. Define a release target for your project depending on manifest.txt - - ``` - .PHONY: release - release: $(OUT_DIR)/hello $(OUT_DIR)/manifest.txt - mkdir -p $(RELEASE_DIR) - cp $(OUT_DIR)/hello $(RELEASE_DIR)/hello - cp $(OUT_DIR)/release.env $(RELEASE_DIR)/release.env - cp $(OUT_DIR)/manifest.txt $(RELEASE_DIR)/manifest.txt - ``` - - Note that manifest.txt is optional, but it makes for an ideal single file - to sign if a release will contain more than one artifact. - - ## Usage ## ### Build a new release From 1e1d4ae3a9ca8bc9515214edecef06596e2ee926 Mon Sep 17 00:00:00 2001 From: RyanSquared Date: Fri, 5 May 2023 11:11:17 -0400 Subject: [PATCH 2/2] scripts/pcakages-update: only use packages from debian snapshot --- scripts/packages-update | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/packages-update b/scripts/packages-update index fa0b4f4..c9c90e6 100755 --- a/scripts/packages-update +++ b/scripts/packages-update @@ -6,14 +6,12 @@ set -e snapshot_url="http://snapshot.debian.org/archive/debian" snapshot_date=$(date +"%Y%m%dT000000Z") cat <<-EOF > /etc/apt/sources.list -deb http://deb.debian.org/debian bookworm main -deb http://security.debian.org/debian-security bookworm-security main -deb http://deb.debian.org/debian bookworm-updates main deb [trusted=yes] ${snapshot_url}/${snapshot_date} bookworm main deb [trusted=yes] ${snapshot_url}-security/${snapshot_date} bookworm-security main deb [trusted=yes] ${snapshot_url}/${snapshot_date} bookworm-updates main EOF cp /etc/apt/sources.list /config/toolchain/ +rm /etc/apt/sources.list.d/* ARCH=$(uname -m)