From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:48002) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ir8b1-0002Io-Aa for guix-patches@gnu.org; Mon, 13 Jan 2020 17:54:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ir8ay-0002dG-DE for guix-patches@gnu.org; Mon, 13 Jan 2020 17:54:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54382) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ir8ay-0002d7-A1 for guix-patches@gnu.org; Mon, 13 Jan 2020 17:54:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ir8ay-0004hq-9h for guix-patches@gnu.org; Mon, 13 Jan 2020 17:54:04 -0500 Subject: [bug#39120] [PATCH 09/12] gnu: ruby-tzinfo: Skip safe tests. Resent-Message-ID: From: Christopher Baines Date: Mon, 13 Jan 2020 22:53:33 +0000 Message-Id: <20200113225336.15160-9-mail@cbaines.net> In-Reply-To: <20200113225336.15160-1-mail@cbaines.net> References: <20200113225336.15160-1-mail@cbaines.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39120@debbugs.gnu.org The safe tests attempt to run with Ruby 2.6, but these tests fail if the build takes place within /tmp, as the Ruby LOAD_PATH then includes /tmp, which is world writable. * gnu/packages/ruby.scm (ruby-tzinfo)[arguments]: Add skip-safe-tests phase. --- gnu/packages/ruby.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index b39769acaa..088b975a22 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -4072,6 +4072,16 @@ utilities for Ruby.") (base32 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp")))) (build-system ruby-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'skip-safe-tests + (lambda _ + (substitute* "test/test_utils.rb" + (("def safe_test\\(options = \\{\\}\\)") + "def safe_test(options = {}) + skip('The Guix build environment has an unsafe load path')")) + #t))))) (propagated-inputs `(("ruby-thread-safe" ,ruby-thread-safe))) (synopsis "Time zone library for Ruby") -- 2.24.1