* bug#36907: 27.0.50; make versionclean leaves stale .pdmp files around
@ 2019-08-03 14:35 Sven Joachim
2019-08-03 15:30 ` Sven Joachim
2019-08-03 21:16 ` Paul Eggert
0 siblings, 2 replies; 3+ messages in thread
From: Sven Joachim @ 2019-08-03 14:35 UTC (permalink / raw)
To: 36907; +Cc: Sven Joachim
To get rid of old versions, I run "make -C src versionclean all". The
result on the master branch is somewhat disappointing:
,----
| $ LC_ALL=C ls -l src/emacs-27*
| -rw-r--r-- 1 sven src 10353360 Aug 3 13:55 src/emacs-27.0.50.1.pdmp
| -rw-r--r-- 1 sven src 10355384 Aug 3 15:49 src/emacs-27.0.50.2.pdmp
| -rwxr-xr-x 2 sven src 33630968 Aug 3 16:18 src/emacs-27.0.50.3
| -rw-r--r-- 2 sven src 10355376 Aug 3 16:18 src/emacs-27.0.50.3.pdmp
`----
Two stale files left behind, and the version increased once more instead
of being reset to .1.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#36907: 27.0.50; make versionclean leaves stale .pdmp files around
2019-08-03 14:35 bug#36907: 27.0.50; make versionclean leaves stale .pdmp files around Sven Joachim
@ 2019-08-03 15:30 ` Sven Joachim
2019-08-03 21:16 ` Paul Eggert
1 sibling, 0 replies; 3+ messages in thread
From: Sven Joachim @ 2019-08-03 15:30 UTC (permalink / raw)
To: 36907
[-- Attachment #1: Type: text/plain, Size: 866 bytes --]
tags 36907 + patch
thanks
On 2019-08-03 16:35 +0200, Sven Joachim wrote:
> To get rid of old versions, I run "make -C src versionclean all". The
> result on the master branch is somewhat disappointing:
>
> ,----
> | $ LC_ALL=C ls -l src/emacs-27*
> | -rw-r--r-- 1 sven src 10353360 Aug 3 13:55 src/emacs-27.0.50.1.pdmp
> | -rw-r--r-- 1 sven src 10355384 Aug 3 15:49 src/emacs-27.0.50.2.pdmp
> | -rwxr-xr-x 2 sven src 33630968 Aug 3 16:18 src/emacs-27.0.50.3
> | -rw-r--r-- 2 sven src 10355376 Aug 3 16:18 src/emacs-27.0.50.3.pdmp
> `----
>
> Two stale files left behind, and the version increased once more instead
> of being reset to .1.
Attached patch takes care of that. Does anybody know why 'rm' is
allowed to fail in the versionclean and extraclean targets? I don't see
a good reason, other than "it has been that way forever".
Cheers,
Sven
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-src-Makefile.in-versionclean-Delete-versioned-pdmp-f.patch --]
[-- Type: text/x-diff, Size: 783 bytes --]
From 94e72ffb0816ce6d49e72e5e59a517b45727f4e1 Mon Sep 17 00:00:00 2001
From: Sven Joachim <svenjoac@gmx.de>
Date: Sat, 3 Aug 2019 16:31:40 +0200
Subject: [PATCH] src/Makefile.in (versionclean): Delete versioned pdmp files
(Bug#36907)
---
src/Makefile.in | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/Makefile.in b/src/Makefile.in
index fd05a45df5..eb9708e66f 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -721,7 +721,8 @@ distclean:
maintainer-clean: distclean
rm -f TAGS
versionclean:
- -rm -f emacs$(EXEEXT) emacs-*.*.*[0-9]$(EXEEXT) ../etc/DOC*
+ -rm -f emacs$(EXEEXT) emacs-*.*.*[0-9]$(EXEEXT) emacs-*.*.*[0-9].pdmp
+ -rm -f ../etc/DOC*
extraclean: distclean
-rm -f ./*~ \#* TAGS config.in
--
2.23.0.rc1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* bug#36907: 27.0.50; make versionclean leaves stale .pdmp files around
2019-08-03 14:35 bug#36907: 27.0.50; make versionclean leaves stale .pdmp files around Sven Joachim
2019-08-03 15:30 ` Sven Joachim
@ 2019-08-03 21:16 ` Paul Eggert
1 sibling, 0 replies; 3+ messages in thread
From: Paul Eggert @ 2019-08-03 21:16 UTC (permalink / raw)
To: Sven Joachim; +Cc: 36907-done
[-- Attachment #1: Type: text/plain, Size: 94 bytes --]
Thanks for reporting that. I installed the attached patch, which is slightly
more ambitious.
[-- Attachment #2: 0001-Remove-stale-.pdmp-files-with-make-clean.txt --]
[-- Type: text/plain, Size: 2347 bytes --]
From c3dd65dc4710c6ff49ef0fa0825476d11a1f7085 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Sat, 3 Aug 2019 14:12:29 -0700
Subject: [PATCH] =?UTF-8?q?Remove=20stale=20.pdmp=20files=20with=20?=
=?UTF-8?q?=E2=80=98make=20clean=E2=80=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Problem reported by Sven Joachim (Bug#36907).
* admin/make-emacs: Simplify, now that clean does versionclean.
* src/Makefile.in ($(etc)/DOC, versionclean, extraclean):
Don’t ignore rm -f failures.
(versionclean): Also remove emacs-*.*.*[0-9].pdmp and ../etc/DOC*.
(clean): Depend on versionclean and simplify.
---
admin/make-emacs | 2 +-
src/Makefile.in | 14 +++++++-------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/admin/make-emacs b/admin/make-emacs
index b7cca06e1c..e1be944e4c 100755
--- a/admin/make-emacs
+++ b/admin/make-emacs
@@ -109,7 +109,7 @@
shift @ARGV;
}
-system ("$make clean versionclean") if $all;
+system ("$make clean") if $all;
if ($wall)
{
diff --git a/src/Makefile.in b/src/Makefile.in
index fd05a45df5..76aa6a1ec5 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -598,7 +598,7 @@ $(pdmp):
##
$(etc)/DOC: lisp.mk $(libsrc)/make-docfile$(EXEEXT) $(obj) $(lisp)
$(AM_V_GEN)$(MKDIR_P) $(etc)
- -$(AM_V_at)rm -f $(etc)/DOC
+ $(AM_V_at)rm -f $(etc)/DOC
$(AM_V_at)$(libsrc)/make-docfile -d $(srcdir) \
$(SOME_MACHINE_OBJECTS) $(obj) > $(etc)/DOC
$(AM_V_at)$(libsrc)/make-docfile -a $(etc)/DOC -d $(lispsource) \
@@ -699,9 +699,11 @@ mostlyclean:
rm -f buildobj.h
rm -f globals.h gl-stamp
rm -f ./*.res ./*.tmp
-clean: mostlyclean
- rm -f emacs-*.*.*[0-9]$(EXEEXT) emacs-*.*.*[0-9].pdmp
- rm -f emacs$(EXEEXT) $(DEPDIR)/*
+versionclean:
+ rm -f emacs$(EXEEXT) emacs-*.*.*[0-9]$(EXEEXT) emacs-*.*.*[0-9].pdmp
+ rm -f ../etc/DOC*
+clean: mostlyclean versionclean
+ rm -f $(DEPDIR)/*
## bootstrap-clean is used to clean up just before a bootstrap.
## It should remove all files generated during a compilation/bootstrap,
@@ -720,10 +722,8 @@ distclean:
maintainer-clean: distclean
rm -f TAGS
-versionclean:
- -rm -f emacs$(EXEEXT) emacs-*.*.*[0-9]$(EXEEXT) ../etc/DOC*
extraclean: distclean
- -rm -f ./*~ \#* TAGS config.in
+ rm -f ./*~ \#* TAGS config.in
ETAGS = ../lib-src/etags${EXEEXT}
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-08-03 21:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-03 14:35 bug#36907: 27.0.50; make versionclean leaves stale .pdmp files around Sven Joachim
2019-08-03 15:30 ` Sven Joachim
2019-08-03 21:16 ` Paul Eggert
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).