🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Vagrant Cascadian Tue, 24 Nov 2026 21:10
Bug#1155180: pysurfer: Embeds error messages in pysurfer.1 manpage
#6015
Author: Vagrant Cascadian
Date: Tue, 24 Nov 2026 21:10
113 lines
5701 bytes
--==-=-=
Content-Type: multipart/mixed; boundary="=-=-="

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Package: pysurfer
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: randomnees
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The pysurfer.1 manpage mostly contains an error message due to being
unable to connect to a display, as the help2man call that generates it
is called without a running X server.

Fortunately, this was detected on reproducible builds infrastructure
because the generated error produced some non-deterministic error
messages:

=E2=94=82 =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 ./usr/share/man/man1/pysurf=
er.1.gz
=E2=94=82 =E2=94=82 =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 pysurfer.1
=E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 @@ -8,8 +8,8 @@
=E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82  If this causes problems, reconfigu=
re your locale. See the locale(1) manual
=E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82  for more information.
=E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82  qt.qpa.xcb: could not connect to d=
isplay
=E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82  qt.qpa.plugin: From 6.5.0, xcb\-cu=
rsor0 or libxcb\-cursor0 is needed to load the Qt xcb platform plugin.
=E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82  qt.qpa.plugin: Could not load the =
Qt platform plugin "xcb" in "" even though it was found.
=E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82  This application failed to start b=
ecause no Qt platform plugin could be initialized. Reinstalling the applica=
tion may fix this problem.
=E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82  .PP
=E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 -Available platform plugins are: mi=
nimalegl, eglfs, xcb, vkkhrdisplay, offscreen, minimal, linuxfb.
=E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 +Available platform plugins are: li=
nuxfb, offscreen, minimal, eglfs, minimalegl, vkkhrdisplay, xcb.

This is currently confirmed by both reproduce.debian.net and tests.reproduc=
ible-builds.org:

  https://reproduce.debian.net/excuses.html?source_name=3Dpysurfer

  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffos=
cope-results/pysurfer.html

The attached patch fixes this by calling help2man from within xvfb-run,
which also happens to already be used during the test suite.

I believe with this patch applied, pysurfer should build reproducibly!

Thanks for maintaining pysurfer!

live well,
  vagrant

--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=0001-debian-rules-Call-help2man-with-xvfb-run.patch
Content-Transfer-Encoding: quoted-printable

From=20d5432833f16a799b48c99732c9badf1d085801ee Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@debian.org>
Date: Tue, 24 Nov 2026 12:52:23 -0800
Subject: [PATCH] debian/rules: Call help2man with xvfb-run.

Without this, the manpage is mostly an error message about unavailable
plugins, which also happen to appear in a non-deterministic order.
=2D--
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 621f2bc..dea5caa 100755
=2D-- a/debian/rules
+++ b/debian/rules
@@ -21,7 +21,7 @@ override_dh_install:
=20
 override_dh_installman:
 	mkdir -p debian/python3-surfer/usr/share/man/man1
=2D	PYTHONPATH=3D. help2man --version-string=3D"$(DEB_VERSION_UPSTREAM)" -N=
 \
+	PYTHONPATH=3D. xvfb-run --auto-servernum --server-num=3D20 -s "-screen 0 =
1024x768x24 -ac +extension GLX +render -noreset" help2man --version-string=
=3D"$(DEB_VERSION_UPSTREAM)" -N \
 		--no-discard-stderr \
 		-n 'visualize cortical surface reconstruction from Freesurfer' \
 		debian/python3-surfer/usr/bin/pysurfer > debian/python3-surfer/usr/share=
/man/man1/pysurfer.1
=2D-=20
2.47.3


--=-=-=--

--==-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCawX7igAKCRDcUY/If5cW
qhEvAP0eedp4qSCmgldoNZjWCfUonVZ8XYs7sWd1ExxZCP9JaAEA/5H7yVNLOx1K
9p3pRQcnooutRKotMBvcIRwiquP00AA=
=Yh62
-----END PGP SIGNATURE-----
--==-=-=--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads