From unknown Fri Aug 15 16:56:08 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5720: 24.0.50; make uninstall removes some files under lib-src if $(DESTDIR)${archlibdir} is not exist Resent-From: Tetsurou Okazaki Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Mar 2010 04:41:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-GNU-PR-Message: report 5720 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 5720@debbugs.gnu.org Cc: okazaki@be.to X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.126862804732520 (code B ref -1); Mon, 15 Mar 2010 04:41:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Mar 2010 04:40:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nr26g-0008ST-Ks for submit@debbugs.gnu.org; Mon, 15 Mar 2010 00:40:46 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nr26d-0008SO-VW for submit@debbugs.gnu.org; Mon, 15 Mar 2010 00:40:45 -0400 Received: from lists.gnu.org ([199.232.76.165]:55763) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nr26a-0005s5-E7 for submit@debbugs.gnu.org; Mon, 15 Mar 2010 00:40:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nr26Z-0001ie-TR for bug-gnu-emacs@gnu.org; Mon, 15 Mar 2010 00:40:39 -0400 Received: from [140.186.70.92] (port=43413 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nr26U-0001hk-Eq for bug-gnu-emacs@gnu.org; Mon, 15 Mar 2010 00:40:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nr26N-0003jD-0V for bug-gnu-emacs@gnu.org; Mon, 15 Mar 2010 00:40:34 -0400 Received: from post1.infonia.net ([211.13.218.225]:4091) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nr26M-0003iO-IN for bug-gnu-emacs@gnu.org; Mon, 15 Mar 2010 00:40:26 -0400 Received: from zeroset.be.to (actkyo003189.adsl.ppp.infoweb.ne.jp [61.124.230.189]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by post1.infonia.net (Postfix) with ESMTP id 5C43212A52; Mon, 15 Mar 2010 13:40:19 +0900 (JST) Date: Mon, 15 Mar 2010 13:40:12 +0900 Message-ID: <867hperydv.wl%%cc9230e4f6b11649d75e8c3813911dbe1dd37419@be.to> From: Tetsurou Okazaki User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/24.0 Mule/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by EMIKO 1.14.1 - "Choanoflagellata") Content-Type: multipart/mixed; boundary="Multipart_Mon_Mar_15_13:40:12_2010-1" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2 (3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.5 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.8 (----) --Multipart_Mon_Mar_15_13:40:12_2010-1 Content-Type: text/plain; charset=US-ASCII Running `make uninstall' deletes some script files under lib-src when a corresponding $(DESTDIR)${archlibdir} is not exist, since the uninstall rule does not check the status of `cd $(DESTDIR)${archlibdir}'. To reproduce this condition: extract or check out the emacs source tree at the machine Emacs is not installed or update the source tree until `emacs-version' is updated to the one not installed yet then % ./configure % make uninstall Please apply the attached patch to fix this. It also avoids `make uninstall' stops when `cd $(DESTDIR)${archlibdir}' fails. --Multipart_Mon_Mar_15_13:40:12_2010-1 Content-Type: application/octet-stream; type=patch Content-Disposition: attachment; filename="emacs-uninstall-fix.diff" Content-Transfer-Encoding: 7bit === modified file 'Makefile.in' *** Makefile.in 2010-01-13 08:35:10 +0000 --- Makefile.in 2010-03-01 11:33:10 +0000 *************** *** 667,673 **** esac ; \ fi ; \ done ! (cd $(DESTDIR)${archlibdir} && rm -f fns-*) -rm -rf $(DESTDIR)${libexecdir}/emacs/${version} (cd $(DESTDIR)${infodir} && \ for elt in $(INFO_FILES); do \ --- 667,675 ---- esac ; \ fi ; \ done ! if [ -d $(DESTDOR)${archlibdir} ]; then \ ! (cd $(DESTDIR)${archlibdir} && rm -f fns-*) \ ! fi -rm -rf $(DESTDIR)${libexecdir}/emacs/${version} (cd $(DESTDIR)${infodir} && \ for elt in $(INFO_FILES); do \ === modified file 'lib-src/Makefile.in' *** lib-src/Makefile.in 2010-01-13 08:35:10 +0000 --- lib-src/Makefile.in 2010-03-10 22:44:29 +0000 *************** *** 338,345 **** for file in ${INSTALLABLES} ${INSTALLABLE_SCRIPTS}; do \ rm -f $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ done) ! (cd $(DESTDIR)${archlibdir}; \ ! rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}) mostlyclean: -rm -f core *.o getopt.h getopt.h-t --- 338,347 ---- for file in ${INSTALLABLES} ${INSTALLABLE_SCRIPTS}; do \ rm -f $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ done) ! if [ -d $(DESTDIR)${archlibdir} ]; then \ ! (cd $(DESTDIR)${archlibdir} && \ ! rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}) \ ! fi mostlyclean: -rm -f core *.o getopt.h getopt.h-t --Multipart_Mon_Mar_15_13:40:12_2010-1-- From unknown Fri Aug 15 16:56:08 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: bug-gnu-emacs@gnu.org From: bug-gnu-emacs@gnu.org (GNU bug Tracking System) To: Tetsurou Okazaki Subject: bug#5720 closed by Glenn Morris (Re: bug#5720: 24.0.50; make uninstall removes some files under lib-src if $(DESTDIR)${archlibdir} is not exist) Message-ID: References: <7dsk7y8awr.fsf@fencepost.gnu.org> <867hperydv.wl%%cc9230e4f6b11649d75e8c3813911dbe1dd37419@be.to> X-Gnu-PR-Message: they-closed 5720 X-Gnu-PR-Package: emacs Reply-To: 5720@debbugs.gnu.org Date: Thu, 18 Mar 2010 05:20:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1268889603-19987-1" This is a multi-part message in MIME format... ------------=_1268889603-19987-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #5720: 24.0.50; make uninstall removes some files under lib-src if $(DESTDI= R)${archlibdir} is not exist It has been closed by Glenn Morris . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Glenn Morris by replying to this email. --=20 5720: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D5720 GNU Bug Tracking System Contact bug-gnu-emacs@gnu.org with problems ------------=_1268889603-19987-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 5720-done) by debbugs.gnu.org; 18 Mar 2010 05:19:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ns88Q-0005C9-BE for submit@debbugs.gnu.org; Thu, 18 Mar 2010 01:19:06 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ns88P-0005Bo-2g for 5720-done@debbugs.gnu.org; Thu, 18 Mar 2010 01:19:05 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ns88K-0000Gh-Dk; Thu, 18 Mar 2010 01:19:00 -0400 To: 5720-done@debbugs.gnu.org Subject: Re: bug#5720: 24.0.50; make uninstall removes some files under lib-src if $(DESTDIR)${archlibdir} is not exist References: <867hperydv.wl%%cc9230e4f6b11649d75e8c3813911dbe1dd37419@be.to> From: Glenn Morris X-Spook: CBNRC clones 64 Vauxhall Cross embassy Security Council X-Ran: 2cU.Z~fj(],kBkSs_NT[iI].<]qqw:x2flr~od"'(@lCm;7;1_p*E>oqPVZ X-Hue: yellow X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 18 Mar 2010 01:19:00 -0400 Message-ID: <7dsk7y8awr.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: 5720-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) Tetsurou Okazaki wrote: > Please apply the attached patch to fix this. Thank you, applied to the trunk. You have a few small changes in Emacs now, and should probably complete a copyright assignment if you expect to send any more. There is a simple form to fill out - let me know if I should send it to you. ------------=_1268889603-19987-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Mar 2010 04:40:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nr26g-0008ST-Ks for submit@debbugs.gnu.org; Mon, 15 Mar 2010 00:40:46 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nr26d-0008SO-VW for submit@debbugs.gnu.org; Mon, 15 Mar 2010 00:40:45 -0400 Received: from lists.gnu.org ([199.232.76.165]:55763) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nr26a-0005s5-E7 for submit@debbugs.gnu.org; Mon, 15 Mar 2010 00:40:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nr26Z-0001ie-TR for bug-gnu-emacs@gnu.org; Mon, 15 Mar 2010 00:40:39 -0400 Received: from [140.186.70.92] (port=43413 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nr26U-0001hk-Eq for bug-gnu-emacs@gnu.org; Mon, 15 Mar 2010 00:40:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nr26N-0003jD-0V for bug-gnu-emacs@gnu.org; Mon, 15 Mar 2010 00:40:34 -0400 Received: from post1.infonia.net ([211.13.218.225]:4091) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nr26M-0003iO-IN for bug-gnu-emacs@gnu.org; Mon, 15 Mar 2010 00:40:26 -0400 Received: from zeroset.be.to (actkyo003189.adsl.ppp.infoweb.ne.jp [61.124.230.189]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by post1.infonia.net (Postfix) with ESMTP id 5C43212A52; Mon, 15 Mar 2010 13:40:19 +0900 (JST) Date: Mon, 15 Mar 2010 13:40:12 +0900 Message-ID: <867hperydv.wl%%cc9230e4f6b11649d75e8c3813911dbe1dd37419@be.to> From: Tetsurou Okazaki To: bug-gnu-emacs@gnu.org Subject: 24.0.50; make uninstall removes some files under lib-src if $(DESTDIR)${archlibdir} is not exist User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/24.0 Mule/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by EMIKO 1.14.1 - "Choanoflagellata") Content-Type: multipart/mixed; boundary="Multipart_Mon_Mar_15_13:40:12_2010-1" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2 (3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: submit Cc: okazaki@be.to X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.8 (----) --Multipart_Mon_Mar_15_13:40:12_2010-1 Content-Type: text/plain; charset=US-ASCII Running `make uninstall' deletes some script files under lib-src when a corresponding $(DESTDIR)${archlibdir} is not exist, since the uninstall rule does not check the status of `cd $(DESTDIR)${archlibdir}'. To reproduce this condition: extract or check out the emacs source tree at the machine Emacs is not installed or update the source tree until `emacs-version' is updated to the one not installed yet then % ./configure % make uninstall Please apply the attached patch to fix this. It also avoids `make uninstall' stops when `cd $(DESTDIR)${archlibdir}' fails. --Multipart_Mon_Mar_15_13:40:12_2010-1 Content-Type: application/octet-stream; type=patch Content-Disposition: attachment; filename="emacs-uninstall-fix.diff" Content-Transfer-Encoding: 7bit === modified file 'Makefile.in' *** Makefile.in 2010-01-13 08:35:10 +0000 --- Makefile.in 2010-03-01 11:33:10 +0000 *************** *** 667,673 **** esac ; \ fi ; \ done ! (cd $(DESTDIR)${archlibdir} && rm -f fns-*) -rm -rf $(DESTDIR)${libexecdir}/emacs/${version} (cd $(DESTDIR)${infodir} && \ for elt in $(INFO_FILES); do \ --- 667,675 ---- esac ; \ fi ; \ done ! if [ -d $(DESTDOR)${archlibdir} ]; then \ ! (cd $(DESTDIR)${archlibdir} && rm -f fns-*) \ ! fi -rm -rf $(DESTDIR)${libexecdir}/emacs/${version} (cd $(DESTDIR)${infodir} && \ for elt in $(INFO_FILES); do \ === modified file 'lib-src/Makefile.in' *** lib-src/Makefile.in 2010-01-13 08:35:10 +0000 --- lib-src/Makefile.in 2010-03-10 22:44:29 +0000 *************** *** 338,345 **** for file in ${INSTALLABLES} ${INSTALLABLE_SCRIPTS}; do \ rm -f $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ done) ! (cd $(DESTDIR)${archlibdir}; \ ! rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}) mostlyclean: -rm -f core *.o getopt.h getopt.h-t --- 338,347 ---- for file in ${INSTALLABLES} ${INSTALLABLE_SCRIPTS}; do \ rm -f $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ done) ! if [ -d $(DESTDIR)${archlibdir} ]; then \ ! (cd $(DESTDIR)${archlibdir} && \ ! rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}) \ ! fi mostlyclean: -rm -f core *.o getopt.h getopt.h-t --Multipart_Mon_Mar_15_13:40:12_2010-1-- ------------=_1268889603-19987-1--