Gentoo Archives: gentoo-user

From: David Haller <gentoo@×××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] merged on \${HOST} with notice"
Date: Mon, 18 Jan 2021 00:07:19
Message-Id: 20210118000704.qecxi3iluut6hbai@grusum.endjinn.de
In Reply to: Re: [gentoo-user] merged on \${HOST} with notice" by thelma@sys-concept.com
1 Hello,
2
3 On Sun, 17 Jan 2021, thelma@×××××××××××.com wrote:
4 >On 1/17/21 2:04 PM, David Haller wrote:
5 >> On Sun, 17 Jan 2021, thelma@×××××××××××.com wrote:
6 >>> I have in a new machine (as on all other boxes) in make.conf
7 >>> PORTAGE_ELOG_MAILSUBJECT="package \${PACKAGE} merged on \${HOST} with notice"
8 >> [..]
9 >>> Which file define "${HOST}"
10 >>
11 >> ==== /etc/hosts ====
12 >> [..]
13 >> # IP-Address Full-Qualified-Hostname Short-Hostname
14 >>
15 >> 127.0.0.1 syscon3.domain.tld syscon3 localhost
16 >> ::1 syscon3.domain.tld syscon3 localhost
17 >> ====
18 >
19 >THANK YOU! It is working.
20 >Does placement of the name make a difference?
21 >eg:
22 >127.0.0.1 syscon3.domain.tld syscon3 localhost
23 >
24 >vs.
25 >127.0.0.1 localhost syscon3 syscon3.domain.tld
26
27 Yes. That's why I quoted the comment that the FQDN has to be first.
28
29 You can check with:
30
31 $ hostname
32 $ hostname -f
33
34 The former must give the short name ("syscon3"), the second one the FQDN
35 ("syscon3.domain.tld").
36
37 HTH,
38 -dnh
39
40 --
41 >Wow, and everyone swears [Python]'s better than Perl. Wait, you don't say
42 >it's worse, never mind. -- Satya
43 The axis on which Perl sits is rotated 90 degrees with respect to the
44 rest of language-goodness-space. -- Garrett Wollman