* bug#5720: 24.0.50; make uninstall removes some files under lib-src if $(DESTDIR)${archlibdir} is not exist
@ 2010-03-15 4:40 Tetsurou Okazaki
2010-03-18 5:19 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: Tetsurou Okazaki @ 2010-03-15 4:40 UTC (permalink / raw)
To: 5720; +Cc: okazaki
[-- Attachment #1: Type: text/plain, Size: 587 bytes --]
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.
[-- Attachment #2: emacs-uninstall-fix.diff --]
[-- Type: application/octet-stream, Size: 1510 bytes --]
=== 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#5720: 24.0.50; make uninstall removes some files under lib-src if $(DESTDIR)${archlibdir} is not exist
2010-03-15 4:40 bug#5720: 24.0.50; make uninstall removes some files under lib-src if $(DESTDIR)${archlibdir} is not exist Tetsurou Okazaki
@ 2010-03-18 5:19 ` Glenn Morris
0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2010-03-18 5:19 UTC (permalink / raw)
To: 5720-done
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-18 5:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-15 4:40 bug#5720: 24.0.50; make uninstall removes some files under lib-src if $(DESTDIR)${archlibdir} is not exist Tetsurou Okazaki
2010-03-18 5:19 ` Glenn Morris
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).