From patchwork Wed Jan 8 15:57:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amy Fong X-Patchwork-Id: 3998 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 08 Jan 2025 21:32:08 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-oo1-f59.google.com (mail-oo1-f59.google.com [209.85.161.59]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 508KW6gq023487 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 8 Jan 2025 21:32:07 +0100 Received: by mail-oo1-f59.google.com with SMTP id 006d021491bc7-5f338069a21sf199879eaf.1 for ; Wed, 08 Jan 2025 12:32:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1736368321; cv=pass; d=google.com; s=arc-20240605; b=XqmZ9SoJFz4Ifo8KTijHs/GBEsQUJ3lIafCMt6UtaJUUzewylH+dzk3cL51NEfvqWe 8E4u7PMqdtPg6pQeVb5QDZTfqgUF5WdiL+1Tw8fcA/+ijAMu2XSF1jRc2XcGQKohLKcf TXNTZASurCwtjdqUG6o20y85eUJ+8E8Ulzmijk8Wo1GkO78ky82bzinNgdeE5Tv1CtrP oRExgpkFslITIDrSIEM4AgCG8TryslsN9pwddS2DZvztXwsuzXJaZX+IXG9sHa5dKy2e XgSORkZOcYDTxCKcmZp4qkyM70b6kgygdVgjIE3Lud8PsbZcE/3iYC1+uX4OULTb29fa daCA== 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:message-id:date :subject:cc:to:from:sender:dkim-signature:dkim-signature; bh=O02fSMg080CzUX+3L50mAeV3Y6RLblOtV+cGcl02Ktw=; fh=Lvb6swTBuMkwWoWQmMHeiiF9PXl7smOuQOG36kv31Dk=; b=NGuO8LvF9lHGp+M4NxuKNcfVnbL5UtKhasZTIzm4Y8Yi/vOLSAzpoRe80kJQvbmdpZ /RoGnTQ0CbgAfU2FwdXC22jiiGz43NHhv8Vln5hfr5mR7XX2bTEN4wh49QGVGiH71sHB MM43zEpXaCkyTTlUDgPiRcj87TjWjrT3hU3qtBLxXEqBuC0FMq1qJiaRQK718uy3UpGY S9ULg7KcWlVYj0Zvghhe7KbyZ6Ka/Pc+O4WLIgbqr/rWJj1DEgLPUyd1rZA5y9DyW7f6 Bej1E1SARs6Z5WDxPY7/fUdNPwAd3DZuoLVFJSyxpWF1+pxxCud1CLpppGdR0ixRdKFH Y7dQ==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CKdDubUx; spf=pass (google.com: domain of amy.fong.3142@gmail.com designates 2607:f8b0:4864:20::d36 as permitted sender) smtp.mailfrom=amy.fong.3142@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1736368321; x=1736973121; darn=isar-build.org; 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:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=O02fSMg080CzUX+3L50mAeV3Y6RLblOtV+cGcl02Ktw=; b=ZFZsc6grlBFk6lcARk3dd1B6wlkZPSiJYAeHP1VrDA4kPAxURUeE/2xwugJFzWByyF URClweGUupRhL2DCNT3DZWOaqc8aZLUCPvuNuc7kItP+19+T7rFVEKN5a7OvTWeFdqMf A1zQsbo2HbAJCun6XhIYbldhauLZkexXzXedk1Q3fnoYwYaONwZUHBZ48/Uk0JSEYheD 8mPV/bIQLK/Gn4lcUPQHb61XK3nAx6SWxTXxg2zqvNCP1xS8jhKTpUdvrvA/aYiwOvNx 1awQyXHLBIoQNn9a5pGi/XMM/86JI7I4lNd3ZJK8xDovq9Sf/WWWNq7B1z2cX+kz3C9B 0LHg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736368321; x=1736973121; darn=isar-build.org; 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:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=O02fSMg080CzUX+3L50mAeV3Y6RLblOtV+cGcl02Ktw=; b=RcoCy8B8XUhvcprbHgvTy6I7TjFiqpabQGAeiW1F6Mw5KoY+fhT0sHAPiqk++7xV9b EKBr6a+ZtgJpKl5jyrIJNCi8t1Mzwcd7ipUeJ3tSC3mkrubedHFbjjQcdMc7sZpQ8gft PGvKITXL/JMxNwC5Ul2s4zPlsa1ERhLLlJrga7qyr/XliWLx3+9JvWNHincYtNBmuQ6N Q6ProipAbxy+GPoV0fPDxeedT7UEhlndik9eguZ21UywumKNUYVKPX+sZ1Q007vP6pnL zP2js2SBsbY8Xdwy3q4FgbhdtxiP8bKSEmO1TQmFKcJz3+RFXrd7iMZjCKOJ5uIx1WIm IJ7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736368321; x=1736973121; 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:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=O02fSMg080CzUX+3L50mAeV3Y6RLblOtV+cGcl02Ktw=; b=X/QMmdtT1trUPeXsU67Z0yUSeiVJHk679vmK3A1LPDui1MOdLMqm22xX9Hy9/Ynxv/ LcIT96s4NgU4/r13gy/iAWZ7USjY3xVX9XvPTUBBtAtqyq/xfTslDhXvQyE+0GlBlAOi JO4PRoAqdUEw1BeX2MwqrM4DH0EmOFS2L9F2Fs6hyV3dEBVkWAtO07vsX19AO7fVkV/z tq4vuczSVf+IzpEbXwTzm126fZHest7WrWnOOCvh1LIRESpR4i/XR7jUEvCMOseZXbce Uwu9BEhT/II7lKUKhjIT7ePL6E3I54YPI+ywvizx2Xf0eVB7zJQhzeqUvyATesBz56NP TNmA== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVJ7hKotuanSvo29IwXVafEGaqLjkwvGHzK+1EQ/M/+skKBCRxxd1KEN3x0GXTp7i7w2cDVgzw=@isar-build.org X-Gm-Message-State: AOJu0Yx+tjDXOgPDMz3ouHNUSLfl+F59JLn2iF8fz2rdwIglEjfZ8nM8 z/wc+rl5/ESuCrOQkY0Arng0d98aCsXjL4Oo3Vm8kx95B+LoN3C/ X-Google-Smtp-Source: AGHT+IG+yFP/gO1e6tUFYq5GhMle7djh+gChfgoaow9JjA2ni+8Qh6Oe56LxgFRXqK6VsaXU8KTgVw== X-Received: by 2002:a05:6820:162a:b0:5f6:7123:5f57 with SMTP id 006d021491bc7-5f7308494d3mr1833285eaf.1.1736368321103; Wed, 08 Jan 2025 12:32:01 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a4a:eac4:0:b0:5f2:fcc:a198 with SMTP id 006d021491bc7-5f880555b67ls178798eaf.0.-pod-prod-03-us; Wed, 08 Jan 2025 12:32:00 -0800 (PST) X-Received: by 2002:a05:6808:1783:b0:3eb:5562:34ba with SMTP id 5614622812f47-3ef2ecba226mr2294352b6e.25.1736368320555; Wed, 08 Jan 2025 12:32:00 -0800 (PST) Received: by 2002:a05:6808:2992:b0:3ea:54d0:9259 with SMTP id 5614622812f47-3ef2e1a8d05msb6e; Wed, 8 Jan 2025 07:57:52 -0800 (PST) X-Received: by 2002:a17:903:234f:b0:216:1cfa:2bda with SMTP id d9443c01a7336-21a83fc3891mr58565665ad.43.1736351871764; Wed, 08 Jan 2025 07:57:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1736351871; cv=none; d=google.com; s=arc-20240605; b=N8OV2fEG6xh7AdHEXqH/pwCAvhCU5+3c6fqWh5fRxfzW/yEeVqldDZKG4b9QYJ0sP6 z3gwpGbHC2rL9CIgocIrFHp9AttuB+ujSMf7kGg7S1dwCqKLeCxkdzDC/mWpckcFP1nf 3Bu0CSEghkkqnIRZmTUpeKchKIRyFf1QyscFeH3bGXICipKaJkDeGNOT2u3vIYk3ZSo7 dtI8uW/JHCQYqMrncMQF8wnFzGfmL5AZO6SI79MpLodJgrGNat2sxi4PlXaSN7JkI9nm 9sV25yRGmjGMlyXZGbgbnYUPF0VViZ3vF4lHgunM9hG7abPhUlfvxP6PoWfHNjKHZ46J splQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=S+m6KYJlrf3Phsgk8jU5//F3jQWxuRPjyKiusMF/s8Y=; fh=6eKlLgnlKQ4ILN0acbSKKd4RVnzWmr/MVaRMEap718s=; b=Lpihr4IlCO0JpvTCe+OTs80UmFvPoX5eFNlg9zc5piDDuQY/FA88m74T/FBhvcPY22 k1vN2CQtT/5dmHuuACHCMwnxJrd12w3+cVgPaHHSOgNS5cVor6MjF5ZOxZAHt80zWTbu bpjsBtV+odUtNma99hXWZegN7cgBb2i1a2psjvfo1GPxY4rXZS+eiLdI1bMK0YymXZ24 20/mWwG5/gsu4vN6fBRy1Y+LVyUL2Gk9wOSICUBG6KrCWuvpWz4KhoK0JPpPtJD6Z5xo 7lYkgLCR8svhfNjqyWqWlPQB7oq4dHiieMw+dRDMl0jlwfZ9fTu0EH7QvvinP/wE3nY7 Wcvg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CKdDubUx; spf=pass (google.com: domain of amy.fong.3142@gmail.com designates 2607:f8b0:4864:20::d36 as permitted sender) smtp.mailfrom=amy.fong.3142@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com. [2607:f8b0:4864:20::d36]) by gmr-mx.google.com with ESMTPS id d9443c01a7336-219dc9c8dbcsi15744315ad.7.2025.01.08.07.57.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Jan 2025 07:57:51 -0800 (PST) Received-SPF: pass (google.com: domain of amy.fong.3142@gmail.com designates 2607:f8b0:4864:20::d36 as permitted sender) client-ip=2607:f8b0:4864:20::d36; Received: by mail-io1-xd36.google.com with SMTP id ca18e2360f4ac-844e55a981dso658948639f.3 for ; Wed, 08 Jan 2025 07:57:51 -0800 (PST) X-Gm-Gg: ASbGncs3WJYI/EWncvmZXkAeyoLX9WKBth+sLuDleo4efaG2tkqmGp0Kh0BfqcaO8gh PgLpzsjgWpEGGeZ2bvXz7vZ0cMj+5E0kn1WcRN4WbzQxdJsBBxb878jYY/JbGJmC2nr1esXBNUh UYz9X384/o85ws1zVWH99g4eN5PLTXk48FgBwJXzYto5qYXgEy2t48MCffTmWSFfFNSC4ZqVHGt ttXfRKEP+bgmnibC0Q89O5EYhpNuaKr2IFHxf2ODotQbgbA4Vdw7VMqPP9QbTx7iX6K7FWlPi2B ZRsjwDoLh9VqEKfujw2yhrsrG3J0fxYmAb6R X-Received: by 2002:a05:6e02:1a4d:b0:3a7:c3aa:a82b with SMTP id e9e14a558f8ab-3ce3a90ee90mr25041105ab.1.1736351870868; Wed, 08 Jan 2025 07:57:50 -0800 (PST) Received: from cat.. (198-84-204-84.cpe.teksavvy.com. [198.84.204.84]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3c0e47d6cdcsm108196255ab.71.2025.01.08.07.57.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2025 07:57:50 -0800 (PST) From: Amy Fong To: isar-users@googlegroups.com Cc: Amy Fong Subject: [PATCH 1/2] base.bbclass: Enable the addition of epoch in an apt SRC_URI's version. Date: Wed, 8 Jan 2025 10:57:03 -0500 Message-Id: <20250108155703.10376-1-amy.fong.3142@gmail.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-Original-Sender: amy.fong.3142@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CKdDubUx; spf=pass (google.com: domain of amy.fong.3142@gmail.com designates 2607:f8b0:4864:20::d36 as permitted sender) smtp.mailfrom=amy.fong.3142@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= From: Amy Fong 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) e.g. SRC_URI = "apt://cryptsetup=2:2.6.1-4~deb12u2 Fix: remove apt:// entries in URI validation list. Signed-off-by: Amy Fong --- meta/classes/base.bbclass | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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() { needsrcrev = False srcuri = d.getVar('SRC_URI') for uri_string in srcuri.split(): - uri = bb.fetch.URI(uri_string) - if uri.scheme in ("svn", "git", "gitsm", "hg", "p4", "repo"): - needsrcrev = True + if not uri_string.startswith("apt://"): + uri = bb.fetch.URI(uri_string) + if uri.scheme in ("svn", "git", "gitsm", "hg", "p4", "repo"): + needsrcrev = True if needsrcrev: d.setVar("SRCPV", "${@bb.fetch2.get_srcrev(d)}")