From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.bugs Subject: bug#7942: 23.2; Duplicate entries in Info dir file Date: Sun, 30 Jan 2011 15:37:19 +0100 Message-ID: <19781.30623.889819.235175@a1i15.kph.uni-mainz.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----cutting-here-may-damage-your-screen-surface----81791302----" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1296398477 7023 80.91.229.12 (30 Jan 2011 14:41:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 30 Jan 2011 14:41:17 +0000 (UTC) Cc: emacs@gentoo.org To: 7942@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 30 15:41:13 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PjYRq-0006Dk-6F for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Jan 2011 15:41:12 +0100 Original-Received: from localhost ([127.0.0.1]:35666 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PjYRh-0006XR-Gk for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Jan 2011 09:40:05 -0500 Original-Received: from [140.186.70.92] (port=56834 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PjYRa-0006X6-1g for bug-gnu-emacs@gnu.org; Sun, 30 Jan 2011 09:39:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PjYRY-0001CO-EJ for bug-gnu-emacs@gnu.org; Sun, 30 Jan 2011 09:39:57 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PjYRY-0001CI-CY for bug-gnu-emacs@gnu.org; Sun, 30 Jan 2011 09:39:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PjYIw-0005cP-0t; Sun, 30 Jan 2011 09:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ulrich Mueller Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Jan 2011 14:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7942 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.129639780921539 (code B ref -1); Sun, 30 Jan 2011 14:31:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Jan 2011 14:30:09 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PjYI4-0005bM-J6 for submit@debbugs.gnu.org; Sun, 30 Jan 2011 09:30:09 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PjYHz-0005aZ-9p for submit@debbugs.gnu.org; Sun, 30 Jan 2011 09:30:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PjYPz-0000oZ-GW for submit@debbugs.gnu.org; Sun, 30 Jan 2011 09:38:21 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:47574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PjYPj-0000kc-Tx for submit@debbugs.gnu.org; Sun, 30 Jan 2011 09:38:19 -0500 Original-Received: from [140.186.70.92] (port=42350 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PjYPY-0005t5-Qc for bug-gnu-emacs@gnu.org; Sun, 30 Jan 2011 09:38:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PjYPK-0000Yy-Rg for bug-gnu-emacs@gnu.org; Sun, 30 Jan 2011 09:37:40 -0500 Original-Received: from a1iwww1.kph.uni-mainz.de ([134.93.134.1]:36879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PjYPK-0000Vc-Ep for bug-gnu-emacs@gnu.org; Sun, 30 Jan 2011 09:37:38 -0500 Original-Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1iwww1.kph.uni-mainz.de (8.14.0/8.13.4) with ESMTP id p0UEbKP3006583; Sun, 30 Jan 2011 15:37:20 +0100 Original-Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.4/8.14.2) with ESMTP id p0UEbKwo007983; Sun, 30 Jan 2011 15:37:20 +0100 Original-Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.4/8.14.4/Submit) id p0UEbJYd007982; Sun, 30 Jan 2011 15:37:19 +0100 X-Mailer: VM 8.1.1 under 23.2.1 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 134.93.134.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 30 Jan 2011 09:31:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43763 Archived-At: ------cutting-here-may-damage-your-screen-surface----81791302---- Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit Tags: patch If Emacs is the first or only package that installs its Info files into an otherwise empty directory (e.g., in Gentoo Emacs is configured with --infodir=/usr/share/info/emacs-23 to allow for multiple Emacs versions), then all entries in the resulting dir file will occur twice. The bad Info dir file installed by Emacs 23.2 is attached. The cause appears to be that the Makefile first copies the pre-made dir file, but then also calls install-info for each Info file. Attached patch fixes the problem for me. I suggest that this should be applied to the emacs-23 branch. 2011-01-30 Ulrich Mueller * Makefile.in (install-arch-indep): Don't run install-info if the pre-made Info dir file is being installed. ------cutting-here-may-damage-your-screen-surface----81791302---- Content-Type: text/plain; name="dir" Content-Disposition: inline; filename="dir" Content-Transfer-Encoding: 7bit This is the file .../info/dir, which contains the topmost node of the Info hierarchy, called (dir)Top. The first time you invoke Info you start off looking at this node.  File: dir, Node: Top This is the top of the INFO tree The Info Directory ****************** The Info Directory is the top-level menu of major Info topics. Type "d" in Info to return to the Info Directory. Type "q" to exit Info. Type "?" for a list of Info commands, or "h" to visit an Info tutorial. Type "m" to choose a menu item--for instance, "mEmacs" visits the Emacs manual. In Emacs Info, you can click mouse button 2 on a menu item or cross reference to follow it to its target. Each menu line that starts with a * is a topic you can select with "m". Every third topic has a red * to help pick the right number to type. * Menu: * Info: (info). How to use the documentation browsing system. Emacs * Ada mode: (ada-mode). Emacs mode for editing and compiling Ada code. * Auth-source: (auth). The Emacs auth-source library. * Autotype: (autotype). Convenient features for text that you enter frequently in Emacs. * CC Mode: (ccmode). Emacs mode for editing C, C++, Objective-C, Java, Pike, AWK, and CORBA IDL code. * CL: (cl). Partial Common Lisp support for Emacs Lisp. * Calc: (calc). Advanced desk calculator and mathematical tool. * D-Bus: (dbus). Using D-Bus in Emacs. * Dired-X: (dired-x). Dired Extra Features. * EDT: (edt). An Emacs emulation of the EDT editor. * ERC: (erc). Powerful, modular, and extensible IRC client for Emacs. * EUDC: (eudc). An Emacs client for directory servers (LDAP, PH). * EasyPG Assistant: (epa). An Emacs user interface to GNU Privacy Guard. * Ebrowse: (ebrowse). A C++ class browser for Emacs. * Ediff: (ediff). A visual interface for comparing and merging programs. * Elisp: (elisp). The Emacs Lisp Reference Manual. * Emacs: (emacs). The extensible self-documenting text editor. * Emacs FAQ: (efaq). Frequently Asked Questions about Emacs. * Emacs Lisp Intro: (eintr). A simple introduction to Emacs Lisp programming. * Emacs MIME: (emacs-mime). Emacs MIME de/composition library. * Eshell: (eshell). A command shell implemented in Emacs Lisp. * Flymake: (flymake). A universal on-the-fly syntax checker. * Forms: (forms). Emacs package for editing data bases by filling in forms. * Gnus: (gnus). The newsreader Gnus. * IDLWAVE: (idlwave). Major mode and shell for IDL files. * MH-E: (mh-e). Emacs interface to the MH mail system. * Mairix: (mairix-el). Emacs interface to the Mairix mail indexer. * Message: (message). Mail and news composition mode that goes with Gnus. * Newsticker: (newsticker). A Newsticker for Emacs. * Org Mode: (org). Outline-based notes management and organizer * PCL-CVS: (pcl-cvs). Emacs front-end to CVS. * PGG: (pgg). Emacs interface to various PGP implementations. * Rcirc: (rcirc). Internet Relay Chat (IRC) client. * RefTeX: (reftex). Emacs support for LaTeX cross-references and citations. * Remember: (remember). Simple information manager for Emacs * SASL: (sasl). The Emacs SASL library. * SC: (sc). Supercite lets you cite parts of messages you're replying to, in flexible ways. * SES: (ses). Simple Emacs Spreadsheet * SMTP: (smtpmail). Emacs library for sending mail via SMTP. * Semantic: (semantic). Source code parser library and utilities. * Sieve: (sieve). Managing Sieve scripts in Emacs. * Speedbar: (speedbar). File/Tag summarizing utility. * VIP: (vip). An older VI-emulation for Emacs. * VIPER: (viper). The newest Emacs VI-emulation mode. (also, A VI Plan for Emacs Rescue or the VI PERil.) * Widget: (widget). The "widget" package used by the Emacs Customization facility. * WoMan: (woman). Browse UN*X Manual Pages "W.O. (without) Man". * ede: (ede). Project management for Emacs * eieio: (eieio). Objects for Emacs * nXML Mode: (nxml-mode). XML editing mode with RELAX NG support. GNU Emacs * TRAMP: (tramp). Transparent Remote Access, Multiple Protocol GNU Emacs remote file access via rsh and rcp. GNU Emacs Lisp * Emacs Lisp Intro: (eintr). A simple introduction to Emacs Lisp programming. * Elisp: (elisp). The Emacs Lisp Reference Manual. Emacs editing modes * Ada mode: (ada-mode). Emacs mode for editing and compiling Ada code. * CC Mode: (ccmode). Emacs mode for editing C, C++, Objective-C, Java, Pike, AWK, and CORBA IDL code. * IDLWAVE: (idlwave). Major mode and shell for IDL files. * nXML Mode: (nxml-mode). XML editing mode with RELAX NG support. * Org Mode: (org). Outline-based notes management and organizer Emacs network features * EUDC: (eudc). An Emacs client for directory servers (LDAP, PH). * Gnus: (gnus). The newsreader Gnus. * Mairix: (mairix-el). Emacs interface to the Mairix mail indexer. * MH-E: (mh-e). Emacs interface to the MH mail system. * Message: (message). Mail and news composition mode that goes with Gnus. * Newsticker: (newsticker). A Newsticker for Emacs. * PGG: (pgg). Emacs interface to various PGP implementations. * ERC: (erc). Powerful, modular, and extensible IRC client for Emacs. * Rcirc: (rcirc). Internet Relay Chat (IRC) client. * SASL: (sasl). The Emacs SASL library. * SC: (sc). Supercite lets you cite parts of messages you're replying to, in flexible ways. * Sieve: (sieve). Managing Sieve scripts in Emacs. * TRAMP: (tramp). Transparent Remote Access, Multiple Protocol GNU Emacs remote file access via rsh and rcp. Emacs misc features * Autotype: (autotype). Convenient features for text that you enter frequently in Emacs. * Calc: (calc). Advanced desk calculator and mathematical tool. * Dired-X: (dired-x). Dired Extra Features. * EasyPG Assistant: (epa). An Emacs user interface to GNU Privacy Guard. * Ebrowse: (ebrowse). A C++ class browser for Emacs. * EDE: (ede). The Emacs Development Environment. * Ediff: (ediff). A visual interface for comparing and merging programs. * EDT: (edt). An Emacs emulation of the EDT editor. * EIEIO: (eieio). An object system for Emacs Lisp. * Eshell: (eshell). A command shell implemented in Emacs Lisp. * Flymake: (flymake). A universal on-the-fly syntax checker. * Forms: (forms). Emacs package for editing data bases by filling in forms. * PCL-CVS: (pcl-cvs). Emacs front-end to CVS. * RefTeX: (reftex). Emacs support for LaTeX cross-references and citations. * Remember: (remember). Simple information manager for Emacs. * Semantic: (semantic). Source code parsing utilities for Emacs. * SES: (ses). Simple Emacs Spreadsheet * Speedbar: (speedbar). File/Tag summarizing utility. * VIP: (vip). An older VI-emulation for Emacs. * VIPER: (viper). The newest Emacs VI-emulation mode. (also, A VI Plan for Emacs Rescue or the VI PERil.) * WoMan: (woman). Browse UN*X Manual Pages "W.O. (without) Man". Emacs lisp libraries * Auth-source: (auth). A single configuration for multiple applications. * CL: (cl). Partial Common Lisp support for Emacs Lisp. * D-Bus: (dbus). Using D-Bus in Emacs. * Emacs MIME: (emacs-mime). Emacs MIME de/composition library. * URL: (url). URL loading package. * Widget: (widget). The "widget" package used by the Emacs Customization facility. * SMTP: (smtpmail). Emacs library for sending mail via SMTP. Texinfo documentation system * Info: (info). How to use the documentation browsing system. World Wide WebINFO-DIR-SECTION Emacs * URL: (url). URL loading package. ------cutting-here-may-damage-your-screen-surface----81791302---- Content-Type: text/plain; name="emacs-23.2-info-dir.patch" Content-Disposition: inline; filename="emacs-23.2-info-dir.patch" Content-Transfer-Encoding: 7bit --- emacs-23.2-orig/Makefile.in +++ emacs-23.2/Makefile.in @@ -552,31 +552,26 @@ thisdir=`/bin/pwd`; \ if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd $(DESTDIR)${infodir} && /bin/pwd)` ]; \ then \ - (cd $(DESTDIR)${infodir}; \ - if [ -f dir ]; then true; \ - else \ - (cd $${thisdir}; \ - ${INSTALL_DATA} ${srcdir}/info/dir $(DESTDIR)${infodir}/dir; \ - chmod a+r $(DESTDIR)${infodir}/dir); \ - fi; \ - cd ${srcdir}/info ; \ + (cd ${srcdir}/info ; \ for elt in $(INFO_FILES); do \ test "$(MAKEINFO)" = "off" && ! test -e $$elt && continue; \ for f in `ls $$elt $$elt-[1-9] $$elt-[1-9][0-9] 2>/dev/null`; do \ ${INSTALL_DATA} $$f $(DESTDIR)${infodir}/$$f; \ chmod a+r $(DESTDIR)${infodir}/$$f; \ done; \ - done); \ - else true; fi - -unset CDPATH; \ - thisdir=`/bin/pwd`; \ - if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd $(DESTDIR)${infodir} && /bin/pwd)` ]; \ - then \ - for elt in $(INFO_FILES); do \ - test "$(MAKEINFO)" = "off" && ! test -e $$elt && continue; \ - (cd $${thisdir}; \ - ${INSTALL_INFO} --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \ - done; \ + done; \ + cd $(DESTDIR)${infodir}; \ + if [ -f dir ]; then \ + for elt in $(INFO_FILES); do \ + test "$(MAKEINFO)" = "off" && ! test -e $$elt && continue; \ + (cd $${thisdir}; \ + ${INSTALL_INFO} --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \ + done; \ + else \ + (cd $${thisdir}; \ + ${INSTALL_DATA} ${srcdir}/info/dir $(DESTDIR)${infodir}/dir; \ + chmod a+r $(DESTDIR)${infodir}/dir); \ + fi); \ else true; fi -chmod -R a+r $(DESTDIR)${datadir}/emacs/${version} ${COPYDESTS} thisdir=`/bin/pwd`; \ ------cutting-here-may-damage-your-screen-surface----81791302------