On 2017-04-17, Chris Lamb wrote:
> This is due to it capturing the buildpath in some automatically
> generated documentation. It appears safe to simply delete the manpages
> in question as they are a) private APIs and b) kinda terse/useless
> anyway.
...
> --- a/debian/rules    2017-04-17 13:16:14.337050334 +0100
> --- b/debian/rules    2017-04-17 13:38:53.662578698 +0100
> @@ -15,3 +15,7 @@
>  override_dh_clean:
>       rm -f doc/latex/* doc/html/* doc/man/man3/* doc/doxy
>       dh_clean
> +
> +override_dh_installman:
> +     dh_installman
> +     rm -rf debian/libccrtp-doc/usr/share/man/man2

It seems exactly which directory these files are placed in is
non-deterministic; updated patch attached.

For example, libccrtp-doc_2.0.9-2.3_all.deb currently in the archive
contains these files:

  
usr/share/man/man9/_build_libccrtp-eppWJD_libccrtp-2.0.9_src_ccrtp_.9_src_ccrtp_.3.gz
  usr/share/man/man9/_build_libccrtp-eppWJD_libccrtp-2.0.9_src_.9_src_.3.gz

I intend to NMU this package in the near future to fix this issue if I
do not hear otherwise.

live well,
  vagrant
From ffa35c9ca2ac9dcc0c78b7d604011a2faee25db0 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Tue, 28 Nov 2023 15:31:58 -0800
Subject: [PATCH] debian/rules: Remove low-content manpages with filenames
 based on build path. (Closes: #860470)

Some manpage names are generated based on the build path, e.g. the
package built in the directory /build/libccrtp-eppWJD/libccrtp-2.0.9
produces the manpage filename
"_build_libccrtp-eppWJD_libccrtp-2.0.9_src_.9_src_.3.gz".

These manpages have very little meaningful content, so remove them.
---
 debian/rules | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/debian/rules b/debian/rules
index 5b7fd06..4622347 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,3 +15,9 @@ override_dh_install:
 override_dh_clean:
 	rm -f doc/latex/* doc/html/* doc/man/man3/* doc/doxy
 	dh_clean
+
+override_dh_installman:
+	dh_installman
+	# Remove files with low content and filenames based on the build path.
+	# https://bugs.debian.org/860470
+	rm -vf debian/libccrtp-doc/usr/share/man/man*/_*
-- 
2.39.2

Attachment: signature.asc
Description: PGP signature

Reply via email to