From patchwork Fri Aug 20 12:09:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Whatson X-Patchwork-Id: 32194 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 B312727BC6B; Fri, 20 Aug 2021 13:10:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8F93D27BC78 for ; Fri, 20 Aug 2021 13:10:12 +0100 (BST) Received: from localhost ([::1]:51888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mH3Lf-0000UW-HN for patchwork@mira.cbaines.net; Fri, 20 Aug 2021 08:10:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mH3LW-0000Ts-Ji for guix-patches@gnu.org; Fri, 20 Aug 2021 08:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49793) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mH3LW-0000xm-CK for guix-patches@gnu.org; Fri, 20 Aug 2021 08:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mH3LW-0001QK-84 for guix-patches@gnu.org; Fri, 20 Aug 2021 08:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50131] [PATCH 1/3] gnu: Prefix licenses in docbook module. Resent-From: Andrew Whatson Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 20 Aug 2021 12:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50131 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50131@debbugs.gnu.org Cc: Andrew Whatson Received: via spool by 50131-submit@debbugs.gnu.org id=B50131.16294613625384 (code B ref 50131); Fri, 20 Aug 2021 12:10:02 +0000 Received: (at 50131) by debbugs.gnu.org; 20 Aug 2021 12:09:22 +0000 Received: from localhost ([127.0.0.1]:33100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mH3Kr-0001Om-LD for submit@debbugs.gnu.org; Fri, 20 Aug 2021 08:09:21 -0400 Received: from mail-pf1-f180.google.com ([209.85.210.180]:41530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mH3Kp-0001OV-PM for 50131@debbugs.gnu.org; Fri, 20 Aug 2021 08:09:20 -0400 Received: by mail-pf1-f180.google.com with SMTP id i21so8412888pfd.8 for <50131@debbugs.gnu.org>; Fri, 20 Aug 2021 05:09:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=j+3kXFHC3WN2RLRPpSpm1FtDnj5ZNpZoq3OKPAjIZv8=; b=cMNx1NeMyeM+tFtVG2GsAVJavhl7mJaD9S5sWuCQmK3bHGZM3oJEWkmfJbkzcKonW7 yYZItnFtZNAtJ0LiWZaHcO5Iwg7w3CVVUnx8Q2fDm8356pnLWr2TZoSnan9+r0C/HVqE q1SHV6UajRfFSB3PKKTpB+b571SFbH65oBxbhXi9Qh0WxSU6VMh1/tu4iYmy7/Dn2v5g R3GeogqMefx5JBrIzml4BGUv4e28+gWKSODSVH4TN2/S7yfDD4oULHaJ+ukN4oqPLJlf 4PSuTHlt/1cpCkePa3UDQB+ApdCdh1/DBAAoyLRo7r4NP7DWqi/NiYH+NcPwPjeadHU8 IX4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=j+3kXFHC3WN2RLRPpSpm1FtDnj5ZNpZoq3OKPAjIZv8=; b=JOOzzgHeTrLVfOzGxIxCxmG8TZn3jU1GiGSpKJkVNxUmeWNDOBtUvn3qkMQHTSoFUj zJdmXcxzuhi32HzxzeWiGIulv2d59WbBrgV3BjRc5463Zrb6ksUT3QLG+pUmO08LfUBJ WTX2vai08bjXL+s8509r7s2eM10iiH5bvb+/7Wqoaln+RRglCu1rRGtd7sI8WKI380yT 4Q8Nnb/6RKLwck52jE2bEVqlKFb/PAJkp6/tj85XT2cougfb8SMW2y6KV/FoYfvgPofT h298vqv6ezp78M8uA3IWHCW4xCgPnAI8oPiEgxvazX8gNM2gLTlOsaLPt4/Hv4VKsj9d i+2A== X-Gm-Message-State: AOAM530tWeZDAHwP4vq6MIv8vSAp74AqfOsMStTmkPsiSVvAOimSwRRO 5X5bBWg7YM2pyqrFZUL38TjJsqgUPOo= X-Google-Smtp-Source: ABdhPJzg+5aP6v7iwetgmFeUgt50eAYanajrs/9RytshUKApSKvct04IicEA9FK5ySP/bpP1WPS0Aw== X-Received: by 2002:a63:e00b:: with SMTP id e11mr18642852pgh.190.1629461353474; Fri, 20 Aug 2021 05:09:13 -0700 (PDT) Received: from muon.fritz.box (220-235-208-141.tpgi.com.au. [220.235.208.141]) by smtp.gmail.com with ESMTPSA id gb17sm5543112pjb.26.2021.08.20.05.09.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Aug 2021 05:09:13 -0700 (PDT) From: Andrew Whatson Date: Fri, 20 Aug 2021 22:09:05 +1000 Message-Id: <20210820120907.83191-1-whatson@gmail.com> X-Mailer: git-send-email 2.32.0 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" X-getmail-retrieved-from-mailbox: Patches This prevents conflicts between expat package and expat license. * gnu/packages/docbook.scm (docbook-xml-5): Prefix license variable. (docbook-xsl): Likewise. (docbook-dsssl): Likewise. (docbook-dsssl-doc): Likewise. (docbook-sgml): Likewise. (iso-8879-entities): Likewise. (dblatex): Likewise. --- gnu/packages/docbook.scm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm index 1945fb6a4b..6a69f8cf89 100644 --- a/gnu/packages/docbook.scm +++ b/gnu/packages/docbook.scm @@ -31,7 +31,7 @@ #:use-module (gnu packages python) #:use-module (gnu packages base) #:use-module (gnu packages xml) - #:use-module (guix licenses) + #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) #:use-module ((guix build utils) #:select (alist-replace)) @@ -77,7 +77,7 @@ "DocBook is general purpose XML and SGML document type particularly well suited to books and papers about computer hardware and software (though it is by no means limited to these applications.) This package provides XML DTDs.") - (license (x11-style "" "See file headers.")))) + (license (license:x11-style "" "See file headers.")))) (define-public docbook-xml (package @@ -215,7 +215,7 @@ by no means limited to these applications.) This package provides XML DTDs.") (synopsis "DocBook XSL style sheets for document authoring") (description "This package provides XSL style sheets for DocBook.") - (license (x11-style "" "See 'COPYING' file.")))) + (license (license:x11-style "" "See 'COPYING' file.")))) (define-public docbook-dsssl (package @@ -256,7 +256,7 @@ by no means limited to these applications.) This package provides XML DTDs.") (home-page "https://docbook.org/") (synopsis "DSSSL style sheets for DocBook") (description "This package provides DSSSL style sheets for DocBook.") - (license (non-copyleft "file://README")))) + (license (license:non-copyleft "file://README")))) ;;; Private variable, used as the 'doc' output of the docbook-dsssl package. (define docbook-dsssl-doc @@ -294,7 +294,7 @@ by no means limited to these applications.) This package provides XML DTDs.") (home-page "https://docbook.org/") (synopsis "DocBook DSSSL style sheets documentation") (description "Documentation for the DocBook DSSSL style sheets.") - (license (non-copyleft "file://doc/LEGALNOTICE.htm")))) + (license (license:non-copyleft "file://doc/LEGALNOTICE.htm")))) (define-public docbook-sgml (package @@ -336,7 +336,7 @@ by no means limited to these applications.) This package provides XML DTDs.") (home-page "https://docbook.org") (synopsis "DocBook SGML style sheets for document authoring") (description "This package provides SGML style sheets for DocBook.") - (license (x11-style "" "See file headers.")))) + (license (license:x11-style "" "See file headers.")))) (define-public docbook-sgml-3.1 (package @@ -377,7 +377,7 @@ by no means limited to these applications.) This package provides XML DTDs.") (synopsis "ISO 8879 character entities") (description "ISO 8879 character entities that are typically used in the in DocBook SGML DTDs.") - (license (x11-style "" "See file headers.")))) + (license (license:x11-style "" "See file headers.")))) (define-public dblatex (package @@ -461,7 +461,7 @@ to DVI, PostScript or PDF by translating them in pure LaTeX as a first process. MathML 2.0 markups are supported too. It started as a clone of DB2LaTeX.") ;; lib/contrib/which is under an X11 license - (license gpl2+))) + (license license:gpl2+))) ;; This is a variant of the 'dblatex' package that is not updated often. It ;; is intended to be used as a native-input at build-time only, e.g. by From patchwork Fri Aug 20 12:09:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andrew Whatson X-Patchwork-Id: 32195 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 1EF5127BC6B; Fri, 20 Aug 2021 13:10:15 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 935B727BC85 for ; Fri, 20 Aug 2021 13:10:12 +0100 (BST) Received: from localhost ([::1]:51890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mH3Lf-0000UX-Cb for patchwork@mira.cbaines.net; Fri, 20 Aug 2021 08:10:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mH3LX-0000U0-2S for guix-patches@gnu.org; Fri, 20 Aug 2021 08:10:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49794) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mH3LW-0000y7-Rr for guix-patches@gnu.org; Fri, 20 Aug 2021 08:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mH3LW-0001QR-NC for guix-patches@gnu.org; Fri, 20 Aug 2021 08:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50131] [PATCH 2/3] gnu: Add docbook2x. Resent-From: Andrew Whatson Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 20 Aug 2021 12:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50131 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50131@debbugs.gnu.org Cc: Andrew Whatson Received: via spool by 50131-submit@debbugs.gnu.org id=B50131.16294613715409 (code B ref 50131); Fri, 20 Aug 2021 12:10:02 +0000 Received: (at 50131) by debbugs.gnu.org; 20 Aug 2021 12:09:31 +0000 Received: from localhost ([127.0.0.1]:33103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mH3L1-0001PB-0g for submit@debbugs.gnu.org; Fri, 20 Aug 2021 08:09:31 -0400 Received: from mail-pg1-f170.google.com ([209.85.215.170]:38725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mH3Ky-0001Ou-U0 for 50131@debbugs.gnu.org; Fri, 20 Aug 2021 08:09:29 -0400 Received: by mail-pg1-f170.google.com with SMTP id w8so8951671pgf.5 for <50131@debbugs.gnu.org>; Fri, 20 Aug 2021 05:09:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2lRAla9BPXv1ykQx7fftYWM3SfqBPYvZrx2fWuURDck=; b=FRgJklUIutW8K4FeiAOxB+WZj8JIoqH5adSNTPZDjmEKPAwOb48D2ZZPn3gsFvhL7q vqhQQHY9YJpaUJdwgpHEpAFfTadyydPA3ReObXbUIhHmFedk2LNBMdxnm1VdxJMFBmiM ZQVFEoXHNzB0uMcSCpSIOT4WhkvP9JXoqqXVhm18vIVQm3uS3SzPDWwqcv6hpC5EuJeZ FunrlHSKBKARIEtKANB29HPzDqMUGm3HdUhfJaMYs2ylYq2GfHxMfrh1xWKkPvEUnkAA QIpSvOJVAU89zh0XaUjS9/3dtFmnbg+xdb8BgPsaVRnxvGufZGKzlgV7UXBX+kzIRWzq N+tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2lRAla9BPXv1ykQx7fftYWM3SfqBPYvZrx2fWuURDck=; b=THaB9tkHnQFXqoWwf+brciEMvGZ3putCNiq4cW2aKma6tqgIRRaZs5K8PtVeYZZjk6 HDxgbrv/nP2C3GBB6EYkM4Eoa3vbZ+zcgunoXYddJ5Lpm0TNLdK5bV/xfzUZI/XWYQRl cNbXNWJjgpTwuKilrTOgPEWkqlBTM1XrmhsHR3G1Dv2Z/+7oEcKeEcJvIoT6fG/3/klj 6mMxyxxge7NEz7s+C3I5CMXXLmsXuq8ZvSxofwNlykwsezUaCuhPXvaeEpS64l+egBhy HwkxB0QFkYAuCydxWAxz5EMFAXDZTM1lWcQYoF6YDBUHVOLVcqrcxEvAVtatLugwcoOT /8WA== X-Gm-Message-State: AOAM531hMkO5chrt1Qc5NWPcCFpHwylYx0QO0sXqVZm3QIZ6o0CeAM+A b0HbOxDuF68aEq2wdRHsJ4fVGeb2yDU= X-Google-Smtp-Source: ABdhPJz8Y3rEMNDAM9wgREb2ujXBF4AIffMPJCnha2/Q5wIBEs8GW8PnpmIENuRq8uGek6G2FtcPrA== X-Received: by 2002:a65:6494:: with SMTP id e20mr18803474pgv.101.1629461363177; Fri, 20 Aug 2021 05:09:23 -0700 (PDT) Received: from muon.fritz.box (220-235-208-141.tpgi.com.au. [220.235.208.141]) by smtp.gmail.com with ESMTPSA id gb17sm5543112pjb.26.2021.08.20.05.09.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Aug 2021 05:09:22 -0700 (PDT) From: Andrew Whatson Date: Fri, 20 Aug 2021 22:09:06 +1000 Message-Id: <20210820120907.83191-2-whatson@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210820120907.83191-1-whatson@gmail.com> References: <20210820120907.83191-1-whatson@gmail.com> 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/docbook.scm (docbook2x): New variable. --- gnu/packages/docbook.scm | 87 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm index 6a69f8cf89..fdc432eb20 100644 --- a/gnu/packages/docbook.scm +++ b/gnu/packages/docbook.scm @@ -6,6 +6,7 @@ ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2021 Maxim Cournoyer ;;; Copyright © 2021 Mark H Weaver +;;; Copyright © 2021 Andrew Whatson ;;; ;;; This file is part of GNU Guix. ;;; @@ -24,10 +25,13 @@ (define-module (gnu packages docbook) #:use-module (gnu packages) + #:use-module (gnu packages bash) #:use-module (gnu packages compression) #:use-module (gnu packages imagemagick) #:use-module (gnu packages inkscape) #:use-module (gnu packages tex) + #:use-module (gnu packages texinfo) + #:use-module (gnu packages perl) #:use-module (gnu packages python) #:use-module (gnu packages base) #:use-module (gnu packages xml) @@ -35,6 +39,7 @@ #:use-module (guix packages) #:use-module (guix download) #:use-module ((guix build utils) #:select (alist-replace)) + #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) #:use-module (guix build-system python)) @@ -473,3 +478,85 @@ DB2LaTeX.") (package/inherit dblatex (inputs (alist-replace "imagemagick" `(,imagemagick/stable) (package-inputs dblatex)))))) + +(define-public docbook2x + (package + (name "docbook2x") + (version "0.8.8") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/docbook2x/docbook2x/" + version "/docbook2X-" version ".tar.gz")) + (sha256 + (base32 + "0ifwzk99rzjws0ixzimbvs83x6cxqk1xzmg84wa1p7bs6rypaxs0")))) + (build-system gnu-build-system) + (inputs + `(("bash-minimal" ,bash-minimal) + ("docbook-xml" ,docbook-xml) + ("perl" ,perl) + ("perl-xml-namespacesupport" ,perl-xml-namespacesupport) + ("perl-xml-parser" ,perl-xml-parser) + ("perl-xml-sax" ,perl-xml-sax) + ("perl-xml-sax-base" ,perl-xml-sax-base) + ("texinfo" ,texinfo) + ("xsltproc" ,libxslt))) + (arguments + `(#:configure-flags + (list (string-append "--prefix=" (assoc-ref %outputs "out"))) + #:phases + (modify-phases %standard-phases + (add-after 'configure 'patch-sources + (lambda* (#:key inputs outputs #:allow-other-keys) + ;; Fix failed substitution in config.pl + (substitute* "perl/config.pl" + (("\\$\\{prefix\\}") + (assoc-ref outputs "out"))) + ;; Fix a failing test (maybe it worked with old texinfo?) + (substitute* "test/complete-manuals/at1.xml" + (("") + "")) + ;; Patch all the tests use DocBook 4.5 + (substitute* (find-files "test" "\\.xml$") + (("\"-//OASIS//DTD DocBook XML V4\\..+//EN\"") + "\"-//OASIS//DTD DocBook XML V4.5//EN\"") + (("\"http://www\\.oasis-open\\.org/docbook/xml/4\\..+/docbookx.dtd\"") + "\"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd\"")) + ;; Set XML catalogs for tests to pass + (setenv "XML_CATALOG_FILES" + (string-append (assoc-ref inputs "docbook-xml") + "/xml/dtd/docbook/catalog.xml")))) + (add-after 'install 'wrap-programs + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (programs + (map (lambda (p) + (string-append out "/bin/" p)) + '("db2x_manxml" "db2x_texixml" "db2x_xsltproc" + "docbook2man" "docbook2texi"))) + (perl5lib + (map (lambda (i) + (string-append (assoc-ref inputs i) + "/lib/perl5/site_perl")) + '("perl-xml-namespacesupport" + "perl-xml-parser" + "perl-xml-sax" + "perl-xml-sax-base"))) + (xml-catalog-files + (list (string-append (assoc-ref inputs "docbook-xml") + "/xml/dtd/docbook/catalog.xml")))) + (map (lambda (program) + (wrap-program program + `("PERL5LIB" ":" prefix + ,perl5lib) + `("XML_CATALOG_FILES" " " prefix + ,xml-catalog-files))) + programs))))))) + (home-page "http://docbook2x.sourceforge.net") + (synopsis "Convert DocBook to man page and Texinfo format") + (description + "docbook2X is a software package that converts DocBook documents into the +traditional Unix man page format and the GNU Texinfo format. Notable features +include table support for man pages, internationalization support, and easy +customization of the output using XSLT.") + (license license:expat))) From patchwork Fri Aug 20 12:09:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Whatson X-Patchwork-Id: 32196 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 B9AA127BC78; Fri, 20 Aug 2021 13:10:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 876AC27BC6B for ; Fri, 20 Aug 2021 13:10:19 +0100 (BST) Received: from localhost ([::1]:52324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mH3Lm-0000ma-MN for patchwork@mira.cbaines.net; Fri, 20 Aug 2021 08:10:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mH3LX-0000UD-Gs for guix-patches@gnu.org; Fri, 20 Aug 2021 08:10:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49795) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mH3LX-0000ya-9r for guix-patches@gnu.org; Fri, 20 Aug 2021 08:10:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mH3LX-0001QZ-3E for guix-patches@gnu.org; Fri, 20 Aug 2021 08:10:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50131] [PATCH 3/3] gnu: Generate man pages for lxc. Resent-From: Andrew Whatson Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 20 Aug 2021 12:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50131 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50131@debbugs.gnu.org Cc: Andrew Whatson Received: via spool by 50131-submit@debbugs.gnu.org id=B50131.16294613735423 (code B ref 50131); Fri, 20 Aug 2021 12:10:03 +0000 Received: (at 50131) by debbugs.gnu.org; 20 Aug 2021 12:09:33 +0000 Received: from localhost ([127.0.0.1]:33106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mH3L3-0001PP-Es for submit@debbugs.gnu.org; Fri, 20 Aug 2021 08:09:33 -0400 Received: from mail-pl1-f181.google.com ([209.85.214.181]:34325) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mH3L1-0001Oy-Sw for 50131@debbugs.gnu.org; Fri, 20 Aug 2021 08:09:32 -0400 Received: by mail-pl1-f181.google.com with SMTP id j2so1423806pll.1 for <50131@debbugs.gnu.org>; Fri, 20 Aug 2021 05:09:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zlhIWdoU4anK3Q81W5Sd+ZmrITQ4U5eh5I3TN5Fd7Ec=; b=p1n6D5KH42hHV4CcNCY7um6d7a5NFep4g9bf2H42QI+3NZMme9agq+u1NpwsY3SDrz Lq5lthH3mzCzc/pa6lbdDGdwog9JuC55SH3ecn5Iy0w22DkCA8xMgviRwIS/Yr7JLQnY 9kv0DnseRBsmJEFk3bxkN6ygZz33qcdGizlm0kqNJolPN3jjaWK6VdR8AqiSy+nsKnNi givbKPJo5W6qU1LKJmLxKDRX3YFeFFe+88r5GdnW97/TjfYiQSfDA8PJLeOF3LhtD5bx fl0Oh6E9YkTQfvgzQeWgPzirRY8aQX1J6qUOgX+FYlnUEEh8V1qSKCPJ9Xs239WIc0zb 7Ubw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zlhIWdoU4anK3Q81W5Sd+ZmrITQ4U5eh5I3TN5Fd7Ec=; b=kUD5orxvbiTufbe6EGoMujZVgYcDwT7vdHNCPrCjIuTl/NPIcHQcFOlnzy+UeZScdS VS700JxQv+bBDwhtYTqZy+/NbNtlSsY5MR/6jRtj97qL4L8F8ARFiP8Cw4P9I4+XV6C2 PCs4PQcazg4zUS05OE3bQgb2JbIy5F1SIuIdeGfgfOlmHRtZJz7FJetGjnS69pXQjhnA 0+5LPbc7DXMB48BJXBjB9/2ffGslJXl7ZEkWh2CDxZ/xn+UT4B89u3B4V4dzypmzwHr8 +Jj/U3flrULm/ILLuw9XrM80ETPjzwAoA+tCG/len4ADHakOo6S/+CGW8WNp62wXVzJU RLYw== X-Gm-Message-State: AOAM533hmpFY/gC9mmE2qz12L2LYggn4rXAyzumHyRgw8RYo1tqJVvY0 XvewPOrQFRSZugfK6pz9z19pd2gxx30= X-Google-Smtp-Source: ABdhPJyEtFMhGQ+MrEvXYzxgdjD4/1SHEcACmS7gjMj0nYl4pjZrX1iNfUy6CTRWfFqPHb5Xh+Tfig== X-Received: by 2002:a17:902:ed82:b029:ef:48c8:128e with SMTP id e2-20020a170902ed82b02900ef48c8128emr16347897plj.72.1629461366063; Fri, 20 Aug 2021 05:09:26 -0700 (PDT) Received: from muon.fritz.box (220-235-208-141.tpgi.com.au. [220.235.208.141]) by smtp.gmail.com with ESMTPSA id gb17sm5543112pjb.26.2021.08.20.05.09.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Aug 2021 05:09:25 -0700 (PDT) From: Andrew Whatson Date: Fri, 20 Aug 2021 22:09:07 +1000 Message-Id: <20210820120907.83191-3-whatson@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210820120907.83191-1-whatson@gmail.com> References: <20210820120907.83191-1-whatson@gmail.com> 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/virtualization.scm (lxc)[inputs]: Add docboo2x. [phases]{patch-docbook-dtd}: New phase. --- gnu/packages/virtualization.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index 1bbcb46b99..f1a9e28d3f 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -1008,7 +1008,8 @@ all common programming languages. Vala bindings are also provided.") "0qz4l7mlhq7hx53q606qgvkyzyr01glsw290v8ppzvxn1fydlrci")))) (build-system gnu-build-system) (native-inputs - `(("pkg-config" ,pkg-config))) + `(("pkg-config" ,pkg-config) + ("docbook2x" ,docbook2x))) (inputs `(("gnutls" ,gnutls) ("libcap" ,libcap) @@ -1022,6 +1023,12 @@ all common programming languages. Vala bindings are also provided.") "--localstatedir=/var") #:phases (modify-phases %standard-phases + (add-before 'configure 'patch-docbook-dtd + (lambda _ + ;; Fix incorrect DocBook DTD + (substitute* "configure" + (("\\\\\"-//Davenport//DTD DocBook V3\\.0//EN\\\\\"") + "\\\"-//OASIS//DTD DocBook XML\\\" \\\"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd\\\"")))) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out"))