From patchwork Fri Nov 29 14:05:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 3970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 29 Nov 2024 15:05:52 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-pj1-f64.google.com (mail-pj1-f64.google.com [209.85.216.64]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4ATE5nvR025643 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 29 Nov 2024 15:05:50 +0100 Received: by mail-pj1-f64.google.com with SMTP id 98e67ed59e1d1-2ea6d7dae79sf506275a91.3 for ; Fri, 29 Nov 2024 06:05:50 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1732889144; cv=pass; d=google.com; s=arc-20240605; b=luSVfnYbJQrr470mK8QRBZ2zZX+IRTdB4Z+mKjnck+FJsGQ88Y7P2FwN1vWQ5IUhEr THgitg1Ch3cl/PWpNXbw60LDS6U9jf9+lWXV8vHYg8reHq82E1kUa5vprUwu8UkwRXlV cfIBJ4ztonQnETHXCP114Jwv9CNmaKXyAeIvAeTNMbqdNbeS848SsS1THao0+m/PRpI6 p80f284T1jAqObqnF1s4Ay5grr+3AqI99IkKuXCcPTl8dtDMRufe0W5sYPaDfta+5ILJ MaY/WU9Q1sismpRDnEqplr/Y4L6BBB1tRnSA4dDoFLUZwxTtWoMk0nTFl0p4Vg/78Ct5 2hvQ== ARC-Message-Signature: i=3; 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:reply-to:mime-version:autocrypt:cc :content-language:subject:to:from:user-agent:date:message-id :dkim-signature; bh=oWrylpWEto7RAFiIsUcV+Fcqmw7fz8YT6h7C/+ChL5w=; fh=2Xzmn4hDZpNH5Blwj401QMX6DXRez+rP9tBU1nh8b5I=; b=Jn1lm4JnQa4vcfX7Q5cR2Bta8J+nhBunQ6j8+YaI8ByJENLunmVkM1ZnaLAbvYMOAj N0/FtJ0ct7UXzhBj+B17RLAukhTThP+qhf5H+O3B4nJZBvkffxPM4cyA+HnaP8GAiLu9 N/vafu9O7DV7h9xiDxdFHN3uLNjDim6xlYi+WurZIK9YugeNAF5e62264GgSP+3e2sGq 16E2lInWxEKvs3f6gNJOgLMfZCQ8I0fOjvO+MIk4L8sFmgEFaGqltYC6kkPU8qVaEVCT CppRZCvMCOeXmoumBAO76eMOvf2varleK7a1d6kXOq7S9weW33GNw6/uwWM9wdUaNbB3 7CEQ==; darn=isar-build.org ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=PLtM+QJ3; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f403:2607::62f as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1732889144; x=1733493944; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :autocrypt:cc:content-language:subject:to:from:user-agent:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=oWrylpWEto7RAFiIsUcV+Fcqmw7fz8YT6h7C/+ChL5w=; b=mgPQaB7b6+LCwUXH2Y3cgdJbVf6X5jZGI5KWdXQoTKXVAXISl3mcG7SPh3IlEZpwlK cPFlQCzMVkqBBq1+w94MMK1NolDeTbsgJ4jH4y73OalLImvarjSxUvCsGhRiESMC/EjK /7uGh8Ch2Qy417+NsZkfsnjuvpOka4tSpniV2FeZfpHHbDjsaWJzotQVnSX4ffEuLYoZ v6xZ28LUsHBaPbDxYjNmaGDOAud/odolvKllOswcllRAiw9rXwkQoZ9mi13FSJM+pkB1 2C93XK9NmaNGGeiL1wubWDNlagF8ApIdZ4wDT3nc8xS0lMlu1NKS71d/91apdCoCaSF8 ge4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732889144; x=1733493944; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :autocrypt:cc:content-language:subject:to:from:user-agent:date :message-id:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=oWrylpWEto7RAFiIsUcV+Fcqmw7fz8YT6h7C/+ChL5w=; b=QFrgA7uS0z3Nlk82ZKIAlgqDYQHkwU0KI/mltrA+A0Hg2sdkdGN4mL5cPtXTqukthe 6chjsGy96p9o/MyfEddOpm29olECcuThaISKo8Lgp2sJgjmM0agPY4xBPiiET1BBQWKs FgJXejTaue+xx1yt6Sc8lLlJ6ZD6paivnk0dcqV7ZiGsUMjmkbBdUQyLGaol4GcIu/RU TYfHsnPXXRYrooYi4tne3AThYx8FQXsyP+MlIFVjsfEkC0exvuhEHg0USDPdysh4KBkE n6Pf5u0vEYFDX8SX9jSg/2m76B0B469SBjuzoyZ4x0lf1KidbpXn8HSXEyvaqrsOKr2q kF+Q== X-Forwarded-Encrypted: i=3; AJvYcCXd2PgTHua2cb8j9yC6koW/S/pd42S11Od0cSyrQUgV9YRoclMwiVgqri2uDsxAqbdH0ZEaDCI=@isar-build.org X-Gm-Message-State: AOJu0YyccAIOI3crguigwBXiMCSznVblfjkjVcO76hD/Xj27vXIxxwmM +ViGeneDff0S3mPDCZWp1gCqAUa4NuTcrtRh5Ou8UBYArne32q/J X-Google-Smtp-Source: AGHT+IF964shDqcmofpEjZ8WgWBGsbapdRaR0UojiB4ztPrSzsezRTLfLiPJyAQuPkjzSx2GwSHN7g== X-Received: by 2002:a17:90b:1b47:b0:2ee:6563:20b5 with SMTP id 98e67ed59e1d1-2ee656323b4mr897418a91.0.1732889143906; Fri, 29 Nov 2024 06:05:43 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:90b:1a87:b0:2ee:645e:d765 with SMTP id 98e67ed59e1d1-2ee645ed888ls421134a91.0.-pod-prod-05-us; Fri, 29 Nov 2024 06:05:42 -0800 (PST) X-Received: by 2002:a17:90b:2882:b0:2ea:83a0:47a6 with SMTP id 98e67ed59e1d1-2ee097dd78bmr14613584a91.33.1732889141882; Fri, 29 Nov 2024 06:05:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1732889141; cv=pass; d=google.com; s=arc-20240605; b=ER0ZpgWe/ivgBNc7gfvR4gB88AQFoSlFuNG/7HNgW/Avj/7sJ+m4RgF0XEEZkNMYtg Jc14pvUCLMCJ28Guwu/TaY399O0zTk2og/r04wezU8mWnwFJmY+QmJPR2SCbZ4ne+U+L YaE1PTRBV3bMqAW54i1UEwrFGJ2/lmEInLSVJvK7m5fivelVd8I8lTtt732FZNwaPu7b nWn1/n2ToV/Oz8UQ382tw1XOQy5aPQ5KJx7190BnBnsglNShwoZufJ0GudmUPM1axWmd k2pBARysnDslkShjxF+cuqw+rLwdCgkshF20kzqtb0JQw0+y0ZuKhzE59E5ccdkPUagR bvhA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=mime-version:content-transfer-encoding:autocrypt:cc :content-language:subject:to:from:user-agent:date:message-id :dkim-signature; bh=5XK72j2OIC63bUws986YONnkjIzNwJRTUAJz0Wyn5+A=; fh=vRfWXAT/lOaFASPGqEjmlzU54EfqB1WHVLkmvTqA46k=; b=OnEVH0IUtfw4hrwPYhILhG3mhSXzJJpgGXyfOw0kX6axfQpWfjzMuCONxnyJpAvsVC CfoImbsFeLSM2wyP9NryXgwi7+B80FizwGkL68cKbf+QYvxZgHhM8TvNSUwsKII7GK3B p+avwcLZdX8Cx+Z9kqgLZH9abf3tehB3f2qVOZYGV25UrmEQt2ymahE2r+lxVhDsv5ht oG0Apa6YbREq/mn1O4ZjXsShh2xBvUd+qSy64KA6PR1aOzzrsXdriC9lV1rmN3C/2aEi p0A058iigCkrS08eqhzZ2v+r7vNQ0dvU6CxO3dVrh78a+pw+NAMBaAQ0u4SQlDkhFvuP 9qXA==; dara=google.com ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=PLtM+QJ3; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f403:2607::62f as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2062f.outbound.protection.outlook.com. [2a01:111:f403:2607::62f]) by gmr-mx.google.com with ESMTPS id 98e67ed59e1d1-2ee73fa7ee2si14141a91.0.2024.11.29.06.05.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Nov 2024 06:05:40 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f403:2607::62f as permitted sender) client-ip=2a01:111:f403:2607::62f; ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WU3HhzZl291tz4qg4TG16On9bZ8vtV0OL+qLu3YP2hv5wOS1nRFWZlOkhXsRKPKz3lqIE7rq1x2EEGDBQwJqBmisL9uT7YW6czRs/O+hoeoG6eV1X8sWHMVzpKdfa4N3aAaPCnFOQzS5VuAn9ME542Jh7EImb9a4BYKmVMeB2aWmPB1u+954rQzrmLJbdQiBzA6nDgld0CjaPXJg5c6S+JWoDZi8YDv1BY59b5qdMGphWNA+xzl2s6QLmAq0a7gTUuyKHcAsuSI6PPMfeocjiMvH1ZaFW1QCweHOwWK9+KVn3hmJRm/3vNaAUaby5uQ6ca1BRhTknePMumWugzJ7yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5XK72j2OIC63bUws986YONnkjIzNwJRTUAJz0Wyn5+A=; b=T21K8W2EjrLIElJg78qf17o39EjLAK4nTvAA9tOXvsL94HsXLBCzj+Y0aBdA9e3IeCzhbOaLcIyFEp36Hk5ncsGfLLszO/9OIhIAGeiX3kGucpFIXAM2StNf9tpPRVvxVDjwFYrwX1npguKeA9BvOx5zA8QnwdM6tkOnxmASLMPXClwQQPgHMPXacqZfX29GNZ9foh+uPkx9mBOVY60ASHu3R0ssVgAbmQjLsbeRfQbOv/QK2tlU7ikCMd23d4aQ1b/sy4XAPGL9gvfT/1OJywDch+8yQXnvTKDW4Zwyulj8gET3OYMWqNcAw7zCsZFweHPBB5yRFVV/liRKwsajVA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) by GVXPR10MB8946.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:150:1d9::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.4; Fri, 29 Nov 2024 14:05:37 +0000 Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::8fe1:7e71:cf4a:7408]) by AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::8fe1:7e71:cf4a:7408%6]) with mapi id 15.20.8207.009; Fri, 29 Nov 2024 14:05:36 +0000 Message-ID: Date: Fri, 29 Nov 2024 22:05:27 +0800 User-Agent: Mozilla Thunderbird X-Patchwork-Original-From: "'Jan Kiszka' via isar-users" From: Jan Kiszka To: isar-users Subject: [PATCH v3] Convert apt source fetcher into native bitbake variant Content-Language: en-US Cc: Uladzimir Bely , "Moessbauer, Felix (T CED SES-DE)" Autocrypt: addr=jan.kiszka@siemens.com; keydata= xsFNBGZY+hkBEACkdtFD81AUVtTVX+UEiUFs7ZQPQsdFpzVmr6R3D059f+lzr4Mlg6KKAcNZ uNUqthIkgLGWzKugodvkcCK8Wbyw+1vxcl4Lw56WezLsOTfu7oi7Z0vp1XkrLcM0tofTbClW xMA964mgUlBT2m/J/ybZd945D0wU57k/smGzDAxkpJgHBrYE/iJWcu46jkGZaLjK4xcMoBWB I6hW9Njxx3Ek0fpLO3876bszc8KjcHOulKreK+ezyJ01Hvbx85s68XWN6N2ulLGtk7E/sXlb 79hylHy5QuU9mZdsRjjRGJb0H9Buzfuz0XrcwOTMJq7e7fbN0QakjivAXsmXim+s5dlKlZjr L3ILWte4ah7cGgqc06nFb5jOhnGnZwnKJlpuod3pc/BFaFGtVHvyoRgxJ9tmDZnjzMfu8YrA +MVv6muwbHnEAeh/f8e9O+oeouqTBzgcaWTq81IyS56/UD6U5GHet9Pz1MB15nnzVcyZXIoC roIhgCUkcl+5m2Z9G56bkiUcFq0IcACzjcRPWvwA09ZbRHXAK/ao/+vPAIMnU6OTx3ejsbHn oh6VpHD3tucIt+xA4/l3LlkZMt5FZjFdkZUuAVU6kBAwElNBCYcrrLYZBRkSGPGDGYZmXAW/ VkNUVTJkRg6MGIeqZmpeoaV2xaIGHBSTDX8+b0c0hT/Bgzjv8QARAQABzSNKYW4gS2lzemth IDxqYW4ua2lzemthQHNpZW1lbnMuY29tPsLBlAQTAQoAPhYhBABM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AkezgucXN7r6uSrzW8IQXxBInZwFIyBgM0f/fzyNqzThFT15QMrYUqhhW ZffO4PeNJOUYfXdH13A6rbU0y6xE7Okuoa01EqNi9yqyLA8gPgg/DhOpGtK8KokCsdYsTbk= X-ClientProxiedBy: AS4P251CA0028.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:5d3::17) To AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS4PR10MB6181:EE_|GVXPR10MB8946:EE_ X-MS-Office365-Filtering-Correlation-Id: 2155f8f0-b2c0-404b-0c65-08dd107ee57e X-MS-Exchange-AtpMessageProperties: SA X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?NEP80F2Iv4YQHtP9sN1MwJPofz1um15?= =?utf-8?q?rIQZ58Zz2DNFh+1Mw0u5P2N7Mj/jZVBouXYmf4zkW+Ed38C+C4HfMunsbhkm1yKBk?= =?utf-8?q?Wwb0kttErBRJoOfBhjSx+MaKjWx7qAlXbf2bLOpC7gCt7DTVUZcGXIVF/qEQijB6p?= =?utf-8?q?qssmsH74UuU6L19Zddc+zdnPAfVk+1/4EnOuB/n2Lcf8wWfdFIhNQ8hTX6C9h4abz?= =?utf-8?q?vMVa386pt0KHqnhWRV655fopqRBN9PFowIbz5BnLBGaBHIFG0R+hfnpUxvb9A3iM4?= =?utf-8?q?XT8XkbR1hXHXdLLkOP3xZCYV2ycIPfgleX6qPzgyebQnUvYpwCRw3BJBAOmf63Aou?= =?utf-8?q?4fbLheX2CyepkTHWRUQwhm7a/u9Cu6AvkZSA8nwlKc4AIeR3lZKJQRTHgpfkRE7f3?= =?utf-8?q?9PDKYFCWHGoJeIzSZIgaRE2rfjLFPLqKB09dZ1LRUrvRtBse09Ag2HA1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P:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ElyrWvwNh+mJ9lurKj4A7azUs3hY?= =?utf-8?q?/kbKxux3ub3vMNU07A7lpXDCruQAYZEdwBWBjJSSUuYNHQPsXI4X/kRowvqlQYSPE?= =?utf-8?q?ZczfEj/TA/DXQb2xqyAT92k8B4pXnyMERZLYOwgyxLBeW+etoEJe7/RphHACATtUB?= =?utf-8?q?0TLzXl1jSuQpKhv5C6xv4EoiwS8UwLRUvHgZDfuCKWTkZNO28kgWMZkGrem7H/L6c?= =?utf-8?q?bCje8Tlxu4XoRLaXzlY7WxIoI7CoPmkJVdzpIF6/GMzBWcu25W52yKnpaO9qeZNge?= =?utf-8?q?ecsbMJ4HUzKGtJYj1T4bhR2e8emhAgwxlDozbg8unWVVJdAiW8a7+khKo8gULtS/r?= =?utf-8?q?GnNrsnly8f7nOk0+m66RIfw8fisdEajL+oH4OHvpGwuo7mjLorgBr9GNLk73DgTNz?= =?utf-8?q?ePQBukLUefVE7PCmY/o06LkkTYSFrE8pGBBrSGBkG0AVo0Rjrt7cTy42WGvKwiScL?= =?utf-8?q?dM8uuI3usqvHR2DHbvJ1RfZH0ePtC8/CGYV6ckKKs0yM2McYsyxwZ9Gg4EmZCPFDn?= =?utf-8?q?BSKza9rwZ4DkZLIpMT+R8QtjOjb2jpNHKsBpDzSdlkII/lOTOhaAS0YpNzsAYslXZ?= =?utf-8?q?cNYoOjDp1QzKF0JAFH1pZrf2yU09+p76+Mk5I6vJ9eM9c1JPrhEuH3Km+ILxZukvK?= =?utf-8?q?2xdPZwYZAoiJJh0WXYxEppabhAilFJU/H4aPO2SByEleQcULuAt6VXZvke5Xq2zlo?= =?utf-8?q?9qrbP+ogtP5sAmbo5Ww7gWX55QDKwlbbr804NubKCYRVpy25MCcOAKl6xJ++CtwAl?= =?utf-8?q?nNszhImkiGqhO2KvoXzFHURrjNwXdgDGeHmmvQWJLo623VgPpgAvvBFxnClfPrOw1?= =?utf-8?q?uv0UffRR4VpcA9L+72kV5Yh+jsdJB9MON4GT2tlrKJCn3+jAqalnuDAFXypxkO0yT?= =?utf-8?q?ZbLGq08FYXIYa6iqLjR3vOgzHYmAL99Zb5XPYooLoCwUek3jfW7AaYJj54/yLhVdj?= =?utf-8?q?PcOFneE8ekkAFN0IaAjjXK4dADtTlxIvTT83utObVWswfSgD3AMvnI9XgCVER7cXl?= =?utf-8?q?noJhsM2fy1tXXviNuRdQAF/TqWafGmFp7EU50Ew2B7Y8ORNQ4EBJaSxTZRXv2NmjW?= =?utf-8?q?3eRh4m/myCMNufyVPV7XQXZhO2h4JbjaewFco/yz/1A8vj/otB2OeYnY8PEhc0b2X?= =?utf-8?q?/dw+FPXBB8SL/qEKAcfygSTPd5QNzPLlb1i3UzT1ZCzmxyYwqlU+dMEMhLA2gIXem?= =?utf-8?q?cd4Yd4r0SJT6IQY6tqRt9JDMHR/tbZ6c0LugUczgWdcFC7oMFZHXyXBKxW6vBMK8k?= =?utf-8?q?DZCMXnW46im8RyzIaTqASqM1DaECGhDo+L87+yV6OBdql6Ykl9TGVw8UZAJGwLUJ4?= =?utf-8?q?syngc8pEWA/xAkC8hSWROAju3lBbh9HM+FU1NvaiXWryYtvS3TZrHkVsGAS3WKUsC?= =?utf-8?q?MFZAYNAQqEfpwoe+v6xg/pIxaqkV1re6K63aR7pn6Cy/vXQoXSQwWoCymbjxbfW75?= =?utf-8?q?MAE6sWY3EA0JzGWLRhf7onZBkUQ8Nll7r+PW3ekTkDL6f8uPcya6kNrF9m6Y11+gd?= =?utf-8?q?ClnrAY7RZJyO?= X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2155f8f0-b2c0-404b-0c65-08dd107ee57e X-MS-Exchange-CrossTenant-AuthSource: AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2024 14:05:36.0086 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gOyeE5OzYAf5v9PDVPKCxc+oeou+kc8jSoNyj4LX7ZLGudTtsgTJ+LBiAset9sGggr3z7OhZpO5ij9EF5r2Jww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR10MB8946 X-Original-Sender: jan.kiszka@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=PLtM+QJ3; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f403:2607::62f as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Jan Kiszka Reply-To: Jan Kiszka 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-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= From: Jan Kiszka There is no major functional difference, but we no longer have to manipulate SRC_URI by registering an official fetcher for apt://. As the fetching no longer takes place in separate tasks, do_fetch and do_unpack need to gain the extra flags that were so far assigned to apt_fetch and apt_unpack. That happens conditionally, i.e. only if SRC_URI actually contains an apt URL. One difference to the original version is the possibility - even if practically of minor relevance - to unpack multiple apt sources into S. The old version contained a loop but was directing dpkg-source to a pre-existing dir which would have failed on the second iteration. The new version now folds the results together after each step. There is no progress report realized because dpkg-source unfortunately does not provide information upfront to make this predictable, thus expressible in form of percentage. Signed-off-by: Jan Kiszka --- Changes in v3: - keep split by distro codename in downloads/deb-src meta/classes/dpkg-base.bbclass | 104 ++++----------------------------- meta/lib/aptsrc_fetcher.py | 88 ++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+), 93 deletions(-) create mode 100644 meta/lib/aptsrc_fetcher.py diff --git a/meta/classes/dpkg-base.bbclass b/meta/classes/dpkg-base.bbclass index b4ea8e17..c02c07a8 100644 --- a/meta/classes/dpkg-base.bbclass +++ b/meta/classes/dpkg-base.bbclass @@ -79,110 +79,28 @@ do_adjust_git[lockfiles] += "${DL_DIR}/git/isar.lock" inherit patch addtask patch after do_adjust_git -SRC_APT ?= "" - -# filter out all "apt://" URIs out of SRC_URI and stick them into SRC_APT python() { - src_uri = (d.getVar('SRC_URI', False) or "").split() + from bb.fetch2 import methods - prefix = "apt://" - src_apt = [] - for u in src_uri: - if u.startswith(prefix): - src_apt.append(u[len(prefix) :]) - d.setVar('SRC_URI:remove', u) + # apt-src fetcher + import aptsrc_fetcher + methods.append(aptsrc_fetcher.AptSrc()) - d.prependVar('SRC_APT', ' '.join(src_apt)) + src_uri = (d.getVar('SRC_URI', False) or "").split() + for u in src_uri: + if u.startswith("apt://"): + d.appendVarFlag('do_fetch', 'depends', d.getVar('SCHROOT_DEP')) - if len(d.getVar('SRC_APT').strip()) > 0: - bb.build.addtask('apt_unpack', 'do_patch', '', d) - bb.build.addtask('cleanall_apt', 'do_cleanall', '', d) + d.appendVarFlag('do_unpack', 'cleandirs', d.getVar('S')) + d.setVarFlag('do_unpack', 'network', d.getVar('TASK_USE_SUDO')) + break # container docker fetcher import container_fetcher - from bb.fetch2 import methods methods.append(container_fetcher.Container()) } -do_apt_fetch() { - E="${@ isar_export_proxies(d)}" - schroot_create_configs - - session_id=$(schroot -q -b -c ${SBUILD_CHROOT}) - echo "Started session: ${session_id}" - - schroot_cleanup() { - schroot -q -f -e -c ${session_id} > /dev/null 2>&1 - schroot_delete_configs - } - trap 'exit 1' INT HUP QUIT TERM ALRM USR1 - trap 'schroot_cleanup' EXIT - - schroot -r -c ${session_id} -d / -u root -- \ - rm /etc/apt/sources.list.d/isar-apt.list /etc/apt/preferences.d/isar-apt - schroot -r -c ${session_id} -d / -- \ - sh -c ' - set -e - for uri in $2; do - mkdir -p /downloads/deb-src/"$1"/${uri} - cd /downloads/deb-src/"$1"/${uri} - apt-get -y --download-only --only-source source ${uri} - done' \ - my_script "${BASE_DISTRO}-${BASE_DISTRO_CODENAME}" "${SRC_APT}" - - schroot -e -c ${session_id} - schroot_delete_configs -} - -addtask apt_fetch -do_apt_fetch[lockfiles] += "${REPO_ISAR_DIR}/isar.lock" -do_apt_fetch[network] = "${TASK_USE_NETWORK_AND_SUDO}" - -# Add dependency from the correct schroot: host or target -do_apt_fetch[depends] += "${SCHROOT_DEP}" - -do_apt_unpack() { - rm -rf ${S} - schroot_create_configs - - session_id=$(schroot -q -b -c ${SBUILD_CHROOT}) - echo "Started session: ${session_id}" - - schroot_cleanup() { - schroot -q -f -e -c ${session_id} > /dev/null 2>&1 - schroot_delete_configs - } - trap 'exit 1' INT HUP QUIT TERM ALRM USR1 - trap 'schroot_cleanup' EXIT - - schroot -r -c ${session_id} -d / -u root -- \ - rm /etc/apt/sources.list.d/isar-apt.list /etc/apt/preferences.d/isar-apt - schroot -r -c ${session_id} -d / -- \ - sh -c ' - set -e - for uri in $2; do - dscfile="$(apt-get -y -qq --print-uris --only-source source $uri | cut -d " " -f2 | grep -E "*.dsc")" - cd ${PP} - cp /downloads/deb-src/"${1}"/${uri}/* ${PP} - dpkg-source -x "${dscfile}" "${PPS}" - done' \ - my_script "${BASE_DISTRO}-${BASE_DISTRO_CODENAME}" "${SRC_APT}" - - schroot -e -c ${session_id} - schroot_delete_configs -} -do_apt_unpack[network] = "${TASK_USE_SUDO}" - -addtask apt_unpack after do_apt_fetch - -do_cleanall_apt[nostamp] = "1" -do_cleanall_apt() { - for uri in "${SRC_APT}"; do - rm -rf "${DEBSRCDIR}/${BASE_DISTRO}-${BASE_DISTRO_CODENAME}/$uri" - done -} - def get_package_srcdir(d): s = os.path.abspath(d.getVar("S")) workdir = os.path.abspath(d.getVar("WORKDIR")) diff --git a/meta/lib/aptsrc_fetcher.py b/meta/lib/aptsrc_fetcher.py new file mode 100644 index 00000000..041f5445 --- /dev/null +++ b/meta/lib/aptsrc_fetcher.py @@ -0,0 +1,88 @@ +# This software is a part of ISAR. +# Copyright (c) Siemens AG, 2024 +# +# SPDX-License-Identifier: MIT + +from bb.fetch2 import FetchError +from bb.fetch2 import FetchMethod +from bb.fetch2 import logger +from bb.fetch2 import runfetchcmd + +class AptSrc(FetchMethod): + def supports(self, ud, d): + return ud.type in ['apt'] + + def urldata_init(self, ud, d): + ud.src_package = ud.url[len('apt://'):] + ud.host = ud.host.replace('=', '_') + + base_distro = d.getVar('BASE_DISTRO') + codename = d.getVar('BASE_DISTRO_CODENAME') + ud.localfile='deb-src/' + base_distro + '-' + codename + '/' + ud.host + + def download(self, ud, d): + bb.utils.exec_flat_python_func('isar_export_proxies', d) + bb.build.exec_func('schroot_create_configs', d) + + sbuild_chroot = d.getVar('SBUILD_CHROOT') + session_id = runfetchcmd(f'schroot -q -b -c {sbuild_chroot}', d).strip() + logger.info(f'Started session: {session_id}') + + repo_isar_dir = d.getVar('REPO_ISAR_DIR') + lockfile = bb.utils.lockfile(f'{repo_isar_dir}/isar.lock') + + try: + runfetchcmd(f''' + set -e + schroot -r -c {session_id} -d / -u root -- \ + rm /etc/apt/sources.list.d/isar-apt.list /etc/apt/preferences.d/isar-apt + schroot -r -c {session_id} -d / -- \ + sh -c ' + set -e + mkdir -p /downloads/{ud.localfile} + cd /downloads/{ud.localfile} + apt-get -y --download-only --only-source source {ud.src_package} + ' + ''', d) + except (OSError, FetchError): + raise + finally: + bb.utils.unlockfile(lockfile) + runfetchcmd(f'schroot -q -f -e -c {session_id}', d) + bb.build.exec_func('schroot_delete_configs', d) + + def unpack(self, ud, rootdir, d): + bb.build.exec_func('schroot_create_configs', d) + + sbuild_chroot = d.getVar('SBUILD_CHROOT') + session_id = runfetchcmd(f'schroot -q -b -c {sbuild_chroot}', d).strip() + logger.info(f'Started session: {session_id}') + + pp = d.getVar('PP') + pps = d.getVar('PPS') + try: + runfetchcmd(f''' + set -e + schroot -r -c {session_id} -d / -u root -- \ + rm /etc/apt/sources.list.d/isar-apt.list /etc/apt/preferences.d/isar-apt + schroot -r -c {session_id} -d / -- \ + sh -c ' + set -e + dscfile=$(apt-get -y -qq --print-uris --only-source source {ud.src_package} | \ + cut -d " " -f2 | grep -E "\.dsc") + cp /downloads/{ud.localfile}/* {pp} + cd {pp} + mv -f {pps} {pps}.prev + dpkg-source -x "$dscfile" {pps} + find {pps}.prev -mindepth 1 -maxdepth 1 -exec mv {{}} {pps}/ \; + rmdir {pps}.prev + ' + ''', d) + except (OSError, FetchError): + raise + finally: + runfetchcmd(f'schroot -q -f -e -c {session_id}', d) + bb.build.exec_func('schroot_delete_configs', d) + + def clean(self, ud, d): + bb.utils.remove(ud.localpath, recurse=True)