Package: pysurfer Severity: normal Tags: patch User: [email protected] Usertags: randomnees X-Debbugs-Cc: [email protected]
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: │ │ ├── ./usr/share/man/man1/pysurfer.1.gz │ │ │ ├── pysurfer.1 │ │ │ │ @@ -8,8 +8,8 @@ │ │ │ │ If this causes problems, reconfigure your locale. See the locale(1) manual │ │ │ │ for more information. │ │ │ │ qt.qpa.xcb: could not connect to display │ │ │ │ qt.qpa.plugin: From 6.5.0, xcb\-cursor0 or libxcb\-cursor0 is needed to load the Qt xcb platform plugin. │ │ │ │ qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. │ │ │ │ This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. │ │ │ │ .PP │ │ │ │ -Available platform plugins are: minimalegl, eglfs, xcb, vkkhrdisplay, offscreen, minimal, linuxfb. │ │ │ │ +Available platform plugins are: linuxfb, offscreen, minimal, eglfs, minimalegl, vkkhrdisplay, xcb. This is currently confirmed by both reproduce.debian.net and tests.reproducible-builds.org: https://reproduce.debian.net/excuses.html?source_name=pysurfer https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-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
From d5432833f16a799b48c99732c9badf1d085801ee Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <[email protected]> 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. --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 621f2bc..dea5caa 100755 --- a/debian/rules +++ b/debian/rules @@ -21,7 +21,7 @@ override_dh_install: override_dh_installman: mkdir -p debian/python3-surfer/usr/share/man/man1 - PYTHONPATH=. help2man --version-string="$(DEB_VERSION_UPSTREAM)" -N \ + PYTHONPATH=. xvfb-run --auto-servernum --server-num=20 -s "-screen 0 1024x768x24 -ac +extension GLX +render -noreset" help2man --version-string="$(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 -- 2.47.3
signature.asc
Description: PGP signature

