]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
dpkg: Don't abort if unused tools are missing, e.g. ldconfig and start-stop-daemon
authorAndreas Oberritter <obi@opendreambox.org>
Mon, 11 Mar 2019 21:13:33 +0000 (22:13 +0100)
committerAndreas Oberritter <obi@opendreambox.org>
Mon, 8 Apr 2019 11:49:57 +0000 (13:49 +0200)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
meta/recipes-devtools/dpkg/dpkg/0001-help-make-sure-dpkg-continues-to-work-if-unused-tool.patch [new file with mode: 0644]
meta/recipes-devtools/dpkg/dpkg_1.18.10.bb

diff --git a/meta/recipes-devtools/dpkg/dpkg/0001-help-make-sure-dpkg-continues-to-work-if-unused-tool.patch b/meta/recipes-devtools/dpkg/dpkg/0001-help-make-sure-dpkg-continues-to-work-if-unused-tool.patch
new file mode 100644 (file)
index 0000000..a498fe4
--- /dev/null
@@ -0,0 +1,36 @@
+From 1b082e96c5a6f381d6e55cd4e2924a110d7058fc Mon Sep 17 00:00:00 2001
+From: Andreas Oberritter <obi@opendreambox.org>
+Date: Thu, 7 Mar 2019 13:42:25 +0100
+Subject: [PATCH] help: make sure dpkg continues to work if unused tools are
+ not in PATH
+
+Dpkg looks for some tools it doesn't use. They might get used by scripts,
+but it's perfectly valid to build a rootfs not containing ldconfig or
+start-stop-daemon, even if start-stop-daemon was built.
+
+Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
+---
+ src/help.c | 10 ----------
+ 1 file changed, 10 deletions(-)
+
+diff --git a/src/help.c b/src/help.c
+index aa9b11c38..770aaf5bd 100644
+--- a/src/help.c
++++ b/src/help.c
+@@ -121,16 +121,6 @@ void checkpath(void) {
+     TAR,
+     DIFF,
+     BACKEND,
+-    /* Mac OS X uses dyld (Mach-O) instead of ld.so (ELF), and does not have
+-     * an ldconfig. */
+-#if defined(__APPLE__) && defined(__MACH__)
+-    "update_dyld_shared_cache",
+-#else
+-    "ldconfig",
+-#endif
+-#if BUILD_START_STOP_DAEMON
+-    "start-stop-daemon",
+-#endif
+     NULL
+   };
index 09f6b5a80401703e3c6328303f840f2a18514fae..b6c9398d62c1252c40d38da2a902b37945728104 100644 (file)
@@ -14,6 +14,7 @@ SRC_URI = "http://snapshot.debian.org/archive/debian/20160731T221931Z/pool/main/
            file://0006-add-musleabi-to-known-target-tripets.patch \
            file://0007-dpkg-deb-build.c-Remove-usage-of-clamp-mtime-in-tar.patch \
            file://0007-update-alternatives-disable-logging.patch \
+           file://0001-help-make-sure-dpkg-continues-to-work-if-unused-tool.patch \
            "
 SRC_URI_append_class-native = " file://glibc2.5-sync_file_range.patch "