From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25CA73BC4DE for ; Tue, 20 Jan 2026 12:17:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.66 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768911473; cv=none; b=EdGS5/z1D9y+RfolnlPHhdlCO6ZgsXZl/KNqOkLYduR8ZepOKMxtcGmyYQd0MlSfc2Jl7VrAy1i5Q4aIi33luARlE0vRfGBwZi2xoFkn2dxmzjuksLoPpQjsmgz/r0EnBS43MyT7wdwSEVqUCKwRJFnBZus6bJru3+fo91cp7hM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768911473; c=relaxed/simple; bh=iIuzik8f3PuL5IiD05JYvutWRTw3mpzpbRggsiY4kB4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QQRygGD/xxguULNEVmzTO0+si1ctyv31elVadX5HBSm5Cx1ixq11VApVBEfNjLVzkn7UVNoXgRllByJo9eVMTedx/MOB4popDG3fH844L5xqzu/r8Gk5XTeqd1iMorCTkLWEkqiSZmejggWCf9AxJgtHSZjseLQP0d53VOcwhzg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=boq31eZl; arc=none smtp.client-ip=209.85.221.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="boq31eZl" Received: by mail-wr1-f66.google.com with SMTP id ffacd0b85a97d-43596062728so115826f8f.1 for ; Tue, 20 Jan 2026 04:17:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1768911469; x=1769516269; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=iJRswF5rrqok4Sjk5jUvdiR7sS5VwezMU3Ml3c2KzVk=; b=boq31eZl0sUGywf9IH6qctlquE+MboocMi5kXOESrth2/RLFNyNekK9Yz2p1Dm4t9q pzPu50oo+ZQND3pYlw9dqv/dzBtad2jjkOxqOgH5zj9JdQbt4TzZMQ1CL+5Y93Ptb+la e68NZCwT7H95F6HnUMCIbzjTX4lYBvMufaKkpt95DH3x2a+wlmkPFq6H58XsYpvNyLRD 0iudwmABr3Nnsdhy0fiTlKZQETK2XdxsXMpqi5nnrsk1w6Ug3pY8EG8Pk3MwB9OS2Aud +3stOyreBUDzcd7CQMyvNzeCsvA6aeAxsLN5gZFf3huV2+gCBGtMMGAOJy97nuT6HP2Z +toQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768911469; x=1769516269; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iJRswF5rrqok4Sjk5jUvdiR7sS5VwezMU3Ml3c2KzVk=; b=h3t85gbrKS+hnbU+k9PYZ+6x6gPnDvfSMJ0lkz25g69ErQp+Mt1kT+lcmSqTkHu6fT Ml1OYD0xzW5UQlEPFkDX54jOeih/GgDkFIk4CdCUmOrgu+eQVwtwXwCUGqaEU0uboA8Z QqKoTHRpP9uK50Es6+4KlzC3gQkXxYckDRb8jqXuEfLCg+S2i6uLOak4ksPOZ60KWPNi mR/hiVBEFRq5nAoZmlYfpf/VdgBjF77cuk3AIqOcJlOjr73YTDOLtj+XPO2CQxVfpQbc a5BWTvpnizqLSfYFQS/qPgeqFqw2ttOoadABSC5WVqObWJfkB7TTBXO1G1C4AG0yKaS9 L1Aw== X-Forwarded-Encrypted: i=1; AJvYcCU7n6uLaadpPp1Bd+U4UsBYmAtGRpubKDur1d9KCOtUiS6nMuQFfxkjuI+0k6Sidisz6TtBRyTs0f0=@vger.kernel.org X-Gm-Message-State: AOJu0Yz58pKkB5AdNd1KKMJNVUoVA1LRJtuTUnVGn49YCbc0QsLOF5bm //9FSwBqKESg+yyNZlQiNdimkKaER4IaQ88qt3/PBGDgrnKA9d30n5aFGXSDxjXx0bQ= X-Gm-Gg: AZuq6aKavHAndfadsVIOgQBPxDc0EyMs297ULoD8sliZ4z9zUM1ImMNFBJqddicBpKp keRWNr5z4rYImoQRv21sqN5OrHOF/bVL2A74ndBVNyq7E4kQ2IVyE33/PhcsLrpNVIA2YqQ12XJ /Azx0wgosO4g3figFecNwJlRK6Xz200mPOiyIlX1c4SSQrT2oEWNvLopvZc7bmJt28MSXrM0qPx sLpeVv25nApuEnASjL7Kr7eE5DstEBqhGCcSG8lZo8pVO++j1dxYtndoaTymxpTG7L9Q9maTAhg vjbclZqFSP66KYTExHAU7DCDlZIF9VbiawvLNg2Wf4+b61HPoRwGnwniAcq4p/wdNnRYcP/v2HU w0g4qpaAbPphaKsyr1Dv3FgeyrZXoWALv0AjaRtZH5tPKBL6M6lFg88pxl0h5X6xoXN2EMt3Ilb Mpr3L0kP5Y6Gpu2V0wPr1xR+rju/JtGmO5Rr5+CdeE X-Received: by 2002:a05:6000:2387:b0:42f:b555:5275 with SMTP id ffacd0b85a97d-43569548aa2mr19948618f8f.10.1768911469374; Tue, 20 Jan 2026 04:17:49 -0800 (PST) Received: from [10.0.1.22] (109-81-1-107.rct.o2.cz. [109.81.1.107]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4356997e6dasm29657069f8f.32.2026.01.20.04.17.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Jan 2026 04:17:49 -0800 (PST) Message-ID: <4d379736-9b6a-4e40-ad67-53ee7498759c@suse.com> Date: Tue, 20 Jan 2026 13:17:48 +0100 Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/2] Documentation/kbuild: Document gendwarfksyms build dependencies To: linjh22s@gmail.com Cc: Nathan Chancellor , Nicolas Schier , Jonathan Corbet , Miguel Ojeda , Boqun Feng , Sami Tolvanen , Masahiro Yamada , linux-modules@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260114-documents_gendwarfksyms-v2-0-297c98bd62c6@gmail.com> <20260114-documents_gendwarfksyms-v2-1-297c98bd62c6@gmail.com> Content-Language: en-US From: Petr Pavlu In-Reply-To: <20260114-documents_gendwarfksyms-v2-1-297c98bd62c6@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 1/14/26 12:47 PM, Jihan LIN via B4 Relay wrote: > From: Jihan LIN > > Although dependencies for gendwarfksyms were recently added to the > packaging rules [1-2], the corresponding documentation was missing. > > Document the required build dependencies for gendwarfksyms, and > include a few examples for installing these dependencies on some > distributions. > > [1] commit 657f96cb7c06 ("kbuild: deb-pkg: Add libdw-dev:native to > Build-Depends-Arch") > [2] commit 5bd6bdd0f76e ("kbuild: rpm-pkg: Add (elfutils-devel or > libdw-devel) to BuildRequires") > Signed-off-by: Jihan LIN > --- > Documentation/kbuild/gendwarfksyms.rst | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/Documentation/kbuild/gendwarfksyms.rst b/Documentation/kbuild/gendwarfksyms.rst > index ed366250a54eac3a72c2f529da94a9e803704ae4..0e153d13b052da6edcf65950739730c123cd49db 100644 > --- a/Documentation/kbuild/gendwarfksyms.rst > +++ b/Documentation/kbuild/gendwarfksyms.rst > @@ -14,6 +14,29 @@ selected, **gendwarfksyms** is used instead to calculate symbol versions > from the DWARF debugging information, which contains the necessary > details about the final module ABI. > > +Dependencies > +------------ > + > +libelf, libdw and zlib are dependencies of gendwarfksyms. > + > +Here are a few examples for installing these dependencies: > + > +* Arch Linux and derivatives:: > + > + sudo pacman --needed -S zlib libelf > + > +* Debian, Ubuntu, and derivatives:: > + > + sudo apt install libelf-dev libdw-dev zlib1g-dev > + > +* Fedora and derivatives:: > + > + sudo dnf install elfutils-libelf-devel elfutils-devel zlib-devel > + > +* openSUSE and derivatives:: > + > + sudo zypper install libelf-devel libdw-devel zlib-devel > + Nit: I suggest slightly adjusting the text to something like: """ Gendwarfksyms depends on the libelf, libdw, and zlib libraries. Here are a few examples of how to install these dependencies: """ .. and swap the items on the pacman line to 'libelf zlib' so the order is always libelf, libdw, zlib. Looks ok to me nonetheless, the list is consistent with similar examples in Documentation/admin-guide/verify-bugs-and-bisect-regressions.rst. Reviewed-by: Petr Pavlu -- Thanks, Petr