On Fri, Aug 26, 2005 at 09:15:07PM +0200, Andreas Jochens wrote:
> 'dak' currently Build-Depends on 'postgresql-dev' which installs
> '/usr/include/postgresql/8.0/postgres.h' only.
> 
> The file '/usr/include/postgresql/8.0/server/postgres.h' would be
> installed by the package 'postgresql-server-dev-8.0' which is not 
> in the current Build-Depends.

The patch didn't work for me, perhaps postgresql changed the layout
of their include directory again or something. AFAICS the current
path to postgres.h is /usr/include/postgresql/postgres.h.

I've attatched a patch that fixed the problem for me.

Cheers,
Christian Aichinger
diff -Nur dak-1.0/debian/rules dak-1.0.patched/debian/rules
--- dak-1.0/debian/rules        2005-10-02 17:08:04.000000000 +0200
+++ dak-1.0.patched/debian/rules        2005-10-02 16:52:21.000000000 +0200
@@ -6,7 +6,7 @@
 
 PYTHONVER = $(shell /usr/bin/python -c 'import sys;print sys.version[:3]')
 
-CXXFLAGS = -I/usr/include/postgresql/ -I/usr/include/postgresql/server -fPIC 
-Wall -g
+CXXFLAGS = -I/usr/include/postgresql/ -fPIC -Wall -g
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
        CXXFLAGS += -O0
 else
diff -Nur dak-1.0/sql-aptvc.cpp dak-1.0.patched/sql-aptvc.cpp
--- dak-1.0/sql-aptvc.cpp       2002-05-08 13:14:06.000000000 +0200
+++ dak-1.0.patched/sql-aptvc.cpp       2005-10-02 16:51:45.000000000 +0200
@@ -25,7 +25,7 @@
 extern "C"
 {
 
-#include <server/postgres.h>
+#include <postgres.h>
 
   int versioncmp(text *A, text *B);
 

Attachment: signature.asc
Description: Digital signature

Reply via email to