From cb95ba079960411775c57ab864d266e15a6292d1 Mon Sep 17 00:00:00 2001 From: Changqing Li Date: Tue, 18 Jun 2024 11:30:18 +0800 Subject: [PATCH] apt-native: don't let dpkg overwrite files by default With --force-overwrite (implied by --force-all), dpkg will not abort when a package overwrites files from different packages. As this can also lead to "The following package disappeared from your system as all files have been overwritten by other packages: " and subsequently broken dependencies, this makes the simple case of conflicting files hard to debug. Instead of finding all possibly required force options, only disable overwrite for now. (From OE-Core rev: 30cc69f094729e3d11dc6021daf77f5038c4de61) Signed-off-by: Jan Luebbe Signed-off-by: Richard Purdie Take back from https://git.openembedded.org/openembedded-core/commit/?id=4292387ef6c4e80428bad6a07c844a288b27d9a1 Signed-off-by: Changqing Li Signed-off-by: Steve Sakoman Signed-off-by: Richard Purdie --- meta/recipes-devtools/apt/apt_2.6.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/apt/apt_2.6.1.bb b/meta/recipes-devtools/apt/apt_2.6.1.bb index 68bd7c54076..26a6d99f84d 100644 --- a/meta/recipes-devtools/apt/apt_2.6.1.bb +++ b/meta/recipes-devtools/apt/apt_2.6.1.bb @@ -111,7 +111,7 @@ Acquire AllowInsecureRepositories "true"; }; -DPkg::Options {"--root=#ROOTFS#";"--admindir=#ROOTFS#/var/lib/dpkg";"--force-all";"--no-debsig"}; +DPkg::Options {"--root=#ROOTFS#";"--admindir=#ROOTFS#/var/lib/dpkg";"--force-all";"--no-force-overwrite";"--no-debsig"}; DPkg::Path ""; EOF } -- 2.47.3