From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 8AF981F508 for ; Tue, 28 Jan 2025 21:40:09 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=0+v1YpxA; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=We9BFTcu; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1738100377; bh=tpj/F8zNtHcT7SzHihNuw5+FNbwX+2EOy/cnXgia/64=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=0+v1YpxAC88GTJMVDJgGBYTHM0QWvAKoG5jHNVrS7Wul1YiuJT9x5+IymUykatl5x bPBrs6VhrmkHukKpuWJzcO6ZrIKQRdE9DeBCa1JHEWvAdKujRzfkh1yH7hiDg1waJm HlXh1YTJyLa8ZMXgHEqsGT1Isnj0EZ21JNl8xywg= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 8A2884699F for ; Tue, 28 Jan 2025 21:39:37 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=We9BFTcu; dkim-atps=neutral Received: from s.wrqvtvvn.outbound-mail.sendgrid.net (s.wrqvtvvn.outbound-mail.sendgrid.net [149.72.120.130]) by nue.mailmanlists.eu (Postfix) with ESMTPS id ED59546979 for ; Tue, 28 Jan 2025 21:39:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=SlDqf+U3unKpfsMrFSHnw0pFYJ55PVTdqeJinzqVq5k=; b=We9BFTcuhf746iecyzZDju0tWcPzRruOV8blUTuaD6mID8lLDIi5oNzNTTsoGHMflbdk Xmy88Ykn0rP/rOJHzmEZlNdHeoj64F8JBodecILr+DQuugbavK+4P7Ny4MwgIBgfUNymxf 0iuXdI/RXNDxYQQTib7GxLWHZsKSUCI3SYjLRvy5bKBmtZkL/1f8WgC7a9FlaZSgWLikun TE2g1pwRmTU2ZaodmmNLYIi9pAMUTPNk1nv15zBJr8kVmYZtw+klQWgZcCxgu516Gofm+b B4yBkVnUJTWnBusOnEnVuByr/Ef6/FiGU/4R6fYdPGMryzIab6KOlg6FhyLgcGCQ== Received: by recvd-5f54b5d587-zv9rw with SMTP id recvd-5f54b5d587-zv9rw-1-67994E93-D 2025-01-28 21:39:31.570740177 +0000 UTC m=+6481013.373069182 Received: from herokuapp.com (unknown) by geopod-ismtpd-12 (SG) with ESMTP id _rz6BqoZRbSmiA61xzadHQ for ; Tue, 28 Jan 2025 21:39:31.492 +0000 (UTC) Date: Tue, 28 Jan 2025 21:39:31 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 21095 X-Redmine-Issue-Author: ioquatix X-Redmine-Issue-Priority: Normal X-Redmine-Sender: ioquatix X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 97530 X-SG-EID: =?us-ascii?Q?u001=2E3QFJPY5gaRwyNXkncYONHM3OeFnb=2FgeOrLDgg3PYIKrq5rvk81iAipQ1q?= =?us-ascii?Q?cdmuT9o5PIWGjXtTDstodNmslT=2F6xfCuIofWR2K?= =?us-ascii?Q?w8msDgVaVLwR8x5l3uKJhJA3UYlVK=2FJpT+7iohI?= =?us-ascii?Q?lO2aDM=2FD5HP3HC08hNkAYEVHh15lmscVSQt6jT0?= =?us-ascii?Q?vihRsNGHF+0yHTTuxmNxAmPm0Vi6PP5YUP=2FXuS3?= =?us-ascii?Q?q72GRZUP9e=2FUVzyEiDv6hByiFRVrA8RZakhCNXV?= =?us-ascii?Q?HqCxPxhF=2Fu6aB7U0Vu+Z4pRqRw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: 6GRNLZG5DDQB4PYH5MTA7NJLQSDLEJ5E X-Message-ID-Hash: 6GRNLZG5DDQB4PYH5MTA7NJLQSDLEJ5E X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:120812] [Ruby master Bug#21095] Prefer `uname -n` over `hostname` in tests. List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "ioquatix (Samuel Williams) via ruby-core" Cc: "ioquatix (Samuel Williams)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #21095 has been updated by ioquatix (Samuel Williams). Fixed in . ---------------------------------------- Bug #21095: Prefer `uname -n` over `hostname` in tests. https://bugs.ruby-lang.org/issues/21095#change-111679 * 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 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/