Source: ppp
Version: 2.4.7-2+3
Tags: patch upstream
Control: block 798955 by -1

ppp checks header for existence of crypt.h looking it up in
/usr/include. That's incompatible with non-glibcs or a glibc with
multiarch headers (#798955). The attached patch replaces those file
existence test with a compile test.  Please consider applying the
attached patch.

Helmut
--- ppp-2.4.7.orig/pppd/Makefile.linux
+++ ppp-2.4.7/pppd/Makefile.linux
@@ -129,7 +129,7 @@
 ifdef NO_CRYPT_HACK
 CFLAGS += -DNO_CRYPT_HACK
 else
-ifneq ($(wildcard /usr/include/crypt.h),)
+ifeq ($(shell echo '\#include <crypt.h>' | $(CC) -E - >/dev/null 2>&1 && echo yes),yes)
 CFLAGS  += -DHAVE_CRYPT_H=1
 LIBS	+= -lcrypt
 endif

Reply via email to