commit: 091bfc623c5ab135fab330145aaafcc822ca746e
Author: Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Thu Jan 30 13:46:17 2025 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> 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 <parona <AT> protonmail.com>
Signed-off-by: Maciej Barć <xgqt <AT> 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
+