[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible OpenWrt: show the build environment

Holger Levsen (@holger) gitlab at salsa.debian.org
Thu Feb 10 00:43:43 GMT 2022



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
24642e74 by Holger Levsen at 2022-02-10T01:43:30+01:00
reproducible OpenWrt: show the build environment

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_openwrt.sh


Changes:

=====================================
bin/reproducible_openwrt.sh
=====================================
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-# Copyright 2014-2021 Holger Levsen <holger at layer-acht.org>
+# Copyright 2014-2022 Holger Levsen <holger at layer-acht.org>
 #         © 2015 Reiner Herrmann <reiner at reiner-h.de>
 #           2016-2021 Alexander Couzens <lynxis at fe80.eu>
 # released under the GPLv2
@@ -23,6 +23,7 @@ OPENWRT_GIT_REPO=https://git.openwrt.org/openwrt/openwrt.git
 OPENWRT_GIT_BRANCH=master
 OPENWRT_CONFIG=
 OPENWRT_TARGET=
+OPENWRT_HOST_PACKAGES="gcc binutils bzip2 flex python3 perl make findutils grep diffutils unzip gawk util-linux zlib1g-dev libc6-dev git subversion"
 
 # node configuration
 GENERIC_NODE1=osuosl171-amd64.debian.net
@@ -119,7 +120,7 @@ node_document_environment() {
 	done
 	echo "</table>" >> "$toolchain_html"
 	echo "<table><tr><th>Debian $(cat /etc/debian_version) $(dpkg --print-architecture) package name</th><th>installed version</th></tr>" >> "$toolchain_html"
-	for i in gcc binutils bzip2 flex python3 perl make findutils grep diffutils unzip gawk util-linux zlib1g-dev libc6-dev git subversion ; do
+	for i in OPENWRT_HOST_PACKAGES ; do
 		echo " <tr><td>$i</td><td>" >> "$toolchain_html"
 		dpkg -s $i|grep '^Version'|cut -d " " -f2 >> "$toolchain_html"
 		echo " </td></tr>" >> "$toolchain_html"
@@ -242,6 +243,21 @@ openwrt_config() {
 }
 
 openwrt_build_toolchain() {
+	echo "============================================================================="
+	echo "$(date -u) - Showing the build environment."
+	echo "============================================================================="
+
+	for i in 'cat /etc/debian_version' 'dpkg --print-architecture' ; do
+		echo "$ $i"
+		$i
+	done
+	echo
+
+	for i in $OPENWRT_HOST_PACKAGES ; do
+		printf "%15s | %s\n" $i $(dpkg -s $i|grep '^Version'|cut -d " " -f2)
+	done
+	echo
+
 	echo "============================================================================="
 	echo "$(date -u) - Building the toolchain."
 	echo "============================================================================="



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/24642e74f96c58db86f3aefaf8796b81a1a87d4f

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/24642e74f96c58db86f3aefaf8796b81a1a87d4f
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20220210/f4e0f0ef/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list