pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46430: databases/libgda-postgres needs glib2 patch in databases/libgda



>Number:         46430
>Category:       pkg
>Synopsis:       databases/libgda-postgres needs glib2 patch in databases/libgda
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 08 23:05:00 +0000 2012
>Originator:     Noud de Brouwer
>Release:        6.99.4
>Organization:
-none-
>Environment:
NetBSD 10.0.2.17 6.99.4 NetBSD 6.99.4 (MONOLITHIC) #0: Wed Apr 18 09:37:46 UTC 
2012  mickey55@10.0.2.17:/obj-src/sys/arch/i386/compile/MONOLITHIC i386
>Description:
libtool: compile:  gcc "-DPACKAGE_NAME=\"GNU Data Access\"" 
-DPACKAGE_TARNAME=\"libgda\" -DPACKAGE_VERSION=\"3.0.1\" 
"-DPACKAGE_STRING=\"GNU Data Access 3.0.1\"" 
-DPACKAGE_BUGREPORT=\"gnome-db-list%gnome.org@localhost\" 
-DBONOBO_EXPLICIT_TRANSLATION_DOMAIN=\"libgda-3.0\" -DSTDC_HEADERS=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DYYTEXT_POINTER=1 
-DGETTEXT_PACKAGE=\"libgda-3.0\" -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 
-DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 
-DENABLE_NLS=1 -DHAVE_POSTGRES=1 -DHAVE_ORACLE=1 -DHAVE_READLINE_READLINE_H=1 
-DHAVE_READLINE_HISTORY_H=1 -I. -I../.. -pthread 
-I/obj/databases/libgda-postgres/work/.buildlink/include/glib/glib-2.0 
-I/obj/databases/libgda-postgres/work/.buildlink/lib/glib-2.0/include 
-I/obj/databases/libgda-postgres/work/.buildlink/include 
-I/obj/databases/libgda-postgres/work/.
 buildlink/include/libxml2 -DLIBGDA_DATA_DIR=\"/usr/pkg/share/libgda-3.0\" -O2 
-MT gda-postgres-blob-op.lo -MD -MP -MF .deps/gda-postgres-blob-op.Tpo -c 
gda-postgres-blob-op.c  -fPIC -DPIC -o .libs/gda-postgres-blob-op.o

In file included from gda-postgres.h:27:0,

                 from gda-postgres-blob-op.c:25:

/obj/databases/libgda-postgres/work/.buildlink/include/glib/glib-2.0/glib/gmacros.h:32:2:
 error: #error "Only <glib.h> can be included directly."

gmake: *** [gda-postgres-blob-op.lo] Error 1

*** Error code 2


>How-To-Repeat:
cd databases/libgda-postgres && make
>Fix:
(tested against a postgresql database)
databases/libgda/patches/patch-providers_postgres_gda-postgres_h:
$NetBSD$

Fix build with latest glib2.

--- providers/postgres/gda-postgres.h.orig      2012-05-08 15:55:59.000000000 
+0000
+++ providers/postgres/gda-postgres.h   2012-05-08 15:56:08.000000000 +0000
@@ -24,7 +24,6 @@
 #ifndef __GDA_POSTGRES_H__
 #define __GDA_POSTGRES_H__
 
-#include <glib/gmacros.h>
-#include <glib/gi18n-lib.h>
+#include <glib.h>
 #include <libgda/gda-server-provider.h>
 #include "gda-postgres-provider.h"



Home | Main Index | Thread Index | Old Index