On Fri, Aug 26, 2005 at 09:47:00AM +0200, Andreas Jochens wrote:
> With the attached patch 'dak' can be compiled on unstable. 

> This is a simple temporary fix only. A better solution would do something
> to avoid hardcoding the current postgres version '8.0'.

> diff -urN ../tmp-orig/dak-1.0/debian/rules ./debian/rules
> --- ../tmp-orig/dak-1.0/debian/rules  2005-08-26 07:27:58.000000000 +0000
> +++ ./debian/rules    2005-08-26 07:27:20.000000000 +0000
> @@ -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/8.0 -fPIC -Wall -g
>  ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
>       CXXFLAGS += -O0
>  else
> diff -urN ../tmp-orig/dak-1.0/sql-aptvc.cpp ./sql-aptvc.cpp
> --- ../tmp-orig/dak-1.0/sql-aptvc.cpp 2002-05-08 11:14:06.000000000 +0000
> +++ ./sql-aptvc.cpp   2005-08-26 07:26:01.000000000 +0000
> @@ -25,7 +25,7 @@
>  extern "C"
>  {
>  
> -#include <server/postgres.h>
> +#include <postgres.h>
>  
>    int versioncmp(text *A, text *B);

The latter part of this patch looks reversed to me.  Taken together, dak
would look for this header as /usr/include/postgresql/8.0/postgres.h; the
correct full path is /usr/include/postgresql/8.0/server/postgres.h.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
[EMAIL PROTECTED]                                   http://www.debian.org/

Attachment: signature.asc
Description: Digital signature

Reply via email to