diff options
author | Ulrich Müller <ulm@gentoo.org> | 2007-05-30 13:32:16 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2007-05-30 13:32:16 +0000 |
commit | ea4c989b75be3efd6847231392c8a86b170484a1 (patch) | |
tree | f772533c0a94add999d88fe613cb5a42a6c60334 /app-editors/emacs-cvs | |
parent | alpha stable wrt #176367 (diff) | |
download | gentoo-2-ea4c989b75be3efd6847231392c8a86b170484a1.tar.gz gentoo-2-ea4c989b75be3efd6847231392c8a86b170484a1.tar.bz2 gentoo-2-ea4c989b75be3efd6847231392c8a86b170484a1.zip |
Fix alsa detection patch. Thanks to armin76 for pointing this out.
(Portage version: 2.1.2.7)
Diffstat (limited to 'app-editors/emacs-cvs')
5 files changed, 55 insertions, 7 deletions
diff --git a/app-editors/emacs-cvs/ChangeLog b/app-editors/emacs-cvs/ChangeLog index b868e345100d..ce0f1a2bbf4c 100644 --- a/app-editors/emacs-cvs/ChangeLog +++ b/app-editors/emacs-cvs/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-editors/emacs-cvs # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v 1.124 2007/05/29 07:21:59 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v 1.125 2007/05/30 13:32:16 ulm Exp $ + + 30 May 2007; Ulrich Mueller <ulm@gentoo.org> + +files/emacs-cvs-disable_alsa_detection-r1.patch, + emacs-cvs-22.0.9999-r10.ebuild, emacs-cvs-22.1.50.ebuild, + emacs-cvs-23.0.0-r6.ebuild: + Fix alsa detection patch. 29 May 2007; Ulrich Mueller <ulm@gentoo.org> emacs-cvs-22.0.990.ebuild, emacs-cvs-22.0.9999-r10.ebuild, emacs-cvs-22.1.50.ebuild, diff --git a/app-editors/emacs-cvs/emacs-cvs-22.0.9999-r10.ebuild b/app-editors/emacs-cvs/emacs-cvs-22.0.9999-r10.ebuild index b062a83bbbf2..fa83c728020f 100644 --- a/app-editors/emacs-cvs/emacs-cvs-22.0.9999-r10.ebuild +++ b/app-editors/emacs-cvs/emacs-cvs-22.0.9999-r10.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.0.9999-r10.ebuild,v 1.18 2007/05/29 07:21:59 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.0.9999-r10.ebuild,v 1.19 2007/05/30 13:32:16 ulm Exp $ ECVS_AUTH="pserver" ECVS_SERVER="cvs.savannah.gnu.org:/sources/emacs" @@ -87,7 +87,7 @@ src_unpack() { epatch "${FILESDIR}/${PN}-freebsd-sparc.patch" # ALSA is detected and used even if not requested by the USE=alsa flag. # So remove the automagic check - use alsa || epatch "${FILESDIR}/${PN}-disable_alsa_detection.patch" + use alsa || epatch "${FILESDIR}/${PN}-disable_alsa_detection-r1.patch" eautoreconf } diff --git a/app-editors/emacs-cvs/emacs-cvs-22.1.50.ebuild b/app-editors/emacs-cvs/emacs-cvs-22.1.50.ebuild index 4d1dbe46226f..61774c587047 100644 --- a/app-editors/emacs-cvs/emacs-cvs-22.1.50.ebuild +++ b/app-editors/emacs-cvs/emacs-cvs-22.1.50.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.1.50.ebuild,v 1.10 2007/05/29 07:21:59 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.1.50.ebuild,v 1.11 2007/05/30 13:32:16 ulm Exp $ ECVS_AUTH="pserver" ECVS_SERVER="cvs.savannah.gnu.org:/sources/emacs" @@ -89,7 +89,7 @@ src_unpack() { epatch "${FILESDIR}/${PN}-freebsd-sparc.patch" # ALSA is detected and used even if not requested by the USE=alsa flag. # So remove the automagic check - use alsa || epatch "${FILESDIR}/${PN}-disable_alsa_detection.patch" + use alsa || epatch "${FILESDIR}/${PN}-disable_alsa_detection-r1.patch" eautoreconf } diff --git a/app-editors/emacs-cvs/emacs-cvs-23.0.0-r6.ebuild b/app-editors/emacs-cvs/emacs-cvs-23.0.0-r6.ebuild index ebdc6147c202..c8aa496b1838 100644 --- a/app-editors/emacs-cvs/emacs-cvs-23.0.0-r6.ebuild +++ b/app-editors/emacs-cvs/emacs-cvs-23.0.0-r6.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.0-r6.ebuild,v 1.15 2007/05/29 07:21:59 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.0-r6.ebuild,v 1.16 2007/05/30 13:32:16 ulm Exp $ ECVS_AUTH="pserver" ECVS_SERVER="cvs.savannah.gnu.org:/sources/emacs" @@ -88,7 +88,7 @@ src_unpack() { epatch "${FILESDIR}/${PN}-freebsd-sparc.patch" # ALSA is detected and used even if not requested by the USE=alsa flag. # So remove the automagic check - use alsa || epatch "${FILESDIR}/${PN}-disable_alsa_detection.patch" + use alsa || epatch "${FILESDIR}/${PN}-disable_alsa_detection-r1.patch" eautoreconf } diff --git a/app-editors/emacs-cvs/files/emacs-cvs-disable_alsa_detection-r1.patch b/app-editors/emacs-cvs/files/emacs-cvs-disable_alsa_detection-r1.patch new file mode 100644 index 000000000000..d4b630f362a8 --- /dev/null +++ b/app-editors/emacs-cvs/files/emacs-cvs-disable_alsa_detection-r1.patch @@ -0,0 +1,42 @@ +--- configure.in 22 May 2007 15:54:32 -0000 1.448 ++++ configure.in 30 May 2007 13:19:39 -0000 +@@ -1590,39 +1590,6 @@ + # Emulation library used on NetBSD. + AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBSOUND=-lossaudio, LIBSOUND=) + AC_SUBST(LIBSOUND) +- +- ALSA_REQUIRED=1.0.0 +- ALSA_MODULES="alsa >= $ALSA_REQUIRED" +- dnl Check if --with-pkg-config-prog has been given. +- if test "X${with_pkg_config_prog}" != X; then +- PKG_CONFIG="${with_pkg_config_prog}" +- fi +- PKG_CHECK_MODULES(ALSA, $ALSA_MODULES, HAVE_ALSA=yes, HAVE_ALSA=no) +- if test $HAVE_ALSA = yes; then +- SAVE_CFLAGS="$CFLAGS" +- SAVE_LDFLAGS="$LDFLAGS" +- CFLAGS="$ALSA_CFLAGS $CFLAGS" +- LDFLAGS="$ALSA_LIBS $LDFLAGS" +- AC_TRY_COMPILE([#include <asoundlib.h>], [snd_lib_error_set_handler (0);], +- emacs_alsa_normal=yes, +- emacs_alsa_normal=no) +- if test "$emacs_alsa_normal" != yes; then +- AC_TRY_COMPILE([#include <alsa/asoundlib.h>], +- [snd_lib_error_set_handler (0);], +- emacs_alsa_subdir=yes, +- emacs_alsa_subdir=no) +- if test "$emacs_alsa_subdir" != yes; then +- AC_MSG_ERROR([pkg-config found alsa, but it does not compile. See config.log for error messages.]) +- fi +- ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" +- fi +- +- CFLAGS="$SAVE_CFLAGS" +- LDFLAGS="$SAVE_LDFLAGS" +- LIBSOUND="$LIBSOUND $ALSA_LIBS" +- CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" +- AC_DEFINE(HAVE_ALSA, 1, [Define to 1 if ALSA is available.]) +- fi + AC_SUBST(CFLAGS_SOUND) + fi + |