git-buildpackage ftbfs on resolute-proposed due to rust coreutils

Bug #2137580 reported by Simon Poirier
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rust-coreutils
New
Unknown
git-buildpackage (Ubuntu)
Fix Released
Undecided
Simon Poirier
rust-coreutils (Ubuntu)
New
Undecided
Unassigned

Bug Description

Build-time doctests fail due to divergence between rust/gnu-coreutils on the true/false utilities
due to lacking help flag with rust implementation.

e.g. https://launchpad.net/ubuntu/+source/git-buildpackage/0.9.39/+build/31465864

=================================== FAILURES ===================================
_________________ [doctest] gbp.command_wrappers.Command.call __________________
242 ... extra_env={'LC_ALL': 'C'})
243 >>> c.call(["--version"])
244 0
245 >>> c.stdout.startswith('true')
246 True
247 >>> c = Command("/bin/false", capture_stdout=True,
248 ... extra_env={'LC_ALL': 'C'})
249 >>> c.call(["--help"])
250 1
251 >>> c.stdout.startswith('Usage:')
Expected:
    True
Got:
    False

/<<PKGBUILDDIR>>/gbp/command_wrappers.py:251: DocTestFailure
----------------------------- Captured stdout call -----------------------------
gbp:debug: /bin/true [] ['foo', 'bar']
gbp:debug: /foo/bar [] ['foo', 'bar']
gbp:debug: /bin/true [] ['--version']
gbp:debug: /bin/false [] ['--help']
------------------------------ Captured log call -------------------------------
DEBUG gbp:log.py:140 /bin/true [] ['foo', 'bar']
DEBUG gbp:log.py:140 /foo/bar [] ['foo', 'bar']
DEBUG gbp:log.py:140 /bin/true [] ['--version']
DEBUG gbp:log.py:140 /bin/false [] ['--help']

Related branches

Simon Poirier (simpoir)
Changed in git-buildpackage (Ubuntu):
status: New → In Progress
assignee: nobody → Simon Poirier (simpoir)
tags: added: ftbfs update-excuse
Simon Poirier (simpoir)
description: updated
Simon Poirier (simpoir)
summary: - ftbfs on resolute-proposed due to rust coreutils
+ git-buildpackage ftbfs on resolute-proposed due to rust coreutils
Revision history for this message
Simon Poirier (simpoir) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package git-buildpackage - 0.9.39ubuntu1

---------------
git-buildpackage (0.9.39ubuntu1) resolute; urgency=medium

  * fix: doctests failure with rust-coreutils (LP: #2137580)
    Replace implicit behavior of gnu coreutils true/false in doctest by
    explicit output and exit code.

 -- Simon Poirier <email address hidden> Tue, 06 Jan 2026 14:46:49 -0500

Changed in git-buildpackage (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Sylvestre Ledru (sylvestre) wrote :
Changed in rust-coreutils:
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.