From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B1E961580E0 for ; Thu, 30 Jan 2025 17:44:23 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 9CF6F343151 for ; Thu, 30 Jan 2025 17:44:23 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 99BB2110473; Thu, 30 Jan 2025 17:44:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 bobolink.gentoo.org (Postfix) with ESMTPS id 894F6110473 for ; Thu, 30 Jan 2025 17:44:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 smtp.gentoo.org (Postfix) with ESMTPS id 3E95A3430AB for ; Thu, 30 Jan 2025 17:44:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 74B2C2530 for ; Thu, 30 Jan 2025 17:44:13 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1738259048.091bfc623c5ab135fab330145aaafcc822ca746e.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/crystal/files/, dev-lang/crystal/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/crystal/crystal-1.15.0-r1.ebuild dev-lang/crystal/files/crystal-1.15.0-remove-enviroment-clearing-tests.patch X-VCS-Directories: dev-lang/crystal/files/ dev-lang/crystal/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: 091bfc623c5ab135fab330145aaafcc822ca746e X-VCS-Branch: master Date: Thu, 30 Jan 2025 17:44:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0525edab-464f-4f70-9bf9-ddff382ebe9f X-Archives-Hash: f13eb8e42357bed976aafa58cd16b7e9 commit: 091bfc623c5ab135fab330145aaafcc822ca746e Author: Alfred Wingate protonmail com> AuthorDate: Thu Jan 30 13:46:17 2025 +0000 Commit: Maciej Barć gentoo org> CommitDate: Thu Jan 30 17:44:08 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=091bfc62 dev-lang/crystal: remove tests that don't work in the sandbox Tests cannot remove SANDBOX_ variables from the environment. Signed-off-by: Alfred Wingate protonmail.com> Signed-off-by: Maciej Barć gentoo.org> dev-lang/crystal/crystal-1.15.0-r1.ebuild | 1 + ...l-1.15.0-remove-enviroment-clearing-tests.patch | 28 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/dev-lang/crystal/crystal-1.15.0-r1.ebuild b/dev-lang/crystal/crystal-1.15.0-r1.ebuild index 46a09f05b368..92214799d3c1 100644 --- a/dev-lang/crystal/crystal-1.15.0-r1.ebuild +++ b/dev-lang/crystal/crystal-1.15.0-r1.ebuild @@ -53,6 +53,7 @@ RDEPEND=" PATCHES=( "${FILESDIR}/${PN}-0.27.0-gentoo-tests-long-unix.patch" "${FILESDIR}/${PN}-0.27.0-gentoo-tests-long-unix-2.patch" + "${FILESDIR}/${PN}-1.15.0-remove-enviroment-clearing-tests.patch" ) src_prepare() { diff --git a/dev-lang/crystal/files/crystal-1.15.0-remove-enviroment-clearing-tests.patch b/dev-lang/crystal/files/crystal-1.15.0-remove-enviroment-clearing-tests.patch new file mode 100644 index 000000000000..11667b0da28a --- /dev/null +++ b/dev-lang/crystal/files/crystal-1.15.0-remove-enviroment-clearing-tests.patch @@ -0,0 +1,28 @@ +Sandbox won't allow removing sandbox related environment variables. + +diff --git a/spec/std/process_spec.cr b/spec/std/process_spec.cr +index 965ed1431..c32b00537 100644 +--- a/spec/std/process_spec.cr ++++ b/spec/std/process_spec.cr +@@ -281,20 +281,6 @@ describe Process do + end + + describe "environ" do +- it "clears the environment" do +- value = Process.run(*print_env_command, clear_env: true) do |proc| +- proc.output.gets_to_end +- end +- value.should eq("") +- end +- +- it "clears and sets an environment variable" do +- value = Process.run(*print_env_command, clear_env: true, env: {"FOO" => "bar"}) do |proc| +- proc.output.gets_to_end +- end +- value.should eq("FOO=bar#{newline}") +- end +- + it "sets an environment variable" do + value = Process.run(*print_env_command, env: {"FOO" => "bar"}) do |proc| + proc.output.gets_to_end +