From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5DDFD1382C5 for ; Sat, 1 May 2021 20:22:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 61B6EE0D0E; Sat, 1 May 2021 20:22:08 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 472CAE0D0E for ; Sat, 1 May 2021 20:22:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E2B1E33BEAC for ; Sat, 1 May 2021 20:22:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 388D473A for ; Sat, 1 May 2021 20:22:05 +0000 (UTC) From: "Andreas K. Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas K. Hüttel" Message-ID: <1619900512.1151b7a5c0901fb91723d20be695e43a11d1bf7d.dilfridge@gentoo> Subject: [gentoo-commits] proj/releng:master commit in: tools/ X-VCS-Repository: proj/releng X-VCS-Files: tools/catalyst-auto-amd64-musl.conf X-VCS-Directories: tools/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: 1151b7a5c0901fb91723d20be695e43a11d1bf7d X-VCS-Branch: master Date: Sat, 1 May 2021 20:22:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b2db18c5-db28-4c7d-b4f9-1faffcd260b3 X-Archives-Hash: 2cbb763a0ad6dde551cbeaa59cb8a27d commit: 1151b7a5c0901fb91723d20be695e43a11d1bf7d Author: Andreas K. Hüttel gentoo org> AuthorDate: Sat May 1 20:14:28 2021 +0000 Commit: Andreas K. Hüttel gentoo org> CommitDate: Sat May 1 20:21:52 2021 +0000 URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=1151b7a5 Add experimental musl catalust-auto config file Signed-off-by: Andreas K. Hüttel gentoo.org> tools/catalyst-auto-amd64-musl.conf | 62 +++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/tools/catalyst-auto-amd64-musl.conf b/tools/catalyst-auto-amd64-musl.conf new file mode 100644 index 00000000..1b4e2b3b --- /dev/null +++ b/tools/catalyst-auto-amd64-musl.conf @@ -0,0 +1,62 @@ +# This is the config file for the catalyst-auto script. It should be pretty +# self-explanatory. + +UPLOAD_USER=amd64 +UPLOAD_KEY=/root/.ssh/id_rsa +host=$(hostname) + +ARCH="amd64" +TYPE="auto" +source /etc/catalyst/release/build.env + +SPECS_DIR=${REPO_DIR}/releases/specs/amd64/musl + +SETS=" + vanilla +" +# hardened +# vanilla_systemd +# hardened_systemd + +SET_vanilla_SPECS="stage1.spec stage2.spec stage3.spec" + +KCONFIG_DIR=${REPO_DIR}/releases/kconfig/amd64 + +EXTENSIONS="@(.tar.xz|.tar.bz2|.tar.gz|.tar|.sfs)" + +update_symlinks() { + # Symlink the latest stages3 to build from + for d in ${BUILD_SRCDIR_BASE}/{musl} ; do + pushd "${d}" >/dev/null || exit + shopt -s extglob + for f in $(ls stage3*${EXTENSIONS} | grep -v latest | give_latest_from_dates ) ; do + # 20yymmddThhmmssZ + # 20yymmddhhmmss + # 20yymmdd + # 20yy.n + of=$(perl -p \ + -e 's/20\d{6}T\d{6}Z/latest/g;' \ + -e 's/20\d{6}\d{6}/latest/g;' \ + -e 's/20\d{6}/latest/g;' \ + -e 's/20\d{2}\.\d{2}/latest/g;' \ + <<<"$f") + ln -svf "$f" "$of" + done + popd >/dev/null || exit + done +} + +post_build() { + local set=$1 spec=$2 + + pushd "${BUILD_SRCDIR_BASE}"/musl >/dev/null || exit + UPLOAD_DEST=${BUILD_DESTDIR_BASE} + case ${spec} in + stage3.spec) + upload stage3-amd64-musl-${TIMESTAMP}.tar.xz* + ;; + esac + popd >/dev/null || exit +} + +# vim:ft=sh: