Public bug reported:

It appears that the following logic in debian/bin/cargo.in...

def check_enable_cargo_auditable(cargo_home):
    enable_flag = os.getenv("UBUNTU_ENABLE_CARGO_AUDITABLE")
    if enable_flag not in ("0", "false", "1", "true"):
        raise ValueError(f"UBUNTU_ENABLE_CARGO_AUDITABLE should be 0, false, 1, 
or true (got {enable_flag!r})")

...causes build failures if UBUNTU_ENABLE_CARGO_AUDITABLE isn't set:

/usr/share/cargo/bin/cargo prepare-debian rust-vendor --link-from-system 
--verbose --release --offline --manifest-path proxy_agent/Cargo.toml
Traceback (most recent call last):
  File "/usr/share/cargo/bin/cargo", line 309, in <module>
    sys.exit(main(*sys.argv[1:]))
             ~~~~^^^^^^^^^^^^^^^
  File "/usr/share/cargo/bin/cargo", line 211, in main
    enable_cargo_auditable = check_enable_cargo_auditable(cargo_home)
  File "/usr/share/cargo/bin/cargo", line 93, in check_enable_cargo_auditable
    raise ValueError(f"UBUNTU_ENABLE_CARGO_AUDITABLE should be 0, false, 1, or 
true (got {enable_flag!r})")
ValueError: UBUNTU_ENABLE_CARGO_AUDITABLE should be 0, false, 1, or true (got 
None)

Full build log:
https://launchpadlibrarian.net/851307498/buildlog_ubuntu-resolute-
amd64.azure-proxy-agent_1.0.30-0ubuntu7_BUILDING.txt.gz

** Affects: rustc-1.93 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: rustc-1.93 (Ubuntu Resolute)
     Importance: Undecided
         Status: New

** Also affects: rustc-1.93 (Ubuntu Resolute)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2144045

Title:
  All Rust package builds fail if UBUNTU_ENABLE_CARGO_AUDITABLE isn't
  set

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rustc-1.93/+bug/2144045/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to