- Package:
- src:u-boot
- Source:
- src:u-boot
- Submitter:
- Nicolas Boulenguez
- Date:
- 2026-02-26 12:33:03 UTC
- Severity:
- normal
- Tags:
Hello.
You may be interested in the dh-builtusing debhelper tool, which
generates the Built-Using field instead of explicit shell subcommands.
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,7 @@ Build-Depends:
bc,
bison,
debhelper-compat (= 13),
+ dh-sequence-builtusing,
flex,
libpython3-dev:native [linux-any],
libssl-dev,
@@ -167,7 +168,8 @@ Description: A boot loader for omap systems
Package: u-boot-sunxi
Architecture: armhf arm64
Multi-Arch: same
-Built-Using: ${u-boot-sunxi:Built-Using}
+Built-Using: ${dh-builtusing:arm-trusted-firmware} [arm64],
+ ${dh-builtusing:crust-firmware} [arm64],
Depends: ${misc:Depends}
Recommends: u-boot-tools [arm64]
Suggests: arm-trusted-firmware [arm64]
@@ -221,7 +223,7 @@ Description: A boot loader for marvell systems
Package: u-boot-rockchip
Architecture: armhf arm64
Multi-Arch: same
-Built-Using: ${u-boot-rockchip:Built-Using}
+Built-Using: ${dh-builtusing:arm-trusted-firmware} [arm64]
Depends: ${misc:Depends}
Recommends: python3, u-boot-tools [arm64]
Suggests: arm-trusted-firmware [arm64]
@@ -275,7 +277,7 @@ Package: u-boot-sifive
Architecture: riscv64
Multi-Arch: same
Depends: ${misc:Depends}
-Built-Using: ${u-boot-sifive:Built-Using}
+Built-Using: ${dh-builtusing:opensbi}
Description: A boot loader for SiFive systems
Das U-Boot is a cross-platform bootloader for embedded systems,
used as the default boot loader by several board vendors. It is
--- a/debian/rules
+++ b/debian/rules
@@ -155,6 +155,6 @@ override_dh_clean:
find . -type d -name __pycache__ -delete
override_dh_gencontrol:
- dh_gencontrol -- $(dpkg-gencontrol_args) $(foreach package,\
+ dh_gencontrol -- $(foreach package,\
u-boot-qemu $(subarchs),\
'-V$(package):platforms=$(subst $() ,$${Newline},$($(package)_platforms))')
--- a/debian/targets.mk
+++ b/debian/targets.mk
@@ -45,9 +45,6 @@ ifeq (${DEB_HOST_ARCH},arm64)
# u-boot-rockchip
- dpkg-gencontrol_args += "-Vu-boot-rockchip:Built-Using=$(shell dpkg-query -Wf \
- '$${source:Package} (= $${source:Version})' arm-trusted-firmware)"
-
# Vagrant Cascadian <vagrant@debian.org>
u-boot-rockchip_platforms += firefly-rk3399
firefly-rk3399_assigns := BL31=/usr/lib/arm-trusted-firmware/rk3399/bl31.elf
@@ -139,9 +136,6 @@ ifeq (${DEB_HOST_ARCH},arm64)
u-boot-sunxi_assigns = \
SCP=$(or $(wildcard /usr/lib/crust-firmware/$(platform).bin),/dev/null)
- dpkg-gencontrol_args += "-Vu-boot-sunxi:Built-Using=$(shell dpkg-query -Wf \
- '$${source:Package} (= $${source:Version})' arm-trusted-firmware)"
-
u-boot-sunxi_platforms += a64-olinuxino
a64-olinuxino_assigns := BL31=/usr/lib/arm-trusted-firmware/sun50i_a64/bl31.bin
a64-olinuxino_targets := arch/arm/dts/sun50i-a64-olinuxino.dtb \
@@ -376,9 +370,6 @@ else ifeq (${DEB_HOST_ARCH},armhf)
# u-boot-rockchip
- # Silent a debhelper warning about an unused substvar.
- dpkg-gencontrol_args += -Vu-boot-rockchip:Built-Using=
-
# Vagrant Cascadian <vagrant@debian.org>, 2GB and 4GB variants
u-boot-rockchip_platforms += firefly-rk3288
firefly-rk3288_targets := idbloader.img spl/u-boot-spl.bin u-boot.bin \
@@ -413,9 +404,6 @@ else ifeq (${DEB_HOST_ARCH},armhf)
# u-boot-sunxi
- # Silent a debhelper warning about an unused substvar.
- dpkg-gencontrol_args += -Vu-boot-sunxi:Built-Using=
-
# Christian Kastner <debian@kvr.at>
u-boot-sunxi_platforms += A10-OLinuXino-Lime
A10-OLinuXino-Lime_targets := u-boot-sunxi-with-spl.bin uboot.elf
@@ -541,9 +529,6 @@ else ifeq (${DEB_HOST_ARCH},riscv64)
# u-boot-sifive
- dpkg-gencontrol_args += "-Vu-boot-sifive:Built-Using=$(shell dpkg-query -Wf \
- '$${source:Package} (= $${source:Version})' opensbi)"
-
# Hector Oron <zumbi@debian.org>
u-boot-sifive_platforms += sifive_unleashed
sifive_unleashed_targets := u-boot.bin uboot.elf spl/u-boot-spl.bin u-boot.itb
Hello.
Here is an updated version rebased on a609e1d2:
From 27ec150b506234e1a3e24688ed400627133ab5e2 Mon Sep 17 00:00:00 2001
From: Nicolas Boulenguez <nicolas@debian.org>
Date: Sat, 2 Sep 2023 23:24:10 +0200
Subject: Delegate the Built-Using field to the dh-builtusing debhelper tool
diff --git a/debian/control b/debian/control
index 7a6bbc31cc..c6aec92cf6 100644
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,7 @@ Build-Depends:
bc,
bison,
debhelper-compat (= 13),
+ dh-sequence-builtusing,
flex,
libpython3-dev:native [linux-any],
libssl-dev,
@@ -186,7 +187,8 @@ Description: A boot loader for omap systems
Package: u-boot-sunxi
Architecture: armhf arm64
Multi-Arch: same
-Built-Using: ${u-boot-sunxi:Built-Using}
+Built-Using: ${dh-builtusing:arm-trusted-firmware} [arm64],
+ ${dh-builtusing:crust-firmware} [arm64],
Depends: ${misc:Depends}
Recommends: u-boot-tools [arm64]
Suggests: arm-trusted-firmware [arm64]
@@ -240,7 +242,7 @@ Description: A boot loader for marvell systems
Package: u-boot-rockchip
Architecture: armhf arm64
Multi-Arch: same
-Built-Using: ${u-boot-rockchip:Built-Using}
+Built-Using: ${dh-builtusing:arm-trusted-firmware} [arm64]
Depends: ${misc:Depends}
Recommends: python3, u-boot-tools [arm64]
Suggests: arm-trusted-firmware [arm64]
@@ -294,7 +296,7 @@ Package: u-boot-sifive
Architecture: riscv64
Multi-Arch: same
Depends: ${misc:Depends}
-Built-Using: ${u-boot-sifive:Built-Using}
+Built-Using: ${dh-builtusing:opensbi}
Description: A boot loader for SiFive systems
Das U-Boot is a cross-platform bootloader for embedded systems,
used as the default boot loader by several board vendors. It is
@@ -312,7 +314,7 @@ Package: u-boot-starfive
Architecture: riscv64
Multi-Arch: same
Depends: ${misc:Depends}
-Built-Using: ${u-boot-starfive:Built-Using}
+Built-Using: ${dh-builtusing:opensbi}
Description: A boot loader for Starfive systems
Das U-Boot is a cross-platform bootloader for embedded systems,
used as the default boot loader by several board vendors. It is
diff --git a/debian/rules b/debian/rules
index fc7c8e54d4..9cc8ee3e52 100755
--- a/debian/rules
+++ b/debian/rules
@@ -159,6 +159,6 @@ override_dh_clean:
find . -type d -name __pycache__ -delete
override_dh_gencontrol:
- dh_gencontrol -- $(dpkg-gencontrol_args) $(foreach package,\
+ dh_gencontrol -- $(foreach package,\
u-boot-qemu $(subarchs),\
'-V$(package):platforms=$(subst $() ,$${Newline},$($(package)_platforms))')
diff --git a/debian/targets.mk b/debian/targets.mk
index 12eb78b9b8..f7e10d2ea0 100644
--- a/debian/targets.mk
+++ b/debian/targets.mk
@@ -51,9 +51,6 @@ ifeq (${DEB_HOST_ARCH},arm64)
# u-boot-rockchip
- dpkg-gencontrol_args += "-Vu-boot-rockchip:Built-Using=$(shell dpkg-query -Wf \
- '$${source:Package} (= $${source:Version})' arm-trusted-firmware)"
-
# Vagrant Cascadian <vagrant@debian.org>
u-boot-rockchip_platforms += firefly-rk3399
firefly-rk3399_assigns := BL31=/usr/lib/arm-trusted-firmware/rk3399/bl31.elf
@@ -145,9 +142,6 @@ ifeq (${DEB_HOST_ARCH},arm64)
u-boot-sunxi_assigns = \
SCP=$(or $(wildcard /usr/lib/crust-firmware/$(platform).bin),/dev/null)
- dpkg-gencontrol_args += "-Vu-boot-sunxi:Built-Using=$(shell dpkg-query -Wf \
- '$${source:Package} (= $${source:Version})' arm-trusted-firmware)"
-
u-boot-sunxi_platforms += a64-olinuxino
a64-olinuxino_assigns := BL31=/usr/lib/arm-trusted-firmware/sun50i_a64/bl31.bin
a64-olinuxino_targets := arch/arm/dts/sun50i-a64-olinuxino.dtb \
@@ -386,9 +380,6 @@ else ifeq (${DEB_HOST_ARCH},armhf)
# u-boot-rockchip
- # Silent a debhelper warning about an unused substvar.
- dpkg-gencontrol_args += -Vu-boot-rockchip:Built-Using=
-
# Vagrant Cascadian <vagrant@debian.org>, 2GB and 4GB variants
u-boot-rockchip_platforms += firefly-rk3288
firefly-rk3288_targets := idbloader.img spl/u-boot-spl.bin u-boot.bin \
@@ -423,9 +414,6 @@ else ifeq (${DEB_HOST_ARCH},armhf)
# u-boot-sunxi
- # Silent a debhelper warning about an unused substvar.
- dpkg-gencontrol_args += -Vu-boot-sunxi:Built-Using=
-
# Christian Kastner <debian@kvr.at>
u-boot-sunxi_platforms += A10-OLinuXino-Lime
A10-OLinuXino-Lime_targets := u-boot-sunxi-with-spl.bin uboot.elf
@@ -544,9 +532,6 @@ else ifeq (${DEB_HOST_ARCH},riscv64)
# u-boot-sifive
- dpkg-gencontrol_args += "-Vu-boot-sifive:Built-Using=$(shell dpkg-query -Wf \
- '$${source:Package} (= $${source:Version})' opensbi)"
-
# Hector Oron <zumbi@debian.org>
u-boot-sifive_platforms += sifive_unleashed
sifive_unleashed_targets := u-boot.bin uboot.elf spl/u-boot-spl.bin u-boot.itb
@@ -559,9 +544,6 @@ else ifeq (${DEB_HOST_ARCH},riscv64)
# u-boot-starfive
- dpkg-gencontrol_args += "-Vu-boot-starfive:Built-Using=$(shell dpkg-query -Wf \
- '$${source:Package} (= $${source:Version})' opensbi)"
-
# Anatoliy Gunya <csm.sub21@gmail.com>
u-boot-starfive_platforms += starfive_visionfive2
starfive_visionfive2_targets := u-boot.bin uboot.elf spl/u-boot-spl.bin.normal.out u-boot.itb
Hello, Bug #1051098 in u-boot reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/debian/u-boot/-/commit/b8d394100d6f858c0e80786f7087f96c11d698c3 ------------------------------------------------------------------------ Delegate the Built-Using field to the dh-builtusing debhelper tool (Closes: #1051098) ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/1051098
We believe that the bug you reported is fixed in the latest version of
u-boot, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1051098@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Vagrant Cascadian <vagrant@debian.org> (supplier of updated u-boot package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 19 Mar 2024 16:27:45 -0700
Source: u-boot
Architecture: source
Version: 2024.01+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Vagrant Cascadian <vagrant@debian.org>
Changed-By: Vagrant Cascadian <vagrant@debian.org>
Closes: 1051098 1060682 1060752 1061432 1062664
Changes:
u-boot (2024.01+dfsg-2) unstable; urgency=medium
.
[ Philippe Coval ]
* debian/patches: Add Olimex A20-Olinuxino Micro reboot patch
(Closes: #1060752)
.
[ Aurelien Jarno ]
* debian/patches: Apply patches from upstream to fix USB crash on
VisionFive 2. (Closes: #1062664)
* debian/patches: Apply patch from upstream to improve VisionFive 2 1.2A
support.
* debian/patches: Apply patch from upstream to support saving
environment on VisionFive 2.
* debian/patches: Apply patch submitted upstream fixing device-tree
corruption on riscv64. (Closes: #1060682)
* debian/patches: Apply patch submitted upstream fixing data corruption
on HiFive Unmatched.
.
[ Андрей Лухнов ]
* debian/targets.mk: add orangepi_pc_plus to sunxi platforms
(Closes: #1061432)
.
[ Nicolas Boulenguez ]
* Delegate the Built-Using field to the dh-builtusing debhelper tool
(Closes: #1051098)
Checksums-Sha1:
d7e13e3ff1cc8482a1583ba8ab11b2f59e010e9e 3183 u-boot_2024.01+dfsg-2.dsc
0d6d7c5bb1569ccfc1360f1d3704996053b3ffb5 104684 u-boot_2024.01+dfsg-2.debian.tar.xz
3a122d02e794bf00c5de2e67e1b1523312d5fc0b 12431 u-boot_2024.01+dfsg-2_amd64.buildinfo
Checksums-Sha256:
63dfb811ce4640416a79b88dc2a4eb78b03954ca388a58d0cf433bf60899ac02 3183 u-boot_2024.01+dfsg-2.dsc
1156d943e19b975a586550bc02e1abd3348c35249bf2a4d7062cc2d3d0723672 104684 u-boot_2024.01+dfsg-2.debian.tar.xz
4a7e5e167f2f3f126f7b33d3f8c294d5a140571a627aca7d515d7216d5be73a3 12431 u-boot_2024.01+dfsg-2_amd64.buildinfo
Files:
64a4707970cc8ebeced23d8fb3497e1d 3183 admin optional u-boot_2024.01+dfsg-2.dsc
421dc88282efa8b428ac9407cbbfc301 104684 admin optional u-boot_2024.01+dfsg-2.debian.tar.xz
63074af7bea7f8c08613e2ec6b47cd87 12431 admin optional u-boot_2024.01+dfsg-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iIkEARYKADEWIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZfoiGhMcdmFncmFudEBk
ZWJpYW4ub3JnAAoJENxRj8h/lxaqp+wA/0U++SGY3biBVLyvIkdCQ53wXg0Xxhna
U92yTZXm/mH7AQC7fP1PNM9b6Ze6djoJ1M4cqX76258P3H9AHxI9p15TBw==
=h4SX
-----END PGP SIGNATURE-----
Looks like this triggered build failures on armhf, as it ends up with: Built-Using: [arm64], [arm64] So this needs some special-casing which might make it not quite as simple :/ https://buildd.debian.org/status/fetch.php?pkg=u-boot&arch=armhf&ver=2024.01%2Bdfsg-2&stamp=1710912003&raw=0 Although looking at the dh-builtusing manpage, looks like it *should* work ... so an inconsistency between documentation and implementation. live well, vagrant
Control: reopen 1051098 Control: tags 1051098 -patch About to upload a version reverting this change to fix build failure on armhf. Removing the patch flag, as the patch does not quite work correctly. Also filed a bug on dh-builtusing about this: https://bugs.debian.org/1067242 I look forward to an improved dh-builtusing and patch for u-boot! :) live well, vagrant
Hello. Thanks for reporting. Dh-builtusing/0.0.6 adds a regression test reporting this bug, and fixes it. Variables disabled by a restriction now receive a dummy but valid value, so that dpkg-gencontrol can parse the expansion (then ignore the dummy value). For u-boot, no patch is necessary. Just revert the reversal :-)
Control: tags 1051098 +patch Tested and seems to work! Re-added the patch tag, although strictly speaking it should now have a versioned dependency... :) Will probably wait till u-boot migrates to testing to re-apply the patch... but will do so eventually. live well, vagrant
Control: tags 1051098 - patch Apparently I tested the wrong thing(or something else changed in the archive?), as it now fails on both arm64 and armhf with this patch applied using dh-builtusing 0.0.6... No idea what went wrong. live well, vagrant
Hello, Bug #1051098 in u-boot reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/debian/u-boot/-/commit/b8d394100d6f858c0e80786f7087f96c11d698c3 ------------------------------------------------------------------------ Delegate the Built-Using field to the dh-builtusing debhelper tool (Closes: #1051098) ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/1051098
Hello. The related merge request is: https://salsa.debian.org/debian/u-boot/-/merge_requests/52