After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 579031 - [PATCH] epiphany-2.26.1 libcanberra automagic support fixed
[PATCH] epiphany-2.26.1 libcanberra automagic support fixed
Status: RESOLVED OBSOLETE
Product: epiphany
Classification: Core
Component: Build
2.26.x
Other All
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-04-15 10:25 UTC by Romain Perier
Modified: 2011-07-30 05:40 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
the patch which solves the problem (1.64 KB, patch)
2009-04-15 10:26 UTC, Romain Perier
needs-work Details | Review

Description Romain Perier 2009-04-15 10:25:33 UTC
Please describe the problem:
Hi,

libcanberra support was automagic in the configure script, i written a small patch to solve the problem.

This patch only updates the configure.ac, by adding a call to AC_ARG_ENABLE m4 macro, and ONLY if the support was explicitely required and if support was found on the system, including libcanberra support.

this upstream refers to the bug https://bugs.gentoo.org/show_bug.cgi?id=266232 

mrpouet ;)

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Romain Perier 2009-04-15 10:26:09 UTC
Created attachment 132683 [details] [review]
the patch which solves the problem
Comment 2 Christian Persch 2009-04-15 13:34:21 UTC
+AC_ARG_ENABLE([canberra],
+	AC_HELP_STRING([--enable-canberra],
+	[Enable canberra support @<:@default=yes@:>@]),
+	enable_canberra=$enableval, enable_canberra=yes)

Should be like this:
AC_ARG_ENABLE([canberra],[AS_HELP_STRING(...)],[],[enable_canberra=yes])

+have_libcanberra_gtk=no
Not necessary.

+if test "$enable_canberra" = "yes"; then
+   PKG_CHECK_EXISTS([libcanberra-gtk >= $LIBCANBERRA_GTK_REQUIRED],[have_libcanberra_gtk=yes],
+   [have_libcanberra_gtk=no])

Do it like this:
PKG_CHECK_EXISTS([....],[],[AC_MSG_ERROR([canberra not found])])
and then you can lose the if have_... check below.

+   if test "$have_libcanberra_gtk" = "yes"; then
+      LIBCANBERRA_GTK_PACKAGE="libcanberra-gtk >= $LIBCANBERRA_GTK_REQUIRED"
+      AC_DEFINE([HAVE_LIBCANBERRA_GTK],[1],[Define if libcanberra-gtk is available])
+   fi

+	Canberra support	   : $have_libcanberra_gtk

Use $enable_canberra here.
Comment 3 Diego Escalante Urrelo (not reading bugmail) 2011-07-30 05:40:53 UTC
Don't use canberra anymore!