From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7057835350645800960 X-Received: by 2002:a05:600c:4255:: with SMTP id r21mr2953543wmm.188.1644513409447; Thu, 10 Feb 2022 09:16:49 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:8bda:: with SMTP id w26ls28338wra.1.gmail; Thu, 10 Feb 2022 09:16:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJywA6CKpmglKgL+r6JHnla3HCx+yfYkkHJFwis9zKCr9pVvD/ysAZs3vopWP4BxW6xtIWoH X-Received: by 2002:a5d:4dc7:: with SMTP id f7mr7132583wru.629.1644513408432; Thu, 10 Feb 2022 09:16:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644513408; cv=none; d=google.com; s=arc-20160816; b=mnncdmwP+9YDNqHAAl2Q7scvFcuoY287SxOeofPrfkD44K1tF5rM47WwFvBabJmNtp R/Wa/Hbtjbx8UEuE9QrLOBU/ZoANK8SWo2l9JYGr2Zp1XkHNio0P3zewRKuw3vjjptip eCqK0VIwfP+sb0ud7tn6Hqo58Yq7eXweOBAOEyLVprrMNHswZI4xxneyAcovPY/TxCA5 i8jB404Ilgc6fVQcBi+S14hGor+5vji5z2nRDn3X7mJwtmxQ9fCoy16r/J52r4YGjGHQ B9Z3ysLhs78LZl4TQrf8qkTDk4GPuRfXEC+U17wyGgcaivcxfSIpYd4h+OBOWwkNBLXL CaQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from; bh=W+FkFUcJIFVJpo9jkcrD0W7TU+C8Sgb5jJtH0a49hdQ=; b=TPuIViYxtP8dfh3oI+t8rYN8dINcoCGpfevq2LMicitRFuYB0FJn54X8O8uIIXJ6XJ PGpGOGiRT6g9BT85ZZJmR2wgsQyrgXnbTLc5hDs5PxwbKNASANLNbCe2E1QU6krA3jl3 CZAhrnJVnET99I5FFBb8lMf5mEBquNrhFKg6cdEmhyV1QK3Knn1VaL4LsvxSwLHr8HJ+ JfciXbUd/P3X9Yaj/NKRdbDzLvCKdgGbpLVpsQkVLuvO1P4EF6/n53f/5/yA1Se1o+JE wkJW0l+3S2iCeeJDD5s06drNhvwyYn6VR2qHiY2UDQefyZp36XmnA7K7lMQH13eClLPy fkNw== 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 Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id e5si1127402wrj.8.2022.02.10.09.16.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Feb 2022 09:16:48 -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; 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 Received: from baighyz.m.ilbers.de (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) with ESMTPSA id 21AHGlg8031501 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 10 Feb 2022 18:16:47 +0100 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v2 0/1] deb-dl-dir: Use dpkg-deb --field in debsrc_download Date: Thu, 10 Feb 2022 18:16:46 +0100 Message-Id: <20220210171647.12607-1-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED 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-TUID: RBbsAB5o7nNx Some clarification of the patch: Debian `control` file inside .deb may (or may not) contain `Source: field`. There are three possible cases: 1. `Source` field is missing in control file: Package: foo Version: 1.2.3 In this case ${source:Package} = 'foo', ${source:Version} = 1.2.3 2. `Source` field present in control file, without version: Package: foo Version: 1.2.3 Source: bar In this case ${source:Package} = 'bar', ${source:Version} = 1.2.3 3. `Source` field present in control file, with version: Package: foo Versin: 1.2.3 Source: bar (4.5.6) In this case ${source:Package} = 'bar', ${source:Version} = 4.5.6 So, `Source` field is virtual and the simplest way to request it - using ${source:Package} and ${source:Version} on "dpkg-deb --show --showformat". While in bullseye this is currently broken, the patch simply emulates the same using dpkg-deb --field. Initially, `Package` and `Version` values are used (they should always be in control file), but later they are overrided by values from `Source` field if it exists. Changes since v1: - Fixed commit message (should be BASE_REPO_FEATURES ?= "cache-deb-src", but not ISAR_USE_CACHED_BASE_REPO) Uladzimir Bely (1): deb-dl-dir: Use dpkg-deb --field in debsrc_download meta/classes/deb-dl-dir.bbclass | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) -- 2.20.1