🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #6015

Bug#1155180: pysurfer: Embeds error messages in pysurfer.1 manpage

#6015
From: 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-----
--==-=-=--
Technical Details
Message-ID: <O35W1-dWHB-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1155180: pysurfer: Embeds error messages in pysurfer.1 manpage
Date: Tue, 24 Nov 2026 22:10:01 +0100
Message-ID: <O35W1-dWHB-3@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Nov 24 21:05:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Vagrant Cascadian <vagrant@reproducible-builds.org>, 1155180@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: reproducible-bugs@lists.alioth.debian.org, debian-med-packaging@lists.alioth.debian.org
X-Debian-Pr-Message: report 1155180
X-Debian-Pr-Package: pysurfer
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: pysurfer
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="==-=-=";
	micalg=pgp-sha512; protocol="application/pgp-signature"
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004793
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 113
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 24 Nov 2026 13:03:06 -0800
X-Original-Message-ID: <8733squelx.fsf@wireframe>