GNU bug report logs - #21281
25.0.50.1 (getenv "HOSTNAME") fails

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Mon, 17 Aug 2015 09:00:03 UTC

Severity: minor

Tags: notabug

Found in version 25.0.50.1

Done: Glenn Morris <rgm <at> gnu.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 21281 in the body.
You can then email your comments to 21281 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#21281; Package emacs. (Mon, 17 Aug 2015 09:00:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Röhler <andreas.roehler <at> easy-emacs.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 17 Aug 2015 09:00:03 GMT) Full text and rfc822 format available.

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

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50.1 (getenv "HOSTNAME") fails
Date: Mon, 17 Aug 2015 10:58:49 +0200
(getenv "HOSTNAME") returns nil at

GNU Emacs 25.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.23) of
2015-08-10

also affects

GNU Emacs 24.5.3 (i686-pc-linux-gnu, GTK+ Version 2.24.23) of 2015-04-20

;;;;;


echo $HOSTNAME from Bash withing Emacs  is fine




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21281; Package emacs. (Mon, 17 Aug 2015 09:08:02 GMT) Full text and rfc822 format available.

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

From: Zack Piper <zack <at> apertron.net>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
Date: Mon, 17 Aug 2015 09:07:08 +0000
On Mon, Aug 17, 2015 at 10:58:49AM +0200, Andreas Röhler wrote:
> echo $HOSTNAME from Bash withing Emacs  is fine

Could you show us the output of "which emacs" it could be that emacs
is being run under a wrapper somehow, it's a low possibility but can
still happen.

-- 
Zack Piper <zack <at> apertron.net> http://apertron.net




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21281; Package emacs. (Mon, 17 Aug 2015 09:19:02 GMT) Full text and rfc822 format available.

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

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
Date: Mon, 17 Aug 2015 11:18:40 +0200
Am 17.08.2015 um 11:07 schrieb Zack Piper:
> On Mon, Aug 17, 2015 at 10:58:49AM +0200, Andreas Röhler wrote:
>> echo $HOSTNAME from Bash withing Emacs  is fine
> Could you show us the output of "which emacs" it could be that emacs
> is being run under a wrapper somehow, it's a low possibility but can
> still happen.
>

# which emacs

tells

/usr/bin/emacs

Which is _not_ the emacs reported.

However, error occurs there too.

But another strange thing herewith:

C-u emacs-version says

GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.10.7) of 2014-03-07 
on toyol, modified by Debian

where "toyol" if definitely not the HOSTNAME - and never set by me...

Thanks!




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21281; Package emacs. (Mon, 17 Aug 2015 09:59:02 GMT) Full text and rfc822 format available.

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

From: Andreas Schwab <schwab <at> suse.de>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 21281 <at> debbugs.gnu.org
Subject: Re: bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
Date: Mon, 17 Aug 2015 11:58:26 +0200
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> (getenv "HOSTNAME") returns nil at

Which means that the parent process did not export this variable to
Emacs.  Why do you think this is a bug?

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21281; Package emacs. (Mon, 17 Aug 2015 10:00:03 GMT) Full text and rfc822 format available.

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

From: Andreas Schwab <schwab <at> suse.de>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 21281 <at> debbugs.gnu.org
Subject: Re: bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
Date: Mon, 17 Aug 2015 11:59:08 +0200
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> where "toyol" if definitely not the HOSTNAME

There is no relation between these two names.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21281; Package emacs. (Mon, 17 Aug 2015 10:56:01 GMT) Full text and rfc822 format available.

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

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Andreas Schwab <schwab <at> suse.de>
Cc: 21281 <at> debbugs.gnu.org
Subject: Re: bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
Date: Mon, 17 Aug 2015 12:55:27 +0200
Am 17.08.2015 um 11:58 schrieb Andreas Schwab:
> Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:
>
>> (getenv "HOSTNAME") returns nil at
> Which means that the parent process did not export this variable to
> Emacs.  Why do you think this is a bug?
>
> Andreas.
>

Because $HOSTNAME exists in Bash but not in Emacs started from Bash.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21281; Package emacs. (Mon, 17 Aug 2015 11:08:02 GMT) Full text and rfc822 format available.

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

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Andreas Schwab <schwab <at> suse.de>
Cc: 21281 <at> debbugs.gnu.org
Subject: Re: bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
Date: Mon, 17 Aug 2015 13:07:26 +0200
Am 17.08.2015 um 11:59 schrieb Andreas Schwab:
> Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:
>
>> where "toyol" if definitely not the HOSTNAME
> There is no relation between these two names.
>
> Andreas.
>

Which is a bug.

Having a look into defun emacs-version

it reads  emacs-build-system

which is set by function

system-name

which says:

Return the host name of the machine you are running on, as a string.

;;;

So it should not say something strange, unrelated to current machine.


Maybe due to shipping pre-compiled files?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21281; Package emacs. (Mon, 17 Aug 2015 11:18:01 GMT) Full text and rfc822 format available.

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

From: Nicolas Richard <youngfrog <at> members.fsf.org>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: Andreas Schwab <schwab <at> suse.de>, 21281 <at> debbugs.gnu.org
Subject: Re: bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
Date: Mon, 17 Aug 2015 13:17:44 +0200
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:
> it reads  emacs-build-system

> So it should not say something strange, unrelated to current machine.

The docstring of emacs-build-system :
> Name of the system on which Emacs was built.

If you don't build your own emacs, it shouldn't be surprising that the
value is unrelated to your machine.

-- 
Nicolas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21281; Package emacs. (Mon, 17 Aug 2015 11:33:01 GMT) Full text and rfc822 format available.

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

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Andreas Schwab <schwab <at> suse.de>
Cc: 21281 <at> debbugs.gnu.org
Subject: Re: bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
Date: Mon, 17 Aug 2015 13:32:30 +0200
Am 17.08.2015 um 11:58 schrieb Andreas Schwab:
> Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:
>
>> (getenv "HOSTNAME") returns nil at
> Which means that the parent process did not export this variable to
> Emacs.  Why do you think this is a bug?
>
> Andreas.
>

Writing

export HOSTNAME

into .bashrc and restart solved it.

Remains the question why this isn't needed w/ the bunch of other env's





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21281; Package emacs. (Mon, 17 Aug 2015 11:42:01 GMT) Full text and rfc822 format available.

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

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Nicolas Richard <youngfrog <at> members.fsf.org>
Cc: Andreas Schwab <schwab <at> suse.de>, 21281 <at> debbugs.gnu.org
Subject: Re: bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
Date: Mon, 17 Aug 2015 13:40:50 +0200
Am 17.08.2015 um 13:17 schrieb Nicolas Richard:
> Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:
>> it reads  emacs-build-system
>> So it should not say something strange, unrelated to current machine.
> The docstring of emacs-build-system :
>> Name of the system on which Emacs was built.
> If you don't build your own emacs, it shouldn't be surprising that the
> value is unrelated to your machine.
>

Maybe read previous posts before responding?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21281; Package emacs. (Mon, 17 Aug 2015 12:40:02 GMT) Full text and rfc822 format available.

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

From: Nicolas Richard <youngfrog <at> members.fsf.org>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: Andreas Schwab <schwab <at> suse.de>, 21281 <at> debbugs.gnu.org
Subject: Re: bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
Date: Mon, 17 Aug 2015 14:39:10 +0200
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:
> Maybe read previous posts before responding?

I did. You expressed some surprise because `emacs-build-system' is
unrelated to your current machine, and I said it is meant that way.

-- 
Nico




Added tag(s) notabug. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 17 Aug 2015 15:36:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 21281 <at> debbugs.gnu.org and Andreas Röhler <andreas.roehler <at> easy-emacs.de> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 17 Aug 2015 15:36:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21281; Package emacs. (Mon, 17 Aug 2015 15:38:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 21281 <at> debbugs.gnu.org
Subject: Re: bug#21281: 25.0.50.1 (getenv "HOSTNAME") fails
Date: Mon, 17 Aug 2015 11:37:01 -0400
You should read about environment variables and shell variables.
This is nothing to do with Emacs.

http://stackoverflow.com/questions/6353065/hostname-set-in-environment-but-not-visible-to-gmake




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

This bug report was last modified 9 years and 276 days ago.

Previous Next


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