Hi,

And thanks everyone for picking up this thread again…

Simon McVittie <[email protected]> (2026-09-26):
> On Sat, 26 Sep 2026 at 21:33:25 +0200, Holger Wansing wrote:
> > What to do with the manpage [1] then?
> > Should that be removed as well?

Moving it aside as well for consistency looks like a good idea.

> I don't know - maybe? In the patch I proposed, I went for the minimal
> change of just moving the executable out of the way, leaving its man
> page available to the man(1) command. If maintainers would prefer to
> move the man page as well (untested additional patch below) then that
> would also be fine of course.

I certainly do appreciate the cautious approach. :-)

Both patches (the initial one, amended or not with the extra hunks) do
lead to having both unifont-viewer and its manpage (compressed as .1gz,
hence the wildcard, if anyone else wonders) to the examples directory,
but they don't always move that pair out of standard paths…

Building with -B (arch: any), that does work, and that should be
sufficient on buildds. Building with -b (arch: any and arch: all)
doesn't, because of the -arch/-indep split for the dh_auto_install
override.

What about leaving both dh_auto_install overrides alone, and moving the
removals to right before dh_install instead?

I'm attaching a patch that combines everything you've submitted so far,
and that uses execute_before_dh_install to implement this approach. This
seems to have the desired effect under pbuilder, with or without
`--debbuildopts=-B`.

(I'm also happy to submit a patch that uses plain override_dh_install
instead of execute_before_dh_install if that's preferred.)

Contents-wise:

    Files in second .deb but not in first
    -------------------------------------
    -rw-r--r--  root/root   /usr/share/doc/unifont-bin/examples/unifont-viewer.1
    -rwxr-xr-x  root/root   /usr/share/doc/unifont-bin/examples/unifont-viewer
    
    Files in first .deb but not in second
    -------------------------------------
    -rw-r--r--  root/root   /usr/share/man/man1/unifont-viewer.1.gz
    -rwxr-xr-x  root/root   /usr/bin/unifont-viewer

Metadata-wise:

 - libc6 versioned dependency gets bumped (it's been a while since the
   last upload/build);
 - libwx-perl demoted from Depends to Suggests.

So that would look good to me?


Cheers,
-- 
Cyril Brulebois ([email protected])            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant
From b1372e3026d7c45c6325f625ca39dbbde13e4f71 Mon Sep 17 00:00:00 2001
From: Simon McVittie <[email protected]>
Date: Thu, 24 Sep 2026 11:04:21 +0100
Subject: [PATCH] d/rules, d/unifont-bin.examples: Only install unifont-viewer
 as an example

This allows libwx-perl (which is unmaintained upstream and has RC bugs)
to be downgraded from Depends to Suggests, so that it will no longer be
a key package.

Closes: #1054278

Co-authored-by: Cyril Brulebois <[email protected]>
---
 debian/control              | 4 ++--
 debian/rules                | 4 ++++
 debian/unifont-bin.examples | 2 ++
 3 files changed, 8 insertions(+), 2 deletions(-)
 create mode 100644 debian/unifont-bin.examples

diff --git a/debian/control b/debian/control
index bba56b5..fe4fda7 100644
--- a/debian/control
+++ b/debian/control
@@ -137,8 +137,8 @@ Description: PSF (console) version of GNU Unifont with APL support
 Package: unifont-bin
 Architecture: any
 Depends: xfonts-utils, bdf2psf, fontforge, ${shlibs:Depends}, ${misc:Depends},
- ${perl:Depends}, libwx-perl, libgd-perl
-Suggests: unifont, texinfo, texlive
+ ${perl:Depends}, libgd-perl
+Suggests: unifont, texinfo, texlive, libwx-perl
 Description: utilities for manipulating GNU Unifont
  This is a set of Perl scripts, C programs, and FontForge scripts
  to manipulate Roman Czyborra's GNU Unifont ".hex" format font
diff --git a/debian/rules b/debian/rules
index 26939f0..809eb2a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -33,6 +33,10 @@ override_dh_auto_install-arch:
 	dh_auto_install --builddirectory=src -- PREFIX='$$(DESTDIR)/usr'
 	dh_auto_install --builddirectory=man -- PREFIX='$$(DESTDIR)/usr'
 
+execute_before_dh_install:
+	rm -f debian/tmp/usr/bin/unifont-viewer
+	rm -f debian/tmp/usr/share/man/man1/unifont-viewer.1*
+
 #
 # Exclude ChangeLog until dh_installchangelogs is updated,
 # to comply with Debian Policy Version 4.2.0.
diff --git a/debian/unifont-bin.examples b/debian/unifont-bin.examples
new file mode 100644
index 0000000..9576c61
--- /dev/null
+++ b/debian/unifont-bin.examples
@@ -0,0 +1,2 @@
+man/unifont-viewer.1
+src/unifont-viewer
-- 
2.39.5

Attachment: signature.asc
Description: PGP signature

Reply via email to