Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5408010rwl; Wed, 28 Dec 2022 18:59:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXtPLNJAXb1Yueh8CRBmHy2qqX6Tk6uM1h4HbZI8T3XgHBn6BTD4YQHveuaUsCVvpmNUh599 X-Received: by 2002:a17:906:b7c4:b0:7c0:dac7:36dc with SMTP id fy4-20020a170906b7c400b007c0dac736dcmr27425504ejb.46.1672282751821; Wed, 28 Dec 2022 18:59:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672282751; cv=none; d=google.com; s=arc-20160816; b=Zn8xblmvq2tbMj0feLGtguxPrqOCNa3WZIhKZTWL2WEnqRcGFlrBlN2pfxo1ra9I5l vjt0eSkyOCj5kIcxfC7GmoXmGI9hWgo2qw1vNSp3yFffT/6G9wnAqN/fPi9CGSYGXXuw +W+iKq4OnQwSyUY8bd4k5M3bfAeeFXhVnymufqrwvKe0uwZoeUzNK06MjxgO2XH0IJhP POdP5A4CIY2VpcvLTU0nhqQz8+kwF8u8b3yLCA2AYqdYAUV309GnZdqi0sx4m4Nx9tS3 2u/Ms9dbnYzMkdXPepbbA9xUzfrsoicw/e1yr2x2NLDTm2gWonYQlN4VD69cpb0DEYox AOgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:mime-version:date :dkim-signature:message-id; bh=XoA8wcm8vNDF3JjdWU9rkQ7IGGhq07pfPELEbL9sYWw=; b=q4i6HGmVePaq1eWVBagy/+zONLr0jAMyGG828J6u/oeSP867fpVHbLwrDw4Y5CNnFF eA3KkTgYZRuUe29hX/35pRoG7SXhAD7sEg4xdkKt81oTxMaOSZ4F+DkZVBZlFLVfSTF7 h+J+yu45HsR4VnVzGjoQV3Q+Dm53FRKJupzZU+jZv/WBUwUSz1sP0pASz3OQQaz60bkl KJKtAULnTTrbwA2tUY0elNRCmvUwZvUT9pDero7Ll15eizIjXPrW9GimzwlUdwZLKqJm f22HGNkGctg2XM+wUHoYOZS2xNwVjLL0+fj+lRtwkOz/SDrXTw+AnDIIloxRYz4rsMko o0IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=absds2v6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wt7-20020a170906ee8700b007c143a8a653si15254814ejb.855.2022.12.28.18.58.57; Wed, 28 Dec 2022 18:59:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=absds2v6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232924AbiL2CI3 (ORCPT + 62 others); Wed, 28 Dec 2022 21:08:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232834AbiL2CI1 (ORCPT ); Wed, 28 Dec 2022 21:08:27 -0500 Received: from out-221.mta0.migadu.com (out-221.mta0.migadu.com [91.218.175.221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFE17B877 for ; Wed, 28 Dec 2022 18:08:24 -0800 (PST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1672279702; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XoA8wcm8vNDF3JjdWU9rkQ7IGGhq07pfPELEbL9sYWw=; b=absds2v6QAAfiAjI6jEc4rGbjuwy9Yt9NI/fGrLEJAgIZBdRSms9UpEDzJLI9QZBtk6UAU O+51xoTcwlc/SrcKaVcoI9rH7jZFSu93vqsXrNgD42QqSOuA7Qw/JBOD9fnfTaXm6+DMnH Y1bukPIa6w/vyfvMtPgwtk8N5KPeE6E= Date: Thu, 29 Dec 2022 10:08:18 +0800 MIME-Version: 1.0 Subject: Re: [PATCH] kbuild: rpm-pkg: add libelf-devel as alternative for BuildRequires To: Masahiro Yamada , linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Alexander Gordeev , Ivan Vecera , Jonathan Toppins , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , =?UTF-8?B?w43DsWlnbyBIdWd1ZXQ=?= References: <20221228191014.659746-1-masahiroy@kernel.org> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Guoqing Jiang In-Reply-To: <20221228191014.659746-1-masahiroy@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/29/22 03:10, Masahiro Yamada wrote: > Guoqing Jiang reports that openSUSE cannot compile the kernel rpm due > to "BuildRequires: elfutils-libelf-devel" added by commit 8818039f959b > ("kbuild: add ability to make source rpm buildable using koji"). > The relevant package name in openSUSE is libelf-devel. > > Add it an alternative package. > > BTW, if it is impossible to solve the build requirement, the final > resort would be: > > $ make RPMOPTS=--nodeps rpm-pkg > > This passes --nodeps to the rpmbuild command so it will not verify > build dependencies. This is useful to test rpm builds on non-rpm > system. On Debian/Ubuntu, for example, you can install rpmbuild by > 'apt-get install rpm'. > > NOTE1: > Likewise, it is possible to bypass the build dependency check for > debian package builds: > > $ make DPKG_FLAGS=-d deb-pkg > > NOTE2: > The 'or' operator is supported since RPM 4.13. So, old distros such > as CentOS 7 will break. I suggest installing newer rpmbuild in such > cases. > > Link: https://lore.kernel.org/linux-kbuild/ee227d24-9c94-bfa3-166a-4ee6b5dfea09@linux.dev/T/#u > Fixes: 8818039f959b ("kbuild: add ability to make source rpm buildable using koji") > Reported-by: Guoqing Jiang > Signed-off-by: Masahiro Yamada > --- > > scripts/package/mkspec | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/scripts/package/mkspec b/scripts/package/mkspec > index dda00a948a01..adab28fa7f89 100755 > --- a/scripts/package/mkspec > +++ b/scripts/package/mkspec > @@ -51,7 +51,8 @@ sed -e '/^DEL/d' -e 's/^\t*//' < URL: https://www.kernel.org > $S Source: kernel-$__KERNELRELEASE.tar.gz > Provides: $PROVIDES > -$S BuildRequires: bc binutils bison dwarves elfutils-libelf-devel flex > +$S BuildRequires: bc binutils bison dwarves > +$S BuildRequires: (elfutils-libelf-devel or libelf-devel) flex > $S BuildRequires: gcc make openssl openssl-devel perl python3 rsync > > # $UTS_MACHINE as a fallback of _arch in case Thanks for the quick fix! I verified the above works for openSUSE leap 15.4. Tested-by: Guoqing Jiang Thanks, Guoqing