Package: libcdk5-dev
Version: 5.0.20050424-2
X-Debbugs-CC: [EMAIL PROTECTED]

cdk has a mechanism that patches all header files to include other header
files relative to /usr/include.  If for instance a file does include
cdk_config.h it is patched to actually include cdk/cdk_config.h instead
because otherwise it will not work without setting -I/usr/include/cdk.

Due to the Debian way of building the package in a different directory than
the one it finally goes to this mechanism fails.  headers.sh checks for
existance of /usr/include/cdk which obviously fails and patching is omitted.

To fix this problem just add the included patch to the diff file.  It makes
headers.sh to make an exception for the /usr/include/cdk directory and
processes it even if it does not exist.

--- libcdk5-5.0.20050424.orig/headers.sh
+++ libcdk5-5.0.20050424/headers.sh
@@ -41,7 +41,7 @@
                fi
                OPT_I=y
 
-               if ( test -n "$OPT_D" && test -d "$OPT_D" )
+               if ( test -n "$OPT_D" && test -d "$OPT_D" || test "$OPT_D" = 
/usr/include/cdk )
                then
                        if ( test -n "$OPT_S" && test -d "$OPT_S" )
                        then

Robert

-- 
Robert Schiele
Dipl.-Wirtsch.informatiker      mailto:[EMAIL PROTECTED]

"Quidquid latine dictum sit, altum sonatur."

Attachment: pgprcNrEXHa4w.pgp
Description: PGP signature

Reply via email to