[Bug 2144045] Re: All Rust package builds fail if UBUNTU_ENABLE_CARGO_AUDITABLE isn't set

Max Gilmour 2144045 at bugs.launchpad.net
Fri Mar 20 14:25:01 UTC 2026


** Changed in: rustc-1.93 (Ubuntu Resolute)
       Status: In Progress => Fix Released

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

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

Status in rustc-1.93 package in Ubuntu:
  Fix Released
Status in rustc-1.93 source package in Resolute:
  Fix Released

Bug description:
  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

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




More information about the foundations-bugs mailing list