GNU bug report logs -
#39940
The variable operating-system-release
Previous Next
Reported by: Glenn Morris <rgm <at> gnu.org>
Date: Fri, 6 Mar 2020 01:20:01 UTC
Severity: wishlist
Tags: fixed
Found in version 28.0.50
Fixed in version 28.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 39940 in the body.
You can then email your comments to 39940 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#39940
; Package
emacs
.
(Fri, 06 Mar 2020 01:20:01 GMT)
Full text and
rfc822 format available.
Message #3 received at submit <at> debbugs.gnu.org (full text, mbox):
Package: emacs
Version: 28.0.50
Severity: wishlist
I found the variable 'operating-system-release' for the first time today.
1) This isn't what I would call the operating system release.
Eg my current operating system is CentOS, release 8.1.
operating-system-release is "4.18.0-147.5.1.el8_1.x86_64",
which is the kernel version. (Surprising to find these two things
mixed up in a GNU project. :) )
2) I don't see why it is useful to have a Lisp variable for this
(it had one use in the Emacs C code before c996fe1ec6).
I suggest obsoleting it.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#39940
; Package
emacs
.
(Fri, 06 Mar 2020 07:43:01 GMT)
Full text and
rfc822 format available.
Message #6 received at 39940 <at> debbugs.gnu.org (full text, mbox):
> From: Glenn Morris <rgm <at> gnu.org>
> Date: Thu, 05 Mar 2020 20:19:31 -0500
>
> I found the variable 'operating-system-release' for the first time today.
>
> 1) This isn't what I would call the operating system release.
> Eg my current operating system is CentOS, release 8.1.
> operating-system-release is "4.18.0-147.5.1.el8_1.x86_64",
> which is the kernel version. (Surprising to find these two things
> mixed up in a GNU project. :) )
>
> 2) I don't see why it is useful to have a Lisp variable for this
> (it had one use in the Emacs C code before c996fe1ec6).
> I suggest obsoleting it.
(My Git repository doesn't know about commit c996fe1ec6. AFAICT, this
variable was added in 3bb9abc.)
Some relevant information:
This variable was added due to the issues discussed in this old
thread:
https://lists.gnu.org/archive/html/emacs-devel/2005-01/msg00629.html
See also
https://lists.gnu.org/archive/html/emacs-devel/2005-01/msg00835.html
(I guess I never got any responses, and so the documentation never
happened ;-)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#39940
; Package
emacs
.
(Fri, 29 Jan 2021 06:27:01 GMT)
Full text and
rfc822 format available.
Message #9 received at 39940 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> Some relevant information:
>
> This variable was added due to the issues discussed in this old
> thread:
>
> https://lists.gnu.org/archive/html/emacs-devel/2005-01/msg00629.html
I did not read the complete thread, but I guess the upshot is that we're
not going to obsolete this variable.
I have altered the doc string to say what it actually is, though.
> See also
>
> https://lists.gnu.org/archive/html/emacs-devel/2005-01/msg00835.html
>
> (I guess I never got any responses, and so the documentation never
> happened ;-)
This bit in particular:
> Finally, and most importantly, if we add the call to uname, why not
> store all of the info it returns in some Lisp data structure, not just
> the OS release?
That is a good question, and would be a better design than just this
single variable. But I guess that nobody has requested the rest of the
data?
--
(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, 29 Jan 2021 06:27:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 28.1, send any further explanations to
39940 <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, 29 Jan 2021 06:27:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#39940
; Package
emacs
.
(Fri, 29 Jan 2021 09:31:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 39940 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen wrote:
>> https://lists.gnu.org/archive/html/emacs-devel/2005-01/msg00629.html
>
> I did not read the complete thread, but I guess the upshot is that we're
> not going to obsolete this variable.
A total of two short mails in the thread mention this variable.
The variable was used only in mac-win.el, which was removed in 2008.
Seems like a great candidate for obsolescence to me.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#39940
; Package
emacs
.
(Sat, 30 Jan 2021 06:12:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 39940 <at> debbugs.gnu.org (full text, mbox):
Glenn Morris <rgm <at> gnu.org> writes:
> A total of two short mails in the thread mention this variable.
> The variable was used only in mac-win.el, which was removed in 2008.
> Seems like a great candidate for obsolescence to me.
True. I see that Eli added support for it on Windows too now, so I
guess he disagrees. :-)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#39940
; Package
emacs
.
(Sat, 30 Jan 2021 08:39:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 39940 <at> debbugs.gnu.org (full text, mbox):
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 39940 <at> debbugs.gnu.org
> Date: Sat, 30 Jan 2021 07:10:56 +0100
>
> Glenn Morris <rgm <at> gnu.org> writes:
>
> > A total of two short mails in the thread mention this variable.
> > The variable was used only in mac-win.el, which was removed in 2008.
> > Seems like a great candidate for obsolescence to me.
>
> True. I see that Eli added support for it on Windows too now, so I
> guess he disagrees. :-)
I don't necessarily disagree, I just don't like a situation where some
platforms have that variable at the nil value, when a 5-line change
can fix that. It was a surprise for me to discover the nil value on
Windows. But those 5 lines aren't sacred to me, so if we decide to
deprecate the variable and eventually remove the supporting code, I
won't object.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#39940
; Package
emacs
.
(Sun, 31 Jan 2021 07:25:01 GMT)
Full text and
rfc822 format available.
Message #25 received at 39940 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> I don't necessarily disagree, I just don't like a situation where some
> platforms have that variable at the nil value, when a 5-line change
> can fix that. It was a surprise for me to discover the nil value on
> Windows. But those 5 lines aren't sacred to me, so if we decide to
> deprecate the variable and eventually remove the supporting code, I
> won't object.
I have no strong opinion on the matter, but since there are no in-tree
usages (any more), and the variable seems rather awkward, I've now
marked it as obsolete. If somebody out-of-tree actually uses it, then
reverting the obsoletion would also be fine by me, but I guess we'll see
whether anybody pipes up.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#39940
; Package
emacs
.
(Sun, 31 Jan 2021 13:07:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 39940 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>> I don't necessarily disagree, I just don't like a situation where some
>> platforms have that variable at the nil value, when a 5-line change
>> can fix that. It was a surprise for me to discover the nil value on
>> Windows. But those 5 lines aren't sacred to me, so if we decide to
>> deprecate the variable and eventually remove the supporting code, I
>> won't object.
>
> I have no strong opinion on the matter, but since there are no in-tree
> usages (any more), and the variable seems rather awkward, I've now
> marked it as obsolete. If somebody out-of-tree actually uses it, then
> reverting the obsoletion would also be fine by me, but I guess we'll see
> whether anybody pipes up.
Would its value be of any use in report-emacs-bug?
Thanks,
--
Basil
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#39940
; Package
emacs
.
(Sun, 31 Jan 2021 15:08:01 GMT)
Full text and
rfc822 format available.
Message #31 received at 39940 <at> debbugs.gnu.org (full text, mbox):
> From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
> Cc: Eli Zaretskii <eliz <at> gnu.org>, rgm <at> gnu.org, 39940 <at> debbugs.gnu.org
> Date: Sun, 31 Jan 2021 13:06:22 +0000
>
> > I have no strong opinion on the matter, but since there are no in-tree
> > usages (any more), and the variable seems rather awkward, I've now
> > marked it as obsolete. If somebody out-of-tree actually uses it, then
> > reverting the obsoletion would also be fine by me, but I guess we'll see
> > whether anybody pipes up.
>
> Would its value be of any use in report-emacs-bug?
We already have a similar facility for report-emacs-bug, don't we?
AFAIR, it doesn't rely on this variable.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#39940
; Package
emacs
.
(Mon, 01 Feb 2021 03:22:02 GMT)
Full text and
rfc822 format available.
Message #34 received at 39940 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
>> Cc: Eli Zaretskii <eliz <at> gnu.org>, rgm <at> gnu.org, 39940 <at> debbugs.gnu.org
>> Date: Sun, 31 Jan 2021 13:06:22 +0000
>>
>> Would its value be of any use in report-emacs-bug?
>
> We already have a similar facility for report-emacs-bug, don't we?
> AFAIR, it doesn't rely on this variable.
At least on GNU/Linux, report-emacs-bug does not currently report the
kernel version. I was wondering whether that would be useful
information to include. Does report-emacs-bug already include the
information provided by operating-system-release on other platforms?
Thanks,
--
Basil
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#39940
; Package
emacs
.
(Mon, 01 Feb 2021 03:37:01 GMT)
Full text and
rfc822 format available.
Message #37 received at 39940 <at> debbugs.gnu.org (full text, mbox):
> From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
> Cc: larsi <at> gnus.org, rgm <at> gnu.org, 39940 <at> debbugs.gnu.org
> Date: Mon, 01 Feb 2021 03:21:45 +0000
>
> >> Would its value be of any use in report-emacs-bug?
> >
> > We already have a similar facility for report-emacs-bug, don't we?
> > AFAIR, it doesn't rely on this variable.
>
> At least on GNU/Linux, report-emacs-bug does not currently report the
> kernel version. I was wondering whether that would be useful
> information to include. Does report-emacs-bug already include the
> information provided by operating-system-release on other platforms?
It depends on what you mean by "kernel version". What we have there
can be seen in report-emacs-bug--os-description.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#39940
; Package
emacs
.
(Mon, 01 Feb 2021 08:26:01 GMT)
Full text and
rfc822 format available.
Message #40 received at 39940 <at> debbugs.gnu.org (full text, mbox):
"Basil L. Contovounesios" <contovob <at> tcd.ie> writes:
> Would its value be of any use in report-emacs-bug?
Not excessively -- I can't recall a single Emacs bug report where
knowing what the kernel version is would be helpful.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 01 Mar 2021 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 50 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.