From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3ED4F15838C for ; Mon, 22 Jan 2024 16:46:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4F55CE2A80; Mon, 22 Jan 2024 16:46:26 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0BFBDE2A79 for ; Mon, 22 Jan 2024 16:46:26 +0000 (UTC) References: <20240122161434.991554-1-sam@gentoo.org> User-agent: mu4e 1.10.8; emacs 30.0.50 From: Arsen =?utf-8?Q?Arsenovi=C4=87?= To: Sam James Cc: gentoo-dev@lists.gentoo.org, toolchain@gentoo.org, sandbox@gentoo.org, musl@gentoo.org Subject: [gentoo-dev] Re: [PATCH] profiles: workaround sandbox bug with getcwd() configure test (gl_cv_func_getcwd_path_max) Date: Mon, 22 Jan 2024 17:45:14 +0100 Organization: Gentoo In-reply-to: <20240122161434.991554-1-sam@gentoo.org> Message-ID: <86a5oxs4dg.fsf@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Archives-Salt: ba52a3ac-e7b5-41d2-a24f-2739498f0d29 X-Archives-Hash: 28c49f245b1f0f943d93f15c4c99a2fc --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Sam James writes: > Workaround for sandbox bug which causes this gnulib configure test to take > many real hours on slower machines, and certainly a huge amount of CPU ho= urs > on others. > > Spoof the same result as configure gets on a modern glibc & musl system f= or now. > > Bug: https://bugs.gentoo.org/447970 > Closes: https://bugs.gentoo.org/922652 > Signed-off-by: Sam James > --- Seems OK. > profiles/default/linux/make.defaults | 9 ++++++++- > profiles/features/musl/make.defaults | 7 +++++++ > 2 files changed, 15 insertions(+), 1 deletion(-) > > diff --git a/profiles/default/linux/make.defaults b/profiles/default/linu= x/make.defaults > index 74dd59d5d8179..4e21cd58fdf22 100644 > --- a/profiles/default/linux/make.defaults > +++ b/profiles/default/linux/make.defaults > @@ -1,4 +1,4 @@ > -# Copyright 1999-2023 Gentoo Authors > +# Copyright 1999-2024 Gentoo Authors > # Distributed under the terms of the GNU General Public License v2 > # > # System-wide defaults for the Portage system > @@ -54,3 +54,10 @@ LDFLAGS=3D"-Wl,-O1 -Wl,--as-needed" > # Prevent automagic use of 64-bit time_t. > # https://bugs.gentoo.org/828001 > enable_year2038=3D"no" > + > +# Sam James (2024-01-22) > +# Workaround for sandbox bug which causes this gnulib configure test to = take > +# many real hours on slower machines, and certainly a huge amount of CPU= hours > +# on others. Spoof the same result as configure gets on a modern glibc s= ystem > +# for now. See bug #447970 and bug #922652. > +gl_cv_func_getcwd_path_max=3D"yes" > diff --git a/profiles/features/musl/make.defaults b/profiles/features/mus= l/make.defaults > index 3078bdd61b09c..ca792276e3945 100644 > --- a/profiles/features/musl/make.defaults > +++ b/profiles/features/musl/make.defaults > @@ -17,3 +17,10 @@ FEATURES=3D"-multilib-strict" > # that use a charset, it causes package collisons. > # Note: we use a full path for locale.alias for bug #799437 > INSTALL_MASK=3D"charset.alias /usr/share/locale/locale.alias" > + > +# Sam James (2024-01-22) > +# Workaround for sandbox bug which causes this gnulib configure test to = take > +# many real hours on slower machines, and certainly a huge amount of CPU= hours > +# on others. Spoof the same result as configure gets on a modern musl sy= stem > +# for now. See bug #447970 and bug #922652. > +gl_cv_func_getcwd_path_max=3D"no, but it is partly working" =2D- Arsen Arsenovi=C4=87 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOcEARYKAI8WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCZa6b218UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxEcYXJzZW5AZ2Vu dG9vLm9yZwAKCRBSwpQwHqLEk26PAQDMcV+7C0aE4lRMLLv4uHjIEqdRqBIMBrgt l8M7tKyyaAD7BA93nLfge+0Vw205sX7VJoJn2g21bzKinU3YBsxrLwA= =WS51 -----END PGP SIGNATURE----- --=-=-=--