From 04b140a6a6d728d623ddc2580f25cd04f6c36884 Mon Sep 17 00:00:00 2001 From: Martin Kampas Date: Fri, 22 Mar 2024 11:20:36 +0100 Subject: [PATCH] [sb2] Fix ldconfig use at build time. JB#61808 Signed-off-by: Martin Kampas --- modes/obs-deb-build/sb2rc | 8 ++++++++ modes/obs-rpm-build+pp/sb2rc | 8 ++++++++ modes/obs-rpm-build/sb2rc | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/modes/obs-deb-build/sb2rc b/modes/obs-deb-build/sb2rc index c8928b66..3f244a36 100644 --- a/modes/obs-deb-build/sb2rc +++ b/modes/obs-deb-build/sb2rc @@ -39,6 +39,14 @@ case "$sb2rc_mode" in SBOX_WRAPPERS="gdb ldconfig pwd fakeroot" ;; + ldconfig) + # When ldconfig is used at build time, then it must be the case + # that it is used on the build artefacts (with the help of the + # '-n' option), so locking it to the target root would not be + # desired. + sbox_ldconfig_root=/ + ;; + *) # Default. ;; diff --git a/modes/obs-rpm-build+pp/sb2rc b/modes/obs-rpm-build+pp/sb2rc index c8928b66..3f244a36 100644 --- a/modes/obs-rpm-build+pp/sb2rc +++ b/modes/obs-rpm-build+pp/sb2rc @@ -39,6 +39,14 @@ case "$sb2rc_mode" in SBOX_WRAPPERS="gdb ldconfig pwd fakeroot" ;; + ldconfig) + # When ldconfig is used at build time, then it must be the case + # that it is used on the build artefacts (with the help of the + # '-n' option), so locking it to the target root would not be + # desired. + sbox_ldconfig_root=/ + ;; + *) # Default. ;; diff --git a/modes/obs-rpm-build/sb2rc b/modes/obs-rpm-build/sb2rc index c8928b66..3f244a36 100644 --- a/modes/obs-rpm-build/sb2rc +++ b/modes/obs-rpm-build/sb2rc @@ -39,6 +39,14 @@ case "$sb2rc_mode" in SBOX_WRAPPERS="gdb ldconfig pwd fakeroot" ;; + ldconfig) + # When ldconfig is used at build time, then it must be the case + # that it is used on the build artefacts (with the help of the + # '-n' option), so locking it to the target root would not be + # desired. + sbox_ldconfig_root=/ + ;; + *) # Default. ;;