[Bug 2100308] [NEW] Please provide more verbose rust build logs in launchpad
Seth Arnold
2100308 at bugs.launchpad.net
Wed Feb 26 18:33:28 UTC 2025
Public bug reported:
Hello, most of our Launchpad build logs for most packages are fairly
verbose, giving full command lines with all arguments for compilers,
which can help understand what exact inputs were used when building any
given package.
The Rust default cargo output is very terse and does not show this level
of detail. This is fine when it's run interactively at a terminal but
build logs should be more verbose to allow later investigations, problem
solving, etc.
For example, the Ubuntu security team was investigating the build logs
for the papers package to determine if some unmaintained crates were
used in our build, and found that the build logs were insufficient. The
output is along the lines of:
Compiling serde v1.0.217
Compiling equivalent v1.0.1
Compiling hashbrown v0.15.2
[...]
The logs we were consulting are at
https://launchpadlibrarian.net/777827190/buildlog_ubuntu-plucky-
amd64.papers_48~beta-3ubuntu2_BUILDING.txt.gz
I believe the implementation I would like is for cargo to emit verbose
build logs when stdout is connected to a file or socket, and the current
upstream minimalism when stdout is connected to a terminal. The end
result that I want is for our Launchpad build logs of our packages to be
verbose, and if this implementation suggestion doesn't work, then we
might need to get more creative.
Thanks
** Affects: rust-defaults (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/2100308
Title:
Please provide more verbose rust build logs in launchpad
Status in rust-defaults package in Ubuntu:
New
Bug description:
Hello, most of our Launchpad build logs for most packages are fairly
verbose, giving full command lines with all arguments for compilers,
which can help understand what exact inputs were used when building
any given package.
The Rust default cargo output is very terse and does not show this
level of detail. This is fine when it's run interactively at a
terminal but build logs should be more verbose to allow later
investigations, problem solving, etc.
For example, the Ubuntu security team was investigating the build logs
for the papers package to determine if some unmaintained crates were
used in our build, and found that the build logs were insufficient.
The output is along the lines of:
Compiling serde v1.0.217
Compiling equivalent v1.0.1
Compiling hashbrown v0.15.2
[...]
The logs we were consulting are at
https://launchpadlibrarian.net/777827190/buildlog_ubuntu-plucky-
amd64.papers_48~beta-3ubuntu2_BUILDING.txt.gz
I believe the implementation I would like is for cargo to emit verbose
build logs when stdout is connected to a file or socket, and the
current upstream minimalism when stdout is connected to a terminal.
The end result that I want is for our Launchpad build logs of our
packages to be verbose, and if this implementation suggestion doesn't
work, then we might need to get more creative.
Thanks
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-defaults/+bug/2100308/+subscriptions
More information about the foundations-bugs
mailing list