From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 yDuaL77/zWO8hQEAbAwnHQ (envelope-from ) for ; Mon, 23 Jan 2023 04:32:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AGbPLr7/zWOtIwAAG6o9tA (envelope-from ) for ; Mon, 23 Jan 2023 04:32:14 +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 5B0AD42AD0 for ; Mon, 23 Jan 2023 04:32:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJnYy-0005ve-4s; Sun, 22 Jan 2023 22:32:04 -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 1pJnYx-0005vU-61 for guix-patches@gnu.org; Sun, 22 Jan 2023 22:32:03 -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 1pJnYw-0007hp-UX for guix-patches@gnu.org; Sun, 22 Jan 2023 22:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pJnYw-00051U-Ha for guix-patches@gnu.org; Sun, 22 Jan 2023 22:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61015] [PATCH core-updates 0/9] Modernize and fix docbook-xml Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 23 Jan 2023 03:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61015 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61015@debbugs.gnu.org Cc: Bruno Victal X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167444471819297 (code B ref -1); Mon, 23 Jan 2023 03:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Jan 2023 03:31:58 +0000 Received: from localhost ([127.0.0.1]:52937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJnYs-00051A-7z for submit@debbugs.gnu.org; Sun, 22 Jan 2023 22:31:58 -0500 Received: from lists.gnu.org ([209.51.188.17]:51782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJnYr-000513-0A for submit@debbugs.gnu.org; Sun, 22 Jan 2023 22:31:57 -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 1pJnYo-0005uR-5Y for guix-patches@gnu.org; Sun, 22 Jan 2023 22:31:56 -0500 Received: from smtpmciv7.myservices.hosting ([185.26.106.202]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJnYm-0007fH-Ij for guix-patches@gnu.org; Sun, 22 Jan 2023 22:31:53 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.172]) by smtpmciv7.myservices.hosting (Postfix) with ESMTP id C14F820B99 for ; Mon, 23 Jan 2023 04:31:37 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 763F780096; Mon, 23 Jan 2023 04:31:37 +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 AQmTnKK1U7pH; Mon, 23 Jan 2023 04:31:37 +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 055AD80093; Mon, 23 Jan 2023 04:31:36 +0100 (CET) From: Bruno Victal Date: Mon, 23 Jan 2023 03:31:16 +0000 Message-Id: X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 tags: patch Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.26.106.202; envelope-from=mirai@makinata.eu; helo=smtpmciv7.myservices.hosting X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1674444734; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=cZRm1EtFEtpyhIMU9UcONH/0vwPLDxQ3ssgSaz3wJ8o=; b=I1NOjKtgTE64f2L3oh02nQr5CXJoPqzvIhREPfm7QgfkIxXauzwhpUzPI+hy7OdeFCrr1l DC9+0iiud/FD8UpEMOZaT/yznJCWakj9EdDYH0xlGfwj8AT0GNS7KdvW5yn/aAFWFgMPdq L3MAUIrCSMuTT1CrvdSBWhVMHiTx9scvYbNIWsIsnZzJx+AdhuFNKLJO6bkznlkLkydn9O QGKkS+FmZx6ztbII564vEOpLaRnCXMQHHR2Bq1oxwWODIEHFpwizaNnZvvBHenxog2XvUX RzNeIabcxqdkm6EQaZYCHozC7VWHr8WviCK56/mEDqTqFuwRQDekCtRMZCMxEg== 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=1674444734; a=rsa-sha256; cv=none; b=n7+ssuEdn1cDilxeRO0gbtBpmjkmD24sMQXZXhRFYa+BJ+OZW8DOEgDhsq5IRPGXq24829 cE8s1L4M/ky/pNmftApK2EQMwcOgtcvGqgGpZlUyRAz+KWWIMCipYBcxvDtsuUrc0a6ixx Ik+ZQ/htBl9e1MkGFhX+m5yHcGYjMfHc757+XOfg7l8j3sN+tXtQTpbPZlbfGXcv7MtQbG hdZcJ1DMFe8itnL1/cV4IVD4rCg47IEfFrLkLgHJMVQcQWDwJTS9rj34/2ggqMHgORi69+ 3cVSJz6wlZkWjqd1bflZPiHJnjaNau2beepGimh+5j8nm/jbd1jt4hPqkXtmfA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.78 X-Spam-Score: -1.78 X-Migadu-Queue-Id: 5B0AD42AD0 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: AKSmSi/fttEk This patch-series modernizes docbook-xml package definitions and properly patches the catalog.xml paths using XSLT. I've used XSLT here as it seems easier (and better documented) to perform XML operations with it. I did a small prototype with (sxml transforms) but due to guile-bug #20339, it's impossible to go from sxml->xml, ruling it out from being a suitable replacement for XSLT. The situation for docbook-xml-4.1.2 could be considered extraordinary since it's the only package that doesn't come with a catalog.xml file, requiring a pre-built one to be used. (It can be generated from source, by implementing a (PEG) parser for SGML catalogs but this seems unnecessary for a file that is unlikely to see any changes.) With these changes, it's no longer required for packages to do substitute* or other workarounds to coerce docbook-xml to play nicely, libxml2 will automatically find the DTDs through its native-search-path. (XML_CATALOG_FILES variable) A good follow-up to this patch-series would be to search and destroy the workarounds currently employed by docbook-xml dependant packages to discourage cargo-culting redundant procedures. Bruno Victal (9): gnu: docbook-xml: Use copy-build-system. gnu: docbook-xml-4.1.2: Adapt to copy-build-system. gnu: docbook-xml: Adapt to copy-build-system. gnu: docbook-xml-4.4: Adapt to copy-build-system. gnu: docbook-xml-4.3: Adapt to copy-build-system. gnu: docbook-xml-4.2: Adapt to copy-build-system. gnu: docbook-xml: Fix permissions. gnu: docbook-xml: Use XSLT to patch catalog.xml. gnu: docbook-xml-4.1.2: Add missing catalog.xml. .../xml/docbook-xml/catalog-4.1.2.xml | 31 +++++ gnu/packages/aux-files/xml/patch-uri.xsl | 24 ++++ gnu/packages/docbook.scm | 127 +++++++++--------- 3 files changed, 116 insertions(+), 66 deletions(-) create mode 100644 gnu/packages/aux-files/xml/docbook-xml/catalog-4.1.2.xml create mode 100644 gnu/packages/aux-files/xml/patch-uri.xsl base-commit: ca124b098dcc7ce7898df10faf9986f44a14e0a1 -- 2.38.1