From nobody Wed Dec 29 07:09:32 2021 X-Original-To: ruby@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 317A419252F0 for ; Wed, 29 Dec 2021 07:09:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JP2b06Gthz4Rfl for ; Wed, 29 Dec 2021 07:09:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B39FF206CE for ; Wed, 29 Dec 2021 07:09:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1BT79Wtq094392 for ; Wed, 29 Dec 2021 07:09:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BT79Wmn094391 for ruby@FreeBSD.org; Wed, 29 Dec 2021 07:09:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ruby@FreeBSD.org Subject: [Bug 247817] lang/ruby26 and lang/ruby27: fails to build with poudriere when 127.0.0.1 unavailable Date: Wed, 29 Dec 2021 07:09:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: lab+bsd@thinkum.space X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ruby@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Ruby discussions List-Archive: https://lists.freebsd.org/archives/freebsd-ruby List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ruby@freebsd.org X-BeenThere: freebsd-ruby@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640761772; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kcnvnRHqSA+ZctVXfH3T48VsrgU1VH2WoS8SxSdkNMc=; b=GHqcY2oAdxbGL/0A5fg0YT51HdgDEwL3TXpWNKGr/GpGrYV+A/b5pP2X4hNxue9hwqeyfG dKIkWy9aS/qS1wmIY5qInHyt2kxkFb3HKh+nmBRFxoRZ6rpoAgl0b8+DzCYUlUQVk2SZ8L 7Ya7LZ7dbYrpAyPgdmvd59Cz4lbjCW0VLmFKBdPvDV6xmRQQ7m/N5zsnQ8JbhlZ6FxuISR dekhmXwMxBxsg+luvw5VYP8Bwfb6vYoe1QobhzS6YvZfo3eWfCmdaM3JR6IyciOH0KWhRW RzrGM8EhjYacRsGSpYIV6IVshJos4jF9u2b/rZQM/NI+oEhvp+Os6rbhoBasbg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640761772; a=rsa-sha256; cv=none; b=u8NSfUKd6n7dLdshn3EnSbS8nEIj8WAUd3UAzj2zGVnNY849kMVbUkzg8F5mOlz/555vMX DbOJHqgMC1Gsyme6qPU/RmOxcnPkG5T2dG84dxxihXFH6JSRUHLIKstuXqgM+3ch+qa0eh lv0s23SbbYbyn3Nn0kRSCJoPi5vhkGramIu1NbjbB2TCn3kpy52XWUplkvvBzPk00ojvR/ WXdfK6g2bTocWGgabb+H3NLv13KHcBSWIViJ6PVQe2vQTM0a5MZMrKwQ5t3HK5tAVTV0dD eHDKTjpyD+ea6rfBjydaAr4Yg5UbnlG/qkx7LSEy7i27B9TTjgCddXh+JY3w7Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247817 Sean Champ changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lab+bsd@thinkum.space --- Comment #4 from Sean Champ --- If it might serve towards any workaround, perhaps the loopback address in ext/socket/extconf.rb could be patched during the build, to set it to some unique token e.g "@@LOOPBACK@@". After the diff for that patch would be app= lied in the port build, the patched file could then be processed with sed -perha= ps it could be done during post-patch - such as to use some address provided w= ith a variable in the port build. That variable's definition could be provided to the port build via make.con= f, for site-local configuration. The port could provide a default value e.g `RUBY_LOOPBACK_IPV4?=3D127.0.0.1` in the port Makefile. An IPv6 option coul= d be provided, too. if the variable was substituted during patch and post-patch,= it may not need any changes for the configuration of the build environment? If the build contains a dependency on a specific networking configuration -= as it seems to, in how that's been approached in that file - at least it might serve to make the loopback address (IPv4 or IPv6) a configurable feature for the port build? They've used that address a lot, and then there's the IPv6 version - lookin= g at a recent changeset under Ruby 3.=20 For purposes of supporting this under 'make test', perhaps more files would need to be patched/sed-subst'ed, not only this extconf.rb.=20 While it may not serve to address any questions about the design of these tests, the patch/subst approach might at least serve to provide a portable workaround for the port build? --=20 You are receiving this mail because: You are the assignee for the bug.=