The following commit has been merged in the master branch:
commit 072c025d0fedbcc6eb53450428f7a3c4b55ea4ed
Author: Guillem Jover <[email protected]>
Date:   Tue Nov 1 22:02:34 2011 +0100

    build: Check and abort on required functions
    
    Right now this includes memcpy (moved from a simple check) and lchown,
    both being used unconditionally in the code.
    
    (The TODO had lstat as a typo for lchown.)

diff --git a/TODO b/TODO
index 9aa06d3..5ff4bae 100644
--- a/TODO
+++ b/TODO
@@ -26,7 +26,6 @@ TODO
  * Build:
    - Make dpkg bootstrappable.
    - Check availability of warning flags at configure time.
-   - Handle missing lstat at configure time by erroring out.
 
  * Code cleanup / bug fixes:
    - Get rid of static variables inside functions.
diff --git a/configure.ac b/configure.ac
index 9ed5b1a..6dd5529 100644
--- a/configure.ac
+++ b/configure.ac
@@ -89,7 +89,9 @@ DPKG_CHECK_COMPAT_FUNCS([getopt getopt_long obstack_free \
                          strnlen strerror strsignal asprintf \
                          scandir alphasort unsetenv])
 AC_CHECK_DECLS([strnlen], [[#include <string.h>]])
-AC_CHECK_FUNCS([strtoul strtoimax isascii memcpy setsid getdtablesize \
+AC_CHECK_FUNCS([memcpy lchown],
+               [], [AC_ERROR([missing required function])])
+AC_CHECK_FUNCS([strtoul strtoimax isascii setsid getdtablesize \
                 getprogname getexecname lutimes posix_fadvise])
 
 DPKG_MMAP

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to