[bug#65479,core-updates,09/61] gnu: docbook2x: Fix sgml2xml-isoent and add test dependencies.
Message ID | c158b9ccdac64bf378b11d5af04e5b3ee73481da.1692830149.git.mirai@makinata.eu |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4003927BBE2; Wed, 23 Aug 2023 23:38:56 +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.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=ham 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 77E9127BBEA for <patchwork@mira.cbaines.net>; Wed, 23 Aug 2023 23:38:54 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1qYwTP-0007s9-Hi; Wed, 23 Aug 2023 18:37:11 -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 <Debian-debbugs@debbugs.gnu.org>) id 1qYwTF-0007mP-Jq for guix-patches@gnu.org; Wed, 23 Aug 2023 18:37:01 -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 <Debian-debbugs@debbugs.gnu.org>) id 1qYwTF-0004va-9R for guix-patches@gnu.org; Wed, 23 Aug 2023 18:37:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qYwTI-0004AR-T1 for guix-patches@gnu.org; Wed, 23 Aug 2023 18:37:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65479] [PATCH core-updates 09/61] gnu: docbook2x: Fix sgml2xml-isoent and add test dependencies. Resent-From: Bruno Victal <mirai@makinata.eu> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 23 Aug 2023 22:37:04 +0000 Resent-Message-ID: <handler.65479.B65479.169283018915567@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65479 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65479@debbugs.gnu.org Cc: Bruno Victal <mirai@makinata.eu> Received: via spool by 65479-submit@debbugs.gnu.org id=B65479.169283018915567 (code B ref 65479); Wed, 23 Aug 2023 22:37:04 +0000 Received: (at 65479) by debbugs.gnu.org; 23 Aug 2023 22:36:29 +0000 Received: from localhost ([127.0.0.1]:35343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1qYwSh-00042e-Qh for submit@debbugs.gnu.org; Wed, 23 Aug 2023 18:36:28 -0400 Received: from smtpm5.myservices.hosting ([185.26.105.236]:33644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mirai@makinata.eu>) id 1qYwSW-00040v-TS for 65479@debbugs.gnu.org; Wed, 23 Aug 2023 18:36:17 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm5.myservices.hosting (Postfix) with ESMTP id 985C320CED for <65479@debbugs.gnu.org>; Thu, 24 Aug 2023 00:36:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 7066A8009A; Thu, 24 Aug 2023 00:36:08 +0200 (CEST) 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 IKU67usrlUfO; Thu, 24 Aug 2023 00:36:08 +0200 (CEST) Received: from guix-nuc.home.arpa (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 50B068009B; Thu, 24 Aug 2023 00:36:07 +0200 (CEST) From: Bruno Victal <mirai@makinata.eu> Date: Wed, 23 Aug 2023 23:35:01 +0100 Message-Id: <c158b9ccdac64bf378b11d5af04e5b3ee73481da.1692830149.git.mirai@makinata.eu> X-Mailer: git-send-email 2.40.1 In-Reply-To: <cover.1692828533.git.mirai@makinata.eu> References: <cover.1692828533.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: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=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 |
Series |
The Draining of the XML & DocBook Swamp.
|
|
Commit Message
Bruno Victal
Aug. 23, 2023, 10:35 p.m. UTC
* gnu/packages/docbook.scm (docbook2x)[arguments]<#:phases>: Add 'sgml-check phase. [inputs]: Add opensp. [native-inputs]: Add docbook-xml-4.1.2, docbook-xml-4.2, docbook-xml-4.4, tidy-html, groff-minimal and libxml2. --- gnu/packages/docbook.scm | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
Comments
Hi, Bruno Victal <mirai@makinata.eu> writes: > * gnu/packages/docbook.scm (docbook2x)[arguments]<#:phases>: Add 'sgml-check > phase. > [inputs]: Add opensp. > [native-inputs]: Add docbook-xml-4.1.2, docbook-xml-4.2, docbook-xml-4.4, > tidy-html, groff-minimal and libxml2. > --- > gnu/packages/docbook.scm | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm > index 6a138dcb77..2d1c1f00ad 100644 > --- a/gnu/packages/docbook.scm > +++ b/gnu/packages/docbook.scm > @@ -30,6 +30,7 @@ (define-module (gnu packages docbook) > #:use-module (gnu packages autotools) > #:use-module (gnu packages bash) > #:use-module (gnu packages compression) > + #:use-module (gnu packages groff) > #:use-module (gnu packages imagemagick) > #:use-module (gnu packages inkscape) > #:use-module (gnu packages tex) > @@ -37,6 +38,7 @@ (define-module (gnu packages docbook) > #:use-module (gnu packages perl) > #:use-module (gnu packages python) > #:use-module (gnu packages base) > + #:use-module (gnu packages web) > #:use-module (gnu packages web-browsers) > #:use-module (gnu packages xfig) > #:use-module (gnu packages xml) > @@ -924,6 +926,12 @@ (define-public docbook2x > `("PERL5LIB" ":" prefix ,perl5lib) > `("XML_CATALOG_FILES" " " prefix ,xml-catalog-files))) > programs)))) > + (add-after 'install 'sgml-check > + ;; This is not covered by 'make check'. > + ;; Test that 'sgml2xml-isoent' works. > + (lambda* (#:key tests? #:allow-other-keys) > + (when tests? > + (invoke "make" "installcheck")))) > (add-after 'install 'create-symlinks > (lambda _ > ;; Create db2x_* symlinks to satisfy some configure scripts > @@ -935,6 +943,7 @@ (define-public docbook2x > '("docbook2man" "docbook2texi"))))))) > (inputs > (list bash-minimal > + opensp > perl > perl-xml-namespacesupport > perl-xml-parser > @@ -944,7 +953,11 @@ (define-public docbook2x > libxslt)) > (native-inputs > (list autoconf automake libtool > - docbook-xml-4.5)) > + tidy-html > + ;; For tests I've abandoned adding this kind of comment "For tests."; they are easy to go stale, and it's not clear when new inputs get added later if they are supposed to be included in that group or not. I'd suggest to drop it and reorganize inputs one per line since there are many. Otherwise LGTM.
Hi Maxim, On 2023-10-05 22:50, Maxim Cournoyer wrote: > I've abandoned adding this kind of comment "For tests."; they are easy > to go stale, and it's not clear when new inputs get added later if they > are supposed to be included in that group or not. I'd suggest to drop > it and reorganize inputs one per line since there are many. Right but I think for this package in particular there's not much harm since it doesn't look like it's going to receive updates from upstream any time soon.
Hi, Bruno Victal <mirai@makinata.eu> writes: > Hi Maxim, > > On 2023-10-05 22:50, Maxim Cournoyer wrote: >> I've abandoned adding this kind of comment "For tests."; they are easy >> to go stale, and it's not clear when new inputs get added later if they >> are supposed to be included in that group or not. I'd suggest to drop >> it and reorganize inputs one per line since there are many. > > Right but I think for this package in particular there's not much harm > since it doesn't look like it's going to receive updates from upstream > any time soon. OK! It's fine; keep that in mind in the future though :-).
diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm index 6a138dcb77..2d1c1f00ad 100644 --- a/gnu/packages/docbook.scm +++ b/gnu/packages/docbook.scm @@ -30,6 +30,7 @@ (define-module (gnu packages docbook) #:use-module (gnu packages autotools) #:use-module (gnu packages bash) #:use-module (gnu packages compression) + #:use-module (gnu packages groff) #:use-module (gnu packages imagemagick) #:use-module (gnu packages inkscape) #:use-module (gnu packages tex) @@ -37,6 +38,7 @@ (define-module (gnu packages docbook) #:use-module (gnu packages perl) #:use-module (gnu packages python) #:use-module (gnu packages base) + #:use-module (gnu packages web) #:use-module (gnu packages web-browsers) #:use-module (gnu packages xfig) #:use-module (gnu packages xml) @@ -924,6 +926,12 @@ (define-public docbook2x `("PERL5LIB" ":" prefix ,perl5lib) `("XML_CATALOG_FILES" " " prefix ,xml-catalog-files))) programs)))) + (add-after 'install 'sgml-check + ;; This is not covered by 'make check'. + ;; Test that 'sgml2xml-isoent' works. + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "installcheck")))) (add-after 'install 'create-symlinks (lambda _ ;; Create db2x_* symlinks to satisfy some configure scripts @@ -935,6 +943,7 @@ (define-public docbook2x '("docbook2man" "docbook2texi"))))))) (inputs (list bash-minimal + opensp perl perl-xml-namespacesupport perl-xml-parser @@ -944,7 +953,11 @@ (define-public docbook2x libxslt)) (native-inputs (list autoconf automake libtool - docbook-xml-4.5)) + tidy-html + ;; For tests + docbook-xml-4.1.2 docbook-xml-4.2 docbook-xml-4.4 + docbook-xml-4.5 + groff-minimal libxml2)) (home-page "https://docbook2x.sourceforge.net") (synopsis "Convert DocBook to man page and Texinfo format") (description