[projects/pld-builder.new] rpm_builder: log the chroot preparation to the buildlog

arekm arekm at pld-linux.org
Sat Nov 7 01:22:49 CET 2026


commit 0c6a3b8ffde2599c6bb2111f120c1f2eb7e2a9ec
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Nov 7 01:13:07 2026 +0100

    rpm_builder: log the chroot preparation to the buildlog
    
    prepare_env() takes a logfile, but the build never passed one, so its
    output, such as the warning about a missing "/" entry in /etc/mtab,
    was never seen.

 PLD_Builder/rpm_builder.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/PLD_Builder/rpm_builder.py b/PLD_Builder/rpm_builder.py
index 24c6e33..d3d192b 100644
--- a/PLD_Builder/rpm_builder.py
+++ b/PLD_Builder/rpm_builder.py
@@ -219,7 +219,7 @@ def build_rpm(r, b):
 
     tmpdir = b.tmpdir()
     if not res:
-        prepare_env()
+        prepare_env(b.logfile)
         chroot.run(f"set -x; install -m 700 -d {tmpdir}", logfile=b.logfile)
         b.default_target(config.arch)
         # check for build arch before filling BR
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/0c6a3b8ffde2599c6bb2111f120c1f2eb7e2a9ec



More information about the pld-cvs-commit mailing list