You are not logged in.

#1 2011-06-11 12:02:37

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

`hostname` no longer supports -f -s or -d flags?

It seems since I updated earlier today that the `hostname` command (coreutils) no longer supports options to return the FQDN, Host part or Domain part of the hostname. Is this expected behavior or a regression in something?

It's not a huge problem since I can extract what I need with string manipulation of $HOSTNAME in bash, but will be annoying to have to mod all my scripts the rely on this behavior...

Offline

#2 2011-06-11 12:05:35

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: `hostname` no longer supports -f -s or -d flags?

I think this will be fixed by the new versions of coreutils, net-tools and initscripts that are currently in testing.

Offline

#3 2011-06-11 12:07:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: `hostname` no longer supports -f -s or -d flags?

Offline

#4 2011-06-12 01:20:12

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: `hostname` no longer supports -f -s or -d flags?

Thanks karol, glad to know I'm not the only one missing it smile

Offline

#5 2011-06-12 01:32:37

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: `hostname` no longer supports -f -s or -d flags?

Is it just me or does the newest coreutils package not even include the hostname command?


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#6 2011-06-12 09:09:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: `hostname` no longer supports -f -s or -d flags?

ConnorBehan wrote:

Is it just me or does the newest coreutils package not even include the hostname command?

[karol@black ~]$ pkgfile hostname
core/gettext
core/net-tools
[karol@black ~]$ pacman -Q coreutils
coreutils 8.12-3
[karol@black ~]$ pacman -Ql coreutils | grep hostname
[karol@black ~]$ 

So it's just you and me ;P

Offline

#7 2011-06-12 16:22:41

jean_no
Member
Registered: 2007-09-18
Posts: 48

Re: `hostname` no longer supports -f -s or -d flags?

Hello

no it's not just you because of that:
http://www.mail-archive.com/arch-dev-pu … 17065.html

This upgrade intends to fix the regression of coreutils' hostname not
being as featureful as net-tools'.

Changes:
- coreutils: revert to not building hostname
- net-tools: revert to building hostname and dnsdomainname
- initscripts: set hostname via /proc (does not use any binary)
- initscripts: remove superfluous dollar sign

Note that ypdomainname and nisdomainname are still provided by yp-tools.

Offline

#8 2011-06-12 16:40:40

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: `hostname` no longer supports -f -s or -d flags?

Ah my problem was that I had installed net-tools 1.60-18 while I still had coreutils 8.12-2 so when I updated coreutils to 8.12-3 that "stole" hostname from my system. And I noticed it was gone right away because netcfg still uses it.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

Board footer

Powered by FluxBB