From patchwork Tue Apr 5 07:10:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1613265 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20210112 header.b=r6QLYRMR; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::23e; helo=mail-lj1-x23e.google.com; envelope-from=swupdate+bncbcxploxj6ikrbyowv6jamgqe4wkzt3y@googlegroups.com; receiver=) Received: from mail-lj1-x23e.google.com (mail-lj1-x23e.google.com [IPv6:2a00:1450:4864:20::23e]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KXf1K3MHtz9sCD for ; Tue, 5 Apr 2022 17:10:29 +1000 (AEST) Received: by mail-lj1-x23e.google.com with SMTP id b2-20020a2e8942000000b002497c9833c2sf3563935ljk.8 for ; Tue, 05 Apr 2022 00:10:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1649142626; cv=pass; d=google.com; s=arc-20160816; b=zml5UU2evz/PPSEDLzFb2HS/db4OTO1Bzvlu2wDUuwsE7Zsqj3HGthY13lpYX0tNaC RaxIJwmxtda2NHZcl5PJWRSyG7wjftubAoEkXSCRAD7Unggz8p/bZLk6K/4tCjoL116w 6MfvsbEcDvE/pOgtN0FAf4wUvbcPHLkDa4cC5JUQcEZdXCg9UEmlbFUL3g19RHX8eVqi pR+EbjdWXhSngqeLRdIbaUokDA+RG/dJ5GqJ1M7YM7Cv0wZ1jXSm90946WAJ1yFzZf9Y /AFNCpR6cTOY4c9+SQn29erw2T+plk46fDwEBeB4uFH/JeRFYSusgDBULMPjawDf0ICf c3SQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=Da5nV0wEuOUC+U2PnNa0NfB7evBH9gd90RJNmQYHd5k=; b=ptdM9zLKLbbyIontQRR/6xVdwdA7bJaIcYmybBuGrIknNJ8l03CDZPAERM1KvODoqC V0XsZexWJGGh9m+uuMO9gs7bdqPelTD6SXFSowwZ13igatReAh9AbPHOG5tASKS7GjEy Lv9g/h8hLWhIpevu4EzRW9tEL/MvImJuIgUNzG+bMgRm6Mp9S/nAThUsV7aUUuroyiuS BkerZ2UJu3GVsb+8DdusLjUG77bVtG+41XyPimLBq0DDMgb74z8MhBeBOFHAoYX56FcA Bn++oWHit6q6gvpDzbhrQ/Xw5lL692PKtXMDUBGKVONxknXKuFm4xbyByTyEUNS2//24 VXyA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=Da5nV0wEuOUC+U2PnNa0NfB7evBH9gd90RJNmQYHd5k=; b=r6QLYRMRXhyC6PuC1heBBlGp9ncFhDHQbpRm0tULBneORhi/V/N+9ZlMBxxggiV5D+ xP/mHGIK5zPM/33XUzNTQuyVCVgJNfwf8R/UDr1sBRQfiakr7jO8tPTRAcCIX9sxNzHp sWAgrDIMv9c1yHrL7rB/c3OnMszHjRiOhta4OLD68but73h7Dl0KAMFDyg/yEoG8qpO3 qNo8bJxpT6ZHU+M8wVtuPhmhpVJXh/52viKJC3UQRIgohSdOo2AO9rjytaSidfButkdw daK9Kyob2eSDo2+b8PyTo7Buw0P2J9mfmv80q6RQzEcpvWZPf9IZtFUoKKT5LcXI8F9X oUaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=Da5nV0wEuOUC+U2PnNa0NfB7evBH9gd90RJNmQYHd5k=; b=yJGd9ZDYU00RqiQz0cEMLRhO97kuJyq2mWLSgFHuikJOUMBwz865ilkrWkvm3ZewMc fWqo0jbceO3NqrZ82c7b2CMqIH4bcZ1gJYpmltz5E14YKGRdI8nDf91L8NUBCLo20scc zXwX1W5k4PzZYGSXGtWNXrZDQVDOima4Lb7B/Mq7OvZc7xyp3vPjS/NRmzio+WtY88si QmxRsIdGn0yqGKRERqFgOqPDfGupxNdQxHxQnBRk12QL+6VcA8hm0TEgxsrdBfS5Iv1a 2e0/rcR+vBPq3MmT/SW5/iJX13Vx1xSt4VMoZS0ryUn4xoygJrNqSEGfG8FNQ/0MylFv ANBw== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM533KBKcnEMtWpASqhzVBsIeCoeysxZqml1PWu2l7kgRyCYs/DZ2p 6vtOGLXgrKLv+qWUphmOIbM= X-Google-Smtp-Source: ABdhPJy6vobzemdGRH+NGiXJ6q3uSlbFslbrp7Ns2765+FZZoZE1RSnQQs4kl1oWZLuivS9IjsLAwg== X-Received: by 2002:a2e:a554:0:b0:249:8dd1:9da9 with SMTP id e20-20020a2ea554000000b002498dd19da9mr1258482ljn.341.1649142626227; Tue, 05 Apr 2022 00:10:26 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6512:3f16:b0:449:f5bf:6f6a with SMTP id y22-20020a0565123f1600b00449f5bf6f6als2689948lfa.2.gmail; Tue, 05 Apr 2022 00:10:25 -0700 (PDT) X-Received: by 2002:ac2:424a:0:b0:44a:e7bb:e990 with SMTP id m10-20020ac2424a000000b0044ae7bbe990mr1614159lfl.651.1649142625245; Tue, 05 Apr 2022 00:10:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649142625; cv=none; d=google.com; s=arc-20160816; b=x1Afvw064tB/JFjarLyiKEk1y0iOkyOsw2S2odczPcjcFwrfbgARCbhsCrR7HW8F6i H0Ut6u0yPZpLvKTUC9tXrT05tqAHa+N0GNNtNup/BYO8YdRUPefee9LVtQhAI1zxJ9nn HpnaDjY9RmQRM5Ulx9WSJxvujO2i1xHMw7EvDs9GhlkSIZjnX8plqcFK8tWi1jsxNFRJ NsbZJ8qeFbSaAdBiblk8mjU0GyBYD/r0LhBcUUoao7aoyaul1O6sGij4rjG+6MEr4Imo bKOqzAyThCWYjkqAl4Mg/uhlOZx+CelztonmjOSkhZEVXXCWx5h6bxh/+arLCZl8NYqd cEIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=ADnVgWfWlyZrEtBvsgF3wUZLK9MQtzatCfBJ3dq10CM=; b=bFZRFhwTZzu6S50S5scAgCL1Y16GcJu+XLADyz5THtH1kATq9HxN+ePL8iiuJE5K49 7qffCuTyIiI6mDc9GTL6/zv+lNgO/IiN7OJOByNG4izdH/TjyAPhMzKrS/sta1kFJnIl 4mjYBuqKTcqSLx4FkSkhy7PKS9vVtYiz1udx09oYzsrjmNuz3IoZqlL9WVJgtNSRC9Hw mEmf0pAQFgFf6ojSPERXAKgUbu6WjPpOzKHvnuvYa2SfsTxvmlbsqevCbFHJLR1fnuSC W4QAHfRrqQwFl9Pl7suKiDMy+OxEIitN4INwlhrCw06jT1PUZX5vRrodWyAwHrRBp/n7 7GEg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.10]) by gmr-mx.google.com with ESMTPS id p17-20020a2e9a91000000b0024b17d3d51dsi236092lji.7.2022.04.05.00.10.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Apr 2022 00:10:25 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.10 is neither permitted nor denied by domain of sbabic@denx.de) client-ip=212.18.0.10; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4KXf1D5JhMz1s75V; Tue, 5 Apr 2022 09:10:24 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4KXf1D5BkNz1qqkB; Tue, 5 Apr 2022 09:10:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 2GV-WfhOxswI; Tue, 5 Apr 2022 09:10:24 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Tue, 5 Apr 2022 09:10:24 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id E113D45407BD; Tue, 5 Apr 2022 09:10:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gkjBsF-sPbfa; Tue, 5 Apr 2022 09:10:21 +0200 (CEST) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.48]) by babic.homelinux.org (Postfix) with ESMTP id B12E54542B2B; Tue, 5 Apr 2022 09:10:08 +0200 (CEST) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [meta swupdate] [ 12/12] Raise a warning if old syntax for sha256 is used Date: Tue, 5 Apr 2022 09:10:05 +0200 Message-Id: <20220405071005.3855186-13-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220405071005.3855186-1-sbabic@denx.de> References: <20220405071005.3855186-1-sbabic@denx.de> MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Generation of attributes in sw-description should be done by separate function. The old syntax with '@' is still allowed for compatibility reason, but it will be removed in future. Signed-off-by: Stefano Babic --- classes/swupdate-common.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/swupdate-common.bbclass b/classes/swupdate-common.bbclass index 1ee241d..37403c0 100644 --- a/classes/swupdate-common.bbclass +++ b/classes/swupdate-common.bbclass @@ -57,10 +57,10 @@ def swupdate_write_sha256(s): with open(os.path.join(s, "sw-description"), 'r') as f: for line in f: shastr = r"sha256.+=.+@(.+\")" - #m = re.match(r"^(?P.+)sha256.+=.+(?P\w+)", line) m = re.match(r"^(?P.+)(sha256|version).+[=:].*(?P[\'\"])@(?P.*)(?P=quote)", line) if m: filename = m.group('filename') + bb.warn("Syntax for sha256 changed, please use $swupdate_get_sha256(%s)" % filename) hash = swupdate_get_sha256(None, s, filename) write_lines.append(line.replace("@%s" % (filename), hash)) else: