diff options
author | Ulrich Müller <ulm@gentoo.org> | 2009-03-29 09:36:44 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2009-03-29 09:36:44 +0000 |
commit | 9921dda98837ff979b7233a3f6a798e009070796 (patch) | |
tree | a684902946584720b345f6fdc14af922882073e6 /app-editors/emacs/emacs-21.4-r18.ebuild | |
parent | Disable docs generation. (diff) | |
download | gentoo-2-9921dda98837ff979b7233a3f6a798e009070796.tar.gz gentoo-2-9921dda98837ff979b7233a3f6a798e009070796.tar.bz2 gentoo-2-9921dda98837ff979b7233a3f6a798e009070796.zip |
Warn about possible problems if the package manager does not preserve file modification times, bugs 181021 and 264130.
(Portage version: 2.2_rc27/cvs/Linux i686)
Diffstat (limited to 'app-editors/emacs/emacs-21.4-r18.ebuild')
-rw-r--r-- | app-editors/emacs/emacs-21.4-r18.ebuild | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/app-editors/emacs/emacs-21.4-r18.ebuild b/app-editors/emacs/emacs-21.4-r18.ebuild index abb5f4b51517..11e1dbdfe176 100644 --- a/app-editors/emacs/emacs-21.4-r18.ebuild +++ b/app-editors/emacs/emacs-21.4-r18.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/emacs-21.4-r18.ebuild,v 1.1 2009/03/12 10:19:38 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/emacs-21.4-r18.ebuild,v 1.2 2009/03/29 09:36:44 ulm Exp $ EAPI=2 WANT_AUTOCONF="2.1" @@ -145,6 +145,9 @@ src_install() { keepdir /usr/share/emacs/${PV}/leim dodoc BUGS ChangeLog README + + stamp_simple_el=$(stat --format=%Y \ + "${D}/usr/share/emacs/${FULL_VERSION}/lisp/simple.el") } emacs-infodir-rebuild() { @@ -178,6 +181,16 @@ pkg_postinst() { elog "You disabled sendmail support for Emacs. If you later install" elog "a MTA then you will need to recompile Emacs. See Bug #11104." fi + + local stamp=$(stat --format=%Y \ + "${ROOT}/usr/share/emacs/${FULL_VERSION}/lisp/simple.el") + if [ "${stamp}" != "${stamp_simple_el}" ]; then + echo + ewarn "Your package manager does not preserve file modification times" + ewarn "when merging. This is a known issue with some package managers" + ewarn "and can trigger spurious warnings in Emacs at run time. These" + ewarn "warnings can be safely ignored." + fi } pkg_postrm() { |