diff options
author | Changqing Li <changqing.li@windriver.com> | 2024-06-18 11:30:18 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-08-13 09:29:15 +0100 |
commit | 5f6fe371442c59bf664d16f3e740786ddc8490b3 (patch) | |
tree | f6b0ab6868feef3ab9a89c5c267b5b5e1d997dd8 /meta/recipes-devtools/apt | |
parent | 6f0a78e04b2bf95e7a694df0f8efb124579d2311 (diff) | |
download | poky-5f6fe371442c59bf664d16f3e740786ddc8490b3.tar.gz |
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: <package>" 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)
(From OE-Core rev: cb95ba079960411775c57ab864d266e15a6292d1)
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Take back from https://git.openembedded.org/openembedded-core/commit/?id=4292387ef6c4e80428bad6a07c844a288b27d9a1
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/apt')
-rw-r--r-- | meta/recipes-devtools/apt/apt_2.6.1.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/apt/apt_2.6.1.bb b/meta/recipes-devtools/apt/apt_2.6.1.bb index 68bd7c5407..26a6d99f84 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 | |||
111 | AllowInsecureRepositories "true"; | 111 | AllowInsecureRepositories "true"; |
112 | }; | 112 | }; |
113 | 113 | ||
114 | DPkg::Options {"--root=#ROOTFS#";"--admindir=#ROOTFS#/var/lib/dpkg";"--force-all";"--no-debsig"}; | 114 | DPkg::Options {"--root=#ROOTFS#";"--admindir=#ROOTFS#/var/lib/dpkg";"--force-all";"--no-force-overwrite";"--no-debsig"}; |
115 | DPkg::Path ""; | 115 | DPkg::Path ""; |
116 | EOF | 116 | EOF |
117 | } | 117 | } |