lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250428-unselfish-innocent-urchin-87f942@l-nschier-aarch64>
Date: Mon, 28 Apr 2025 13:50:56 +0200
From: Nicolas Schier <nicolas.schier@...ux.dev>
To: WangYuli <wangyuli@...ontech.com>
Cc: guanwentao@...ontech.com, linux-kbuild@...r.kernel.org,
	linux-kernel@...r.kernel.org, masahiroy@...nel.org,
	nathan@...nel.org, niecheng1@...ontech.com, petr.pavlu@...e.com,
	samitolvanen@...gle.com, zhanjun@...ontech.com
Subject: Re: [PATCH v3 2/2] kbuild: rpm-pkg: Add (elfutils-devel or
 libdw-devel) to BuildRequires

On Tue, 22 Apr 2025, WangYuli wrote:

> The dwarf.h header, which is included by
> scripts/gendwarfksyms/gendwarfksyms.h, resides within elfutils-devel
> or libdw-devel package.
> 
> This portion of the code is compiled under the condition that
> CONFIG_GENDWARFKSYMS is enabled.
> 
> Consequently, add (elfutils-devel or libdw-devel) to BuildRequires to
> prevent unforeseen compilation failures.
> 
> Fix follow possible error:
>   In file included from scripts/gendwarfksyms/cache.c:6:
>   scripts/gendwarfksyms/gendwarfksyms.h:6:10: fatal error: 'dwarf.h' file not found
>       6 | #include <dwarf.h>
>         |          ^~~~~~~~~
> 
> Link: https://lore.kernel.org/all/3e52d80d-0c60-4df5-8cb5-21d4b1fce7b7@suse.com/
> Fixes: f28568841ae0 ("tools: Add gendwarfksyms")
> Suggested-by: Petr Pavlu <petr.pavlu@...e.com>
> Signed-off-by: WangYuli <wangyuli@...ontech.com>
> ---
>  scripts/package/kernel.spec | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec
> index 726f34e11960..98f206cb7c60 100644
> --- a/scripts/package/kernel.spec
> +++ b/scripts/package/kernel.spec
> @@ -16,6 +16,7 @@ Source1: config
>  Source2: diff.patch
>  Provides: kernel-%{KERNELRELEASE}
>  BuildRequires: bc binutils bison dwarves
> +BuildRequires: (elfutils-devel or libdw-devel)
>  BuildRequires: (elfutils-libelf-devel or libelf-devel) flex
>  BuildRequires: gcc make openssl openssl-devel perl python3 rsync
>  
> -- 
> 2.49.0
> 

Reviewed-by: Nicolas Schier <n.schier@....de>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ