[elbe-devel] [PATCH] debianize u-boot: Add cross-build dependencies

Ahmed S. Darwish a.darwish at linutronix.de
Tue Nov 26 13:38:58 CET 2019


Complete the list of u-boot build dependencies, so it can also be
cross-compiled using `dpkg-buildpackage -a ${p_arch} -us -uc`.

Debian packages "which can satisfy dependencies of a package of a
different architecture" should mark themselves with:

    Multi-Arch: foreign

Correctly, this is the case for packages like make, gzip, flex,
bison, etc.

lzop should've marked itself similarly, but it doesn't.  Thus
cross-building u-boot's debian package leads to the error:

    dpkg-checkbuilddeps: error: Unmet build dependencies: lzop

So in the case of lzop, force-use its :native version instead. As
stated in the Multiarch HOWTO:

   "Any exceptions to the default rules are marked package:any
    or package:native in the package source."

Link: https://wiki.debian.org/Multiarch/HOWTO
Signed-off-by: Ahmed S. Darwish <a.darwish at linutronix.de>
---
 elbepack/makofiles/debianize/u-boot/control.mako | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/elbepack/makofiles/debianize/u-boot/control.mako b/elbepack/makofiles/debianize/u-boot/control.mako
index f76d48b83..261a08372 100644
--- a/elbepack/makofiles/debianize/u-boot/control.mako
+++ b/elbepack/makofiles/debianize/u-boot/control.mako
@@ -7,7 +7,14 @@ Source: u-boot-${p_name}-${k_version}
 Section: admin
 Priority: optional
 Maintainer: ${m_name} <${m_mail}>
-Build-Depends: debhelper (>= 9), bc
+Build-Depends:
+ debhelper (>= 9),
+ bc,
+ bison,
+ device-tree-compiler,
+ flex,
+ lzop:native,
 Standards-Version: 3.8.4
 Homepage: http://www.denx.de/wiki/U-Boot/

--
2.20.1



More information about the elbe-devel mailing list