From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 16 Jan 2025 08:03:42 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f55.google.com (mail-wm1-f55.google.com [209.85.128.55]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 50G73f6Y031596 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 16 Jan 2025 08:03:42 +0100 Received: by mail-wm1-f55.google.com with SMTP id 5b1f17b1804b1-4361f371908sf3229135e9.0 for ; Wed, 15 Jan 2025 23:03:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1737011016; cv=pass; d=google.com; s=arc-20240605; b=EaZLw/oJOO4EDHoIvhNKRVVWkWofBicSaInIoOjtq5LN7J3nvCFONOyOxWZPQkzQRs 6N2c4kJt8h6Ej1EUwgqRIF5yb52D90hUW+79EjGS9dSUsDTiVh0n+J4W+Q9CEEwP1HqT eI4tQbfDavkfkbEutazlIaByH18jWZzKvwrzUNtBDq02vatafUFfB0B0mdb2C6MwgL+p Rp+NdCXFw5Q5maXpD6FX25ELtuzMXwkxKxSK6qc0gZXWDPCvdqbPLISqStCu0rkHGack ZBx2a5wx4ZNM0TLISDAlNSS9JhvsBJgfRqjh7+FKqoXLJzRa11gxPBiwarEC+HsZsYzK YcrQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id:sender:dkim-signature; bh=9UR7S8CBf4GbtlofU9keDQ4Dhl3xGoKts3Nq9SOlKYk=; fh=8eRz1dSL/1ep6x5x6/RTiYpyWSezTQeqAq18d6HtL08=; b=Wbq6vchCLdW/YxvQZdU/kQGIwwMLJWpY7ZWiMvISeuZZvR/CvNKExgQRpU2vHzG/RQ cU+f/n7WITb4fQoTvbtDXzBYIOJ+GVOFYGyNUqjYQtAsNs3WaBgCjvDKL20GaF4x5deM E6wcBci4JsnprgaxL8zqlwQ1SKssLMpIisz44yppZH/0WYaZOcO4/SEaVO9HHWm1ihi1 ohiyKLZcrW0pNF+6BTm5BAcoyCtajpf4E6rdV/j3B7RIlDZ1IFF36z9SeC+C2oC94wHi kivKD4OGTYKROT7MXmIQoZ5/cDxQZfBsI4b3MPueKEtfeZmJqzYOiB5VOBTPytSEzLeY sHOg==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1737011016; x=1737615816; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:user-agent:content-transfer-encoding :references:in-reply-to:date:to:from:subject:message-id:sender:from :to:cc:subject:date:message-id:reply-to; bh=9UR7S8CBf4GbtlofU9keDQ4Dhl3xGoKts3Nq9SOlKYk=; b=GuYe6e8P9QSRsoDMu5q5dSwctixHy8QH3+9yY1LQ0oKwtavsZ1qS20jpsYTlH0vjZ3 0QwTPk+FOEc6gx/zqgpLEzKc2wMMk0f8sbX5cqqtKV3ESZjcz/9qDFlyggMYFL3yu931 p5bazwI7LP/cxoW8VafhVVQaWuupJOiQa3dWnZfMuqlOJ0qhftNte9m8Qjj35kG5bL/l fPgCeNgwIxMLBT0QELfWakotX7xUI5OKvrWVBocxxD0dV8Xwc1t1oRSotuUXF9HMzxx4 DlhfwFh9R1Y3nUqhEXHEO3KT6JtHYfqRSb/nuJ1RuHTEKkmgN8oRKrEy2dAyC9qCSOFG uHFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737011016; x=1737615816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :user-agent:content-transfer-encoding:references:in-reply-to:date:to :from:subject:message-id:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=9UR7S8CBf4GbtlofU9keDQ4Dhl3xGoKts3Nq9SOlKYk=; b=Ey/KedulJ7hniUzaBKGfKxXhaTeiigG5UedK3p0yrK3ygaGyCOba7CpVuA5ykasjtB Krx72Xjq1+rjyKH5mwpbjeXid79nljrl+fSr7gB86Bkkgb91giUfPWk/vnmm6xOTjA9h L6FGJljxcjsM8qIUONSgKd2+EIo/HEmtJlhdqO7AnP1DYuGaoGIgg+81C4l9McNCoObr F95KdIDXSj7RAqiTOeNVcypchIT5DILErRLo+y1fN4fmJiUUPCXpmSuqn2qOBq+ldTcT D4HqkfaBcWaf6dajzq5vGwCdbxpJe16to258bN70C3OhD0KYm7cFADMx1ZzUz2QpyHoI VPig== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCXDWG0xtekZkAC7vC708sDMt50p6ELH+8geUb8YUhiB5MNhQ6DmRxu8AM13wqhQg5kjWdSi@ilbers.de X-Gm-Message-State: AOJu0Yw45ThxFIItOrGFSzM45z0FkZr6ZuKM0qNv4V3LFfCjJGSJygG9 8aw1E903WICkNH5OPZx1SItGs6JxOuIpf0oH3Py+ZluIkiqH+91i X-Google-Smtp-Source: AGHT+IHR/b/1EdTybJFJRw3/4xoTjIb5yGBX4RxkS9eggVXzn4p+uEda9KP9YYa877kAEjPyKqs4/w== X-Received: by 2002:a05:600c:4f03:b0:434:f396:525e with SMTP id 5b1f17b1804b1-436e269c2e6mr286043665e9.9.1737011015368; Wed, 15 Jan 2025 23:03:35 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:1c05:b0:436:8a89:bfe6 with SMTP id 5b1f17b1804b1-4388aba29bbls3728115e9.1.-pod-prod-09-eu; Wed, 15 Jan 2025 23:03:33 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU3eQViZdpqOkvFGuwR3qZ+DKFZS5FMSRgYY2BoSKjEsbp1fhG5J9cjvH+4QhQHoyvWhHFjr3UF1bJu@googlegroups.com X-Received: by 2002:a05:600c:4e0b:b0:434:a7e3:db5c with SMTP id 5b1f17b1804b1-436e26aeeeemr329248485e9.11.1737011012989; Wed, 15 Jan 2025 23:03:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737011012; cv=none; d=google.com; s=arc-20240605; b=N8l7+3OZLTPoc9lZu3rNgYDOvGVRQr1Tmu5mSBhG0wSTSaUiPU7Yosh9EbUbhHH0Vu Y8JYsKVXwzQKlLLsV64biYa34g4OqiAP8CZ8ORjJyAlr1kOVrUnYwQL0W97KgSczHma/ 29XPEgPa4brmo61Ro+f4fyejTaW+ibfnMSOEa88gQul0ur93jjxxut5dOiQyiS2Auje9 RCrHLaFOcaRoKa2mhEBmK1S9fIw96NbdRk7pD2iXKqeu7ejRh7b2kET8EI7UiFFaddcY rf1Oe9EUpcyohvRNX/ykP58lCe6zcWwNHHDb+Jj+Nvjg34ik46mE9xqtKgbA4JQgNu/c gJJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id; bh=v8cdCF9LCoUtJE5G1nolaZDA9MWTxNJy84Q6oXPuMSs=; fh=iRmcFgCGW2voZVK344bk7aP3WMIx0pEJ7sQ2myfLtqg=; b=geq8m+IEPODbKkTyxuR60jB/hZM1deTiHGgzLsnqyolg2y7TErNmRZ6q3F6b6b8fdM THkCIMwjHf2kFKWt31Ou6kI9IoVuF4FO1PMtyTBm2nRxTe6mnM3tUumwF4XzqVUWAGZ2 +7ZvcGMytBwQsxNgCI9NSrfUhF21l0s/cI7bAR/uzi43Lav1W0CkS0nlQwvisSUgWZeu YfBEYeRJDhZrNyQFbZKNn2V4dKmLuc5KitxOK51gwnRek4lYWwtyUM+cd9I/x2T5EPDK rokJT3A/RbFK3J9Qk+CRQ8a6yEqJ9ugVxsKqunm7SP8mFWEw08jZpmmvIeE/prh1ip4c XFLQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-437c74abc7bsi423715e9.2.2025.01.15.23.03.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Jan 2025 23:03:32 -0800 (PST) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [127.0.0.1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 50G73TSU031587 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 Jan 2025 08:03:31 +0100 Message-ID: <558d162879810b5c1fe56b7905bcc1fb78e5e367.camel@ilbers.de> Subject: Re: [PATCH 1/2] base.bbclass: Enable the addition of epoch in an apt SRC_URI's version. From: Uladzimir Bely To: Amy Fong , isar-users@googlegroups.com Date: Thu, 16 Jan 2025 10:03:29 +0300 In-Reply-To: <20250108155703.10376-1-amy.fong.3142@gmail.com> References: <20250108155703.10376-1-amy.fong.3142@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.2 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: ubely@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: MqFWUFWPQkcs On Wed, 2025-01-08 at 10:57 -0500, Amy Fong wrote: > From: Amy Fong >=20 > If the epoch is added in an apt's package version, there will be an > exception thrown as base.bbclass tries to parse the entry as a URI > (it complains about an invalid port). (man deb-version) >=20 > =C2=A0=C2=A0 e.g. SRC_URI =3D "apt://cryptsetup=3D2:2.6.1-4~deb12u2 >=20 > Fix: remove apt:// entries in URI validation list. >=20 > Signed-off-by: Amy Fong > --- > =C2=A0meta/classes/base.bbclass | 7 ++++--- > =C2=A01 file changed, 4 insertions(+), 3 deletions(-) >=20 > diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass > index b8825bd3..7d4ab49f 100644 > --- a/meta/classes/base.bbclass > +++ b/meta/classes/base.bbclass > @@ -123,9 +123,10 @@ python() { > =C2=A0=C2=A0=C2=A0=C2=A0 needsrcrev =3D False > =C2=A0=C2=A0=C2=A0=C2=A0 srcuri =3D d.getVar('SRC_URI') > =C2=A0=C2=A0=C2=A0=C2=A0 for uri_string in srcuri.split(): > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 uri =3D bb.fetch.URI(uri_stri= ng) > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if uri.scheme in ("svn", "git= ", "gitsm", "hg", "p4", > "repo"): > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 needs= rcrev =3D True > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if not uri_string.startswith(= "apt://"): > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 uri = =3D bb.fetch.URI(uri_string) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if ur= i.scheme in ("svn", "git", "gitsm", "hg", "p4", > "repo"): > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 needsrcrev =3D True > =C2=A0 > =C2=A0=C2=A0=C2=A0=C2=A0 if needsrcrev: > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 d.setVar("SRCPV", "${@bb= .fetch2.get_srcrev(d)}") > --=20 > 2.39.5 >=20 Patch 1 applied to next, thanks. --=20 Best regards, Uladzimir. --=20 You received this message because you are subscribed to the Google Groups "= isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/= 558d162879810b5c1fe56b7905bcc1fb78e5e367.camel%40ilbers.de.