ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:120811] [Ruby master Bug#21095] Prefer `uname -n` over `hostname` in tests.
@ 2025-01-28 21:38 ioquatix (Samuel Williams) via ruby-core
  2025-01-28 21:39 ` [ruby-core:120812] " ioquatix (Samuel Williams) via ruby-core
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: ioquatix (Samuel Williams) via ruby-core @ 2025-01-28 21:38 UTC (permalink / raw)
  To: ruby-core; +Cc: ioquatix (Samuel Williams)

Issue #21095 has been reported by ioquatix (Samuel Williams).

----------------------------------------
Bug #21095: Prefer `uname -n` over `hostname` in tests.
https://bugs.ruby-lang.org/issues/21095

* Author: ioquatix (Samuel Williams)
* Status: Closed
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: REQUIRED, 3.4: REQUIRED
----------------------------------------
It turns out that `hostname`, while a defacto standard, is not actually a standard in any official sense. On Linux, it's distributed as part of the `inettools` package, and while generally available on other platforms (BSD, Windows, MacOS), it isn't actually part of any standard.

The `name(1)` system call and `uname(2)` command ARE standardised by POSIX and the Open Group, and are included in most base systems without the need to install extra packages (e.g. `inettools` on Linux).

As such, I was requested by the Arch Linux Ruby maintainer, to prefer using `uname -n` as they would like to drop the dependency on `inettools`. See <https://gitlab.archlinux.org/archlinux/packaging/packages/inetutils/-/issues/2#note_211062> for more context.

I've been asked if this can be back ported to 3.3 and 3.4 and while it's not strictly a bug, it will reduce friction in the distribution channels, so I'd like to propose that we backport to 3.4 and if possible 3.3 too.



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

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

end of thread, other threads:[~2025-03-08  9:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-28 21:38 [ruby-core:120811] [Ruby master Bug#21095] Prefer `uname -n` over `hostname` in tests ioquatix (Samuel Williams) via ruby-core
2025-01-28 21:39 ` [ruby-core:120812] " ioquatix (Samuel Williams) via ruby-core
2025-01-28 21:58 ` [ruby-core:120813] " Eregon (Benoit Daloze) via ruby-core
2025-01-28 22:12 ` [ruby-core:120814] " ioquatix (Samuel Williams) via ruby-core
2025-01-29  9:34 ` [ruby-core:120820] " Eregon (Benoit Daloze) via ruby-core
2025-01-29 10:37 ` [ruby-core:120822] " Eregon (Benoit Daloze) via ruby-core
2025-01-29 10:39 ` [ruby-core:120823] " Eregon (Benoit Daloze) via ruby-core
2025-01-31  9:54 ` [ruby-core:120849] " Eregon (Benoit Daloze) via ruby-core
2025-02-14  5:12 ` [ruby-core:121026] " k0kubun (Takashi Kokubun) via ruby-core
2025-03-08  9:20 ` [ruby-core:121268] " nagachika (Tomoyuki Chikanaga) via ruby-core

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).