[Bug 2151258] [NEW] UAPI.8 Package Metadata for amd64v3 variants use variant for architecture

gdahlman 2151258 at bugs.launchpad.net
Tue May 5 22:54:06 UTC 2026


Public bug reported:

While my personal preference would be for the architecture on a variant
to be the variant, it appears that the convention is for the baseline to
be used.

Currently the elf executables are setting both to the variant and not
the baseline architecture.

    "architecture":"amd64v3"
    "architectureVariant":"amd64v3"

This causes issues with building tooling that utilizes elf metadata for
validation, and should be changed to:

    "architecture":"amd64"
    "architectureVariant":"amd64v3"

To avoid pushing more complexity to tooling that is trying to use UAPI
metadata this should match other packaging metadata.

=========== Reproduction Steps ==============

For any binary or .so file from the package:

$ readelf -j .note.package /lib/cargo/bin/coreutils/ls

Displaying notes found in: .note.package
  Owner                Data size 	Description
  FDO                  0x0000008c	FDO_PACKAGING_METADATA
    Packaging Metadata: {"type":"deb","os":"ubuntu","name":"rust-coreutils","version":"0.8.0-0ubuntu3","architecture":"amd64v3","architectureVariant":"amd64v3"}

=========== System Information ==============

$ lsb_release -rd
Description:	Ubuntu 26.04 LTS
Release:	26.04

$ dpkg -l | grep rust-coreutils
ii  rust-coreutils                                    0.8.0-0ubuntu3                              amd64        Universal coreutils utils, written in Rust

$ dpkg -s rust-coreutils
Package: rust-coreutils
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 15621
Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
Architecture: amd64
Architecture-Variant: amd64v3
Multi-Arch: allowed
Version: 0.8.0-0ubuntu3
Depends: libc6 (>= 2.43), libgcc-s1 (>= 4.2), libselinux1 (>= 3.1~)
Conflicts: coreutils-from-uutils (<< 0.0.0~ubuntu22~)
Description: Universal coreutils utils, written in Rust
 This packages replaces the GNU coreutils package written in C.
 It should be a drop-in replacement but:
  * Some options have NOT been implemented,
  * Might have important bugs,
  * Might be slower,
  * Output of the binaries might be slightly different.
Homepage: https://github.com/uutils/coreutils
Original-Maintainer: Debian Rust Maintainers <pkg-rust-maintainers at alioth-lists.debian.net>

** Affects: rust-coreutils (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  UAPI.8 Package Metadata for amd64v3 variants use variant for
  architecture

Status in rust-coreutils package in Ubuntu:
  New

Bug description:
  While my personal preference would be for the architecture on a
  variant to be the variant, it appears that the convention is for the
  baseline to be used.

  Currently the elf executables are setting both to the variant and not
  the baseline architecture.

      "architecture":"amd64v3"
      "architectureVariant":"amd64v3"

  This causes issues with building tooling that utilizes elf metadata
  for validation, and should be changed to:

      "architecture":"amd64"
      "architectureVariant":"amd64v3"

  To avoid pushing more complexity to tooling that is trying to use UAPI
  metadata this should match other packaging metadata.

  =========== Reproduction Steps ==============

  For any binary or .so file from the package:

  $ readelf -j .note.package /lib/cargo/bin/coreutils/ls

  Displaying notes found in: .note.package
    Owner                Data size 	Description
    FDO                  0x0000008c	FDO_PACKAGING_METADATA
      Packaging Metadata: {"type":"deb","os":"ubuntu","name":"rust-coreutils","version":"0.8.0-0ubuntu3","architecture":"amd64v3","architectureVariant":"amd64v3"}

  =========== System Information ==============

  $ lsb_release -rd
  Description:	Ubuntu 26.04 LTS
  Release:	26.04

  $ dpkg -l | grep rust-coreutils
  ii  rust-coreutils                                    0.8.0-0ubuntu3                              amd64        Universal coreutils utils, written in Rust

  $ dpkg -s rust-coreutils
  Package: rust-coreutils
  Status: install ok installed
  Priority: optional
  Section: utils
  Installed-Size: 15621
  Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
  Architecture: amd64
  Architecture-Variant: amd64v3
  Multi-Arch: allowed
  Version: 0.8.0-0ubuntu3
  Depends: libc6 (>= 2.43), libgcc-s1 (>= 4.2), libselinux1 (>= 3.1~)
  Conflicts: coreutils-from-uutils (<< 0.0.0~ubuntu22~)
  Description: Universal coreutils utils, written in Rust
   This packages replaces the GNU coreutils package written in C.
   It should be a drop-in replacement but:
    * Some options have NOT been implemented,
    * Might have important bugs,
    * Might be slower,
    * Output of the binaries might be slightly different.
  Homepage: https://github.com/uutils/coreutils
  Original-Maintainer: Debian Rust Maintainers <pkg-rust-maintainers at alioth-lists.debian.net>

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2151258/+subscriptions





More information about the foundations-bugs mailing list