Message ID | 20230228094949.2660702-3-masahiro.yamada@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=qvTFm7B2; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PQt0b6LRMz1yWy for <incoming@patchwork.ozlabs.org>; Tue, 28 Feb 2023 20:50:55 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1pWwd9-00023r-Jm; Tue, 28 Feb 2023 09:50:43 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <masahiro.yamada@canonical.com>) id 1pWwd4-0001vV-Ge for kernel-team@lists.ubuntu.com; Tue, 28 Feb 2023 09:50:38 +0000 Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 0E2013F59C for <kernel-team@lists.ubuntu.com>; Tue, 28 Feb 2023 09:50:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1677577838; bh=jz7tfN8G6RHWgfsUefycnAvdui5d+sAW1gNqfD3QioQ=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qvTFm7B2v/tE17J9BpPi5vVLpE041kfEPTxOt+JTGr5Ji9IXfLETI1pckpmYsEJp2 UcCUE3FSHhUv0CRYvtImBohgUJJHU8KxNXDhbh3yinLebuGjQKI25AEdVzwP4YjUwY t1OEzj8kkenYTZ2Lx90xdK5kCj/blLfAibZSxZGU5OsAKPuWIBZ8xMpRd+eaGkVOmZ V8BkldQa8gPvpr8gAZsWpvLvaMSnExMfgPnI/568wwG1nsVYC4MYR3IwLY/pSsypNl I1xiV2v37z06IXhGHkKD6G6APxdsIlPFcjsj11RrUdujOfJ4VmTgLrbJ9dhaZ7haSO daF8itwvv2jfA== Received: by mail-pj1-f72.google.com with SMTP id d3-20020a17090acd0300b00237659aae8dso6597981pju.1 for <kernel-team@lists.ubuntu.com>; Tue, 28 Feb 2023 01:50:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677577836; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jz7tfN8G6RHWgfsUefycnAvdui5d+sAW1gNqfD3QioQ=; b=sUDh+5QQrkC6kvaFG9bbGRaS/+c+8ihtyRj5QjmisbUi5Ba7LwrlHlVuL9IzNS47M2 wY1wmTVTHnjxFQNt7dk2kiquMhAxcVl1R0PEUKwY+g3fxFM+n9M6z3LtZWj5Br/LKkRi YkqGLwg8Aj4NxBKcG9bZY5swOJBDGSionrR+ivI4SYK1p9X1xEyvJZ2O4bvODO06qMHm RAAZ9jPaURzGMmz2gS0CHRr8vDtKTHZQfTBW4IX1DY1xhOpmOSIBd9Mohdrese+YSxKU DRtkjcD9usTbD96szQeeR6sUghyA9oBKZLRZo4XfCN4q7K9NYwZhVQHJVSxZYFrggnK/ a6BQ== X-Gm-Message-State: AO0yUKUS/qI6yM3406g9NMWhkeCAVa1Bxi00y3v9C3HR8+yA54V1izu9 SnkupXFrQO8+N6BoXwrQB410TH4Dfmaa1QaPJS+JOGBHEqyJTezCHfevDDsSZvaXw5bMDnt0eWR p5AO+B9AM1bJ4dmhxIcvZB86QH2ziXx0EAbNZdl09mMudrfM= X-Received: by 2002:a62:6456:0:b0:5a8:beb3:d55f with SMTP id y83-20020a626456000000b005a8beb3d55fmr1619481pfb.32.1677577836093; Tue, 28 Feb 2023 01:50:36 -0800 (PST) X-Google-Smtp-Source: AK7set9g00zFKON7d4LIGSPOkomUjiZhcqr1TN/kuauKzi0/CLy6GaCWl2ZjXqDNG7t/bfZQxUGhRw== X-Received: by 2002:a62:6456:0:b0:5a8:beb3:d55f with SMTP id y83-20020a626456000000b005a8beb3d55fmr1619471pfb.32.1677577835771; Tue, 28 Feb 2023 01:50:35 -0800 (PST) Received: from zoe.localdomain ([2001:f74:8f00:c00:6aff::1005]) by smtp.gmail.com with ESMTPSA id s11-20020aa7828b000000b0059435689e36sm5811112pfm.170.2023.02.28.01.50.34 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 01:50:35 -0800 (PST) From: Masahiro Yamada <masahiro.yamada@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [RFC/upstream:linux 2/5] kbuild: snap-pkg: cut too long version property Date: Tue, 28 Feb 2023 18:49:46 +0900 Message-Id: <20230228094949.2660702-3-masahiro.yamada@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230228094949.2660702-1-masahiro.yamada@canonical.com> References: <20230228094949.2660702-1-masahiro.yamada@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
kbuild: snap-pkg: make 'make snap-pkg' comple on Ubuntu 20.04
|
expand
|
diff --git a/scripts/Makefile.package b/scripts/Makefile.package index 3058d0cdb578..037d42db0b55 100644 --- a/scripts/Makefile.package +++ b/scripts/Makefile.package @@ -138,7 +138,7 @@ snap-pkg: mkdir $(objtree)/snap $(MAKE) clean $(call cmd,src_tar,$(KERNELPATH)) - sed "s@KERNELRELEASE@$(KERNELRELEASE)@; \ + sed "s@KERNELRELEASE@$$(echo $(KERNELRELEASE) | cut -b -32)@; \ s@SRCTREE@$(shell realpath $(KERNELPATH).tar.gz)@" \ $(srctree)/scripts/package/snapcraft.template > \ $(objtree)/snap/snapcraft.yaml
$(KERNELVERSION) can become longer than the 32-chars limit, then the following error occurs: Issues while validating snapcraft.yaml: The 'version' property does not match the required schema: '6.2.0-rc8-00151-g925cf0457d7e-dirty' is too long (maximum length is 32) Signed-off-by: Masahiro Yamada <masahiro.yamada@canonical.com> --- scripts/Makefile.package | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)