This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=aa0404293ff1a3d81353acb8c7495fe9eb382c92

commit aa0404293ff1a3d81353acb8c7495fe9eb382c92
Author: Guillem Jover <[email protected]>
AuthorDate: Sat May 12 22:56:13 2018 +0200

    dpkg: Check for ldconfig command only on platforms that do have it
    
    We should implement a whitelist here, instead of a blacklist. Not all
    ELF based libc do have a ldconfig command.
---
 debian/changelog | 1 +
 src/help.c       | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index b286bab3c..01585aef7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -74,6 +74,7 @@ dpkg (1.19.1) UNRELEASED; urgency=medium
       them from the BSD types at configure time.
     - Use MD5_CTX instead of struct MD5Context, as the prevalent more portable
       type on system's <md5.h> headers.
+    - Check for ldconfig command in dpkg only on platforms that do have it.
   * Perl modules:
     - Check that $tarname is defined before use in Dpkg::Source::Package::V1.
       Thanks to Christoph Biedl <[email protected]>.
diff --git a/src/help.c b/src/help.c
index aa9b11c38..c5b06b4b6 100644
--- a/src/help.c
+++ b/src/help.c
@@ -125,7 +125,8 @@ void checkpath(void) {
      * an ldconfig. */
 #if defined(__APPLE__) && defined(__MACH__)
     "update_dyld_shared_cache",
-#else
+#elif defined(__GLIBC__) || defined(__UCLIBC__) || \
+      defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
     "ldconfig",
 #endif
 #if BUILD_START_STOP_DAEMON

-- 
Dpkg.Org's dpkg

Reply via email to