Package Details: bmputil 1.0.0-1

Git Clone URL: https://aur.archlinux.org/bmputil.git (read-only, click to copy)
Package Base: bmputil
Description: A tool for managing and flashing Black Magic Probe firmware
Upstream URL: https://github.com/blackmagic-debug/bmputil
Licenses: MIT OR Apache-2.0
Submitter: perigoso
Maintainer: perigoso
Last Packager: perigoso
Votes: 1
Popularity: 0.005142
First Submitted: 2023-09-18 23:01 (UTC)
Last Updated: 2025-08-18 11:21 (UTC)

Latest Comments

gromain commented on 2026-03-11 11:09 (UTC)

Hi, here is the updated diff with the repo change:

diff --git a/PKGBUILD b/PKGBUILD
index 565b1c0..e4d1d26 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,15 @@

 pkgname='bmputil'
 pkgver=1.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc='A tool for managing and flashing Black Magic Probe firmware'
 arch=('any')
 url='https://github.com/blackmagic-debug/bmputil'
 license=('MIT OR Apache-2.0')
 makedepends=('rust' 'cargo')
-source=("https://github.com/blackmagic-debug/bmputil/archive/refs/tags/v${pkgver}.tar.gz")
-b2sums=('SKIP')
+source=("https://codeberg.org/blackmagic-debug/bmputil/archive/v${pkgver}.tar.gz")
+b2sums=('a37ab820f0384991f35385ef1090451db9ff5794ae89de443e40109e0d5c343348bc406bf0618a279473d4dede352f44b51ee6fac625cc418e1808edf69feb17')
+options=(!lto)

 prepare() {
   cd "${pkgname}-${pkgver}"

taotieren commented on 2026-03-11 07:26 (UTC)

Source repo has been moved to: https://codeberg.org/blackmagic-debug/bmputil

gromain commented on 2025-09-01 21:19 (UTC) (edited on 2025-09-01 21:21 (UTC) by gromain)

Hi again, Seems like I solved the issue directly. Issue was referenced here https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/issues/20 .

The solution is simple, just add options=(!lto) to the PKGBUILD.

I took the liberty to also update the b2sum in the file, this is good practice to check that the downloaded files is the same used when creating the PKGBUILD.

diff --git a/PKGBUILD b/PKGBUILD
index 565b1c0..81cdba5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,15 @@

 pkgname='bmputil'
 pkgver=1.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc='A tool for managing and flashing Black Magic Probe firmware'
 arch=('any')
 url='https://github.com/blackmagic-debug/bmputil'
 license=('MIT OR Apache-2.0')
 makedepends=('rust' 'cargo')
 source=("https://github.com/blackmagic-debug/bmputil/archive/refs/tags/v${pkgver}.tar.gz")
-b2sums=('SKIP')
+b2sums=('ac4f7f8ab334ea9750994a401692474d90dc26a2c8802d1e36c5266c89fcf48f2645ade1cab66cc8790f8a9603634ac4f31a29370aac163aacabb3cf8fae1fa5')
+options=(!lto)

 prepare() {
   cd "${pkgname}-${pkgver}"

Thanks for your work packaging this!

Cheers, Romain

gromain commented on 2025-09-01 21:06 (UTC)

Hi,

I've got a cargo linker failure on trying to build this package. It works when I manually run cargo build --frozen --release --all-features in the src folder, but not when running makepkg Any idea where this might come from?

   Compiling bmputil v1.0.0 (/home/gromain/.cache/yay/bmputil/src/bmputil-1.0.0)
error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "-m64" "/tmp/rustcjadpdh/symbols.o" "<1 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/tmp/rustcjadpdh/{libonig_sys-4fab920423bfd570.rlib,libring-d68c97f430a3e54e.rlib}.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lc" "-lssl" "-lcrypto" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcjadpdh/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/gromain/.cache/yay/bmputil/src/bmputil-1.0.0/target/release/build/ring-f475636de4380a0b/out" "-L" "/home/gromain/.cache/yay/bmputil/src/bmputil-1.0.0/target/release/build/onig_sys-64bcc6c31b291742/out" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/gromain/.cache/yay/bmputil/src/bmputil-1.0.0/target/release/deps/bmputil_cli-2b869b6efabb5390" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: /usr/bin/ld: /home/gromain/.cache/yay/bmputil/src/bmputil-1.0.0/target/release/deps/bmputil_cli-2b869b6efabb5390.bmputil_cli.1f7107e1b4f7c826-cgu.00.rcgu.o: in function `onig::Error::new':
          bmputil_cli.1f7107e1b4f7c826-cgu.00:(.text._ZN4onig5Error3new17h6dfce86d3ef6e419E+0x43): undefined reference to `onig_error_code_to_str'
          /usr/bin/ld: /home/gromain/.cache/yay/bmputil/src/bmputil-1.0.0/target/release/deps/bmputil_cli-2b869b6efabb5390.bmputil_cli.1f7107e1b4f7c826-cgu.00.rcgu.o: in function `ring::limb::limbs_double_mod::{{closure}}':
          /home/gromain/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ring-0.17.14/src/limb.rs:359:(.text._ZN4ring10arithmetic6bigint47One$LT$M$C$ring..arithmetic..montgomery..RR$GT$5newRR17h9b3b2d1570be8683E+0x57): undefined reference to `ring_core_0_17_14__LIMBS_shl_mod'=
          [...]
          /usr/bin/ld: /home/gromain/.cache/yay/bmputil/src/bmputil-1.0.0/target/release/deps/bmputil_cli-2b869b6efabb5390.bmputil_cli.1f7107e1b4f7c826-cgu.00.rcgu.o:(.data.rel.ro._ZN4ring2ec7suite_b3ops4p38410SCALAR_OPS17h77bf36a1adbeb61dE+0x8): undefined reference to `ring_core_0_17_14__p384_scalar_mul_mont'
          collect2: error: ld returned 1 exit status

  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)

Thanks, Romain