Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265572 - [gnome-overlay] gnome-base/gnome-settings-daemon-2.26.0 gstreamer patch breaks pulseaudio support
Summary: [gnome-overlay] gnome-base/gnome-settings-daemon-2.26.0 gstreamer patch break...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 265589 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-09 19:33 UTC by Mike Auty (RETIRED)
Modified: 2009-04-12 10:42 UTC (History)
3 users (show)

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


Attachments
Fixed version of gnome-settings-daemon-2.26.0-readd-gst-vol-control-support.patch (gnome-settings-daemon-2.26.0-readd-gst-vol-control-support.patch,29.03 KB, patch)
2009-04-09 20:05 UTC, Mike Auty (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Auty (RETIRED) gentoo-dev 2009-04-09 19:33:55 UTC
Hiya,

Just a quick note to say that the patch to add back in gstreamer support doesn't properly wrap #ifdefs around all the uses of the error variable that's introduced.  As such, with USE=pulseaudio, it generates the following error during compilation:

libtool: compile:  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../gnome-settings-daemon -I../../plugins/common -DPIXMAPDIR=\"/usr/share/gnome-settings-daemon\" -DGLADEDIR=\"/usr/share/gnome-settings-daemon\" -DGNOME_SETTINGS_LOCALEDIR=\"/usr/share/locale\" -I../../plugins/media-keys/cut-n-paste -I/usr/include -I/usr/include -I/usr/include -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/gnome-desktop-2.0 -I/usr/include/startup-notification-1.0 -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -O2 -march=native -pipe -ggdb -MT libmedia_keys_la-gsd-media-keys-manager.lo -MD -MP -MF .deps/libmedia_keys_la-gsd-media-keys-manager.Tpo -c gsd-media-keys-manager.c  -fPIC -DPIC -o .libs/libmedia_keys_la-gsd-media-keys-manager.o
mv -f .deps/libmedia_keys_la-gsd-marshal.Tpo .deps/libmedia_keys_la-gsd-marshal.Plo
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..  -I../../gnome-settings-daemon -I../../plugins/common -DPIXMAPDIR=\""/usr/share/gnome-settings-daemon"\" -DGLADEDIR=\""/usr/share/gnome-settings-daemon"\" -DGNOME_SETTINGS_LOCALEDIR=\""/usr/share/locale"\"  -I../../plugins/media-keys/cut-n-paste  -I/usr/include  -I/usr/include  -I/usr/include  -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/gnome-desktop-2.0 -I/usr/include/startup-notification-1.0 -I/usr/include/libglade-2.0 -I/usr/include/libxml2    -O2 -march=native -pipe -ggdb -MT test_media_keys-test-media-keys.o -MD -MP -MF .deps/test_media_keys-test-media-keys.Tpo -c -o test_media_keys-test-media-keys.o `test -f 'test-media-keys.c' || echo './'`test-media-keys.c
gsd-media-keys-manager.c: In function 'do_sound_action':
gsd-media-keys-manager.c:677: error: 'error' undeclared (first use in this function)
gsd-media-keys-manager.c:677: error: (Each undeclared identifier is reported only once
gsd-media-keys-manager.c:677: error: for each function it appears in.)
make[5]: *** [test_media_keys-gsd-media-keys-manager.o] Error 1
make[5]: *** Waiting for unfinished jobs....
libtool: compile:  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../gnome-settings-daemon -I../../plugins/common -DPIXMAPDIR=\"/usr/share/gnome-settings-daemon\" -DGLADEDIR=\"/usr/share/gnome-settings-daemon\" -DGNOME_SETTINGS_LOCALEDIR=\"/usr/share/locale\" -I../../plugins/media-keys/cut-n-paste -I/usr/include -I/usr/include -I/usr/include -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/gnome-desktop-2.0 -I/usr/include/startup-notification-1.0 -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -O2 -march=native -pipe -ggdb -MT libmedia_keys_la-gsd-media-keys-window.lo -MD -MP -MF .deps/libmedia_keys_la-gsd-media-keys-window.Tpo -c gsd-media-keys-window.c -o libmedia_keys_la-gsd-media-keys-window.o >/dev/null 2>&1
mv -f .deps/test_media_keys-test-media-keys.Tpo .deps/test_media_keys-test-media-keys.Po
mv -f .deps/test_media_keys-gsd-media-keys-window.Tpo .deps/test_media_keys-gsd-media-keys-window.Po
gsd-media-keys-manager.c: In function 'do_sound_action':
gsd-media-keys-manager.c:677: error: 'error' undeclared (first use in this function)
gsd-media-keys-manager.c:677: error: (Each undeclared identifier is reported only once
gsd-media-keys-manager.c:677: error: for each function it appears in.)
make[5]: *** [libmedia_keys_la-gsd-media-keys-manager.lo] Error 1
mv -f .deps/libmedia_keys_la-gsd-media-keys-window.Tpo .deps/libmedia_keys_la-gsd-media-keys-window.Plo
make[5]: Leaving directory `/var/tmp/portage/gnome-base/gnome-settings-daemon-2.26.0/work/gnome-settings-daemon-2.26.0/plugins/media-keys'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/gnome-base/gnome-settings-daemon-2.26.0/work/gnome-settings-daemon-2.26.0/plugins/media-keys'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/gnome-base/gnome-settings-daemon-2.26.0/work/gnome-settings-daemon-2.26.0/plugins/media-keys'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnome-base/gnome-settings-daemon-2.26.0/work/gnome-settings-daemon-2.26.0/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-base/gnome-settings-daemon-2.26.0/work/gnome-settings-daemon-2.26.0'
make: *** [all] Error 2

Without the gst patch, everything compiles fine.

Specifically the following patch segments show the two unprotected uses of error:

+#ifdef HAVE_PULSE
         guint vol, norm_vol_step;
         int vol_step;
-
         if (manager->priv->stream == NULL)
+#else
+        int      vol;
+        int      vol_step;
+        GError  *error = NULL;
+        if (manager->priv->volume == NULL)
+#endif
                 return;
 
         vol_step = gconf_client_get_int (manager->priv->conf_client,
                                          GCONF_MISC_DIR "/volume_step",
-                                         NULL);
+                                         &error);
 
-        if (vol_step <= 0 || vol_step > 100)
+#ifdef HAVE_PULSE
+        if (vol_step <= 0 || vol_step > 100) {
+#else
+        if (error) {
+#endif
                 vol_step = VOLUME_STEP;
+                g_error_free (error);
+       }
Comment 1 Mike Auty (RETIRED) gentoo-dev 2009-04-09 20:05:37 UTC
Created attachment 187812 [details, diff]
Fixed version of gnome-settings-daemon-2.26.0-readd-gst-vol-control-support.patch

Here's a complete copy of the fixed patch.  Unfortunately git's changed the order of including non-existant files, so the diff between this and the other patch are relatively sizeable, but the only changes are around that location I pointed out earlier (here's a diff snippet to try to make it easier to see):

@@ -632,23 +721,29 @@ diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN gnome-settings-daemon-2.
                   int                  type)
  {
          gboolean muted;
++      int vol_step;
 +#ifdef HAVE_PULSE
          guint vol, norm_vol_step;
-         int vol_step;
+-        int vol_step;
 -
          if (manager->priv->stream == NULL)
 +#else
 +        int      vol;
-+        int      vol_step;
 +        GError  *error = NULL;
 +        if (manager->priv->volume == NULL)
 +#endif
                  return;
  
++#ifdef HAVE_PULSE
++      vol_step = gconf_client_get_int (manager->priv->conf_client,
++                                       GCONF_MISC_DIR "/volume_step",
++                                       NULL);
++#else
          vol_step = gconf_client_get_int (manager->priv->conf_client,
                                           GCONF_MISC_DIR "/volume_step",
 -                                         NULL);
 +                                         &error);
++#endif
  
 -        if (vol_step <= 0 || vol_step > 100)
 +#ifdef HAVE_PULSE
@@ -657,7 +752,9 @@ diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN gnome-settings-daemon-2.
 +        if (error) {
 +#endif
                  vol_step = VOLUME_STEP;
++#ifndef HAVE_PULSE
 +                g_error_free (error);
++#endif
 +      }
  
 +#ifdef HAVE_PULSE
Comment 2 Serkan Kaba (RETIRED) gentoo-dev 2009-04-10 06:41:58 UTC
*** Bug 265589 has been marked as a duplicate of this bug. ***
Comment 3 Wilbur Pan 2009-04-10 11:13:08 UTC
Fixed patch works for me.
Comment 4 Romain Perier (RETIRED) gentoo-dev 2009-04-10 11:41:34 UTC
yeah works for me too ;)
Comment 5 Giuseppe Marco Randazzo <zeld> 2009-04-11 16:57:29 UTC
with this patch not work form me :|.If i remove this patch, the source compile and it works fine. 
This is the build error

nclude/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gnome-desktop-2.0 -I/usr/include/startup-notification-1.0 -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -march=k8 -msse3 -O2 -pipe -MT libmedia_keys_la-gsd-media-keys-window.lo -MD -MP -MF .deps/libmedia_keys_la-gsd-media-keys-window.Tpo -c gsd-media-keys-window.c  -fPIC -DPIC -o .libs/libmedia_keys_la-gsd-media-keys-window.o
gsd-media-keys-manager.c: In function ‘do_sound_action’:
gsd-media-keys-manager.c:677: error: ‘error’ undeclared (first use in this function)
gsd-media-keys-manager.c:677: error: (Each undeclared identifier is reported only once
gsd-media-keys-manager.c:677: error: for each function it appears in.)
make[5]: *** [libmedia_keys_la-gsd-media-keys-manager.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../gnome-settings-daemon -I../../plugins/common -DPIXMAPDIR=\"/usr/share/gnome-settings-daemon\" -DGLADEDIR=\"/usr/share/gnome-settings-daemon\" -DGNOME_SETTINGS_LOCALEDIR=\"/usr/share/locale\" -I../../plugins/media-keys/cut-n-paste -I/usr/include -I/usr/include -I/usr/include -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gnome-desktop-2.0 -I/usr/include/startup-notification-1.0 -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -march=k8 -msse3 -O2 -pipe -MT libmedia_keys_la-gsd-media-keys-window.lo -MD -MP -MF .deps/libmedia_keys_la-gsd-media-keys-window.Tpo -c gsd-media-keys-window.c -o libmedia_keys_la-gsd-media-keys-window.o >/dev/null 2>&1
mv -f .deps/libmedia_keys_la-gsd-media-keys-window.Tpo .deps/libmedia_keys_la-gsd-media-keys-window.Plo
make[5]: Leaving directory `/var/tmp/portage/gnome-base/gnome-settings-daemon-2.26.0/work/gnome-settings-daemon-2.26.0/plugins/media-keys'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/gnome-base/gnome-settings-daemon-2.26.0/work/gnome-settings-daemon-2.26.0/plugins/media-keys'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/gnome-base/gnome-settings-daemon-2.26.0/work/gnome-settings-daemon-2.26.0/plugins/media-keys'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnome-base/gnome-settings-daemon-2.26.0/work/gnome-settings-daemon-2.26.0/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-base/gnome-settings-daemon-2.26.0/work/gnome-settings-daemon-2.26.0'
make: *** [all] Error 2


z.


Comment 6 Giuseppe Marco Randazzo <zeld> 2009-04-11 18:29:49 UTC
Solved with gnome overlay update.

thanks
z.
Comment 7 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-12 10:42:24 UTC
Fixed in overlay, thanks.