Subject: bug#5720 closed by Glenn Morris <[email-masked]> (Re: bug#5720: 24.0.50; make uninstall removes some files under lib-src if $(DESTDIR)${archlibdir} is not exist)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 18 Mar 2010 05:20:03 +0000

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 $(DESTDIR)${archlibdir} is not exist

It has been closed by Glenn Morris <[email-masked]>.

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 <[email-masked]> by
replying to this email.

-- 
5720: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5720
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#5720: 24.0.50; make uninstall removes some files under lib-src if $(DESTDIR)${archlibdir} is not exist
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Thu, 18 Mar 2010 01:19:00 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

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.

Subject: 24.0.50; make uninstall removes some files under lib-src if $(DESTDIR)${archlibdir} is not exist
From: Tetsurou Okazaki <[email-masked]>
To: [email-masked]
Cc: [email-masked]
Date: Mon, 15 Mar 2010 13:40:12 +0900
List-Id: <debbugs-submit.debbugs.gnu.org>

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.