public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] merged on \${HOST} with notice"
@ 2021-01-17 18:18 thelma
  2021-01-17 19:59 ` Hogren
  2021-01-17 21:04 ` David Haller
  0 siblings, 2 replies; 8+ messages in thread
From: thelma @ 2021-01-17 18:18 UTC (permalink / raw
  To: Gentoo mailing list

I have in a new machine (as on all other boxes) in make.conf
PORTAGE_ELOG_MAILSUBJECT="package \${PACKAGE} merged on \${HOST} with notice"

In  /etc/conf.d/hostname
hostname="syscon3"

But when a package is emerge I receive via email notice as in subject line: "...merged on localhost.localdomain"
eg: package dev-vcs/git-2.26.2 merged on localhost.localdomain with notice

Which file define "${HOST}"


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] merged on \${HOST} with notice"
  2021-01-17 18:18 [gentoo-user] merged on \${HOST} with notice" thelma
@ 2021-01-17 19:59 ` Hogren
  2021-01-17 20:18   ` thelma
  2021-01-17 20:55   ` thelma
  2021-01-17 21:04 ` David Haller
  1 sibling, 2 replies; 8+ messages in thread
From: Hogren @ 2021-01-17 19:59 UTC (permalink / raw
  To: gentoo-user


On 17/01/2021 19:18, thelma@sys-concept.com wrote:
> I have in a new machine (as on all other boxes) in make.conf
> PORTAGE_ELOG_MAILSUBJECT="package \${PACKAGE} merged on \${HOST} with notice"
>
> In  /etc/conf.d/hostname
> hostname="syscon3"
>
> But when a package is emerge I receive via email notice as in subject line: "...merged on localhost.localdomain"
> eg: package dev-vcs/git-2.26.2 merged on localhost.localdomain with notice
>
> Which file define "${HOST}"
>
Hello,

I suppose you had already rebooted after modify the file ?

Do you have Systemd ?


Regards,

Hogren



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] merged on \${HOST} with notice"
  2021-01-17 19:59 ` Hogren
@ 2021-01-17 20:18   ` thelma
  2021-01-17 20:55   ` thelma
  1 sibling, 0 replies; 8+ messages in thread
From: thelma @ 2021-01-17 20:18 UTC (permalink / raw
  To: gentoo-user

On 1/17/21 12:59 PM, Hogren wrote:
> 
> On 17/01/2021 19:18, thelma@sys-concept.com wrote:
>> I have in a new machine (as on all other boxes) in make.conf
>> PORTAGE_ELOG_MAILSUBJECT="package \${PACKAGE} merged on \${HOST} with notice"
>>
>> In  /etc/conf.d/hostname
>> hostname="syscon3"
>>
>> But when a package is emerge I receive via email notice as in subject line: "...merged on localhost.localdomain"
>> eg: package dev-vcs/git-2.26.2 merged on localhost.localdomain with notice
>>
>> Which file define "${HOST}"
>>
> Hello,
> 
> I suppose you had already rebooted after modify the file ?
> 
> Do you have Systemd ?
> 
> 
> Regards,
> 
> Hogren

No, I did not rebooted the system. Do I need to?
I can not pin it down which file/setting it is.  

When I receive emerge notice from my new system, both of them have "...merged on localhost.localdomain" instead of "hostname" eg. syscon3 syscon7 etc.
 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] merged on \${HOST} with notice"
  2021-01-17 19:59 ` Hogren
  2021-01-17 20:18   ` thelma
@ 2021-01-17 20:55   ` thelma
  1 sibling, 0 replies; 8+ messages in thread
From: thelma @ 2021-01-17 20:55 UTC (permalink / raw
  To: gentoo-user

On 1/17/21 12:59 PM, Hogren wrote:
> 
> On 17/01/2021 19:18, thelma@sys-concept.com wrote:
>> I have in a new machine (as on all other boxes) in make.conf
>> PORTAGE_ELOG_MAILSUBJECT="package \${PACKAGE} merged on \${HOST} with notice"
>>
>> In  /etc/conf.d/hostname
>> hostname="syscon3"
>>
>> But when a package is emerge I receive via email notice as in subject line: "...merged on localhost.localdomain"
>> eg: package dev-vcs/git-2.26.2 merged on localhost.localdomain with notice
>>
>> Which file define "${HOST}"
>>
> Hello,
> 
> I suppose you had already rebooted after modify the file ?
> 
> Do you have Systemd ?

I forgot to mention, I use openrc
 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] merged on \${HOST} with notice"
  2021-01-17 18:18 [gentoo-user] merged on \${HOST} with notice" thelma
  2021-01-17 19:59 ` Hogren
@ 2021-01-17 21:04 ` David Haller
  2021-01-17 21:36   ` thelma
  1 sibling, 1 reply; 8+ messages in thread
From: David Haller @ 2021-01-17 21:04 UTC (permalink / raw
  To: Gentoo mailing list

Hello,

On Sun, 17 Jan 2021, thelma@sys-concept.com wrote:
>I have in a new machine (as on all other boxes) in make.conf
>PORTAGE_ELOG_MAILSUBJECT="package \${PACKAGE} merged on \${HOST} with notice"
[..]
>Which file define "${HOST}"

==== /etc/hosts ====
[..]
# IP-Address  Full-Qualified-Hostname  Short-Hostname

127.0.0.1       syscon3.domain.tld       syscon3 localhost
::1             syscon3.domain.tld       syscon3 localhost
====

Use 'localdomain' as domain.tld if you don't have a domain.

HTH,
-dnh

-- 
Less is more or less more


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] merged on \${HOST} with notice"
  2021-01-17 21:04 ` David Haller
@ 2021-01-17 21:36   ` thelma
  2021-01-17 21:57     ` Arve Barsnes
  2021-01-18  0:07     ` David Haller
  0 siblings, 2 replies; 8+ messages in thread
From: thelma @ 2021-01-17 21:36 UTC (permalink / raw
  To: gentoo-user

On 1/17/21 2:04 PM, David Haller wrote:
> Hello,
> 
> On Sun, 17 Jan 2021, thelma@sys-concept.com wrote:
>> I have in a new machine (as on all other boxes) in make.conf
>> PORTAGE_ELOG_MAILSUBJECT="package \${PACKAGE} merged on \${HOST} with notice"
> [..]
>> Which file define "${HOST}"
> 
> ==== /etc/hosts ====
> [..]
> # IP-Address  Full-Qualified-Hostname  Short-Hostname
> 
> 127.0.0.1       syscon3.domain.tld       syscon3 localhost
> ::1             syscon3.domain.tld       syscon3 localhost
> ====
> 
> Use 'localdomain' as domain.tld if you don't have a domain.
> 
> HTH,
> -dnh

THANK YOU! It is working.
Does placement of the name make a difference? 
eg:  
127.0.0.1       syscon3.domain.tld       syscon3 localhost

vs.
127.0.0.1       localhost  syscon3  syscon3.domain.tld 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] merged on \${HOST} with notice"
  2021-01-17 21:36   ` thelma
@ 2021-01-17 21:57     ` Arve Barsnes
  2021-01-18  0:07     ` David Haller
  1 sibling, 0 replies; 8+ messages in thread
From: Arve Barsnes @ 2021-01-17 21:57 UTC (permalink / raw
  To: Gentoo

On Sun, 17 Jan 2021 at 22:36, <thelma@sys-concept.com> wrote:
> Does placement of the name make a difference?

See the man page for details:
# man hosts

Regards,
Arve


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] merged on \${HOST} with notice"
  2021-01-17 21:36   ` thelma
  2021-01-17 21:57     ` Arve Barsnes
@ 2021-01-18  0:07     ` David Haller
  1 sibling, 0 replies; 8+ messages in thread
From: David Haller @ 2021-01-18  0:07 UTC (permalink / raw
  To: gentoo-user

Hello,

On Sun, 17 Jan 2021, thelma@sys-concept.com wrote:
>On 1/17/21 2:04 PM, David Haller wrote:
>> On Sun, 17 Jan 2021, thelma@sys-concept.com wrote:
>>> I have in a new machine (as on all other boxes) in make.conf
>>> PORTAGE_ELOG_MAILSUBJECT="package \${PACKAGE} merged on \${HOST} with notice"
>> [..]
>>> Which file define "${HOST}"
>> 
>> ==== /etc/hosts ====
>> [..]
>> # IP-Address  Full-Qualified-Hostname  Short-Hostname
>> 
>> 127.0.0.1       syscon3.domain.tld       syscon3 localhost
>> ::1             syscon3.domain.tld       syscon3 localhost
>> ====
>
>THANK YOU! It is working.
>Does placement of the name make a difference? 
>eg:  
>127.0.0.1       syscon3.domain.tld       syscon3 localhost
>
>vs.
>127.0.0.1       localhost  syscon3  syscon3.domain.tld 

Yes. That's why I quoted the comment that the FQDN has to be first.

You can check with:

$ hostname
$ hostname -f

The former must give the short name ("syscon3"), the second one the FQDN
("syscon3.domain.tld").

HTH,
-dnh

-- 
>Wow, and everyone swears [Python]'s better than Perl. Wait, you don't say
>it's worse, never mind.                                          -- Satya
The axis on which Perl sits is rotated 90 degrees with respect to the
rest of language-goodness-space.                        -- Garrett Wollman


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-01-18  0:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-17 18:18 [gentoo-user] merged on \${HOST} with notice" thelma
2021-01-17 19:59 ` Hogren
2021-01-17 20:18   ` thelma
2021-01-17 20:55   ` thelma
2021-01-17 21:04 ` David Haller
2021-01-17 21:36   ` thelma
2021-01-17 21:57     ` Arve Barsnes
2021-01-18  0:07     ` David Haller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox