From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6768877611130028032 X-Received: by 2002:ac2:5a48:: with SMTP id r8mr19279092lfn.179.1576002131146; Tue, 10 Dec 2019 10:22:11 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:c507:: with SMTP id w7ls1759011lfe.1.gmail; Tue, 10 Dec 2019 10:22:10 -0800 (PST) X-Google-Smtp-Source: APXvYqzgufszHUoSjGlT3cT7+VNaP9dgmBjY7nt3Pb283ao2uMuaF3Ux2Gin+0qpi/Wzoj+or+Va X-Received: by 2002:a19:6a04:: with SMTP id u4mr9703467lfu.62.1576002130210; Tue, 10 Dec 2019 10:22:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576002130; cv=none; d=google.com; s=arc-20160816; b=MF56IiRMEAfZgvV25egdIXM5MDPguU8EPcQB/5E6M9OStQyFNA7T8GoivxXR0Gc9Mm yQXFLv4gRxMXCNWwD1z0VuhErxkallXcAf0U6TIVKF2vEo5VE0ajzOVGs/BOV18oYpMC lopOofAjZ2Z26yn8T2VR6NQqJqCRGiHTpEzo4tYhHQ23n+Q3ikDHLFpG5dFMTMxkIobx qsRsjz7iiynd+IpXEaeuo7JsMZby0FdeWWQYW8Sjq38Mw7AHh6ik+DtczMgysElAFIGg aYBwtu55n9fNei6/NPS5Bu/6MaIpPtAcVjS2PB78HNezyjyolx89D172bYSYQh7J7HaU V+ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:references:in-reply-to:message-id:date :subject:to:from; bh=FHpz0PdC2WvdCdgVioyRiOViFBbLBUemTgdFuztL4UY=; b=svcBG72Lu2M0mGBv0yr2QX3kCtzlOpZQir0QupiEO+DPM+dXRpZD8tIalQlZVmmEc/ 2BggNJwasBLKeaaZmLOnvgpZCBSM8OoxfpBEafAXP7iJtPy23LdtsQspc2bVrcqgeLmr QCKWBtHY3rxkskV5j3gitY8RsZC1+wkTWalfI/HLId1GDI3tlfe11RgkKLRO2ydw2rXw FWUwNI8alV7lJPUUFOiO30vZd2Umpn03R3OSAyN9bQEMgLSd9VTJX+RcSHVYI7JL/sCU w8D/eYLTbgwt0beojeS1j8zRGsjQzq7BZaKADFTil17v0bhDX8m/zYhDIcnyToqmpFSK iIPQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id z18si153301lfh.1.2019.12.10.10.22.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Dec 2019 10:22:10 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id xBAIM9QX007683 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 10 Dec 2019 19:22:09 +0100 Received: from md1f2u6c.ad001.siemens.net ([139.25.68.37]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id xBAIM9ND019987 for ; Tue, 10 Dec 2019 19:22:09 +0100 From: Jan Kiszka To: isar-users Subject: [PATCH v5 2/5] linux-mainline: fix stripping of .0 from the kernel version Date: Tue, 10 Dec 2019 19:22:05 +0100 Message-Id: X-Mailer: git-send-email 2.16.4 In-Reply-To: References: In-Reply-To: References: X-TUID: WrhkM0ZMwHd7 From: Cedric Hombourger The strip() function was used to strip the trailing .0 from the kernel version since it is omitted in the upstream archive file names. That function is actually taking a character set as argument not a substring. This was causing ARCHIVE_VERSION to expand to "4.19.8" when the user provided version was "4.19.80". The inline python code was changed to check if the version ends with ".0" and only then remove the last two characters. Signed-off-by: Cedric Hombourger Signed-off-by: Jan Kiszka --- meta-isar/recipes-kernel/linux/linux-mainline_4.19.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-isar/recipes-kernel/linux/linux-mainline_4.19.0.bb b/meta-isar/recipes-kernel/linux/linux-mainline_4.19.0.bb index e50e149..127f6e2 100644 --- a/meta-isar/recipes-kernel/linux/linux-mainline_4.19.0.bb +++ b/meta-isar/recipes-kernel/linux/linux-mainline_4.19.0.bb @@ -7,7 +7,7 @@ require recipes-kernel/linux/linux-custom.inc -ARCHIVE_VERSION = "${@d.getVar('PV').strip('.0')}" +ARCHIVE_VERSION = "${@ d.getVar('PV')[:-2] if d.getVar('PV').endswith('.0') else d.getVar('PV') }" SRC_URI += " \ https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${ARCHIVE_VERSION}.tar.xz \ -- 2.16.4