libgda stable port information

Package: libgda
Version: 4.0.8
Revision: 1
BuildDepends: <<
autoconf2.6,
automake1.11,
gettext-bin,
gettext-tools,
fink (>= 0.24.12-1),
fink-package-precedence,
glib2-dev (>= 2.22.0-1),
gtk-doc (>= 1.13-5),
intltool40,
libgettext8-dev,
libiconv-dev,
libncurses5,
libsoup2.4.1-ssl (>= 2.28.0-1),
libtool2,
libxml2 (>= 2.6.30-1),
libxslt (>= 1.1.22-1),
pkgconfig (>= 0.23),
readline5
<<
Depends: <<
%N4.0-bin (>= %v-%r)
<<
Source: mirror:gnome:sources/%n/4.0/%n-%v.tar.bz2
Source-MD5: 3e4a55f370805cda9ac415211da4aacc
PatchFile: %n.patch
PatchFile-MD5: a38c3be95cb5c94be0a0ceed24928d6e
PatchScript: <<
%{default_script}
perl -pi -e 's,/usr/share/gtk-doc/html,%p/share/gtk-doc/html,g' doc/C/html/*.html
rm getsp.class
<<
ConfigureParams: <<
--mandir='%p/share/man' --libexecdir=%p/lib/libgda-4.0.4 \
--disable-gtk-doc \
PERL=/usr/bin/perl \
PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:$PKG_CONFIG_PATH" \
--without-bdb --without-odbc --without-mysql --without-msql --without-postgres --without-tds --without-ibmdb2 --without-sybase --without-oracle --without-firebird --without-xbase --without-mdb --without-ldap --without-java \
--enable-dependency-tracking --disable-static
<<
CompileScript: <<
autoreconf -f -i
./configure %c
make
fink-package-precedence --prohibit-bdep %n4.0.4-dev .
<<
#InfoTest: <<
# TestDepends: check
# # fails "sometimes"
# TestScript: make check || exit 2
#<<
InstallScript: make -j1 install DESTDIR=%d
SplitOff: <<
Package: %N4.0.4-shlibs
Depends: <<
glib2-shlibs (>= 2.22.0-1),
libgettext8-shlibs,
libiconv,
libxml2-shlibs (>= 2.6.30-1),
libxslt-shlibs (>= 1.1.22-1)
<<
Replaces: %N, %N-shlibs
Files: <<
lib/libgda*-4.0.4*
lib/libgda-4.0/providers
share/locale
<<
Shlibs: <<
%p/lib/libgda-4.0.4.dylib 5.0.0 %n (>= 4.0.2-1)
%p/lib/libgda-report-4.0.4.dylib 5.0.0 %n (>= 4.0.2-1)
%p/lib/libgda-xslt-4.0.4.dylib 5.0.0 %n (>= 4.0.2-1)
<<
DocFiles: AUTHORS COPYING COPYING.LIB ChangeLog po/ChangeLog:ChangeLog.po NEWS README
Description: Shared libraries for libgda package
<<
SplitOff2: <<
Package: %N4.0.4-dev
Depends: %N4.0-bin (>= %v-%r), %N4.0.4-shlibs (= %v-%r)
Conflicts: %N-dev, %N3-dev, %N4-dev
Replaces: %N-dev, %N3-dev, %N4-dev
BuildDependsOnly: True
Files: <<
include
lib
share/gtk-doc
<<
DocFiles: AUTHORS COPYING COPYING.LIB ChangeLog po/ChangeLog:ChangeLog.po NEWS README
Description: Developer files for libgda package
<<
SplitOff3: <<
Package: %N4.0-bin
Depends: <<
%N4.0.4-shlibs (>= %v-%r),
glib2-shlibs (>= 2.22.0-1),
libgettext8-shlibs,
libncurses5-shlibs,
libsoup2.4.1-ssl-shlibs (>= 2.28.0-1),
libxml2-shlibs,
readline5-shlibs
<<
Files: <<
bin/*-4.0
etc
share/libgda-4.0
share/man/man1/gda-sql-4.0.1
<<
Replaces: %N (<< 4.0.2-3)
DocFiles: AUTHORS COPYING COPYING.LIB ChangeLog po/ChangeLog:ChangeLog.po NEWS README
<<
DocFiles: AUTHORS COPYING COPYING.LIB ChangeLog po/ChangeLog:ChangeLog.po NEWS README
DescPackaging: <<
Regenerating gtk-doc files The Right Way (--enable-gtk-doc) is
very slow, so just patch the prefix in the bad URLs in the
existing generated files.

Fix installation of trml2* python scripts. Move to to libdir
and rename to include install_name versioning. See:
http://bugzilla.gnome.org/show_bug.cgi?id=579458

Use embedded sqlite3 per upstream recommendation (to get
function metadata). Fix -I ordering to make sure don't get
external sqlite3.

Lots of files (plugins, data, gettext catalogs) are in *4.0
(less versioned than install_name) dirs. Need to hack those
dirnames if we get another shlibs package with install_name
4.0.[^4]. Apparently it's mostly runtime stuff where user at
least might want 4.0's and 3.0's programs concurrently to
control both versions' databases. So as of 4.0.2-3, move
versioned binaries into new major-versioned package
libgda4.0-bin (which also includes related data files).

No idea why so much stuff is recompiled during InstallScript.
<<
DescPort: <<
Try to make sure local libs are linked first: very important
since there are wrappers in the nascent libgda-sqlite.la that
need to mask and intercept calls to those in the global
libsqlite3.dylib. NB: still not fixed, or may be cured now
that using libtool2 and castrated external .la files.

Make sure -framework flag is passed safely into .la

Recent glib doesn't publish -lintl, so pass it directly.

getsp.class is compiled for a different platform (why doesn't
Makefile.am have a .java.class: javac recipe or configure.in
try that as part of its java environment tests?). Our otool -L
tries to read it and crashes, so just delete the file. Could
javac manually if we actually needed it for something, but for
now we are --without-java anyway.
<<
DescUsage: <<
This is just the basic library and sqlite support. Most
databases are explicitly disabled to avoid a *huge* package
that has "N-1" database types that any one user doesn't need.
Othre database support modules appear to be plugins that could
be built as stand-alone packages.
<<
Description: Uniform access to various data sources
License: GPL/LGPL
Maintainer: The Gnome Core Team
Homepage: http://www.gnome-db.org

libgda stable port .patch

diff -Nurd -x'*~' libgda-4.0.8.orig/configure.in libgda-4.0.8/configure.in
--- libgda-4.0.8.orig/configure.in 2010-03-06 07:53:26.000000000 -0500
+++ libgda-4.0.8/configure.in 2010-04-11 16:48:01.000000000 -0400
@@ -176,12 +176,13 @@
dnl Darwin based distributions (including Mac OS X)
AC_MSG_RESULT([Mac OS X - carbon])
platform_carbon=yes
+ NO_UNDEFINED='-no-undefined'
SOPREFIX='lib'
AM_BINRELOC
LIBTOOL_EXPORT_OPTIONS=$EXPORT_SYM_REGEX
LIBTOOL_PROV_EXPORT_OPTIONS=$EXPORT_PROV_SYM_REGEX
AC_DEFINE(HAVE_CARBON)
- LIBGDA_LIBS="$LIBGDA_LIBS -framework Carbon"
+ LIBGDA_LIBS="$LIBGDA_LIBS -Wl,-framework,Carbon"
dnl SO_SUFFIX=dylib
;;
*)
diff -Nurd -x'*~' libgda-4.0.8.orig/libgda/Makefile.am libgda-4.0.8/libgda/Makefile.am
--- libgda-4.0.8.orig/libgda/Makefile.am 2010-03-06 07:53:26.000000000 -0500
+++ libgda-4.0.8/libgda/Makefile.am 2010-04-11 16:42:33.000000000 -0400
@@ -200,7 +200,7 @@
binreloc/libgda_binreloc-4.0.la \
sqlite/libgda-sqlite.la \
$(LIBGDA_LIBS) $(FAM_LIBS) \
- $(GIO_LIBS) $(GNOMEVFS_LIBS)
+ $(GIO_LIBS) $(GNOMEVFS_LIBS) $(INTLLIBS)

if PLATFORM_WIN32
libgda_4_0_la_LDFLAGS += -export-symbols $(srcdir)/libgda.def
diff -Nurd -x'*~' libgda-4.0.8.orig/libgda/sqlite/Makefile.am libgda-4.0.8/libgda/sqlite/Makefile.am
--- libgda-4.0.8.orig/libgda/sqlite/Makefile.am 2010-02-06 08:16:08.000000000 -0500
+++ libgda-4.0.8/libgda/sqlite/Makefile.am 2010-04-12 01:43:19.000000000 -0400
@@ -16,9 +16,8 @@
-I$(top_srcdir) \
-I$(top_srcdir)/libgda \
-I$(top_builddir) \
- $(LIBGDA_CFLAGS) \
- $(SQLITE_CFLAGS) \
- $(sqliteinc)
+ $(sqliteinc) \
+ $(LIBGDA_CFLAGS)

mkkeywordhash$(EXEEXT_FOR_BUILD): mkkeywordhash.c
$(CC_FOR_BUILD) -o mkkeywordhash$(EXEEXT_FOR_BUILD) $(GDA_DEBUG_FLAGS) $<
diff -Nurd -x'*~' libgda-4.0.8.orig/libgda/sqlite/virtual/Makefile.am libgda-4.0.8/libgda/sqlite/virtual/Makefile.am
--- libgda-4.0.8.orig/libgda/sqlite/virtual/Makefile.am 2010-01-14 09:05:22.000000000 -0500
+++ libgda-4.0.8/libgda/sqlite/virtual/Makefile.am 2010-04-12 00:46:02.000000000 -0400
@@ -12,12 +12,11 @@
AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir) \
- $(LIBGDA_CFLAGS) \
- $(SQLITE_CFLAGS) \
-I$(top_srcdir)/libgda/sqlite \
-I$(top_builddir)/libgda/sqlite \
-I$(top_srcdir)/libgda \
- $(sqliteinc)
+ $(sqliteinc) \
+ $(LIBGDA_CFLAGS)

virtual_headers = \
gda-vconnection-data-model.h \
diff -Nurd -x'*~' libgda-4.0.8.orig/libgda-report/RML/gda-report-rml-document.c libgda-4.0.8/libgda-report/RML/gda-report-rml-document.c
--- libgda-4.0.8.orig/libgda-report/RML/gda-report-rml-document.c 2010-01-11 15:11:03.000000000 -0500
+++ libgda-4.0.8/libgda-report/RML/gda-report-rml-document.c 2010-04-11 15:53:00.000000000 -0400
@@ -198,7 +198,7 @@
if (!converter) {
converter = g_find_program_in_path ("trml2html.py");
if (!converter) {
- converter = gda_gbr_get_file_path (GDA_BIN_DIR, "gda_trml2html", "trml2html.py", NULL);
+ converter = gda_gbr_get_file_path (GDA_LIBEXEC_DIR, "gda_trml2html", "trml2html.py", NULL);
if (!g_file_test (converter, G_FILE_TEST_IS_EXECUTABLE)) {
g_free (converter);
converter = NULL;
@@ -229,7 +229,7 @@
if (!converter) {
converter = g_find_program_in_path ("trml2pdf.py");
if (!converter) {
- converter = gda_gbr_get_file_path (GDA_BIN_DIR, "gda_trml2pdf", "trml2pdf.py", NULL);
+ converter = gda_gbr_get_file_path (GDA_LIBEXEC_DIR, "gda_trml2pdf", "trml2pdf.py", NULL);
if (!g_file_test (converter, G_FILE_TEST_IS_EXECUTABLE)) {
g_free (converter);
converter = NULL;
diff -Nurd -x'*~' libgda-4.0.8.orig/libgda-report/RML/trml2html/Makefile.am libgda-4.0.8/libgda-report/RML/trml2html/Makefile.am
--- libgda-4.0.8.orig/libgda-report/RML/trml2html/Makefile.am 2010-01-11 15:11:03.000000000 -0500
+++ libgda-4.0.8/libgda-report/RML/trml2html/Makefile.am 2010-04-11 15:53:00.000000000 -0400
@@ -1,6 +1,6 @@
trml2html_SCRIPTS = trml2html.py
trml2html_DATA = __init__.py utils.py
-trml2htmldir = $(bindir)/gda_trml2html
+trml2htmldir = $(libexecdir)/gda_trml2html

EXTRA_DIST = \
$(trml2html_SCRIPTS) \
diff -Nurd -x'*~' libgda-4.0.8.orig/libgda-report/RML/trml2pdf/Makefile.am libgda-4.0.8/libgda-report/RML/trml2pdf/Makefile.am
--- libgda-4.0.8.orig/libgda-report/RML/trml2pdf/Makefile.am 2010-01-11 15:11:03.000000000 -0500
+++ libgda-4.0.8/libgda-report/RML/trml2pdf/Makefile.am 2010-04-11 15:53:00.000000000 -0400
@@ -1,6 +1,6 @@
trml2pdf_SCRIPTS = trml2pdf.py
trml2pdf_DATA = __init__.py color.py utils.py
-trml2pdfdir = $(bindir)/gda_trml2pdf
+trml2pdfdir = $(libexecdir)/gda_trml2pdf

EXTRA_DIST = \
$(trml2pdf_SCRIPTS) \
diff -Nurd -x'*~' libgda-4.0.8.orig/libgda-report/engine/Makefile.am libgda-4.0.8/libgda-report/engine/Makefile.am
--- libgda-4.0.8.orig/libgda-report/engine/Makefile.am 2010-01-11 15:11:03.000000000 -0500
+++ libgda-4.0.8/libgda-report/engine/Makefile.am 2010-04-11 15:53:00.000000000 -0400
@@ -16,8 +16,8 @@
$(gda_report_headers) \
gda-report-engine.c

-libgda_report_engine_4_0_la_LIBADD = $(LIBGDA_LIBS) \
- $(top_builddir)/libgda/libgda-4.0.la
+libgda_report_engine_4_0_la_LIBADD = \
+ $(top_builddir)/libgda/libgda-4.0.la $(LIBGDA_LIBS)

gdareportincludedir=$(includedir)/libgda-$(GDA_ABI_MAJOR_VERSION).$(GDA_ABI_MINOR_VERSION)/libgda-report
gdareportinclude_HEADERS=$(gda_report_headers)
diff -Nurd -x'*~' libgda-4.0.8.orig/libgda-xslt/Makefile.am libgda-4.0.8/libgda-xslt/Makefile.am
--- libgda-4.0.8.orig/libgda-xslt/Makefile.am 2010-01-11 15:11:03.000000000 -0500
+++ libgda-4.0.8/libgda-xslt/Makefile.am 2010-04-11 15:53:00.000000000 -0400
@@ -20,8 +20,8 @@
sql_backend.c

libgda_xslt_4_0_la_LDFLAGS = -version-info $(GDA_CURRENT):$(GDA_REVISION):$(GDA_AGE) $(NO_UNDEFINED)
-libgda_xslt_4_0_la_LIBADD = $(LIBGDA_LIBS) $(LIBXSLT_LIBS)\
- $(top_builddir)/libgda/libgda-4.0.la
+libgda_xslt_4_0_la_LIBADD = \
+ $(top_builddir)/libgda/libgda-4.0.la $(LIBGDA_LIBS) $(LIBXSLT_LIBS)

gdaxsltincludedir=$(includedir)/libgda-$(GDA_ABI_MAJOR_VERSION).$(GDA_ABI_MINOR_VERSION)/libgda-xslt
gdaxsltinclude_HEADERS=$(gda_xslt_headers)
diff -Nurd -x'*~' libgda-4.0.8.orig/providers/bdb/Makefile.am libgda-4.0.8/providers/bdb/Makefile.am
--- libgda-4.0.8.orig/providers/bdb/Makefile.am 2010-01-11 15:11:02.000000000 -0500
+++ libgda-4.0.8/providers/bdb/Makefile.am 2010-04-11 15:53:00.000000000 -0400
@@ -24,9 +24,9 @@

gda_bdb_test_SOURCES = gda-bdb-test.c
gda_bdb_test_LDADD = \
+ $(top_builddir)/libgda/libgda-4.0.la \
$(LIBGDA_LIBS) \
- $(BDB_LIBS) \
- $(top_builddir)/libgda/libgda-4.0.la
+ $(BDB_LIBS)

xmldir = $(datadir)/libgda-4.0
xml_in_files = bdb_specs_dsn.xml.in

libgda _unstable_ port .patch