* [PATCH] kbuild/deb-pkg: annotate libelf-dev dependency as :native
@ 2019-12-30 14:07 Ard Biesheuvel
2020-01-03 15:03 ` Masahiro Yamada
0 siblings, 1 reply; 2+ messages in thread
From: Ard Biesheuvel @ 2019-12-30 14:07 UTC (permalink / raw)
To: linux-kbuild
Cc: linux-kernel, masahiroy, michal.lkml, riku.voipio, Ard Biesheuvel
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>
---
scripts/package/mkdebian | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian
index 7c230016b08d..357dc56bcf30 100755
--- a/scripts/package/mkdebian
+++ b/scripts/package/mkdebian
@@ -136,7 +136,7 @@ mkdir -p debian/source/
echo "1.0" > debian/source/format
echo $debarch > debian/arch
-extra_build_depends=", $(if_enabled_echo CONFIG_UNWINDER_ORC libelf-dev)"
+extra_build_depends=", $(if_enabled_echo CONFIG_UNWINDER_ORC libelf-dev:native)"
extra_build_depends="$extra_build_depends, $(if_enabled_echo CONFIG_SYSTEM_TRUSTED_KEYRING libssl-dev:native)"
# Generate a simple changelog template
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kbuild/deb-pkg: annotate libelf-dev dependency as :native
2019-12-30 14:07 [PATCH] kbuild/deb-pkg: annotate libelf-dev dependency as :native Ard Biesheuvel
@ 2020-01-03 15:03 ` Masahiro Yamada
0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2020-01-03 15:03 UTC (permalink / raw)
To: Ard Biesheuvel
Cc: Linux Kbuild mailing list, Linux Kernel Mailing List,
Michal Marek, Riku Voipio
On Mon, Dec 30, 2019 at 11:07 PM Ard Biesheuvel <ardb@kernel.org> wrote:
>
> 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>
Applied to linux-kbuild/fixes.
Thanks.
> ---
> scripts/package/mkdebian | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian
> index 7c230016b08d..357dc56bcf30 100755
> --- a/scripts/package/mkdebian
> +++ b/scripts/package/mkdebian
> @@ -136,7 +136,7 @@ mkdir -p debian/source/
> echo "1.0" > debian/source/format
>
> echo $debarch > debian/arch
> -extra_build_depends=", $(if_enabled_echo CONFIG_UNWINDER_ORC libelf-dev)"
> +extra_build_depends=", $(if_enabled_echo CONFIG_UNWINDER_ORC libelf-dev:native)"
> extra_build_depends="$extra_build_depends, $(if_enabled_echo CONFIG_SYSTEM_TRUSTED_KEYRING libssl-dev:native)"
>
> # Generate a simple changelog template
> --
> 2.20.1
>
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-03 15:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-30 14:07 [PATCH] kbuild/deb-pkg: annotate libelf-dev dependency as :native Ard Biesheuvel
2020-01-03 15:03 ` Masahiro Yamada
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).