Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4972850rwl; Wed, 28 Dec 2022 11:17:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXtECRxomhGtWdqFGw3CuA6czRhwDwfbtgcWpNaoOTrvF4ZXRh8ZLf6AXqrTsW/tAVEvuPuu X-Received: by 2002:a17:902:e951:b0:192:7845:e0cc with SMTP id b17-20020a170902e95100b001927845e0ccmr13426939pll.68.1672255024200; Wed, 28 Dec 2022 11:17:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672255024; cv=none; d=google.com; s=arc-20160816; b=BTw2op43iER/R/UOYUhDFQeQEpc4yJbVJmnDi9jo9EB/sEoGqpVcbz9v/aR7ImDRMb 3pqMTzTt2aBtibp9GoiTYmr7MzrdI81eBGxLsmiSYS8BFWQc4bQRu3vLhVsSxnmo9gjo j+5buVTIvlb2oxGQjBvtUlcyW6e2MR75SIE1Gpc27YMB5bx9ySHnJkyxxI1nv4scT5V4 fJGBqTV0RS1S8Yv9uBBMTt8Ng7oyNAPcR1VNJQTprGxPmYWcYQsOO+bY0e2H4bouTiCS WtStbH+BnqWaAFMijGmS90xJNph51ZrK4OVe3HQtquYkXxmuNsrGaqpuaKGEN7FRrOh2 G1MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=GDHqGxhRqyup4BMdGbY1FaE/YimD/AtU/0oTnZ1ZyDw=; b=ueiT4qiZI2GLw5VYbM7ta0pH3IPFhWwSNRutJhjahhv738Iz4+aFhYxDi8Co/nBb8U EgomEAaZlWD0/zVa2XwjU/TL23TqkYARJdOKnnp4HUcmUWHAWdo5SwjIeyuq2mw760Dv 43vL+TXdRgdoEhaDTCwIqF5PUBkPiSfIJRYcTkrt/RWNquZw8pWO6E4ilUXuJ3YFqdAY 7qp42rN+Mm3szjHIK+6XhFE+EqEUZQQPB80kWc7/hWuODMqbIV3m818kJfvzf0xzsTsk 90uCcS7I7ZeZ0Bs6yXYTiy4ah49ww0uOe2NonPGaxETEo4KG44+jza/0fLNXix30hdQM jL/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YptHzzDm; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y3-20020a17090322c300b00179ec1d9eb4si19024619plg.112.2022.12.28.11.16.55; Wed, 28 Dec 2022 11:17:04 -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=@kernel.org header.s=k20201202 header.b=YptHzzDm; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232366AbiL1TKc (ORCPT + 64 others); Wed, 28 Dec 2022 14:10:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230224AbiL1TKb (ORCPT ); Wed, 28 Dec 2022 14:10:31 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06C2314D2B; Wed, 28 Dec 2022 11:10:31 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 92CF2615ED; Wed, 28 Dec 2022 19:10:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F2C6C433D2; Wed, 28 Dec 2022 19:10:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672254629; bh=NDaJHiYbI1eAcF8Qz6/6BoaxzjqK+j8AikgdtIirofo=; h=From:To:Cc:Subject:Date:From; b=YptHzzDmaVigBO+yhhTMg1gtUXHQ4eAYcGZp82FEDH4+2HHKwU5ot0I9TppGl+4lq UiKbytKGJL/J2WfCuECQdN6b7KbjwTG8AfuWXO08lsMY0ktQe/TgCmh1uBoHJXyReZ FmQysuNFOYEuUDh5Sm7Vfyx65ydxoU/BuHXDr1jNaf5xmtqX+fUQ12mRrRJz0VfRAx 2UWS09DgMXBoC+855b7vhkq26FPlU8m2Zcv+iKk9ExdI2uMwPD3eAAqkFC8fk12w12 271yV8gE/Hm4JtBwAlViPNv3g5uSCA0JJxbfcDgnL7LGgLRQ1VxRkqmxJdm8Y0XDqW /rchBx/pbsocw== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Alexander Gordeev , Masahiro Yamada , Guoqing Jiang , Ivan Vecera , Jonathan Toppins , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , =?UTF-8?q?=C3=8D=C3=B1igo=20Huguet?= Subject: [PATCH] kbuild: rpm-pkg: add libelf-devel as alternative for BuildRequires Date: Thu, 29 Dec 2022 04:10:14 +0900 Message-Id: <20221228191014.659746-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 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*//' <