Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6186100rwl; Wed, 22 Mar 2023 07:34:05 -0700 (PDT) X-Google-Smtp-Source: AK7set/zvD28odZbcXtWD/IiUOFSyTlX445Eh+zUCioLbW5iyzEWxMWi9AyP1RKsLypLYPW1CpW4 X-Received: by 2002:a17:906:2753:b0:908:7fed:f0f with SMTP id a19-20020a170906275300b009087fed0f0fmr7620629ejd.42.1679495645483; Wed, 22 Mar 2023 07:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679495645; cv=none; d=google.com; s=arc-20160816; b=RK6oqdZvKToKnX7yksX9GcyZEC2A0bHgPKLzKEmcDWk610Iz8pzBPePG1Osq5ehKIx o5li6wwQBMxBqmWkXvrZE4olYTWUNN8IF7YBtfFb8sVO/RSuoXHWo9+YWChbaw5d/q5u yE7++YkU2BmIUkvD3IDg6ovFJ8KahBJR2GX4GPY+KTC6mh/US+kkhSB9Q4hM8Ha1b3+1 YXnSpI56a7PNzq0KpvLyVG7nbJG0OxohNa59Z8CmdVUi2o78IbUGpcV39sfkdWKePmFA N9xe9QpDDY/N1ifQNfkom/BbR6ps3tI25RYtgnfAOJe43Ygo1VznMW/r6XdNW++tmaSj Zrsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=AKZ+bzYzlmRgokmTPbz3/XXni4dV5E1v62lH0CiChdw=; b=AoOwWClclYRE7PykK1Zmtg7u80SOdXnvdXe4r07OYs5bLsUbFU9+5fEzZn7q3fq/lN xWh+RnXZXQh/ePVAkbYEM4krG2PE8gCuh8G14uJm+fP1hJACXEJAIGdT5XT1XEYE5XpP blk5jWZVGfJHPEWVuVc+vdjzL8P8LwtawTYxPy0XMDYSDC+JTX9r2AmS4t+h4HQsmVkb oHCfYMUHQYLgj0OaP27ZvfpWipfrzTT53IvaQsVw6YgAiorA00+hishf8Xc7/lBWbExc iXG1ftEYbFvn55T+16lL6gxvLQWclSq8Q4Lnsb/pJjNhEZnABCOBi7eQWTr52VbPkdtI ei2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PwlH5xur; 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 u22-20020a170906951600b0092a8aa23062si15128145ejx.571.2023.03.22.07.33.41; Wed, 22 Mar 2023 07:34:05 -0700 (PDT) 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=PwlH5xur; 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 S231441AbjCVOW2 (ORCPT + 99 others); Wed, 22 Mar 2023 10:22:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231468AbjCVOWY (ORCPT ); Wed, 22 Mar 2023 10:22:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B62C52920; Wed, 22 Mar 2023 07:21:58 -0700 (PDT) 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 128C4620FE; Wed, 22 Mar 2023 14:21:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77180C433A0; Wed, 22 Mar 2023 14:21:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679494917; bh=0aiD5bb+XDPSulptOsfFz6gzTu0h2IJzmzovRMJNE/s=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=PwlH5xurS2zAuT0Qbi3+r/DwoqbbuK/B3NVv9y6rFSiRtaWDWhQrlFcIKev+VNM9o lhu1PaTLjY+Zy5uyq4HrlP4kazhZlBufc1qRepvS8ngzEa+owddLC4UaJEaPLA6oE4 F2F6Gy+c4z3ji44fWkfN/l2V4v4zsgBx4ObOwNGVIi6rGEVN02y3Ims46bUMq94xkm 2Pbsm9LaPk9wO6ry1H0qQJXssZZLfKdWUTn1o//dzl3AiOGK7c0qSjnVUKYYPOLlgl lJbmLr9Id3LC6w2VPiVSOYHyefDo/3l56MpsKgFCqQWLF+5/vQoXQTsr/9lcH/WFRt dihx4RPAh+PiQ== Received: by mail-ot1-f54.google.com with SMTP id f19-20020a9d5f13000000b00693ce5a2f3eso10425615oti.8; Wed, 22 Mar 2023 07:21:57 -0700 (PDT) X-Gm-Message-State: AO0yUKUzFNloiV4PgwULCC+t6DheUCXXn+6lTOgDWK50PmaSMagNOStm Z4JO8/9ojAeRvW3bGpLVnWGHqTzYWzaB8wqIIzU= X-Received: by 2002:a05:6830:10e:b0:688:d1a8:389e with SMTP id i14-20020a056830010e00b00688d1a8389emr1126078otp.1.1679494916788; Wed, 22 Mar 2023 07:21:56 -0700 (PDT) MIME-Version: 1.0 References: <4a55805c694cff4cc9281961f2d457262bea48e6.1679423785.git.kevin@kevinlocke.name> <3351f907cfd0b5d8372e858a8ec9065cc2bd91df.1679434718.git.kevin@kevinlocke.name> In-Reply-To: <3351f907cfd0b5d8372e858a8ec9065cc2bd91df.1679434718.git.kevin@kevinlocke.name> From: Masahiro Yamada Date: Wed, 22 Mar 2023 23:21:20 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] kbuild: deb-pkg: set version for linux-headers paths To: Kevin Locke Cc: linux-kbuild@vger.kernel.org, Linus Torvalds , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 Wed, Mar 22, 2023 at 6:39=E2=80=AFAM Kevin Locke = wrote: > > As a result of the switch to dh_listpackages, $version is no longer set > when install_kernel_headers() is called. This causes files in the > linux-headers deb package to be installed to a path with an empty > $version (e.g. /usr/src/linux-headers-/scripts/sign-file rather than > /usr/src/linux-headers-6.3.0-rc3/scripts/sign-file). > > To avoid this, while continuing to use the version information from > dh_listpackages, pass $version from $package as the second argument > of install_kernel_headers(). > > Fixes: 36862e14e316 ("kbuild: deb-pkg: use dh_listpackages to know enable= d packages") > Signed-off-by: Kevin Locke > --- Applied to linux-kbuild/fixes. Thanks. > Good idea! Thanks for the quick review and feedback. Here's an updated > version. > > Changes since v1: > * Pass version as the second argument to install_kernel_headers(), > rather than as a global variable, as suggested by Masahiro Yamada. > > scripts/package/builddeb | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/scripts/package/builddeb b/scripts/package/builddeb > index c5ae57167d7c..7b23f52c70c5 100755 > --- a/scripts/package/builddeb > +++ b/scripts/package/builddeb > @@ -162,6 +162,7 @@ install_linux_image_dbg () { > > install_kernel_headers () { > pdir=3D$1 > + version=3D$2 > > rm -rf $pdir > > @@ -229,7 +230,7 @@ do > linux-libc-dev) > install_libc_headers debian/linux-libc-dev;; > linux-headers-*) > - install_kernel_headers debian/linux-headers;; > + install_kernel_headers debian/linux-headers ${package#lin= ux-headers-};; > esac > done > > -- > 2.39.2 > --=20 Best Regards Masahiro Yamada