]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
kbuild/deb-pkg: annotate libelf-dev dependency as :native
authorArd Biesheuvel <ardb@kernel.org>
Mon, 30 Dec 2019 14:07:47 +0000 (15:07 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 06:00:53 +0000 (01:00 -0500)
commit0ffb8713307ba1ee50aa076acf2b4010d3086fa1
treefd0e1b90448414729ace2889ee1a7709fbcc6968
parent3364ba799f2b0440294686085e93c489260f5407
kbuild/deb-pkg: annotate libelf-dev dependency as :native

BugLink: https://bugs.launchpad.net/bugs/1862227
[ Upstream commit 8ffdc54b6f4cd718a45802e645bb853e3a46a078 ]

Cross compiling the x86 kernel on a non-x86 build machine produces
the following error when CONFIG_UNWINDER_ORC is enabled, regardless
of whether libelf-dev is installed or not.

  dpkg-checkbuilddeps: error: Unmet build dependencies: libelf-dev
  dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
  dpkg-buildpackage: warning: (Use -d flag to override.)

Since this is a build time dependency for a build tool, we need to
depend on the native version of libelf-dev so add the appropriate
annotation.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
scripts/package/mkdebian