diff options
author | Leonardo Boshell <leonardop@gentoo.org> | 2006-08-02 21:07:27 +0000 |
---|---|---|
committer | Leonardo Boshell <leonardop@gentoo.org> | 2006-08-02 21:07:27 +0000 |
commit | 8bf8949d25e5875348360092d11a88ea3756a788 (patch) | |
tree | f46fae7bad1072a2b7889e21018e068e3a329a89 /gnome-extra | |
parent | Stable on sparc wrt security #141842 (diff) | |
download | historical-8bf8949d25e5875348360092d11a88ea3756a788.tar.gz historical-8bf8949d25e5875348360092d11a88ea3756a788.tar.bz2 historical-8bf8949d25e5875348360092d11a88ea3756a788.zip |
Added patch to fix compilation with freetds-0.64 (bug #142496)
Package-Manager: portage-2.1.1_pre4-r1
Diffstat (limited to 'gnome-extra')
-rw-r--r-- | gnome-extra/libgda/ChangeLog | 6 | ||||
-rw-r--r-- | gnome-extra/libgda/Manifest | 32 | ||||
-rw-r--r-- | gnome-extra/libgda/files/libgda-1.2.3-freetds_api_fixes.patch | 345 | ||||
-rw-r--r-- | gnome-extra/libgda/libgda-1.2.3.ebuild | 12 |
4 files changed, 369 insertions, 26 deletions
diff --git a/gnome-extra/libgda/ChangeLog b/gnome-extra/libgda/ChangeLog index da700d8eabe7..aab8a605374b 100644 --- a/gnome-extra/libgda/ChangeLog +++ b/gnome-extra/libgda/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for gnome-extra/libgda # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgda/ChangeLog,v 1.89 2006/05/22 17:21:07 dang Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgda/ChangeLog,v 1.90 2006/08/02 21:07:27 leonardop Exp $ + + 02 Aug 2006; Leonardo Boshell <leonardop@gentoo.org> + +files/libgda-1.2.3-freetds_api_fixes.patch, libgda-1.2.3.ebuild: + Added patch to fix compilation with freetds-0.64 (bug #142496). 22 May 2006; Daniel Gryniewicz <dang@gentoo.org> -files/libgda-0.2.96-gcc3.4.patch, -files/libgda-0.2.96-gentoo.patch, diff --git a/gnome-extra/libgda/Manifest b/gnome-extra/libgda/Manifest index ea77cc47141d..896bccea74ce 100644 --- a/gnome-extra/libgda/Manifest +++ b/gnome-extra/libgda/Manifest @@ -1,6 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX libgda-1.0.2-freetds_fix.patch 1338 RMD160 62f2dc9b951f8456d5c034e69abc9c3c21b2e46a SHA1 4c4dc96a4ce8a3dac26714352da9259628dd3fca SHA256 22455fe285d8a14ea52671bcaaba3fa1a8f77f3ec5ca55b19a7f05413411df79 MD5 89d5a7588e21826826be8ecb11218b94 files/libgda-1.0.2-freetds_fix.patch 1338 RMD160 62f2dc9b951f8456d5c034e69abc9c3c21b2e46a files/libgda-1.0.2-freetds_fix.patch 1338 @@ -17,20 +14,24 @@ AUX libgda-1.2.2-freetds_fixes.patch 1771 RMD160 dda830caeb7c609a7a23453ef5f540c MD5 c95ffd3e34df767ced0741bb1ba184e2 files/libgda-1.2.2-freetds_fixes.patch 1771 RMD160 dda830caeb7c609a7a23453ef5f540c1586e3767 files/libgda-1.2.2-freetds_fixes.patch 1771 SHA256 b69939f99e820918d9631cacaec2eb7b0abaf1bf11bff4d51198906f3c8b27f2 files/libgda-1.2.2-freetds_fixes.patch 1771 +AUX libgda-1.2.3-freetds_api_fixes.patch 12778 RMD160 bfb9cfcff95c84cb3cc22814ce9f7633c89d6b4e SHA1 dbaa803761d10a83d88da06acfa35fb11eff091f SHA256 e143f3d1a5aceaef825ffab901006b3dfed8b97ad237e2b1e6ebfc4e7cdc652e +MD5 5e8c971a64b56fb801b49ac4ad599b80 files/libgda-1.2.3-freetds_api_fixes.patch 12778 +RMD160 bfb9cfcff95c84cb3cc22814ce9f7633c89d6b4e files/libgda-1.2.3-freetds_api_fixes.patch 12778 +SHA256 e143f3d1a5aceaef825ffab901006b3dfed8b97ad237e2b1e6ebfc4e7cdc652e files/libgda-1.2.3-freetds_api_fixes.patch 12778 DIST libgda-1.2.2.tar.bz2 1242035 -DIST libgda-1.2.3.tar.bz2 1075643 RMD160 d429dcce511084287cc63a2d1df93f7ca6d9316c SHA256 17add29bb2d7b57da5874f8a28c1a0af4b6f965ad992fef25002b6c33318f303 +DIST libgda-1.2.3.tar.bz2 1075643 RMD160 d429dcce511084287cc63a2d1df93f7ca6d9316c SHA1 a4a7c7835c67987dc846077a3de0512870352ae7 SHA256 17add29bb2d7b57da5874f8a28c1a0af4b6f965ad992fef25002b6c33318f303 EBUILD libgda-1.2.2-r1.ebuild 2254 RMD160 e32f7f96fca843f17fac94600af7a3edce2ceb14 SHA1 51123057938827829d1e8b6657ac94d5f570075c SHA256 1695724cd483582f547e1da79845a6e9d6020ae4c2f50c5c90a29da177d83b1d MD5 3a955c39d43b49a850a20873b50cccd5 libgda-1.2.2-r1.ebuild 2254 RMD160 e32f7f96fca843f17fac94600af7a3edce2ceb14 libgda-1.2.2-r1.ebuild 2254 SHA256 1695724cd483582f547e1da79845a6e9d6020ae4c2f50c5c90a29da177d83b1d libgda-1.2.2-r1.ebuild 2254 -EBUILD libgda-1.2.3.ebuild 1999 RMD160 5f2b41f85dd753bcf9f6d65dba57618e418bb559 SHA1 6ef63cb6dd4e8c47859d9190b78291f5a615dba2 SHA256 12501f3cdabeea6f7295e2e6597dd98b7a23d34d96f6eb06b679f891331dd30e -MD5 80edd7bfe252cb41217739d6447f20e3 libgda-1.2.3.ebuild 1999 -RMD160 5f2b41f85dd753bcf9f6d65dba57618e418bb559 libgda-1.2.3.ebuild 1999 -SHA256 12501f3cdabeea6f7295e2e6597dd98b7a23d34d96f6eb06b679f891331dd30e libgda-1.2.3.ebuild 1999 -MISC ChangeLog 13704 RMD160 ea8e067f69c5f366c22c0498bbc8dce565a9677a SHA1 37ecbdb1818d74914245297e80be451c228644f5 SHA256 dc9e782975080049e7717aea0c96c9ca6c2db61b835955afc2055c96c07cd63a -MD5 60a5403c7d6a02f4493e349a66210946 ChangeLog 13704 -RMD160 ea8e067f69c5f366c22c0498bbc8dce565a9677a ChangeLog 13704 -SHA256 dc9e782975080049e7717aea0c96c9ca6c2db61b835955afc2055c96c07cd63a ChangeLog 13704 +EBUILD libgda-1.2.3.ebuild 2069 RMD160 f7be69a6cca25b02ffea62d6d4191832217f96b3 SHA1 838799bda85f862d539ba72dd8007ffd391c5dbd SHA256 2f9959b3f97e98a23d57756b848e467745bb40aa7695583b90cea69d63cbb875 +MD5 c7eea1023b8414e8778dcd73d453adaa libgda-1.2.3.ebuild 2069 +RMD160 f7be69a6cca25b02ffea62d6d4191832217f96b3 libgda-1.2.3.ebuild 2069 +SHA256 2f9959b3f97e98a23d57756b848e467745bb40aa7695583b90cea69d63cbb875 libgda-1.2.3.ebuild 2069 +MISC ChangeLog 13899 RMD160 dbad5a9fd3ca635b07c35f43a0d1c383ff96dce6 SHA1 a3c798653bd392faac2513159a004dbb98d86fdd SHA256 66fa291fefd8996a49703bce234a81965bc925ecd94cbdefa432a882babd65a3 +MD5 ad454ba3ad0a4b1e35ed43f135c13aad ChangeLog 13899 +RMD160 dbad5a9fd3ca635b07c35f43a0d1c383ff96dce6 ChangeLog 13899 +SHA256 66fa291fefd8996a49703bce234a81965bc925ecd94cbdefa432a882babd65a3 ChangeLog 13899 MISC metadata.xml 158 RMD160 c0e2bae8e91bb6be8922bac5e4f597302e06587e SHA1 38f78e9790bcd4382b4a49aa226aa6dda1d3a3d7 SHA256 3a7dbca0fdc557de69783e0663e2d76ddab129ea8a19b2d0ef6d3e5d1b947ce1 MD5 03ad2e6c4ab41244af1015a8bbb0b39f metadata.xml 158 RMD160 c0e2bae8e91bb6be8922bac5e4f597302e06587e metadata.xml 158 @@ -41,10 +42,3 @@ SHA256 aa84c5e5b42a9b36925a99199f8072a3e626dfcd66a5db2997b6905c63c77eae files/di MD5 0585ea86d6d935b35b23b5b574db7c87 files/digest-libgda-1.2.3 244 RMD160 9fc9ec61243574b939d96986ec33522214d63c01 files/digest-libgda-1.2.3 244 SHA256 f0c3c9e2af594dd3621ac1914aec3c9695204b2d2bf0ce035931fd31cac4c9f2 files/digest-libgda-1.2.3 244 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.3-ecc0.1.6 (GNU/Linux) - -iD8DBQFEcfMFomPajV0RnrERAkWtAJ96xm2romsGv0nps9+B6zoJ78Y6wgCfaQfG -aCqsRKmWQ4CfKXstXIXCLI0= -=FME5 ------END PGP SIGNATURE----- diff --git a/gnome-extra/libgda/files/libgda-1.2.3-freetds_api_fixes.patch b/gnome-extra/libgda/files/libgda-1.2.3-freetds_api_fixes.patch new file mode 100644 index 000000000000..35bbad86abe0 --- /dev/null +++ b/gnome-extra/libgda/files/libgda-1.2.3-freetds_api_fixes.patch @@ -0,0 +1,345 @@ +diff -NurdB libgda-1.2.3/configure.in libgda-1.2.3-patched/configure.in +--- libgda-1.2.3/configure.in 2005-10-27 04:18:24.000000000 -0500 ++++ libgda-1.2.3-patched/configure.in 2006-08-02 04:13:23.000000000 -0500 +@@ -440,45 +440,23 @@ + AC_MSG_WARN(tds backend not used) + else + AC_MSG_CHECKING(for freetds version) +- freetdsvercheck="`grep \"^#define \(VERSION_NO \|TDS_VERSION_NO \)\" $freetds_incdir/tdsver.h|sed 's|^.*"\(.*\)"|\1|'`" ++ freetdsvercheck="`grep \"^#define \(VERSION_NO \|TDS_VERSION_NO \)\" $freetds_incdir/tdsver.h|sed 's|^.*".*v\(.*\)"|\1|'`" + if test "x$freetdsvercheck" = "x" + then + AC_MSG_WARN(freetds version check failed - backend not used) + freetdsdir="" + freetds_incdir="" + else +- case "$freetdsvercheck" in +- *v0.5*) AC_MSG_RESULT($freetdsvercheck - using v0.5x api) +- AC_DEFINE(HAVE_FREETDS_VER0_5X, 1, [Have freetds v0.5x API]) +- FREETDS_CFLAGS="-I${freetds_incdir}" +- FREETDS_LIBS="-L${freetdsdir}/lib -ltds" +- AC_DEFINE(HAVE_FREETDS, 1, [Have freetds]) +- ;; +- *v0.60) AC_MSG_RESULT($freetdsvercheck - using v0.60 api) +- AC_DEFINE(HAVE_FREETDS_VER0_60, 1, [Have freetds v0.60 API]) +- FREETDS_CFLAGS="-I${freetds_incdir}" +- FREETDS_LIBS="-L${freetdsdir}/lib -ltds" +- AC_DEFINE(HAVE_FREETDS, 1, [Have freetds]) +- ;; +- *v0.6[[3-9]]*) AC_MSG_RESULT($freetdsvercheck - using v0.63 api) +- AC_DEFINE(HAVE_FREETDS_VER0_63, 1, [Have freetds v0.63 API]) +- AC_DEFINE(HAVE_FREETDS_VER0_6X, 1, [Have freetds v0.6x API]) +- FREETDS_CFLAGS="-I${freetds_incdir}" +- FREETDS_LIBS="-L${freetdsdir}/lib -ltds" +- AC_DEFINE(HAVE_FREETDS, 1, [Have freetds]) +- ;; +- *v0.6*) AC_MSG_RESULT($freetdsvercheck - using v0.6x api) +- AC_DEFINE(HAVE_FREETDS_VER0_6X, 1, [Have freetds v0.6x API]) +- FREETDS_CFLAGS="-I${freetds_incdir}" +- FREETDS_LIBS="-L${freetdsdir}/lib -ltds" +- AC_DEFINE(HAVE_FREETDS, 1, [Have freetds]) +- ;; +- *) AC_MSG_WARN($freetdsvercheck not supported - backend not used) +- freetdsdir="" +- freetds_incdir="" +- ;; +- esac +- ++ AC_MSG_RESULT($freetdsvercheck) ++ FREETDS_CFLAGS="-I${freetds_incdir}" ++ FREETDS_LIBS="-L${freetdsdir}/lib -ltds" ++ AC_DEFINE(HAVE_FREETDS, 1, [Have freetds]) ++ ++ freetds_version_major="`echo $freetdsvercheck|sed 's:^\([[^.]]*\).*:\1:'`" ++ freetds_version_minor="`echo $freetdsvercheck|sed 's:^[[^.]]*\.\([[^.]]*\).*:\1:'`" ++ ++ AC_DEFINE_UNQUOTED(FREETDS_VERSION_MAJOR, [$freetds_version_major]) ++ AC_DEFINE_UNQUOTED(FREETDS_VERSION_MINOR, [$freetds_version_minor]) + fi + fi + fi +diff -NurdB libgda-1.2.3/providers/freetds/gda-freetds-provider.c libgda-1.2.3-patched/providers/freetds/gda-freetds-provider.c +--- libgda-1.2.3/providers/freetds/gda-freetds-provider.c 2004-12-28 08:26:11.000000000 -0500 ++++ libgda-1.2.3-patched/providers/freetds/gda-freetds-provider.c 2006-08-02 15:09:05.000000000 -0500 +@@ -103,7 +103,7 @@ + const gint col, + const gint row); + +-#ifdef HAVE_FREETDS_VER0_5X ++#if FREETDS_VERSION < 6000 + static gboolean tds_cbs_initialized = FALSE; + extern int (*g_tds_msg_handler)(); + extern int (*g_tds_err_handler)(); +@@ -116,7 +116,7 @@ + static int gda_freetds_provider_tds_handle_message (void *aStruct, + void *bStruct, + const gboolean is_err_msg); +-#if defined(HAVE_FREETDS_VER0_6X) || defined(HAVE_FREETDS_VER0_60) ++#if FREETDS_VERSION >= 6000 + static int gda_freetds_provider_tds_handle_info_msg (TDSCONTEXT *, + TDSSOCKET *, + TDSMSGINFO *); +@@ -252,8 +252,12 @@ + tds_set_packet(tds_cnc->login, 512); + + /* Version 0.60 api uses context additionaly */ +-#if defined(HAVE_FREETDS_VER0_6X) || defined(HAVE_FREETDS_VER0_60) ++#if FREETDS_VERSION >= 6000 ++#if FREETDS_VERSION >= 6400 ++ tds_cnc->ctx = tds_alloc_context(NULL); ++#else + tds_cnc->ctx = tds_alloc_context(); ++#endif + if (! tds_cnc->ctx) { + gda_log_error (_("Allocating tds context failed.")); + gda_freetds_free_connection_data (tds_cnc); +@@ -267,9 +271,9 @@ + #endif + + /* establish connection; change in 0.6x api */ +-#if defined(HAVE_FREETDS_VER0_60) ++#if FREETDS_VERSION == 6000 + tds_cnc->tds = tds_connect(tds_cnc->login, tds_cnc->ctx, NULL); +-#elif defined(HAVE_FREETDS_VER0_6X) ++#elif FREETDS_VERSION > 6000 + tds_cnc->tds = tds_alloc_socket(tds_cnc->ctx, 512); + if (! tds_cnc->tds) { + gda_log_error (_("Allocating tds socket failed.")); +@@ -297,9 +301,9 @@ + } + + /* try to receive connection info for sanity check */ +-#if defined(HAVE_FREETDS_VER0_6X) ++#if FREETDS_VERSION > 6000 + /* do nothing */ +-#elif defined(HAVE_FREETDS_VER0_60) ++#elif FREETDS_VERSION == 6000 + tds_cnc->config = tds_get_config(tds_cnc->tds, tds_cnc->login, tds_cnc->ctx->locale); + #else + tds_cnc->config = tds_get_config(tds_cnc->tds, tds_cnc->login); +@@ -357,7 +361,7 @@ + tds_cnc->database = NULL; + } + if (tds_cnc->config) { +-#ifdef HAVE_FREETDS_VER0_6X ++#if FREETDS_VERSION > 6000 + tds_free_connect (tds_cnc->config); + #else + tds_free_config(tds_cnc->config); +@@ -370,7 +374,7 @@ + tds_free_socket (tds_cnc->tds); + tds_cnc->tds = NULL; + } +-#if defined(HAVE_FREETDS_VER0_6X) || defined(HAVE_FREETDS_VER0_60) ++#if FREETDS_VERSION >= 6000 + if (tds_cnc->ctx) { + /* Clear callback handler */ + tds_cnc->ctx->msg_handler = NULL; +@@ -782,7 +786,7 @@ + { + GdaFreeTDSConnectionData *tds_cnc; + GdaError *error; +-#ifdef HAVE_FREETDS_VER0_6X ++#if FREETDS_VERSION > 6000 + int result_type = 0; + #endif + +@@ -802,7 +806,9 @@ + } + + /* there should not be any result tokens */ +-#ifdef HAVE_FREETDS_VER0_6X ++#if FREETDS_VERSION > 6200 ++ while ((tds_cnc->rc = tds_process_result_tokens (tds_cnc->tds, &tds_cnc->result_type, NULL)) ++#elif FREETDS_VERSION > 6000 + while ((tds_cnc->rc = tds_process_result_tokens (tds_cnc->tds, &tds_cnc->result_type)) + #else + while ((tds_cnc->rc = tds_process_result_tokens (tds_cnc->tds)) +@@ -1002,7 +1008,7 @@ + provider_class->supports = gda_freetds_provider_supports; + provider_class->get_schema = gda_freetds_provider_get_schema; + +-#ifdef HAVE_FREETDS_VER0_5X ++#if FREETDS_VERSION < 6000 + if (tds_cbs_initialized == FALSE) { + tds_cbs_initialized = TRUE; + +@@ -1025,7 +1031,7 @@ + + g_return_if_fail (GDA_IS_FREETDS_PROVIDER (provider)); + +-#ifdef HAVE_FREETDS_VER0_5X ++#if FREETDS_VERSION < 6000 + tds_cbs_initialized = FALSE; + g_tds_msg_handler = NULL; + g_tds_err_handler = NULL; +@@ -1058,9 +1064,15 @@ + TDS_SUCCEED); + + msg = g_strdup_printf(_("Msg %d, Level %d, State %d, Server %s, Line %d\n%s\n"), ++#if FREETDS_VERSION >= 6400 ++ msg_info->msgno, ++ msg_info->severity, ++ msg_info->state, ++#else + msg_info->msg_number, + msg_info->msg_level, + msg_info->msg_state, ++#endif + (msg_info->server ? msg_info->server : ""), + msg_info->line_number, + msg_info->message ? msg_info->message : ""); +@@ -1070,7 +1082,11 @@ + if (cnc != NULL) { + error = gda_error_new (); + gda_error_set_description (error, msg); ++#if FREETDS_VERSION >= 6400 ++ gda_error_set_number (error, msg_info->msgno); ++#else + gda_error_set_number (error, msg_info->msg_number); ++#endif + gda_error_set_source (error, "gda-freetds"); + if (msg_info->sql_state != NULL) { + gda_error_set_sqlstate (error, +@@ -1095,14 +1111,14 @@ + return TDS_SUCCEED; + } + +-#if defined(HAVE_FREETDS_VER0_6X) || defined(HAVE_FREETDS_VER0_60) ++#if FREETDS_VERSION >= 6000 + /* FIXME: rewrite tds_handle_message as well/use new parameters here */ + static int + gda_freetds_provider_tds_handle_info_msg (TDSCONTEXT *ctx, TDSSOCKET *tds, + TDSMSGINFO *msg) + { + return gda_freetds_provider_tds_handle_message ((void *) tds, +-#ifdef HAVE_FREETDS_VER0_6X ++#if FREETDS_VERSION > 6000 + (void *) msg, + #else + (void *) tds->msg_info, +@@ -1117,14 +1133,14 @@ + } + #endif + +-#if defined(HAVE_FREETDS_VER0_6X) || defined(HAVE_FREETDS_VER0_60) ++#if FREETDS_VERSION >= 6000 + /* FIXME: rewrite tds_handle_message as well/use new parameters here */ + static int + gda_freetds_provider_tds_handle_err_msg (TDSCONTEXT *ctx, TDSSOCKET *tds, + TDSMSGINFO *msg) + { + return gda_freetds_provider_tds_handle_message ((void *) tds, +-#ifdef HAVE_FREETDS_VER0_6X ++#if FREETDS_VERSION > 6000 + (void *) msg, + #else + (void *) tds->msg_info, +diff -NurdB libgda-1.2.3/providers/freetds/gda-freetds-provider.h libgda-1.2.3-patched/providers/freetds/gda-freetds-provider.h +--- libgda-1.2.3/providers/freetds/gda-freetds-provider.h 2005-10-27 04:18:24.000000000 -0500 ++++ libgda-1.2.3-patched/providers/freetds/gda-freetds-provider.h 2006-08-02 15:38:55.000000000 -0500 +@@ -30,14 +30,16 @@ + + G_BEGIN_DECLS + ++#define FREETDS_VERSION (10000*FREETDS_VERSION_MAJOR+100*FREETDS_VERSION_MINOR) ++ + /* Compatibility macros */ +-#ifdef HAVE_FREETDS_VER0_63 ++#if FREETDS_VERSION >= 6300 + + #define TDSCONNECTINFO TDSCONNECTION + #define TDSCOLINFO TDSCOLUMN + #define TDSMSGINFO TDSMESSAGE + +-#endif /* HAVE_FREETDS_VER0_63 */ ++#endif /* FREETDS_VERSION >= 6300 */ + + #define GDA_TYPE_FREETDS_PROVIDER (gda_freetds_provider_get_type()) + #define GDA_FREETDS_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GDA_TYPE_FREETDS_PROVIDER, GdaFreeTDSProvider)) +@@ -68,11 +70,11 @@ + gchar *database; /* database we are connected to */ + + TDSLOGIN *login; /* tds login struct */ +-#if defined(HAVE_FREETDS_VER0_6X) || defined(HAVE_FREETDS_VER0_60) ++#if FREETDS_VERSION >= 6000 + TDSCONTEXT *ctx; /* tds context */ + #endif + TDSSOCKET *tds; /* connection handle */ +-#ifdef HAVE_FREETDS_VER0_6X ++#if FREETDS_VERSION > 6000 + TDSCONNECTINFO *config; /* tds connect struct */ + #else + TDSCONFIGINFO *config; /* tds config struct */ +diff -NurdB libgda-1.2.3/providers/freetds/gda-freetds-recordset.c libgda-1.2.3-patched/providers/freetds/gda-freetds-recordset.c +--- libgda-1.2.3/providers/freetds/gda-freetds-recordset.c 2004-12-28 08:26:11.000000000 -0500 ++++ libgda-1.2.3-patched/providers/freetds/gda-freetds-recordset.c 2006-08-02 15:25:34.000000000 -0500 +@@ -279,7 +279,7 @@ + + /* set pointers to NULL */ + copy->column_nullbind = NULL; +-#ifdef HAVE_FREETDS_VER0_6X ++#if FREETDS_VERSION > 6000 + copy->column_varaddr = NULL; + #else + copy->varaddr = NULL; +@@ -339,7 +339,7 @@ + recset->priv->tds_cnc = tds_cnc; + recset->priv->res = tds_cnc->tds->res_info; + +-#ifdef HAVE_FREETDS_VER0_6X ++#if FREETDS_VERSION > 6000 + while ((tds_cnc->rc = tds_process_result_tokens (tds_cnc->tds, + &tds_cnc->result_type)) + == TDS_SUCCEED) { +@@ -378,7 +378,11 @@ + g_object_unref (recset); + recset = NULL; + return NULL; ++#if FREETDS_VERSION >= 6400 ++ } else if (tds_cnc->rc != TDS_NO_MORE_RESULTS) { ++#else + } else if (tds_cnc->rc != TDS_NO_MORE_ROWS) { ++#endif + error = gda_freetds_make_error(tds_cnc->tds, + _("Unexpected freetds return code in tds_process_row_tokens().\n")); + gda_connection_add_error (cnc, error); +diff -NurdB libgda-1.2.3/providers/freetds/gda-freetds-types.c libgda-1.2.3-patched/providers/freetds/gda-freetds-types.c +--- libgda-1.2.3/providers/freetds/gda-freetds-types.c 2003-03-09 13:55:34.000000000 -0500 ++++ libgda-1.2.3-patched/providers/freetds/gda-freetds-types.c 2006-08-02 01:38:55.000000000 -0500 +@@ -191,7 +191,7 @@ + const TDS_INT max_size = 255; + TDS_INT col_size = 0; + gchar *txt = NULL; +-#ifdef HAVE_FREETDS_VER0_6X ++#if FREETDS_VERSION > 6000 + CONV_RESULT tds_conv; + #endif + GdaNumeric numeric; +@@ -202,7 +202,7 @@ + /* perhaps remove ifdef later on + * tds_cnc is just needed for context structure of 0.6x api for now + */ +-#ifdef HAVE_FREETDS_VER0_6X ++#if FREETDS_VERSION > 6000 + g_return_if_fail (tds_cnc != NULL); + g_return_if_fail (tds_cnc->ctx != NULL); + +@@ -309,7 +309,7 @@ + txt = g_new0 (gchar, col_size); + + /* tds_convert api changed to 0.6x */ +-#ifdef HAVE_FREETDS_VER0_6X ++#if FREETDS_VERSION > 6000 + if (tds_convert (tds_cnc->ctx, + col->column_type, val, + col->column_size, SYBCHAR, +@@ -319,7 +319,7 @@ + gda_value_set_string (field, + (tds_conv.c ? tds_conv.c : (tds_conv.ib ? tds_conv.ib : ""))); + } +-#elif HAVE_FREETDS_VER0_60 ++#elif FREETDS_VERSION == 6000 + tds_convert (tds_cnc->ctx, + col->column_type, val, + col->column_size, SYBCHAR, diff --git a/gnome-extra/libgda/libgda-1.2.3.ebuild b/gnome-extra/libgda/libgda-1.2.3.ebuild index 360a494fd6a1..dba432967b14 100644 --- a/gnome-extra/libgda/libgda-1.2.3.ebuild +++ b/gnome-extra/libgda/libgda-1.2.3.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgda/libgda-1.2.3.ebuild,v 1.3 2006/03/24 04:26:19 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgda/libgda-1.2.3.ebuild,v 1.4 2006/08/02 21:07:27 leonardop Exp $ -inherit eutils gnome2 +inherit autotools eutils gnome2 DESCRIPTION="Gnome Database Access Library" HOMEPAGE="http://www.gnome-db.org/" @@ -61,13 +61,13 @@ pkg_setup() { } src_unpack() { - unpack "${A}" - cd "${S}" + gnome2_src_unpack # Fix freetds API problems - epatch "${FILESDIR}"/${PN}-1.0.2-freetds_fix.patch + epatch "${FILESDIR}"/${P}-freetds_api_fixes.patch # Fix compilation of the mdb provider epatch "${FILESDIR}"/${PN}-1.2.1-mdb_fix.patch - gnome2_omf_fix doc/Makefile.in + sed -n -e '/GTK_DOC_CHECK/,/IT_PROG_INTLTOOL/p' aclocal.m4 > gtk-doc.m4 + AT_M4DIR="." eautoreconf } |