public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/binhost:master commit in: builders/milou/openrc-23/portage/variants/lucky/, builders/milou/server-23/, ...
@ 2024-09-29  4:16 Eli Schwartz
  0 siblings, 0 replies; only message in thread
From: Eli Schwartz @ 2024-09-29  4:16 UTC (permalink / raw
  To: gentoo-commits

commit:     1e48082a95f3344904684746f8ecd9a6ac22679c
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 29 04:13:59 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Sun Sep 29 04:13:59 2024 +0000
URL:        https://gitweb.gentoo.org/proj/binhost.git/commit/?id=1e48082a

enable variant builds for all builders, and include lucky run

Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 .../kde-23/portage/variants/lucky/.run_marker      |  1 +
 builders/milou/kde-23/run-update                   | 39 ++++++++++++++++++++--
 .../kde-v3-23/portage/variants/lucky/.run_marker   |  1 +
 builders/milou/kde-v3-23/run-update                | 39 ++++++++++++++++++++--
 .../openrc-23/portage/variants/lucky/.run_marker   |  1 +
 builders/milou/openrc-23/run-update                | 39 ++++++++++++++++++++--
 .../portage/variants/lucky/.run_marker             |  1 +
 builders/milou/openrc-v3-23/run-update             | 39 ++++++++++++++++++++--
 .../server-23/portage/variants/lucky/.run_marker   |  1 +
 builders/milou/server-23/run-update                | 39 ++++++++++++++++++++--
 .../portage/variants/lucky/.run_marker             |  1 +
 builders/milou/server-v3-23/run-update             | 39 ++++++++++++++++++++--
 12 files changed, 226 insertions(+), 14 deletions(-)

diff --git a/builders/milou/kde-23/portage/variants/lucky/.run_marker b/builders/milou/kde-23/portage/variants/lucky/.run_marker
new file mode 100644
index 0000000..722c3eb
--- /dev/null
+++ b/builders/milou/kde-23/portage/variants/lucky/.run_marker
@@ -0,0 +1 @@
+I'm feeling lucky!

diff --git a/builders/milou/kde-23/run-update b/builders/milou/kde-23/run-update
index 02cdf8a..ea34914 100755
--- a/builders/milou/kde-23/run-update
+++ b/builders/milou/kde-23/run-update
@@ -3,6 +3,41 @@
 # if one thing fails, abort entirely
 set -e
 
-emerge -uDNkq --changed-deps --backtrack=100 --keep-going world
+to_install=(world)
 
-emerge --depclean --quiet-unmerge-warn
+if [[ $1 = lucky ]]; then
+	eix-update
+	eix --stable --only-names | grep -E -v '^(acct|virtual|sec)-' | sort -u > /tmp/stable
+	eix --installed --only-names | sort -u > /tmp/installed
+	comm -23 /tmp/stable /tmp/installed > /tmp/uninstalled-stable
+	sed -i 's/--binpkg-respect-use//' /etc/portage/make.conf
+
+	to_install=(--autounmask-write --autounmask-continue $(shuf -n3 /tmp/uninstalled-stable))
+elif [[ $1 ]]; then
+	pushd /etc/portage/variants/$1
+	while read -r -d '' line; do
+		dest=../../${line%.footer}
+		if [[ ${line} = world* ]]; then
+			dest=/var/lib/portage/world
+		fi
+
+		if [[ ${line} = world.remove ]]; then
+			emerge -C $(<"${line}")
+		elif [[ ${line} = *.footer ]]; then
+			cat "${line}" >> "${dest}"
+		else
+			mkdir -p "${dest%/*}"
+			cp "${line}" "${dest}"
+		fi
+	done < <(find . -type f -printf '%P\0')
+	if [[ -f buildpkgonly ]]; then
+		./buildpkgonly
+	fi
+	popd
+fi
+
+emerge -uDNkq --changed-deps --backtrack=100 --keep-going "${to_install[@]}"
+
+if [[ ! $1 ]]; then
+	emerge --depclean --quiet-unmerge-warn
+fi

diff --git a/builders/milou/kde-v3-23/portage/variants/lucky/.run_marker b/builders/milou/kde-v3-23/portage/variants/lucky/.run_marker
new file mode 100644
index 0000000..722c3eb
--- /dev/null
+++ b/builders/milou/kde-v3-23/portage/variants/lucky/.run_marker
@@ -0,0 +1 @@
+I'm feeling lucky!

diff --git a/builders/milou/kde-v3-23/run-update b/builders/milou/kde-v3-23/run-update
index 02cdf8a..ea34914 100755
--- a/builders/milou/kde-v3-23/run-update
+++ b/builders/milou/kde-v3-23/run-update
@@ -3,6 +3,41 @@
 # if one thing fails, abort entirely
 set -e
 
-emerge -uDNkq --changed-deps --backtrack=100 --keep-going world
+to_install=(world)
 
-emerge --depclean --quiet-unmerge-warn
+if [[ $1 = lucky ]]; then
+	eix-update
+	eix --stable --only-names | grep -E -v '^(acct|virtual|sec)-' | sort -u > /tmp/stable
+	eix --installed --only-names | sort -u > /tmp/installed
+	comm -23 /tmp/stable /tmp/installed > /tmp/uninstalled-stable
+	sed -i 's/--binpkg-respect-use//' /etc/portage/make.conf
+
+	to_install=(--autounmask-write --autounmask-continue $(shuf -n3 /tmp/uninstalled-stable))
+elif [[ $1 ]]; then
+	pushd /etc/portage/variants/$1
+	while read -r -d '' line; do
+		dest=../../${line%.footer}
+		if [[ ${line} = world* ]]; then
+			dest=/var/lib/portage/world
+		fi
+
+		if [[ ${line} = world.remove ]]; then
+			emerge -C $(<"${line}")
+		elif [[ ${line} = *.footer ]]; then
+			cat "${line}" >> "${dest}"
+		else
+			mkdir -p "${dest%/*}"
+			cp "${line}" "${dest}"
+		fi
+	done < <(find . -type f -printf '%P\0')
+	if [[ -f buildpkgonly ]]; then
+		./buildpkgonly
+	fi
+	popd
+fi
+
+emerge -uDNkq --changed-deps --backtrack=100 --keep-going "${to_install[@]}"
+
+if [[ ! $1 ]]; then
+	emerge --depclean --quiet-unmerge-warn
+fi

diff --git a/builders/milou/openrc-23/portage/variants/lucky/.run_marker b/builders/milou/openrc-23/portage/variants/lucky/.run_marker
new file mode 100644
index 0000000..722c3eb
--- /dev/null
+++ b/builders/milou/openrc-23/portage/variants/lucky/.run_marker
@@ -0,0 +1 @@
+I'm feeling lucky!

diff --git a/builders/milou/openrc-23/run-update b/builders/milou/openrc-23/run-update
index 02cdf8a..ea34914 100755
--- a/builders/milou/openrc-23/run-update
+++ b/builders/milou/openrc-23/run-update
@@ -3,6 +3,41 @@
 # if one thing fails, abort entirely
 set -e
 
-emerge -uDNkq --changed-deps --backtrack=100 --keep-going world
+to_install=(world)
 
-emerge --depclean --quiet-unmerge-warn
+if [[ $1 = lucky ]]; then
+	eix-update
+	eix --stable --only-names | grep -E -v '^(acct|virtual|sec)-' | sort -u > /tmp/stable
+	eix --installed --only-names | sort -u > /tmp/installed
+	comm -23 /tmp/stable /tmp/installed > /tmp/uninstalled-stable
+	sed -i 's/--binpkg-respect-use//' /etc/portage/make.conf
+
+	to_install=(--autounmask-write --autounmask-continue $(shuf -n3 /tmp/uninstalled-stable))
+elif [[ $1 ]]; then
+	pushd /etc/portage/variants/$1
+	while read -r -d '' line; do
+		dest=../../${line%.footer}
+		if [[ ${line} = world* ]]; then
+			dest=/var/lib/portage/world
+		fi
+
+		if [[ ${line} = world.remove ]]; then
+			emerge -C $(<"${line}")
+		elif [[ ${line} = *.footer ]]; then
+			cat "${line}" >> "${dest}"
+		else
+			mkdir -p "${dest%/*}"
+			cp "${line}" "${dest}"
+		fi
+	done < <(find . -type f -printf '%P\0')
+	if [[ -f buildpkgonly ]]; then
+		./buildpkgonly
+	fi
+	popd
+fi
+
+emerge -uDNkq --changed-deps --backtrack=100 --keep-going "${to_install[@]}"
+
+if [[ ! $1 ]]; then
+	emerge --depclean --quiet-unmerge-warn
+fi

diff --git a/builders/milou/openrc-v3-23/portage/variants/lucky/.run_marker b/builders/milou/openrc-v3-23/portage/variants/lucky/.run_marker
new file mode 100644
index 0000000..722c3eb
--- /dev/null
+++ b/builders/milou/openrc-v3-23/portage/variants/lucky/.run_marker
@@ -0,0 +1 @@
+I'm feeling lucky!

diff --git a/builders/milou/openrc-v3-23/run-update b/builders/milou/openrc-v3-23/run-update
index 02cdf8a..ea34914 100755
--- a/builders/milou/openrc-v3-23/run-update
+++ b/builders/milou/openrc-v3-23/run-update
@@ -3,6 +3,41 @@
 # if one thing fails, abort entirely
 set -e
 
-emerge -uDNkq --changed-deps --backtrack=100 --keep-going world
+to_install=(world)
 
-emerge --depclean --quiet-unmerge-warn
+if [[ $1 = lucky ]]; then
+	eix-update
+	eix --stable --only-names | grep -E -v '^(acct|virtual|sec)-' | sort -u > /tmp/stable
+	eix --installed --only-names | sort -u > /tmp/installed
+	comm -23 /tmp/stable /tmp/installed > /tmp/uninstalled-stable
+	sed -i 's/--binpkg-respect-use//' /etc/portage/make.conf
+
+	to_install=(--autounmask-write --autounmask-continue $(shuf -n3 /tmp/uninstalled-stable))
+elif [[ $1 ]]; then
+	pushd /etc/portage/variants/$1
+	while read -r -d '' line; do
+		dest=../../${line%.footer}
+		if [[ ${line} = world* ]]; then
+			dest=/var/lib/portage/world
+		fi
+
+		if [[ ${line} = world.remove ]]; then
+			emerge -C $(<"${line}")
+		elif [[ ${line} = *.footer ]]; then
+			cat "${line}" >> "${dest}"
+		else
+			mkdir -p "${dest%/*}"
+			cp "${line}" "${dest}"
+		fi
+	done < <(find . -type f -printf '%P\0')
+	if [[ -f buildpkgonly ]]; then
+		./buildpkgonly
+	fi
+	popd
+fi
+
+emerge -uDNkq --changed-deps --backtrack=100 --keep-going "${to_install[@]}"
+
+if [[ ! $1 ]]; then
+	emerge --depclean --quiet-unmerge-warn
+fi

diff --git a/builders/milou/server-23/portage/variants/lucky/.run_marker b/builders/milou/server-23/portage/variants/lucky/.run_marker
new file mode 100644
index 0000000..722c3eb
--- /dev/null
+++ b/builders/milou/server-23/portage/variants/lucky/.run_marker
@@ -0,0 +1 @@
+I'm feeling lucky!

diff --git a/builders/milou/server-23/run-update b/builders/milou/server-23/run-update
index 417f835..ea34914 100755
--- a/builders/milou/server-23/run-update
+++ b/builders/milou/server-23/run-update
@@ -3,8 +3,41 @@
 # if one thing fails, abort entirely
 set -e
 
-emerge -uDNkq --changed-deps --backtrack=100 --keep-going world
+to_install=(world)
 
-emerge --depclean --quiet-unmerge-warn
+if [[ $1 = lucky ]]; then
+	eix-update
+	eix --stable --only-names | grep -E -v '^(acct|virtual|sec)-' | sort -u > /tmp/stable
+	eix --installed --only-names | sort -u > /tmp/installed
+	comm -23 /tmp/stable /tmp/installed > /tmp/uninstalled-stable
+	sed -i 's/--binpkg-respect-use//' /etc/portage/make.conf
 
-eclean-pkg
+	to_install=(--autounmask-write --autounmask-continue $(shuf -n3 /tmp/uninstalled-stable))
+elif [[ $1 ]]; then
+	pushd /etc/portage/variants/$1
+	while read -r -d '' line; do
+		dest=../../${line%.footer}
+		if [[ ${line} = world* ]]; then
+			dest=/var/lib/portage/world
+		fi
+
+		if [[ ${line} = world.remove ]]; then
+			emerge -C $(<"${line}")
+		elif [[ ${line} = *.footer ]]; then
+			cat "${line}" >> "${dest}"
+		else
+			mkdir -p "${dest%/*}"
+			cp "${line}" "${dest}"
+		fi
+	done < <(find . -type f -printf '%P\0')
+	if [[ -f buildpkgonly ]]; then
+		./buildpkgonly
+	fi
+	popd
+fi
+
+emerge -uDNkq --changed-deps --backtrack=100 --keep-going "${to_install[@]}"
+
+if [[ ! $1 ]]; then
+	emerge --depclean --quiet-unmerge-warn
+fi

diff --git a/builders/milou/server-v3-23/portage/variants/lucky/.run_marker b/builders/milou/server-v3-23/portage/variants/lucky/.run_marker
new file mode 100644
index 0000000..722c3eb
--- /dev/null
+++ b/builders/milou/server-v3-23/portage/variants/lucky/.run_marker
@@ -0,0 +1 @@
+I'm feeling lucky!

diff --git a/builders/milou/server-v3-23/run-update b/builders/milou/server-v3-23/run-update
index 417f835..ea34914 100755
--- a/builders/milou/server-v3-23/run-update
+++ b/builders/milou/server-v3-23/run-update
@@ -3,8 +3,41 @@
 # if one thing fails, abort entirely
 set -e
 
-emerge -uDNkq --changed-deps --backtrack=100 --keep-going world
+to_install=(world)
 
-emerge --depclean --quiet-unmerge-warn
+if [[ $1 = lucky ]]; then
+	eix-update
+	eix --stable --only-names | grep -E -v '^(acct|virtual|sec)-' | sort -u > /tmp/stable
+	eix --installed --only-names | sort -u > /tmp/installed
+	comm -23 /tmp/stable /tmp/installed > /tmp/uninstalled-stable
+	sed -i 's/--binpkg-respect-use//' /etc/portage/make.conf
 
-eclean-pkg
+	to_install=(--autounmask-write --autounmask-continue $(shuf -n3 /tmp/uninstalled-stable))
+elif [[ $1 ]]; then
+	pushd /etc/portage/variants/$1
+	while read -r -d '' line; do
+		dest=../../${line%.footer}
+		if [[ ${line} = world* ]]; then
+			dest=/var/lib/portage/world
+		fi
+
+		if [[ ${line} = world.remove ]]; then
+			emerge -C $(<"${line}")
+		elif [[ ${line} = *.footer ]]; then
+			cat "${line}" >> "${dest}"
+		else
+			mkdir -p "${dest%/*}"
+			cp "${line}" "${dest}"
+		fi
+	done < <(find . -type f -printf '%P\0')
+	if [[ -f buildpkgonly ]]; then
+		./buildpkgonly
+	fi
+	popd
+fi
+
+emerge -uDNkq --changed-deps --backtrack=100 --keep-going "${to_install[@]}"
+
+if [[ ! $1 ]]; then
+	emerge --depclean --quiet-unmerge-warn
+fi


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-09-29  4:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-29  4:16 [gentoo-commits] proj/binhost:master commit in: builders/milou/openrc-23/portage/variants/lucky/, builders/milou/server-23/, Eli Schwartz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox