From patchwork Tue Jul 9 14:18:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gemmaro X-Patchwork-Id: 29087 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0B85327BBEA; Tue, 9 Jul 2024 15:20:08 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5857C27BBE2 for ; Tue, 9 Jul 2024 15:20:07 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRBhH-0007D4-9X; Tue, 09 Jul 2024 10:19:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRBhF-0007B5-Lc for guix-patches@gnu.org; Tue, 09 Jul 2024 10:19:57 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sRBhF-0001Hz-Cv for guix-patches@gnu.org; Tue, 09 Jul 2024 10:19:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sRBhK-0001WR-1C; Tue, 09 Jul 2024 10:20:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72009] [PATCH 1/2] gnu: ruby-libxml: Update to 5.0.3. Resent-From: gemmaro Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, guix-patches@gnu.org Resent-Date: Tue, 09 Jul 2024 14:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72009 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72009@debbugs.gnu.org Cc: gemmaro , Christopher Baines X-Debbugs-Original-Xcc: Christopher Baines Received: via spool by 72009-submit@debbugs.gnu.org id=B72009.17205347825803 (code B ref 72009); Tue, 09 Jul 2024 14:20:01 +0000 Received: (at 72009) by debbugs.gnu.org; 9 Jul 2024 14:19:42 +0000 Received: from localhost ([127.0.0.1]:53834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRBgz-0001VW-LA for submit@debbugs.gnu.org; Tue, 09 Jul 2024 10:19:41 -0400 Received: from mail-pg1-f174.google.com ([209.85.215.174]:56649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRBgy-0001VP-JE for 72009@debbugs.gnu.org; Tue, 09 Jul 2024 10:19:41 -0400 Received: by mail-pg1-f174.google.com with SMTP id 41be03b00d2f7-75c5bdab7faso2839094a12.1 for <72009@debbugs.gnu.org>; Tue, 09 Jul 2024 07:19:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720534714; x=1721139514; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aMa4cPV1zhXC3WFMSavL/mDPl7mCxOAkaO369BXWW9I=; b=JTO7MLmnHwWp4bmJTe1+UI+HZEwntjqFglrXUCEgWSktr08G5jG9cy5a/kCHpgb8iW b5wQXMPlVQHfDxHdwg2htHLYZvTYwuLiK0W4+vut+I5zo0939YxnyiuDbg6ilWxb07IW Uu4wxhBcQrEKYcfVyZqIVk3lz3EYs9mc3ODC+GWOjo6Qoixx705CWHDdgFOcfXtfz2WH rO6nObfwwFxCZ15rcbFVk/i4s0bnkMT/5bkLe77ne/IKmwPbvQ9hBnGOORb0KFuDSLXo KCDhtP+4y5bNTh6ObckABPH4zhu4LjyNQ/hIR2BJE4zr0/Q+DQs5pxXWUAw0pmCtp5Hw 9nqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720534714; x=1721139514; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aMa4cPV1zhXC3WFMSavL/mDPl7mCxOAkaO369BXWW9I=; b=ZDJEVs50+VrHHnW9jAfrifEn3ysVEqA1mGrtR4gC72mreJuUZJqusO9VlhllTRbA/H I0Ca2EFRzZ8DNlg6FqDDkC0uFprtD/EkrdUEwce3nVSyivwYfPxTm0cBpaBep5aUJ3/d 2Pm+7T7MULFQ85M5nQC84mbUAERuX3jgYDxaUy8P4QR9BQuR4hXdNgkh3AoeM0XSOcXl 0PXuLPuLdsECAEOlxe7GtsxB2/Z5RdTiLDicjkSoFkgpdhdxH6gObMT5DMI/CVvokl6Z jgrw2lCSbBEiZlEkAHcTfUMI0/YZs7wbAGNojSMuIzMwBtrR2zZTlwY+sLPYdbkQx6E+ MAmw== X-Gm-Message-State: AOJu0YwNn/IwHibxBjDyz9NcPg1KBe3PCTQv4lJDN2A8Nd4/9bSsZ5cE U0LCMvI7fgwa641ThcaiVXfDa+NTki34SrxIIoVfdR5/2+86roMV04jFUFft X-Google-Smtp-Source: AGHT+IGzK4h/jSfYDU/c6cAlmGnpodnKfF0mBJ5WgKNfNMD7ez3P2PJSVsLpQrZR76ISUk2qRP7svg== X-Received: by 2002:a05:6a20:4320:b0:1c0:e629:390d with SMTP id adf61e73a8af0-1c29821e1abmr3192573637.16.1720534713775; Tue, 09 Jul 2024 07:18:33 -0700 (PDT) Received: from mac.gemmaro.name ([240f:74:d1f0:1:1883:f3d1:907f:a2e3]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2ca3c74f184sm741602a91.0.2024.07.09.07.18.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jul 2024 07:18:33 -0700 (PDT) From: gemmaro Date: Tue, 9 Jul 2024 23:18:20 +0900 Message-ID: <96fc8bfd1055a3202fde32beaadfda8d10fff19a.1720534195.git.gemmaro.dev@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/ruby.scm (ruby-libxml): Update to 5.0.3. [native-inputs]: Add ruby-minitest and ruby-rake-compiler. [arguments]<#:tests?>: Remove to turn on tests. <#:phases>: Add skip-failing-tests and set-gem-path phase. Move check phase after set-gem-path in order to use compiled and installed extension files. Change-Id: Id9a3670bd84bc31b886748336aeb6b850a5b1b5d --- gnu/packages/ruby.scm | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 9547481caf..74877ac4a9 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -3211,26 +3211,51 @@ (define-public ruby-orderedhash (define-public ruby-libxml (package (name "ruby-libxml") - (version "3.0.0") + (version "5.0.3") (source (origin (method url-fetch) (uri (rubygems-uri "libxml-ruby" version)) (sha256 (base32 - "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54")))) + "1pib5bfwg684f1sczrhf3lzk9hb24dhsw5cmlnxm4rq66sx0slss")))) (build-system ruby-build-system) + (native-inputs (list ruby-minitest ruby-rake-compiler)) (inputs (list zlib libxml2)) (arguments - '(#:tests? #f ; test suite hangs for unknown reason - #:gem-flags + '(#:gem-flags (list "--no-document" ; TODO: Re-enable when documentation ; generation works "--" (string-append "--with-xml2-include=" (assoc-ref %build-inputs "libxml2") - "/include/libxml2" )))) + "/include/libxml2")) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'skip-failing-tests + (lambda _ + (for-each + (lambda (method) + (substitute* "test/test_canonicalize.rb" + (((string-append "def " method) def) + (string-append def "; skip \"CR/LF mismatch\";")))) + '("test_canonicalize_with_w3c_c14n_3_1" + "test_canonicalize_with_w3c_c14n_3_2" + "test_canonicalize_with_w3c_c14n_3_3" + "test_canonicalize_with_w3c_c14n_3_4")) + (substitute* "test/test_schema.rb" + (("def test_schema_load_from_uri" def) + (string-append def "; skip \"missing XLink schema\";"))))) + (delete 'check) + (add-after 'install 'set-gem-path + (lambda* (#:key outputs #:allow-other-keys) + (setenv "GEM_PATH" + (string-append + (getenv "GEM_PATH") ":" + (assoc-ref outputs "out") "/lib/ruby/vendor_ruby")))) + (add-after 'set-gem-path 'check + (assoc-ref %standard-phases 'check))))) (synopsis "Ruby bindings for GNOME Libxml2") (description "The Libxml-Ruby project provides Ruby language bindings for the GNOME Libxml2 XML toolkit.")