[projects/cleanbuild] Configure php hooks

glen glen at pld-linux.org
Wed Feb 22 20:11:48 CET 2023


commit c5f5a91e45b1a2a6e188727388d68219a4549a1b
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Mon Jan 9 16:34:38 2023 +0200

    Configure php hooks

 bin/cleanbuild-docker.sh | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
---
diff --git a/bin/cleanbuild-docker.sh b/bin/cleanbuild-docker.sh
index baaeb60..dd78b9d 100755
--- a/bin/cleanbuild-docker.sh
+++ b/bin/cleanbuild-docker.sh
@@ -12,6 +12,7 @@ PROGRAM=${0##*/}
 : ${KEEP_CONTAINER=true}
 : ${TMPFS="4G"}
 : ${EXEC=false}
+: ${IGNORE_PACKAGES="systemd-init"}
 
 dir=$(pwd)
 image=registry.gitlab.com/pld-linux/cleanbuild
@@ -149,10 +150,24 @@ package_prepare() {
 	notice "Build log: $buildlog"
 }
 
+# Configure php versions, so that only one version is active
+configure_php() {
+	local PHP_VERSION=5.3
+	local ignore_packages
+
+	notice "Configure php: $PHP_VERSION"
+	ignore_packages="$IGNORE_PACKAGES *php4* *php52* *php53* *php54* *php55* *php56* *php70* *php71* *php72* *php73* *php74* *php80* *php81* *php82*"
+	ignore_packages=$(echo "$ignore_packages" | sed -e "s/ \*php${PHP_VERSION/./}\*//")
+
+	docker exec --user=root -w / $name poldek-config ignore "$ignore_packages"
+}
+
 package_build() {
 	# create default args for builder
 	set -- -nn ${WITH:+--with "${WITH# }"} ${WITHOUT:+--without "${WITHOUT# }"} "$PACKAGE_NAME"
 
+	configure_php
+
 	while true; do
 		notice "Install dependencies"
 		docker exec -w / -t $name builder -g -R "$@"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/cleanbuild.git/commitdiff/c5f5a91e45b1a2a6e188727388d68219a4549a1b



More information about the pld-cvs-commit mailing list