summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2011-08-24 20:39:51 +0000
committerUlrich Müller <ulm@gentoo.org>2011-08-24 20:39:51 +0000
commitc019de5b5f26e1793e229f795bdc0f442dd1286b (patch)
treec4e318e35147d5b9cfe56ffdc7a667917f5e8bf6 /app-emacs/emacs-daemon
parentAdd package to proxy-maintainers herd (diff)
downloadgentoo-2-c019de5b5f26e1793e229f795bdc0f442dd1286b.tar.gz
gentoo-2-c019de5b5f26e1793e229f795bdc0f442dd1286b.tar.bz2
gentoo-2-c019de5b5f26e1793e229f795bdc0f442dd1286b.zip
Warn about problems in GTK+, bug 292471.
(Portage version: 2.1.10.11/cvs/Linux x86_64)
Diffstat (limited to 'app-emacs/emacs-daemon')
-rw-r--r--app-emacs/emacs-daemon/ChangeLog5
-rw-r--r--app-emacs/emacs-daemon/emacs-daemon-0.18.ebuild28
2 files changed, 25 insertions, 8 deletions
diff --git a/app-emacs/emacs-daemon/ChangeLog b/app-emacs/emacs-daemon/ChangeLog
index bed10541d7e5..532bdda227ac 100644
--- a/app-emacs/emacs-daemon/ChangeLog
+++ b/app-emacs/emacs-daemon/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-emacs/emacs-daemon
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emacs/emacs-daemon/ChangeLog,v 1.47 2011/07/17 20:25:45 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/emacs-daemon/ChangeLog,v 1.48 2011/08/24 20:39:51 ulm Exp $
+
+ 24 Aug 2011; Ulrich Mueller <ulm@gentoo.org> emacs-daemon-0.18.ebuild:
+ Warn about problems in GTK+, bug 292471.
17 Jul 2011; Ulrich Mueller <ulm@gentoo.org> -emacs-daemon-0.17.ebuild:
Remove old.
diff --git a/app-emacs/emacs-daemon/emacs-daemon-0.18.ebuild b/app-emacs/emacs-daemon/emacs-daemon-0.18.ebuild
index 7e4d46d73bb7..5193200dc29d 100644
--- a/app-emacs/emacs-daemon/emacs-daemon-0.18.ebuild
+++ b/app-emacs/emacs-daemon/emacs-daemon-0.18.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emacs/emacs-daemon/emacs-daemon-0.18.ebuild,v 1.7 2011/07/17 20:04:53 halcy0n Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/emacs-daemon/emacs-daemon-0.18.ebuild,v 1.8 2011/08/24 20:39:51 ulm Exp $
inherit elisp
@@ -19,12 +19,26 @@ RDEPEND="${DEPEND}"
SITEFILE="10${PN}-gentoo.el"
pkg_setup() {
- local has_daemon=$(${EMACS} ${EMACSFLAGS} \
- --eval "(princ (fboundp 'daemonp))")
- if [ "${has_daemon}" != t ]; then
- ewarn "Your current Emacs version does not support running as a daemon"
- ewarn "which is required for ${CATEGORY}/${PN}."
- ewarn "Use \"eselect emacs\" to select an Emacs version >= 23."
+ local has_daemon has_gtk line
+ has_daemon=$(${EMACS} ${EMACSFLAGS} --eval "(princ (fboundp 'daemonp))")
+ has_gtk=$(${EMACS} ${EMACSFLAGS} --eval "(princ (featurep 'gtk))")
+
+ if [[ ${has_daemon} != t ]]; then
+ while read line; do ewarn "${line}"; done <<-EOF
+ Your current Emacs version does not support running as a daemon
+ which is required for ${CATEGORY}/${PN}.
+ Use "eselect emacs" to select an Emacs version >= 23.
+ EOF
+ elif [[ ${has_gtk} == t ]]; then
+ echo
+ while read line; do ewarn "${line}"; done <<-EOF
+ Your current Emacs is compiled with GTK+. There is a long-standing
+ bug in GTK+ that prevents Emacs from recovering from X disconnects:
+ <http://bugzilla.gnome.org/show_bug.cgi?id=85715>
+ If you run Emacs as a daemon, then it is strongly recommended that
+ you compile it with the Lucid toolkit, i.e. with USE="Xaw3d -gtk".
+ EOF
+ echo
fi
}