From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MJy/KB4CzmOYZAEAbAwnHQ (envelope-from ) for ; Mon, 23 Jan 2023 04:42:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EJeeKB4CzmNlLAAAauVa8A (envelope-from ) for ; Mon, 23 Jan 2023 04:42:22 +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 47B0C42E67 for ; Mon, 23 Jan 2023 04:42:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJnii-00083E-49; Sun, 22 Jan 2023 22:42:08 -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 1pJnic-00082e-A2 for guix-patches@gnu.org; Sun, 22 Jan 2023 22:42: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 1pJnib-0001Nc-Qk for guix-patches@gnu.org; Sun, 22 Jan 2023 22:42:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pJnib-0005Ic-Kj for guix-patches@gnu.org; Sun, 22 Jan 2023 22:42:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61015] [PATCH core-updates 9/9] 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: Mon, 23 Jan 2023 03:42:01 +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.167444528720330 (code B ref 61015); Mon, 23 Jan 2023 03:42:01 +0000 Received: (at 61015) by debbugs.gnu.org; 23 Jan 2023 03:41:27 +0000 Received: from localhost ([127.0.0.1]:52975 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJni2-0005Hp-Rq for submit@debbugs.gnu.org; Sun, 22 Jan 2023 22:41:27 -0500 Received: from smtpm2.myservices.hosting ([185.26.105.233]:38210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJni0-0005Hg-0u for 61015@debbugs.gnu.org; Sun, 22 Jan 2023 22:41:25 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.172]) by smtpm2.myservices.hosting (Postfix) with ESMTP id 5E78020DF7 for <61015@debbugs.gnu.org>; Mon, 23 Jan 2023 04:41:23 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 114EE80096; Mon, 23 Jan 2023 04:41:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-1.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Sy-v6he91cxO; Mon, 23 Jan 2023 04:41:22 +0100 (CET) Received: from guix-nuc.home.arpa (bl9-118-236.dsl.telepac.pt [85.242.118.236]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 4D55980093; Mon, 23 Jan 2023 04:41:22 +0100 (CET) From: Bruno Victal Date: Mon, 23 Jan 2023 03:32:55 +0000 Message-Id: <547d75c1c95c3334a6d985c397651c84b660e49c.1674443296.git.mirai@makinata.eu> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674445342; 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=CCRNOHY4OJkoSjfy8r0R+QO55o1GwFjWYj3Ark5nUhU=; b=VmDcRTQ7p1Ow3XloZJw2x4mShnxptH+CmhGOZdGiMVCExfXg6gB0WFBd4n2Ka+ySzFqSQd LQWlvqr8w63cpFQEoJcUto4qSSY8jbacHIrNP2UXBqXoBFLdGC4OPLPmGUhH1eofesUCrd a7A/K67qE878nE4G910+Hu6a7/6NHv4LHJ4SBNYbSQUOvJi4S8COvaqwD5YdQKikVazj/G BKIy+E2CmStJWf/mcqwgRbh9JICdsIp2qiwvStyplG2HY20bD5CJBQEAR/r1FszaaF0WXx ImyxJZcfz0t0WUq+mS+VQ+biZvRvkfMEWvr8IE3XH5zsuOj9YKhFYagZV/XoxA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674445342; a=rsa-sha256; cv=none; b=fwA8+E1YYLdm3KFgxbrZPfx5vxHA1OTNhPYoGmMRg5BTsd2uF5s+7cRGi+SpPROZRSE9tS hjVbkHGVb7BmjiwqmO3zFPeqLvImNuiogzpFtMXO41yWJNqTxflcR2HptkCBZnWFZwOCvG ZHiV8ayLOeBHGBXtksbaLBKjPGmnaDrM0//d6d2x0uZmeXc+KQaPp8qSsuOJzOoY7w/MK2 zd9QDEDRuL7Wqvoc/pKkvZRk/KDVXnCKbAo8ZcCJ/xnief5chPWYO9mWi4htZp6ATAD68t TyrIZKN61P6Jf9VTjD7Q8h7FipSvi99glwRNasRaxFpr+2j8QO51rwrwp3485Q== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.58 X-Spam-Score: -1.58 X-Migadu-Queue-Id: 47B0C42E67 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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" X-TUID: Qg2A/8OHtu9V * gnu/packages/aux-files/xml/docbook-xml/catalog-4.1.2.xml: New file. * gnu/packages/docbook.scm (docbook-xml-4.1.2) [arguments]: Use prebuilt catalog.xml. [native-inputs]: Add libxml2. --- .../xml/docbook-xml/catalog-4.1.2.xml | 31 +++++++++++++++++++ gnu/packages/docbook.scm | 31 ++++++++++++++++++- 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/aux-files/xml/docbook-xml/catalog-4.1.2.xml 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 ce0b823e3a..6dc57d5d03 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,35 @@ (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 use 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-uri '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))))) ;;; There's an issue in docbook-xsl 1.79.2 that causes manpages to be ;;; generated incorrectly and embed raw nroff syntax such as '.PP' when there -- 2.38.1