From 5de8096fcb2801c50e9c279ae41e046dcd70be44 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Wed, 2 Feb 2011 17:27:00 +0000 Subject: Fix an issue with duplicate items in GNU Info directory. --- emacs/22.3/09_all_info-dir.patch | 48 ++++++++++++++++++++++++++++++++++++++ emacs/23.2/05_all_info-dir.patch | 50 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 emacs/22.3/09_all_info-dir.patch create mode 100644 emacs/23.2/05_all_info-dir.patch (limited to 'emacs') diff --git a/emacs/22.3/09_all_info-dir.patch b/emacs/22.3/09_all_info-dir.patch new file mode 100644 index 0000000..992c105 --- /dev/null +++ b/emacs/22.3/09_all_info-dir.patch @@ -0,0 +1,48 @@ +http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7942 +Backported to Emacs 22. + +--- emacs-22.3-orig/Makefile.in ++++ emacs-22.3/Makefile.in +@@ -504,29 +504,24 @@ + 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 \ + 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 \ +- (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 \ ++ (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} $(DESTDIR)${datadir}/emacs/site-lisp ${COPYDESTS} $(DESTDIR)${infodir} + thisdir=`/bin/pwd`; \ diff --git a/emacs/23.2/05_all_info-dir.patch b/emacs/23.2/05_all_info-dir.patch new file mode 100644 index 0000000..7e721e9 --- /dev/null +++ b/emacs/23.2/05_all_info-dir.patch @@ -0,0 +1,50 @@ +http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7942 + +--- 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`; \ -- cgit v1.2.3-65-gdbad