GNU bug report logs -
#34448
--no-build-details means system-name is nil
Previous Next
Reported by: Glenn Morris <rgm <at> gnu.org>
Date: Tue, 12 Feb 2019 01:55:01 UTC
Severity: minor
Tags: confirmed, fixed
Found in version 27.0.50
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
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 34448 in the body.
You can then email your comments to 34448 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#34448
; Package
emacs
.
(Tue, 12 Feb 2019 01:55:02 GMT)
Full text and
rfc822 format available.
Message #3 received at submit <at> debbugs.gnu.org (full text, mbox):
Package: emacs
Version: 27.0.50
Severity: minor
Master at revision 2860f6cec5. If I run
emacs -Q --no-build-details
then (system-name) returns nil. I expect this switch to only affect the
values stored in the Emacs binary, not the run-time result.
I'm also not sure why --no-build-details is a run-time option (as
opposed to a build-time one).
Anyway, this breaks file-locking (cf bug#34355) and makes it impossible
to save a file.
Added tag(s) confirmed.
Request was from
Bhavin Gandhi <bhavin7392 <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Fri, 05 Apr 2019 18:20:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#34448
; Package
emacs
.
(Wed, 09 Oct 2019 22:27:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 34448 <at> debbugs.gnu.org (full text, mbox):
Glenn Morris <rgm <at> gnu.org> writes:
> emacs -Q --no-build-details
>
> then (system-name) returns nil. I expect this switch to only affect the
> values stored in the Emacs binary, not the run-time result.
Yup. It seems like this was the intention here:
void
init_system_name (void)
{
if (!build_details)
{
/* Set system-name to nil so that the build is deterministic. */
Vsystem_name = Qnil;
return;
}
which is called from
static void
init_and_cache_system_name (void)
{
init_system_name ();
cached_system_name = Vsystem_name;
}
which is called from
DEFUN ("system-name", Fsystem_name, Ssystem_name, 0, 0, 0,
doc: /* Return the host name of the machine you are running on, as a string. */)
(void)
{
if (EQ (Vsystem_name, cached_system_name))
init_and_cache_system_name ();
return Vsystem_name;
Is --no-build-details just meant to be used during builds? If so, we
can just document that, I guess?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#34448
; Package
emacs
.
(Thu, 10 Oct 2019 07:40:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 34448 <at> debbugs.gnu.org (full text, mbox):
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Thu, 10 Oct 2019 00:26:53 +0200
> Cc: 34448 <at> debbugs.gnu.org
>
> void
> init_system_name (void)
> {
> if (!build_details)
> {
> /* Set system-name to nil so that the build is deterministic. */
> Vsystem_name = Qnil;
> return;
> }
>
> which is called from
>
> static void
> init_and_cache_system_name (void)
> {
> init_system_name ();
> cached_system_name = Vsystem_name;
> }
>
> which is called from
>
> DEFUN ("system-name", Fsystem_name, Ssystem_name, 0, 0, 0,
> doc: /* Return the host name of the machine you are running on, as a string. */)
> (void)
> {
> if (EQ (Vsystem_name, cached_system_name))
> init_and_cache_system_name ();
> return Vsystem_name;
>
> Is --no-build-details just meant to be used during builds? If so, we
> can just document that, I guess?
Yes, documenting that would be a good compromise, I think.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#34448
; Package
emacs
.
(Fri, 11 Oct 2019 07:06:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 34448 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> Is --no-build-details just meant to be used during builds? If so, we
>> can just document that, I guess?
>
> Yes, documenting that would be a good compromise, I think.
I've now done this, and I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Fri, 11 Oct 2019 07:07:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 27.1, send any further explanations to
34448 <at> debbugs.gnu.org and Glenn Morris <rgm <at> gnu.org>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Fri, 11 Oct 2019 07:07:02 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
.
(Fri, 08 Nov 2019 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 168 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.