[projects/pld-builder.new] install: install BuildRequires in one poldek transaction
arekm
arekm at pld-linux.org
Mon Oct 26 17:18:37 CET 2026
commit ce9feb3c796ed049b6dd260a50d94d80feb1656d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Oct 26 15:45:23 2026 +0100
install: install BuildRequires in one poldek transaction
The conflict check runs poldek with --test, which tests the whole set
of BuildRequires as one transaction. The install itself ran with
poldek's default "particle install = yes": each requested package in a
transaction of its own, its dependencies resolved without the others.
mnogosearch-devel needs any mysql-devel, so its transaction took
mysql9.7-devel, which then blocked the mysql-devel < 8.0 a php4 build
asked for ("mysql-devel < 9.7.2-1 is obsoleted by (installed)
mysql9.7-devel"), although the check had passed.
admin/install-chroot.sh sets particle install off in the chroot's
poldek.conf, but chroots set up otherwise have the default. The install
now turns it off itself, so it is the transaction the check tested.
PLD_Builder/install.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/PLD_Builder/install.py b/PLD_Builder/install.py
index 4dd9fa8..ba167dd 100644
--- a/PLD_Builder/install.py
+++ b/PLD_Builder/install.py
@@ -246,7 +246,10 @@ def install_br(r, b):
return True
b.log_line(f"installing BR: {br}")
- res = chroot.run(f"set -x; poldek --noask --caplookup -Q -v {b.ignores()} --pmopt='--nodigest' --upgrade {br}",
+ # one transaction, as --test checked it: package by package poldek may pick
+ # a provider that obsoletes another BR
+ res = chroot.run(f"set -x; poldek --noask --caplookup -Q -v -O 'particle install=no' {b.ignores()} "
+ f"--pmopt='--nodigest' --upgrade {br}",
user = "root",
logfile = b.logfile,
nonet=False)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/ce9feb3c796ed049b6dd260a50d94d80feb1656d
More information about the pld-cvs-commit
mailing list