From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6703AEE57CD for ; Sun, 10 Sep 2023 12:44:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346550AbjIJMo2 (ORCPT ); Sun, 10 Sep 2023 08:44:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233336AbjIJMo2 (ORCPT ); Sun, 10 Sep 2023 08:44:28 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7712D1BD; Sun, 10 Sep 2023 05:44:24 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6AC84C433C7; Sun, 10 Sep 2023 12:44:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694349864; bh=Owm/hEkZAiMJwPacb9sjFXsQR/7UIHp3uW3zm40nou8=; h=From:To:Cc:Subject:Date:From; b=FJxjcCIgy/Lgpye7RdAcS3MhvRKPdZxUKt4F7OMM6qpn2yVtfbfzFSZR2QBzU6rj3 eGUrnaeBsOUxLW2xPsHi5Z0W5jZx89c8AFcqqsWXYRcKQ0dASegEcuriBqbceLdx/1 cHGSLqBPPWDxOSMsn7EMgAjjo3CwcEFrCbYEzIXvnRgB0G6wsBXCROkun3G/S4BxK2 5eTuKfBUe/xDrZ5q/xEOKp/kXY06jORK6YeDQ/Cmz7F5JdCulmPtDg7rOwd/IRaxJs OpIXzSFTQd/mTD/UD7S04NNE3BEG7swDVEULOjXa/DD8TU6ZiifD5rzC8VN+QzvyGx /N2KlNV3mSFXg== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Karolis M , Nathan Chancellor , Nick Desaulniers , Nicolas Schier Subject: [PATCH] kbuild: fix kernel-devel RPM package and linux-headers Deb package Date: Sun, 10 Sep 2023 21:44:13 +0900 Message-Id: <20230910124413.1479521-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Since commit fe66b5d2ae72 ("kbuild: refactor kernel-devel RPM package and linux-headers Deb package"), the kernel-devel RPM package and linux-headers Deb package are broken. I double-quoted the $(find ... -type d), which resulted in newlines being included in the argument to the outer find comment. find: 'arch/arm64/include\narch/arm64/kvm/hyp/include': No such file or directory The outer find command is unneeded. Fixes: fe66b5d2ae72 ("kbuild: refactor kernel-devel RPM package and linux-headers Deb package") Reported-by: Karolis M Signed-off-by: Masahiro Yamada --- scripts/package/install-extmod-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/package/install-extmod-build b/scripts/package/install-extmod-build index af7fe9f5b1e4..8a7051fad087 100755 --- a/scripts/package/install-extmod-build +++ b/scripts/package/install-extmod-build @@ -20,7 +20,7 @@ mkdir -p "${destdir}" find "arch/${SRCARCH}" -maxdepth 1 -name 'Makefile*' find include scripts -type f -o -type l find "arch/${SRCARCH}" -name Kbuild.platforms -o -name Platform - find "$(find "arch/${SRCARCH}" -name include -o -name scripts -type d)" -type f + find "arch/${SRCARCH}" -name include -o -name scripts -type d ) | tar -c -f - -C "${srctree}" -T - | tar -xf - -C "${destdir}" { -- 2.39.2