> > To fix this issue you need to make the DTD available locally. For example 
> > see the `openjade` package, particularly `/etc/sgml/openjade.cat` and 
> > `/usr/share/sgml/OpenJade/`.
> >
> It looks like the DTD is already available locally if the `docbook`
> package is installed. The missing DTD is then available under
> `/usr/share/sgml/docbook/dtd/4.4/docbook.dtd`.
> However just adding `docbook` as build dependency isn't enough to fix
> the build failure.
>
The attached patch fixes the build failure for me.
Please double check that this is the right approach to fix this kind
of issue as I've never dealt with SGML before. ;-)
From 1573a2fbbb1a1cf8e6532fa00b708c35e17dc8e7 Mon Sep 17 00:00:00 2001
From: Michael Schaller <[email protected]>
Date: Mon, 27 Jun 2022 11:35:25 +0200
Subject: [PATCH] Fix build failure without network access caused by missing
 local DTD.

---
 debian/control        | 2 +-
 man/docbook/head.sgml | 3 +--
 man/pngchunkdesc.sgml | 3 +--
 man/pngchunks.sgml    | 3 +--
 man/pngcp.sgml        | 3 +--
 man/pnginfo.sgml      | 3 +--
 6 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/debian/control b/debian/control
index 34b3f85..c268d4d 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: graphics
 Priority: optional
 Maintainer: Debian PhotoTools Maintainers <[email protected]>
 Uploaders: Mathieu Malaterre <[email protected]>
-Build-Depends: debhelper-compat (= 13), docbook-utils, libpng-dev
+Build-Depends: debhelper-compat (= 13), docbook, docbook-utils, libpng-dev
 Standards-Version: 4.6.0
 Homepage: https://github.com/mikalstill/pngtools
 Vcs-Browser: https://salsa.debian.org/debian-phototools-team/pngtools
diff --git a/man/docbook/head.sgml b/man/docbook/head.sgml
index b89e06e..2cb0649 100644
--- a/man/docbook/head.sgml
+++ b/man/docbook/head.sgml
@@ -12,5 +12,4 @@
      (c) Michael Still, 2001
 -->
 
-<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook SGML V4.4//EN"
-   "http://www.oasis-open.org/docbook/sgml/4.4/docbook.dtd";>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.4//EN" []>
diff --git a/man/pngchunkdesc.sgml b/man/pngchunkdesc.sgml
index 3b2a138..7b159d4 100644
--- a/man/pngchunkdesc.sgml
+++ b/man/pngchunkdesc.sgml
@@ -12,8 +12,7 @@
      (c) Michael Still, 2001
 -->
 
-<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook SGML V4.4//EN"
-   "http://www.oasis-open.org/docbook/sgml/4.4/docbook.dtd";>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.4//EN" []>
 <refentry id="pngchunkdesc">
 <refmeta>
 <refentrytitle>pngchunkdesc</refentrytitle>
diff --git a/man/pngchunks.sgml b/man/pngchunks.sgml
index 99dbd7e..2110c8d 100644
--- a/man/pngchunks.sgml
+++ b/man/pngchunks.sgml
@@ -12,8 +12,7 @@
      (c) Michael Still, 2001
 -->
 
-<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook SGML V4.4//EN"
-   "http://www.oasis-open.org/docbook/sgml/4.4/docbook.dtd";>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.4//EN" []>
 <refentry id="pngchunkdesc">
 <refmeta>
 <refentrytitle>pngchunks</refentrytitle>
diff --git a/man/pngcp.sgml b/man/pngcp.sgml
index 176b39d..ab9d3d0 100644
--- a/man/pngcp.sgml
+++ b/man/pngcp.sgml
@@ -12,8 +12,7 @@
      (c) Michael Still, 2001
 -->
 
-<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook SGML V4.4//EN"
-   "http://www.oasis-open.org/docbook/sgml/4.4/docbook.dtd";>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.4//EN" []>
 <refentry id="pngcp">
 <refmeta>
 <refentrytitle>pngcp</refentrytitle>
diff --git a/man/pnginfo.sgml b/man/pnginfo.sgml
index bba99a2..b6f235c 100644
--- a/man/pnginfo.sgml
+++ b/man/pnginfo.sgml
@@ -12,8 +12,7 @@
      (c) Michael Still, 2001
 -->
 
-<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook SGML V4.4//EN"
-   "http://www.oasis-open.org/docbook/sgml/4.4/docbook.dtd";>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.4//EN" []>
 <refentry id="pnginfo">
 <refmeta>
 <refentrytitle>pnginfo</refentrytitle>
-- 
2.37.0.rc0.161.g10f37bed90-goog

-- 
Pkg-phototools-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-phototools-devel

Reply via email to