Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384743 - net-dns/avahi-0.6.30-r1 fails to build due to G_CONST_RETURN (by -DG_DISABLE_DEPRECATED)
Summary: net-dns/avahi-0.6.30-r1 fails to build due to G_CONST_RETURN (by -DG_DISABLE_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
: 385263 386011 386493 (view as bug list)
Depends on:
Blocks: 384779
  Show dependency tree
 
Reported: 2011-09-28 01:36 UTC by Reuben Martin
Modified: 2012-01-16 17:01 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to remove -DG_DISABLE_DEPRECATED to allow avahi to build (avahi-0.6.30-allow-glib-deprecated.patch,964 bytes, text/plain)
2011-09-28 17:01 UTC, Ian Abbott
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Reuben Martin 2011-09-28 01:36:56 UTC
net-dns/avahi-0.6.30-r1  USE="autoipd dbus gdbm gtk howl-compat introspection* ipv6 mdnsresponder-compat python qt4 -bookmarks -doc -gtk3 -mono -test -utils" 0 kB

glib has depreciated G_CONST_RETURN and has apparently finally removed it, causing issues when building:

  CC     libavahi_ui_la-stdb.lo
In file included from /usr/include/pango-1.0/pango/pango-gravity.h:98:0,
                 from /usr/include/pango-1.0/pango/pango-types.h:91,
                 from /usr/include/pango-1.0/pango/pango-font.h:26,
                 from /usr/include/pango-1.0/pango/pango-attributes.h:25,
                 from /usr/include/pango-1.0/pango/pango.h:25,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:37,
                 from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from avahi-ui.c:30:
/usr/include/pango-1.0/pango/pango-script.h:132:12: error: expected declaration specifiers or '...' before 'G_CONST_RETURN'
/usr/include/pango-1.0/pango/pango-script.h:133:12: error: expected declaration specifiers or '...' before 'G_CONST_RETURN'


I tried patching pango with this patch: https://bugzilla.gnome.org/show_bug.cgi?id=652202

But it then breaks on atk:

  CC     libavahi_ui_la-stdb.lo
In file included from /usr/include/atk-1.0/atk/atkobject.h:28:0,
                 from /usr/include/atk-1.0/atk/atk.h:25,
                 from /usr/include/gtk-2.0/gtk/gtkwidget.h:40,
                 from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
                 from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
                 from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:33,
                 from avahi-ui.c:30:
/usr/include/atk-1.0/atk/atkstate.h:173:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar'

Can't find anything useful beyond that...

See comment #5 from bug #379897 for related info

Reproducible: Always
Comment 1 Reuben Martin 2011-09-28 01:41:55 UTC
BTW: my temporary work-around was to disable the gtk use flag for now.
Comment 2 Michael Buchfink 2011-09-28 16:29:52 UTC
Same error here.

The workaround does not work for me, because the use flag 'gtk' is needed by net-misc/vinagre and net-misc/vinagre.
Comment 3 Ian Abbott 2011-09-28 17:01:38 UTC
Created attachment 288099 [details]
Patch to remove -DG_DISABLE_DEPRECATED to allow avahi to build

Temporary patch until bug 384779 is fixed.

The /etc/portage/patches trick didn't work for me for some reason, so I had to use a local portage overlay with a modified ebuild to apply the patch.
Comment 4 Michael Buchfink 2011-09-28 17:42:45 UTC
Thanks, this works.
Comment 5 Olliver Schinagl 2011-09-29 20:50:50 UTC
Bug confirmed, patch works.
Comment 6 Pacho Ramos gentoo-dev 2011-10-02 20:18:57 UTC
+  02 Oct 2011; Pacho Ramos <pacho@gentoo.org> avahi-0.6.30-r1.ebuild:
+  Drop DEPRECATED flags, bug #384743
+
Comment 7 Pacho Ramos gentoo-dev 2011-10-08 21:31:48 UTC
*** Bug 386011 has been marked as a duplicate of this bug. ***
Comment 8 Pacho Ramos gentoo-dev 2011-10-10 10:09:50 UTC
*** Bug 386493 has been marked as a duplicate of this bug. ***
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2012-01-16 17:00:57 UTC
*** Bug 385263 has been marked as a duplicate of this bug. ***