🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1154262: blhc: false positive NONVERBOSE BUILD for cargo workspace members in subdirectories

#4902
From: Juan Manuel Méndez Rey
Date: Wed, 18 Nov 2026 01:10
71 lines
5138 bytes
--b1=_Fk7zkTNDyBhiG6KmsK2MC2CxE6WktyCFQO2Y1bn8
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Package: blhc
Version: 0.15-1
Severity: normal
Tags: patch

blhc reports cargo's "Compiling" line for a crate that is not at the
top of the source tree as NONVERBOSE BUILD, although cargo runs with -v
and the full rustc command follows it. The 0.15 fix for https://bugs.debian=
.org/1037521
accepts "(/<<PKGBUILDDIR>>)" and "(/builds/...)", but not a
subdirectory of <<PKGBUILDDIR>> or the /build/package/package path
that Salsa CI uses now.

Attached log, run with blhc --debian:

  NONVERBOSE BUILD:    Compiling foo v0.1.0 (/build/package/package/rust/fo=
o)
  NONVERBOSE BUILD:    Compiling bar v0.1.0 (/<<PKGBUILDDIR>>/rust/bar)

The baz line, "(/<<PKGBUILDDIR>>)", is accepted.

This makes the Salsa CI blhc job fail for packages with a cargo
workspace, for example:
https://salsa.debian.org/mendezr/node-rollup/-/jobs/10657970
librsvg has the same failure and sets allow_failure on the job:
https://salsa.debian.org/gnome-team/librsvg/-/blob/debian/latest/debian/sal=
sa-ci.yml

The attached patch accepts a path below <<PKGBUILDDIR>> and paths below
/build/ as well as /builds/. With it, the attached log and the node-rollup
build log give no output and exit 0, and "prove t/" still passes all
248 tests. It applies to master (5075a5c).

--b1=_Fk7zkTNDyBhiG6KmsK2MC2CxE6WktyCFQO2Y1bn8
Content-Type: text/x-diff; name=blhc-cargo-subdir.patch
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=blhc-cargo-subdir.patch

LS0tIGEvYmluL2JsaGMKKysrIGIvYmluL2JsaGMKQEAgLTU3Miw3ICs1NzIsNyBAQAogICAgIHJl
dHVybiAwIGlmICRsaW5lID1+IC9eXHMqW0NjXW9tcGlsaW5nIGNhdGFsb2cgXFMrXC5wb1xiLzsK
ICAgICByZXR1cm4gMCBpZiAkbGluZSA9fiAvXlxzKltDY11vbXBpbGluZyBcUytcLm1vXGIvOwog
ICAgICMgY2FyZ28gYnVpbGQKLSAgICByZXR1cm4gMCBpZiAkY2FyZ28gYW5kICRsaW5lID1+IG17
XlxzKkNvbXBpbGluZ1xzK1xTK1xzK3ZcUysoPzpccytcKC8oPzo8PFBLR0JVSUxERElSPj58YnVp
bGRzL1xTKylcKSk/JH07CisgICAgcmV0dXJuIDAgaWYgJGNhcmdvIGFuZCAkbGluZSA9fiBte15c
cypDb21waWxpbmdccytcUytccyt2XFMrKD86XHMrXCgvKD86PDxQS0dCVUlMRERJUj4+KD86L1xT
Kyk/fGJ1aWxkcz8vXFMrKVwpKT8kfTsKICAgICAjICJDb21waWxpbmciIHdpdGggbm8gZmlsZSBu
YW1lLgogICAgIGlmICgkbGluZSA9fiAvXlxzKltDY11vbXBpbGluZ1xzKyguKz8pKD86XC5cLlwu
KT8kLykgewogICAgICAgICAjICRmaWxlX2V4dGVuc2lvbl9yZWdleCBtYXkgbmVlZCBzcGFjZXMg
YXJvdW5kIHRoZSBmaWxlbmFtZS4K

--b1=_Fk7zkTNDyBhiG6KmsK2MC2CxE6WktyCFQO2Y1bn8
Content-Type: text/plain; name=blhc-cargo-subdir.build
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=blhc-cargo-subdir.build

RmlsdGVyZWQgQnVpbGQtRGVwZW5kczogZGViaGVscGVyLWNvbXBhdCAoPSAxMyksIGNhcmdvLCBy
dXN0YwpkcGtnLWJ1aWxkcGFja2FnZTogaW5mbzogc291cmNlIHBhY2thZ2UgZm9vCmRwa2ctYnVp
bGRwYWNrYWdlOiBpbmZvOiBob3N0IGFyY2hpdGVjdHVyZSBhbWQ2NAogICBDb21waWxpbmcgZm9v
IHYwLjEuMCAoL2J1aWxkL3BhY2thZ2UvcGFja2FnZS9ydXN0L2ZvbykKICAgICBSdW5uaW5nIGBy
dXN0YyAtLWNyYXRlLW5hbWUgZm9vIC0tZWRpdGlvbj0yMDIxIHJ1c3QvZm9vL3NyYy9saWIucnMg
LS1jcmF0ZS10eXBlIGxpYmAKICAgQ29tcGlsaW5nIGJhciB2MC4xLjAgKC88PFBLR0JVSUxERElS
Pj4vcnVzdC9iYXIpCiAgICAgUnVubmluZyBgcnVzdGMgLS1jcmF0ZS1uYW1lIGJhciAtLWVkaXRp
b249MjAyMSBydXN0L2Jhci9zcmMvbGliLnJzIC0tY3JhdGUtdHlwZSBsaWJgCiAgIENvbXBpbGlu
ZyBiYXogdjAuMS4wICgvPDxQS0dCVUlMRERJUj4+KQogICAgIFJ1bm5pbmcgYHJ1c3RjIC0tY3Jh
dGUtbmFtZSBiYXogLS1lZGl0aW9uPTIwMjEgc3JjL2xpYi5ycyAtLWNyYXRlLXR5cGUgbGliYAo=

--b1=_Fk7zkTNDyBhiG6KmsK2MC2CxE6WktyCFQO2Y1bn8--
Technical Details
Message-ID: <O0Clr-cyJd-9@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: Juan Manuel Méndez Rey <juan.mendezr@proton.me>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1154262: blhc: false positive NONVERBOSE BUILD for cargo workspace members in subdirectories
Date: Wed, 18 Nov 2026 02:10:01 +0100
Message-ID: <O0Clr-cyJd-9@gated-at.bofh.it>
X-Original-To: submit@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Wed Nov 18 01:05:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Juan Manuel Méndez Rey <juan.mendezr@proton.me>, 1154262@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: eriberto@debian.org
X-Debian-Pr-Message: report 1154262
X-Debian-Pr-Package: blhc
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: blhc
Feedback-ID: 176548819:user:proton
X-Pm-Message-ID: 710e17de328c60cc74c77049ee459a696b02d47a
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary="b1=_Fk7zkTNDyBhiG6KmsK2MC2CxE6WktyCFQO2Y1bn8"
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2003222
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 71
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Wed, 18 Nov 2026 01:03:04 +0000
X-Original-Message-ID: <179496308583.2075862.5983937366668781032@proton.me>