Ver código fonte

Do not bail out in dpkg when building without start-stop-daemon support,
by checking if the macro value is true instead of it being defined.
Thanks to Mark Rosenstand.

Guillem Jover 19 anos atrás
pai
commit
c0fc8b70c3
3 arquivos alterados com 9 adições e 1 exclusões
  1. 5 0
      ChangeLog
  2. 3 0
      debian/changelog
  3. 1 1
      src/help.c

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2007-01-12  Mark Rosenstand  <mark@borkware.net>
+
+	* src/help.c (checkpath): Check for the value of the macro
+	WITH_START_STOP_DAEMON instead of it being defined.
+
 2007-01-11  Riku Voipio <riku.voipio@iki.fi>
 	    Guillem Jover <guillem@debian.org>
 

+ 3 - 0
debian/changelog

@@ -8,6 +8,9 @@ dpkg (1.14.0) UNRELEASED; urgency=low
   * Move retrieval of uid and gid information from controllib.pl into a
     function, so that scripts not needing it do not execute that code.
     Based on a patch by Riku Voipio. Closes: #396884
+  * Do not bail out in dpkg when building without start-stop-daemon support,
+    by checking if the macro value is true instead of it being defined.
+    Thanks to Mark Rosenstand.
 
   [ Updated dpkg translations ]
   * Romanian (Eddy Petrișor)

+ 1 - 1
src/help.c

@@ -70,7 +70,7 @@ struct filenamenode *namenodetouse(struct filenamenode *namenode, struct pkginfo
 void checkpath(void) {
 /* Verify that some programs can be found in the PATH. */
   static const char *const checklist[]= { "ldconfig", 
-#ifdef WITH_START_STOP_DAEMON
+#if WITH_START_STOP_DAEMON
     "start-stop-daemon",
 #endif    
     "install-info", "update-rc.d", 0