From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 8FG3LprADGQM8wAASxT56A (envelope-from ) for ; Sat, 11 Mar 2023 18:55:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6Ha4LprADGQIEwAA9RJhRA (envelope-from ) for ; Sat, 11 Mar 2023 18:55:38 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5DB892815F for ; Sat, 11 Mar 2023 18:55:38 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pb3Qv-00065U-Jf; Sat, 11 Mar 2023 12:55:05 -0500 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 1pb3Qs-00064h-UD for guix-patches@gnu.org; Sat, 11 Mar 2023 12:55:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pb3Qs-00070x-Gy for guix-patches@gnu.org; Sat, 11 Mar 2023 12:55:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pb3Qs-0003nj-Cc for guix-patches@gnu.org; Sat, 11 Mar 2023 12:55:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61015] [PATCH v2 4/4] gnu: docbook-xml-4.1.2: Add missing catalog.xml. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 11 Mar 2023 17:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61015 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61015@debbugs.gnu.org Cc: Bruno Victal Received: via spool by 61015-submit@debbugs.gnu.org id=B61015.167855727014544 (code B ref 61015); Sat, 11 Mar 2023 17:55:02 +0000 Received: (at 61015) by debbugs.gnu.org; 11 Mar 2023 17:54:30 +0000 Received: from localhost ([127.0.0.1]:58603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pb3QL-0003mK-3e for submit@debbugs.gnu.org; Sat, 11 Mar 2023 12:54:29 -0500 Received: from smtpm4.myservices.hosting ([185.26.105.235]:60428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pb3QI-0003lw-0Z for 61015@debbugs.gnu.org; Sat, 11 Mar 2023 12:54:26 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm4.myservices.hosting (Postfix) with ESMTP id 5599E20871 for <61015@debbugs.gnu.org>; Sat, 11 Mar 2023 18:54:25 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 0C9388009C; Sat, 11 Mar 2023 18:54:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Xv1nsHKKS4Ae; Sat, 11 Mar 2023 18:54:24 +0100 (CET) Received: from guix-nuc.home.arpa (bl9-119-177.dsl.telepac.pt [85.242.119.177]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 729468009E; Sat, 11 Mar 2023 18:54:23 +0100 (CET) From: Bruno Victal Date: Sat, 11 Mar 2023 17:54:13 +0000 Message-Id: X-Mailer: git-send-email 2.39.1 In-Reply-To: <821b168ca199012a29d7a95961c6380b40e46855.1678557210.git.mirai@makinata.eu> References: <821b168ca199012a29d7a95961c6380b40e46855.1678557210.git.mirai@makinata.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678557338; a=rsa-sha256; cv=none; b=AJqyss/NV/ECNgHMy1bBKKcf9LKAKi0bGDa6c7MJwusr0Vgx/l9tjCOLvaKSkzBdehdn+o RscDU9y9IQRPNje+wMGQhOE9kfLbufY004Qnqm7ueHRDn7henT3gjLkc51hIt4bIuU+PAm JTkld7VDhk3ri8m3b6OInr+oP+LrUjxq4dPwWv9/+zAlvv48af265+muyddSe3v0LYU8U/ 2Di3MprmKSxgidrnmImm9NrC3CvZylSl/zteRZj/V/OkTYSFynx1J8ZgrC1tXd/e60uzCf ioXD+GvuJCwuONkqbVPHKxCYSxIYJP3F21D4wT5TsU63CgLBGRFg0eP91dWalA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678557338; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=9UwoJ7elu/XiSha74MbsEBTQpLzhE1iAbeEPfom9zy0=; b=kLE6ILpKF70+QOAOiGAKzhQcZwVFu9XCWHCoHbKd2I2HPa0RO7wq5fRH9cs2XGh97BJauA VK/7Jbwg/ixMzPquRuw22jGYqb0NJMDLPWe0Oxwebz0pVWXnJyYjnQFQkdXi6wUFEnRCCR x1Ys+FYHo//5LyeLr5SJSRzmRCMHxDHI7EosJMUoYyRf738nFk+KB6ky5/G95kOQlqjx9N IufYA/9OodDBsYA3Oix5GJCdCCLY6PQDQX5iVcXZHf5LDP/mlcu+fHIIWhV+38Zjd6Uc+V fy8SQsfnvJNvsdWTlN0cGWqX5i6XKOFkrmiBDorcjoEeC0h3QDJIZfGkmvTjuw== X-Migadu-Spam-Score: -1.70 X-Spam-Score: -1.70 X-Migadu-Queue-Id: 5DB892815F X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-TUID: MZn7lfZIlCYZ * gnu/packages/aux-files/xml/docbook-xml/catalog-4.1.2.xml: New file. * Makefile.am: Register it. * gnu/packages/docbook.scm (docbook-xml-4.1.2)[arguments]: Use prebuilt catalog.xml. [native-inputs]: Add libxml2. --- Makefile.am | 3 +- .../xml/docbook-xml/catalog-4.1.2.xml | 31 ++++++++++++++++ gnu/packages/docbook.scm | 36 ++++++++++++++++++- 3 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 gnu/packages/aux-files/xml/docbook-xml/catalog-4.1.2.xml diff --git a/Makefile.am b/Makefile.am index 73369c746c..310bbe1494 100644 --- a/Makefile.am +++ b/Makefile.am @@ -437,7 +437,8 @@ AUX_FILES = \ gnu/packages/aux-files/python/sitecustomize.py \ gnu/packages/aux-files/renpy/renpy.in \ gnu/packages/aux-files/run-in-namespace.c \ - gnu/packages/aux-files/xml/patch-catalog-xml.xsl + gnu/packages/aux-files/xml/patch-catalog-xml.xsl \ + gnu/packages/aux-files/xml/docbook-xml/catalog-4.1.2.xml # Templates, examples. EXAMPLES = \ diff --git a/gnu/packages/aux-files/xml/docbook-xml/catalog-4.1.2.xml b/gnu/packages/aux-files/xml/docbook-xml/catalog-4.1.2.xml new file mode 100644 index 0000000000..cfb1849202 --- /dev/null +++ b/gnu/packages/aux-files/xml/docbook-xml/catalog-4.1.2.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm index 2d11333608..902e418b17 100644 --- a/gnu/packages/docbook.scm +++ b/gnu/packages/docbook.scm @@ -39,6 +39,7 @@ (define-module (gnu packages docbook) #:use-module (gnu packages web-browsers) #:use-module (gnu packages xml) #:use-module (guix gexp) + #:use-module (guix utils) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) @@ -151,7 +152,40 @@ (define-public docbook-xml-4.1.2 "/docbkx412.zip")) (sha256 (base32 - "0wkp5rvnqj0ghxia0558mnn4c7s3n501j99q2isp3sp0ci069w1h")))))) + "0wkp5rvnqj0ghxia0558mnn4c7s3n501j99q2isp3sp0ci069w1h")))) + (arguments + (substitute-keyword-arguments (package-arguments docbook-xml) + ((#:phases phases) + #~(modify-phases #$phases + (add-after 'unpack 'copy-catalog-file + ;; docbook-xml-4.1.2 is unique in the fact that it doesn't come + ;; with a catalog.xml file, requiring it to be generated by hand + ;; from the docbook.cat SGML catalog. We could automatically + ;; generate it here at the cost of enlarging the package + ;; definition with a rudimentary (PEG) parser for the SGML + ;; catalog but this is overkill since this file is unlikely to + ;; change, therefore we ship a pre-generated catalog.xml. + (lambda _ + (copy-file + #$(local-file + (search-auxiliary-file + "xml/docbook-xml/catalog-4.1.2.xml")) + "catalog.xml"))) + (add-after 'patch-catalog-xml 'add-rewrite-entries + (lambda* (#:key inputs #:allow-other-keys) + (let ((xmlcatalog (search-input-file inputs "/bin/xmlcatalog")) + (dtd-path (string-append #$output "/xml/dtd/docbook"))) + (for-each + (lambda (type) + (invoke xmlcatalog "--noout" + "--add" type + "http://www.oasis-open.org/docbook/xml/4.1.2/" + (string-append "file://" dtd-path "/") + "catalog.xml")) + (list "rewriteSystem" "rewriteURI"))))))))) + (native-inputs + (modify-inputs (package-native-inputs docbook-xml) + (prepend libxml2))))) (define-public docbook-xsl (package -- 2.39.1