🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1153980: libblockdev: exfatprogs 1.4.4 version output on stderr breaks tests

#4499
From: Sven Hoexter
Date: Sat, 14 Nov 2026 15:10
95 lines
5601 bytes
--TegvUC3ii3kgif6D
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline

Source: libblockdev
Version: 3.6.0-1
Severity: normal

Hi Michael,
exfatprogs 1.4.4 introduced again changes which break libblockdev. I hope this
time it's only the version check in the test suite.
I opened https://github.com/exfatprogs/exfatprogs/issues/404 for the exfatprogs
upstreams to figure out if we can keep it more stable in the future.

On the libblockdev end I created
https://github.com/storaged-project/libblockdev/pull/1228
only to discover that someone from Fedora already posted
https://github.com/storaged-project/libblockdev/pull/1227
with a slightly different implementation.

Attached is a debdiff of my variant I'm currently testing locally, though
autopkgtest takes its time to run.

Sven

-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 7.2.14+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

--TegvUC3ii3kgif6D
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: attachment;
	filename=debdiff_libblockdev_exfatprogs_144.diff

diff -Nru libblockdev-3.6.0/debian/changelog libblockdev-3.6.0/debian/changelog
--- libblockdev-3.6.0/debian/changelog	2026-11-12 23:02:52.000000000 +0100
+++ libblockdev-3.6.0/debian/changelog	2026-11-14 15:46:36.000000000 +0100
@@ -1,3 +1,10 @@
+libblockdev (3.6.0-2) unstable; urgency=medium
+
+  * Add d/patches/fs-test-exfat-version-check - exfatprogs 1.4.4
+    outputs version to stderr instead of stdout.
+
+ -- Sven Hoexter <hoexter@debian.org>  Sat, 14 Nov 2026 15:46:36 +0100
+
 libblockdev (3.6.0-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru libblockdev-3.6.0/debian/patches/fs-test-exfat-version-check libblockdev-3.6.0/debian/patches/fs-test-exfat-version-check
--- libblockdev-3.6.0/debian/patches/fs-test-exfat-version-check	1970-01-01 01:00:00.000000000 +0100
+++ libblockdev-3.6.0/debian/patches/fs-test-exfat-version-check	2026-11-14 15:46:36.000000000 +0100
@@ -0,0 +1,27 @@
+Description: exfatprogs 1.4.4 outputs version on stderr
+Author: Sven Hoexter <hoexter@debian.org>
+Forwarded: https://github.com/storaged-project/libblockdev/pull/1228
+Last-Update: 2026-11-14
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: libblockdev/tests/fs_tests/exfat_test.py
+===================================================================
+--- libblockdev.orig/tests/fs_tests/exfat_test.py
++++ libblockdev/tests/fs_tests/exfat_test.py
+@@ -16,7 +16,15 @@ from gi.repository import BlockDev, GLib
+ def _get_exfatprogs_version():
+     _ret, out, _err = utils.run_command("mkfs.exfat --version")
+     # exfatprogs version : 1.4.1 (2026-05-28)
+-    m = re.search(r"exfatprogs version : ([\d\.]+)", out)
++    # as of 1.4.4 - exfatprogs version via stderr, libblkid version on stdout:
++    # exfatprogs version : 1.4.4 (2026-11-10)
++    # libblkid version : 2.42.4 (21-Sep-2026)
++    m = re.search(
++        r"^exfatprogs version : ([\d\.]+)",
++        "\n".join((out, _err)),
++        re.MULTILINE
++    )
++
+     if not m or len(m.groups()) != 1:
+         raise RuntimeError("Failed to determine exfatprogs version from: %s" % out)
+     return Version(m.groups()[0])
diff -Nru libblockdev-3.6.0/debian/patches/series libblockdev-3.6.0/debian/patches/series
--- libblockdev-3.6.0/debian/patches/series	2026-11-12 23:02:52.000000000 +0100
+++ libblockdev-3.6.0/debian/patches/series	2026-11-14 15:46:36.000000000 +0100
@@ -1 +1,2 @@
 Skip-smartmontools-integration-test.patch
+fs-test-exfat-version-check

--TegvUC3ii3kgif6D--
Technical Details
Message-ID: <NZnya-bRhY-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Sven Hoexter <sven@stormbind.net>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1153980: libblockdev: exfatprogs 1.4.4 version output on stderr breaks tests
Date: Sat, 14 Nov 2026 16:10:02 +0100
Message-ID: <NZnya-bRhY-5@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sat Nov 14 15:09:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.45
Reply-To: Sven Hoexter <sven@stormbind.net>, 1153980@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: pkg-utopia-maintainers@lists.alioth.debian.org
X-Debian-Pr-Message: report 1153980
X-Debian-Pr-Package: src:libblockdev
X-Debian-Pr-Source: libblockdev
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="TegvUC3ii3kgif6D"
Content-Disposition: inline
X-Reportbug-Version: 13.2.0+nmu1
X-Greylist: delayed 464 seconds by postgrey-1.37 at buxtehude; Sat, 14 Nov 2026 15:07:59 UTC
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002590
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 95
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sat, 14 Nov 2026 16:00:09 +0100
X-Original-Message-ID: <64a0db27-ac66-4b8e-a2cc-621120f515b0@lintilla.lan>