From b7737fa5e2c924c92e533e71729757ac5ab7b640 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 29 Jan 2008 06:46:38 +0000 Subject: [PATCH] fix deprecated apis --- ORBit2.spec | 2 ++ deprecation.patch | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 deprecation.patch diff --git a/ORBit2.spec b/ORBit2.spec index c237242..fe7a97b 100644 --- a/ORBit2.spec +++ b/ORBit2.spec @@ -21,6 +21,7 @@ BuildRequires: gtk-doc Patch0: ORBit2-2.14.3-multilib.patch # handle ref leaks in the a11y stack more gracefully Patch1: ORBit2-2.14.3-ref-leaks.patch +Patch2: deprecation.patch %description ORBit is a high-performance CORBA (Common Object Request Broker @@ -63,6 +64,7 @@ write such programs, you'll also need to install the ORBIT package. %setup -q %patch0 -p1 -b .multilib %patch1 -p1 -b .ref-leaks +%patch2 -p1 -b .deprecation %build ## the shipped libtool is broken wrt. multilib diff --git a/deprecation.patch b/deprecation.patch new file mode 100644 index 0000000..5afbb32 --- /dev/null +++ b/deprecation.patch @@ -0,0 +1,14 @@ +diff -up ORBit2-2.14.11/src/orb/orb-core/corba-typecode.c.deprecation ORBit2-2.14.11/src/orb/orb-core/corba-typecode.c +--- ORBit2-2.14.11/src/orb/orb-core/corba-typecode.c.deprecation 2008-01-29 01:44:31.000000000 -0500 ++++ ORBit2-2.14.11/src/orb/orb-core/corba-typecode.c 2008-01-29 01:44:51.000000000 -0500 +@@ -1097,8 +1097,8 @@ tc_dec (CORBA_TypeCode *t, + GSList *l; + + if (lkind != CORBA_tk_recursive) { +- g_warning ("%s: invalid CORBA_TCKind, lkind=%lu", +- G_GNUC_FUNCTION, (unsigned long int) lkind); ++ g_warning ("tc_dec: invalid CORBA_TCKind, lkind=%lu", ++ (unsigned long int) lkind); + return TRUE; + } +