GNU bug report logs - #23203
25.0.91; some loaddefs files have auto-save remnants after building (and install doesn't ignore them)

Previous Next

Package: emacs;

Reported by: Achim Gratz <Stromeko <at> nexgo.de>

Date: Sun, 3 Apr 2016 07:09:01 UTC

Severity: wishlist

Found in version 25.0.91

Fixed in version 26.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23203 in the body.
You can then email your comments to 23203 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Sun, 03 Apr 2016 07:09:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Achim Gratz <Stromeko <at> nexgo.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 03 Apr 2016 07:09:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Achim Gratz <Stromeko <at> nexgo.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Sun, 03 Apr 2016 09:08:34 +0200
After a bootstrap build of the emacs-25 branch, there are some spurious
auto-save files lying around:

emacs/build-25> find ../lisp -name \*~ 
../lisp/calc/calc-loaddefs.el~
../lisp/loaddefs.el~
../lisp/emacs-lisp/cl-loaddefs.el~
../lisp/eshell/esh-groups.el~
../lisp/net/tramp-loaddefs.el~
../lisp/cedet/ede/loaddefs.el~
../lisp/cedet/semantic/loaddefs.el~
../lisp/cedet/srecode/loaddefs.el~
../lisp/org/org-loaddefs.el~

Moreover, these will be copied into the installation.

Please either prevent the creation of said auto-save files ,remove them
after the build or at least exclude them from getting installed.  Thank
you.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Sun, 03 Apr 2016 08:27:01 GMT) Full text and rfc822 format available.

Message #8 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Achim Gratz <Stromeko <at> nexgo.de>
Cc: 23203 <at> debbugs.gnu.org
Subject: Re: bug#23203: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Sun, 03 Apr 2016 10:26:08 +0200
Achim Gratz <Stromeko <at> nexgo.de> writes:

> After a bootstrap build of the emacs-25 branch, there are some spurious
> auto-save files lying around:

They are not auto-save files, but backup files.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Sun, 03 Apr 2016 08:29:01 GMT) Full text and rfc822 format available.

Message #11 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Achim Gratz <Stromeko <at> nexgo.de>
Cc: 23203 <at> debbugs.gnu.org
Subject: Re: bug#23203: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Sun, 03 Apr 2016 10:28:39 +0200
Achim Gratz <Stromeko <at> nexgo.de> writes:

> Moreover, these will be copied into the installation.

No, they aren't, see line 598 of Makefile.in:

	      rm -f $${subdir}/*~ ; \

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Sun, 03 Apr 2016 08:49:02 GMT) Full text and rfc822 format available.

Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Achim Gratz <Stromeko <at> nexgo.de>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#23203: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Sun, 03 Apr 2016 10:48:29 +0200
Andreas Schwab writes:
> Achim Gratz writes:
>> Moreover, these will be copied into the installation.
> No, they aren't, see line 598 of Makefile.in:
>
> 	      rm -f $${subdir}/*~ ; \

That is where they are getting removed after already having been
installed.  They shouldn't get created or installed in the first place,
as there is no point of having a backup for an auto-generated file.

On another tangent, is it really necessary to invoke another rm for each
file pattern to delete?


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Sun, 03 Apr 2016 10:47:02 GMT) Full text and rfc822 format available.

Message #17 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Achim Gratz <Stromeko <at> nexgo.de>
Cc: 23203 <at> debbugs.gnu.org
Subject: Re: bug#23203: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Sun, 03 Apr 2016 12:46:48 +0200
Achim Gratz <Stromeko <at> nexgo.de> writes:

> as there is no point of having a backup for an auto-generated file.

I disagree.  Even for generated files you may want to check what has
changed when last regenerated.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Sun, 03 Apr 2016 11:48:01 GMT) Full text and rfc822 format available.

Message #20 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Achim Gratz <Stromeko <at> nexgo.de>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#23203: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Sun, 03 Apr 2016 13:47:36 +0200
Andreas Schwab writes:
> Achim Gratz writes:
>> as there is no point of having a backup for an auto-generated file.
>
> I disagree.  Even for generated files you may want to check what has
> changed when last regenerated.

There was no previous version, this being a bootstrap build.  And if I
want to check differences between builds, I can just use different build
directories.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Sun, 03 Apr 2016 13:59:01 GMT) Full text and rfc822 format available.

Message #23 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: "Phillip Lord" <phillip.lord <at> russet.org.uk>
To: "Achim Gratz" <Stromeko <at> nexgo.de>
Cc: 23203 <at> debbugs.gnu.org
Subject: Re: bug#23203: 25.0.91; some loaddefs files have auto-save remnants
 after building (and install doesn't ignore them)
Date: Sun, 3 Apr 2016 14:58:44 +0100
On Sun, April 3, 2016 12:47 pm, Achim Gratz wrote:
> Andreas Schwab writes:
>
>> Achim Gratz writes:
>>
>>> as there is no point of having a backup for an auto-generated file.
>>
>> I disagree.  Even for generated files you may want to check what has
>> changed when last regenerated.
>
> There was no previous version, this being a bootstrap build.  And if I
> want to check differences between builds, I can just use different build
> directories.

I think this is a bug also, and one which will get worse as the number of
autoload files increases on master.

It's easy to fix -- we just need to disable backup files in the batch
autoload generator.

It seems to me that this issue is a little wider than autoload files,
though -- some files in cedet seem to show the same behaviour.

Phil





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Sun, 03 Apr 2016 14:37:02 GMT) Full text and rfc822 format available.

Message #26 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Achim Gratz <Stromeko <at> nexgo.de>
Cc: 23203 <at> debbugs.gnu.org
Subject: Re: bug#23203: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Sun, 03 Apr 2016 16:36:17 +0200
Achim Gratz <Stromeko <at> nexgo.de> writes:

> There was no previous version, this being a bootstrap build.

The next build may have a new version.

> And if I want to check differences between builds, I can just use
> different build directories.

That assumes that you can reproduce the exact previous state.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Sun, 03 Apr 2016 18:47:02 GMT) Full text and rfc822 format available.

Message #29 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: "Phillip Lord" <phillip.lord <at> russet.org.uk>
To: "Achim Gratz" <Stromeko <at> nexgo.de>
Cc: 23203 <at> debbugs.gnu.org
Subject: Re: bug#23203: 25.0.91; some loaddefs files have auto-save remnants
 after building (and install doesn't ignore them)
Date: Sun, 3 Apr 2016 19:46:40 +0100
[Message part 1 (text/plain, inline)]
On Sun, April 3, 2016 12:47 pm, Achim Gratz wrote:
> Andreas Schwab writes:
>
>> Achim Gratz writes:
>>
>>> as there is no point of having a backup for an auto-generated file.
>>
>> I disagree.  Even for generated files you may want to check what has
>> changed when last regenerated.
>
> There was no previous version, this being a bootstrap build.  And if I
> want to check differences between builds, I can just use different build
> directories.

The attached patch fixes the problem in my hands (assuming we believe that
this is a bug). The solution may be a bit blunt, though, although the
function patched is documented as "use in batch during build".

Phil
[fix.diff (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Sun, 03 Apr 2016 18:59:01 GMT) Full text and rfc822 format available.

Message #32 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Phillip Lord" <phillip.lord <at> russet.org.uk>
Cc: 23203 <at> debbugs.gnu.org, Stromeko <at> nexgo.de
Subject: Re: bug#23203: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Sun, 03 Apr 2016 21:58:06 +0300
> Date: Sun, 3 Apr 2016 19:46:40 +0100
> From: "Phillip Lord" <phillip.lord <at> russet.org.uk>
> Cc: 23203 <at> debbugs.gnu.org
> 
> The attached patch fixes the problem in my hands (assuming we believe that
> this is a bug). The solution may be a bit blunt, though, although the
> function patched is documented as "use in batch during build".

Indeed, I'd rather we didn't do anything that drastic.

If needed, backups can be disabled from the command line.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Sun, 03 Apr 2016 19:34:02 GMT) Full text and rfc822 format available.

Message #35 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: "Phillip Lord" <phillip.lord <at> russet.org.uk>
To: "Eli Zaretskii" <eliz <at> gnu.org>
Cc: 23203 <at> debbugs.gnu.org, stromeko <at> nexgo.de,
 Phillip Lord <phillip.lord <at> russet.org.uk>
Subject: Re: bug#23203: 25.0.91; some loaddefs files have auto-save remnants
 after building (and install doesn't ignore them)
Date: Sun, 3 Apr 2016 20:33:37 +0100
[Message part 1 (text/plain, inline)]
On Sun, April 3, 2016 7:58 pm, Eli Zaretskii wrote:
>> Date: Sun, 3 Apr 2016 19:46:40 +0100
>> From: "Phillip Lord" <phillip.lord <at> russet.org.uk>
>> Cc: 23203 <at> debbugs.gnu.org
>>
>>
>> The attached patch fixes the problem in my hands (assuming we believe
>> that this is a bug). The solution may be a bit blunt, though, although
>> the function patched is documented as "use in batch during build".
>
> Indeed, I'd rather we didn't do anything that drastic.
>
>
> If needed, backups can be disabled from the command line.

That works too (see attached diff), although it's a bit of pain because of
duplication in the makefile.

I would ask though, when do we want backup files produced from the
batch-update-autoloads function? Changing the default behaviour of this
function seems to make the most sense to me (although perhaps not the way
that I did it).

Phil
[fix2.diff (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Sun, 03 Apr 2016 19:41:02 GMT) Full text and rfc822 format available.

Message #38 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Phillip Lord" <phillip.lord <at> russet.org.uk>
Cc: 23203 <at> debbugs.gnu.org, stromeko <at> nexgo.de
Subject: Re: bug#23203: 25.0.91; some loaddefs files have auto-save remnants
 after building (and install doesn't ignore them)
Date: Sun, 03 Apr 2016 22:39:28 +0300
> Date: Sun, 3 Apr 2016 20:33:37 +0100
> From: "Phillip Lord" <phillip.lord <at> russet.org.uk>
> Cc: "Phillip Lord" <phillip.lord <at> russet.org.uk>,
>  23203 <at> debbugs.gnu.org,
>  stromeko <at> nexgo.de
> 
> > If needed, backups can be disabled from the command line.
> 
> That works too (see attached diff), although it's a bit of pain because of
> duplication in the makefile.

Thanks.

> I would ask though, when do we want backup files produced from the
> batch-update-autoloads function?

Emacs always makes backups of all the files it writes, so summarily
exempting autoload files from this rule sounds wrong to me.  Who are
we to dictate to the entire world out there whether they should or
shouldn't have backups of these files?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Sun, 03 Apr 2016 20:12:02 GMT) Full text and rfc822 format available.

Message #41 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: "Phillip Lord" <phillip.lord <at> russet.org.uk>
To: "Eli Zaretskii" <eliz <at> gnu.org>
Cc: 23203 <at> debbugs.gnu.org, stromeko <at> nexgo.de,
 Phillip Lord <phillip.lord <at> russet.org.uk>
Subject: Re: bug#23203: 25.0.91; some loaddefs files have auto-save remnants
 after building (and install doesn't ignore them)
Date: Sun, 3 Apr 2016 21:11:34 +0100
On Sun, April 3, 2016 8:39 pm, Eli Zaretskii wrote:
>> Date: Sun, 3 Apr 2016 20:33:37 +0100
>> From: "Phillip Lord" <phillip.lord <at> russet.org.uk>
>> Cc: "Phillip Lord" <phillip.lord <at> russet.org.uk>,
>> 23203 <at> debbugs.gnu.org,
>> stromeko <at> nexgo.de
>>
>>> If needed, backups can be disabled from the command line.
>>>
>>
>> That works too (see attached diff), although it's a bit of pain because
>> of duplication in the makefile.
>
> Thanks.
>
>
>> I would ask though, when do we want backup files produced from the
>> batch-update-autoloads function?
>
> Emacs always makes backups of all the files it writes, so summarily
> exempting autoload files from this rule sounds wrong to me.  Who are we to
> dictate to the entire world out there whether they should or shouldn't
> have backups of these files?

Who are we? Well, the obvious answer is core Emacs devs with commit
privileges.

Actually, my first batch did not exempt autoload files. It only did that
when called using batch-update-autoloads: i.e. in batch, and in a function
which is commented (but not documented) to be for use during the Emacs
build process. Interactive calls to "update-directory-autoloads" and the
like would be unaffected.

I think that the comment is wrong, as I use this function outside of the
Emacs build process (and I am sure others do also), so I think we should
remove that. Alternatively, if it is right, we should move it do the
docstring.

But, I think having a "no backup files" default is still sensible for a
function used in batch; if it is always used this way in the Emacs build,
then it it telling us something. So, I would change it, and update the
docstring. We could also split the function, so that there is a version
which does not suppress backup files.











Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Mon, 04 Apr 2016 15:29:01 GMT) Full text and rfc822 format available.

Message #44 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Phillip Lord" <phillip.lord <at> russet.org.uk>
Cc: 23203 <at> debbugs.gnu.org, stromeko <at> nexgo.de
Subject: Re: bug#23203: 25.0.91; some loaddefs files have auto-save remnants
 after building (and install doesn't ignore them)
Date: Mon, 04 Apr 2016 18:27:53 +0300
> Date: Sun, 3 Apr 2016 21:11:34 +0100
> From: "Phillip Lord" <phillip.lord <at> russet.org.uk>
> Cc: "Phillip Lord" <phillip.lord <at> russet.org.uk>,
>  23203 <at> debbugs.gnu.org,
>  stromeko <at> nexgo.de
> 
> Actually, my first batch did not exempt autoload files. It only did that
> when called using batch-update-autoloads: i.e. in batch, and in a function
> which is commented (but not documented) to be for use during the Emacs
> build process. Interactive calls to "update-directory-autoloads" and the
> like would be unaffected.
> 
> I think that the comment is wrong, as I use this function outside of the
> Emacs build process (and I am sure others do also), so I think we should
> remove that. Alternatively, if it is right, we should move it do the
> docstring.

Fixing the doc string is always a good thing, but it's orthogonal to
the issue at hand.  (I do agree that the comment is wrong.)

> But, I think having a "no backup files" default is still sensible for a
> function used in batch; if it is always used this way in the Emacs build,
> then it it telling us something. So, I would change it, and update the
> docstring. We could also split the function, so that there is a version
> which does not suppress backup files.

I don't think I agree that batch mode should behave differently wrt
backups.

How about this alternative: only disable backing up the initial
(effectively empty) contents of the autoloads file?  AFAICT, the
backup files are created during a bootstrap only because we first
write the initial "rubric" into it, using write-region, and only after
that visit it.  This defeats the normal mechanism of backing up just
once per session, and leaves a backup file whose contents are not
interesting.

So an alternative would be to modify autoload-ensure-default-file so
that it returns some indication about the fact it created the file,
and then change its caller to set buffer-backed-up after it visits the
file, thus preventing the backup _only_ when the file is first
created.

This should at least solve Achim's problem, but without affecting
anything else.

WDYT?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Mon, 04 Apr 2016 15:43:02 GMT) Full text and rfc822 format available.

Message #47 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Achim Gratz <Stromeko <at> nexgo.de>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#23203: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Mon, 04 Apr 2016 17:42:18 +0200
Eli Zaretskii writes:
> If needed, backups can be disabled from the command line.

FWIW, I think it's the way these files are created during bootstrap that
produces the spurious backups.  So I'd be more inclined to fix the build
procedure rather than anything else (whether or not that function is
advertised to users).


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Mon, 04 Apr 2016 22:14:02 GMT) Full text and rfc822 format available.

Message #50 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: phillip.lord <at> russet.org.uk (Phillip Lord)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23203 <at> debbugs.gnu.org, stromeko <at> nexgo.de
Subject: Re: bug#23203: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Mon, 04 Apr 2016 23:12:57 +0100
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Date: Sun, 3 Apr 2016 21:11:34 +0100
>> From: "Phillip Lord" <phillip.lord <at> russet.org.uk>
>> Cc: "Phillip Lord" <phillip.lord <at> russet.org.uk>,
>>  23203 <at> debbugs.gnu.org,
>>  stromeko <at> nexgo.de
>> I think that the comment is wrong, as I use this function outside of the
>> Emacs build process (and I am sure others do also), so I think we should
>> remove that. Alternatively, if it is right, we should move it do the
>> docstring.
>
> Fixing the doc string is always a good thing, but it's orthogonal to
> the issue at hand.  (I do agree that the comment is wrong.)

Yes, it's orthogonal -- will fix that later.


>> But, I think having a "no backup files" default is still sensible for a
>> function used in batch; if it is always used this way in the Emacs build,
>> then it it telling us something. So, I would change it, and update the
>> docstring. We could also split the function, so that there is a version
>> which does not suppress backup files.
>
> I don't think I agree that batch mode should behave differently wrt
> backups.
>
> How about this alternative: only disable backing up the initial
> (effectively empty) contents of the autoloads file?  AFAICT, the
> backup files are created during a bootstrap only because we first
> write the initial "rubric" into it, using write-region, and only after
> that visit it.  This defeats the normal mechanism of backing up just
> once per session, and leaves a backup file whose contents are not
> interesting.

That sounds plausible.

>
> So an alternative would be to modify autoload-ensure-default-file so
> that it returns some indication about the fact it created the file,
> and then change its caller to set buffer-backed-up after it visits the
> file, thus preventing the backup _only_ when the file is first
> created.
>
> This should at least solve Achim's problem, but without affecting
> anything else.
>
> WDYT?

Also, it sounds reasonable -- I've attached a patch with a variation on
this theme.

My concerns is that we will still produce backup files which may end up
in a dist build. Consider these commands:

make (from bootstrap)
rm lisp/loaddefs.el
make

Removing loaddefs will result in generation of all the associated
loaddef files, all of which will now be backups.

So, we need to make sure that the packaging system does not copy backup
files.




[fix3.diff (text/x-diff, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Tue, 05 Apr 2016 18:17:01 GMT) Full text and rfc822 format available.

Message #53 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Achim Gratz <Stromeko <at> nexgo.de>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#23203: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Tue, 05 Apr 2016 20:16:13 +0200
Phillip Lord writes:
> Removing loaddefs will result in generation of all the associated
> loaddef files, all of which will now be backups.
>
> So, we need to make sure that the packaging system does not copy backup
> files.

Make install does copy them, but then they get deleted.  For all
packaging systems I know of that's no problem since they do a DESTDIR
install and then package from there.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Fri, 08 Apr 2016 08:24:02 GMT) Full text and rfc822 format available.

Message #56 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: phillip.lord <at> russet.org.uk (Phillip Lord)
Cc: 23203 <at> debbugs.gnu.org, stromeko <at> nexgo.de
Subject: Re: bug#23203: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Fri, 08 Apr 2016 11:22:50 +0300
> From: phillip.lord <at> russet.org.uk (Phillip Lord)
> Cc: 23203 <at> debbugs.gnu.org,  stromeko <at> nexgo.de
> Date: Mon, 04 Apr 2016 23:12:57 +0100
> 
> > How about this alternative: only disable backing up the initial
> > (effectively empty) contents of the autoloads file?  AFAICT, the
> > backup files are created during a bootstrap only because we first
> > write the initial "rubric" into it, using write-region, and only after
> > that visit it.  This defeats the normal mechanism of backing up just
> > once per session, and leaves a backup file whose contents are not
> > interesting.
> 
> That sounds plausible.
> 
> >
> > So an alternative would be to modify autoload-ensure-default-file so
> > that it returns some indication about the fact it created the file,
> > and then change its caller to set buffer-backed-up after it visits the
> > file, thus preventing the backup _only_ when the file is first
> > created.
> >
> > This should at least solve Achim's problem, but without affecting
> > anything else.
> >
> > WDYT?
> 
> Also, it sounds reasonable -- I've attached a patch with a variation on
> this theme.

Thanks.  There seem to be spurious unrelated whitespace changes in the
patch.

Also, wouldn't it be more elegant to have autoload-ensure-default-file
return a cons cell reporting whether the file did exist before, so
that autoload-find-generated-file could act on that?  But if you
prefer your implementation, I won't argue.

> My concerns is that we will still produce backup files which may end up
> in a dist build. Consider these commands:
> 
> make (from bootstrap)
> rm lisp/loaddefs.el
> make
> 
> Removing loaddefs will result in generation of all the associated
> loaddef files, all of which will now be backups.
> 
> So, we need to make sure that the packaging system does not copy backup
> files.

"make install" already removes backup files from the target tree, so
is there any problem left?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Fri, 08 Apr 2016 15:26:02 GMT) Full text and rfc822 format available.

Message #59 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: phillip.lord <at> russet.org.uk (Phillip Lord)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23203 <at> debbugs.gnu.org, stromeko <at> nexgo.de
Subject: Re: bug#23203: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Fri, 08 Apr 2016 16:25:09 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: phillip.lord <at> russet.org.uk (Phillip Lord)
>> Cc: 23203 <at> debbugs.gnu.org,  stromeko <at> nexgo.de
>> Date: Mon, 04 Apr 2016 23:12:57 +0100
>> Also, it sounds reasonable -- I've attached a patch with a variation on
>> this theme.
>
> Thanks.  There seem to be spurious unrelated whitespace changes in the
> patch.

Yeah, it was a proof-of-concept patch. It's got some debug statements in
also.

Alas, it also seems to have a bootstrap bug. Will work on it.

>> So, we need to make sure that the packaging system does not copy backup
>> files.
>
> "make install" already removes backup files from the target tree, so
> is there any problem left?

Ah, okay, that's fine; I'll work on my patch and try and get it actually
working.

Phil




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Sun, 10 Apr 2016 21:19:02 GMT) Full text and rfc822 format available.

Message #62 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: phillip.lord <at> russet.org.uk (Phillip Lord)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23203 <at> debbugs.gnu.org, stromeko <at> nexgo.de
Subject: Re: bug#23203: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Sun, 10 Apr 2016 21:30:21 +0100
[Message part 1 (text/plain, inline)]
Complete diff of my proposed change.

If anyone has time to test this it would be appreciated, as I saw some
strange (and now unrepeatable) failures with an earlier version of this.
I've not I'll install it tomorrow, as it seems functional in my hands.

[0001-Prevent-bootstrap-autoload-backup-files.patch (text/x-diff, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Tue, 12 Apr 2016 12:04:01 GMT) Full text and rfc822 format available.

Message #65 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: phillip.lord <at> russet.org.uk (Phillip Lord)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23203 <at> debbugs.gnu.org, stromeko <at> nexgo.de
Subject: Re: bug#23203: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Tue, 12 Apr 2016 13:03:47 +0100
phillip.lord <at> russet.org.uk (Phillip Lord) writes:

> Complete diff of my proposed change.
>
> If anyone has time to test this it would be appreciated, as I saw some
> strange (and now unrepeatable) failures with an earlier version of this.
> I've not I'll install it tomorrow, as it seems functional in my hands.


Installed to Emacs-25.

Phil




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Tue, 12 Apr 2016 15:22:02 GMT) Full text and rfc822 format available.

Message #68 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: phillip.lord <at> russet.org.uk (Phillip Lord)
Cc: 23203 <at> debbugs.gnu.org, stromeko <at> nexgo.de
Subject: Re: bug#23203: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Tue, 12 Apr 2016 18:20:59 +0300
> From: phillip.lord <at> russet.org.uk (Phillip Lord)
> Cc: 23203 <at> debbugs.gnu.org,  stromeko <at> nexgo.de
> Date: Tue, 12 Apr 2016 13:03:47 +0100
> 
> phillip.lord <at> russet.org.uk (Phillip Lord) writes:
> 
> > Complete diff of my proposed change.
> >
> > If anyone has time to test this it would be appreciated, as I saw some
> > strange (and now unrepeatable) failures with an earlier version of this.
> > I've not I'll install it tomorrow, as it seems functional in my hands.
> 
> Installed to Emacs-25.

Thanks, but why on Earth to the release branch?  This issue is nowhere
near being release-critical, and AFAICT the question of which branch
to commit it to was never even raised here.  It was obvious to me it
will go to master.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Tue, 12 Apr 2016 15:41:01 GMT) Full text and rfc822 format available.

Message #71 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23203 <at> debbugs.gnu.org, stromeko <at> nexgo.de,
 Phillip Lord <phillip.lord <at> russet.org.uk>
Subject: Re: bug#23203: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Tue, 12 Apr 2016 11:39:51 -0400
Eli Zaretskii wrote:

> Thanks, but why on Earth to the release branch?  This issue is nowhere
> near being release-critical, and AFAICT the question of which branch
> to commit it to was never even raised here.  It was obvious to me it
> will go to master.

Indeed. (It's not even a bug IMO.)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Tue, 12 Apr 2016 16:35:02 GMT) Full text and rfc822 format available.

Message #74 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: phillip.lord <at> russet.org.uk (Phillip Lord)
To: Glenn Morris <rgm <at> gnu.org>
Cc: 23203 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, stromeko <at> nexgo.de
Subject: Re: bug#23203: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Tue, 12 Apr 2016 17:34:43 +0100
Glenn Morris <rgm <at> gnu.org> writes:

> Eli Zaretskii wrote:
>
>> Thanks, but why on Earth to the release branch?  This issue is nowhere
>> near being release-critical, and AFAICT the question of which branch
>> to commit it to was never even raised here.  It was obvious to me it
>> will go to master.
>
> Indeed. (It's not even a bug IMO.)

Ah, sorry. I thought bug fixes should go on 25. Is this because we after
the release candidates?

Phil




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Tue, 12 Apr 2016 16:41:01 GMT) Full text and rfc822 format available.

Message #77 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: phillip.lord <at> russet.org.uk (Phillip Lord)
Cc: rgm <at> gnu.org, stromeko <at> nexgo.de, 23203 <at> debbugs.gnu.org
Subject: Re: bug#23203: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Tue, 12 Apr 2016 19:40:12 +0300
> From: phillip.lord <at> russet.org.uk (Phillip Lord)
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  23203 <at> debbugs.gnu.org,  stromeko <at> nexgo.de
> Date: Tue, 12 Apr 2016 17:34:43 +0100
> 
> Glenn Morris <rgm <at> gnu.org> writes:
> 
> > Eli Zaretskii wrote:
> >
> >> Thanks, but why on Earth to the release branch?  This issue is nowhere
> >> near being release-critical, and AFAICT the question of which branch
> >> to commit it to was never even raised here.  It was obvious to me it
> >> will go to master.
> >
> > Indeed. (It's not even a bug IMO.)
> 
> Ah, sorry. I thought bug fixes should go on 25. Is this because we after
> the release candidates?

More because has John declared the release branch open only for
serious bugs and regressions, and everything else should be discussed
first.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Tue, 12 Apr 2016 18:10:02 GMT) Full text and rfc822 format available.

Message #80 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: John Wiegley <jwiegley <at> gmail.com>
To: phillip.lord <at> russet.org.uk (Phillip Lord)
Cc: Glenn Morris <rgm <at> gnu.org>, stromeko <at> nexgo.de, 23203 <at> debbugs.gnu.org
Subject: Re: bug#23203: 25.0.91;
 some loaddefs files have auto-save remnants after building (and
 install doesn't ignore them)
Date: Tue, 12 Apr 2016 11:08:44 -0700
[Message part 1 (text/plain, inline)]
>>>>> Phillip Lord <phillip.lord <at> russet.org.uk> writes:

> Ah, sorry. I thought bug fixes should go on 25. Is this because we after the
> release candidates?

Not all bug fixes, just those that address significant bugs and/or are clearly
not destabilizing. We're trying to get emacs-25 out the door as soon as its
capable enough, and larger-scale/unnecessary bug fixes run the risk of
regressing the stability we've achieved thus far.

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23203; Package emacs. (Sat, 15 Aug 2020 04:12:02 GMT) Full text and rfc822 format available.

Message #83 received at 23203 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Phillip Lord <phillip.lord <at> russet.org.uk>
Cc: 23203 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, stromeko <at> nexgo.de
Subject: Re: bug#23203: 25.0.91; some loaddefs files have auto-save remnants
 after building (and install doesn't ignore them)
Date: Fri, 14 Aug 2020 21:11:39 -0700
close 23203 26.1
thanks

phillip.lord <at> russet.org.uk (Phillip Lord) writes:

> phillip.lord <at> russet.org.uk (Phillip Lord) writes:
>
>> Complete diff of my proposed change.
>>
>> If anyone has time to test this it would be appreciated, as I saw some
>> strange (and now unrepeatable) failures with an earlier version of this.
>> I've not I'll install it tomorrow, as it seems functional in my hands.
>
> Installed to Emacs-25.

The patch fixing the issue was installed (first on emacs-25 but later
reverted and moved to master).

The bug seems to have been left open by mistake, so I'm closing it now.

Best regards,
Stefan Kangas




bug marked as fixed in version 26.1, send any further explanations to 23203 <at> debbugs.gnu.org and Achim Gratz <Stromeko <at> nexgo.de> Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sat, 15 Aug 2020 04:12:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 12 Sep 2020 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 219 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.