From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6647496723618856960 X-Received: by 2002:a17:906:404f:: with SMTP id y15-v6mr1909541ejj.5.1547743095068; Thu, 17 Jan 2019 08:38:15 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:906:85d4:: with SMTP id i20-v6ls1844358ejy.2.gmail; Thu, 17 Jan 2019 08:38:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN75zWNtNgiEEBE8YCXvfa+doxHBHKXVrZF1keNcqAivNaPd4tU8NZUkZUFnp/MkJJymaLUp X-Received: by 2002:a17:906:5999:: with SMTP id j25-v6mr1901473ejq.11.1547743094641; Thu, 17 Jan 2019 08:38:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547743094; cv=none; d=google.com; s=arc-20160816; b=ZEAaCPJE7HxlIT+MWHBEIa6e85cUnYcGD2a5QvStJoXMRNvWGSJGhScIZYq1hmEMXZ Yv165XZRD7RZ2XTAUjs+ogRzb2F61/r+Lf8h6w6MRzMSsrNLq9OKGPGv2NqGD9tu5bHb 4sFzs2KMKRj3+WseHKl2Mram4cn7lE1a2kzLrrz9oa+/YuBdF0jBLq+nqTpw6IU8gAI5 g97ci9asoVaat8H1KSQ1FRTNIi+mcMipDZKcQd5V3hZNJtq0O0DGBluULIQ6f62VZl8p hCVvh0p7QqS7JsTkO9HGEvciTEuP1/YAbkc15ovF1tcBmsB+q9wE22sH3vOvuJOqD6jd 1UOg== 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:subject:cc:to:from:date; bh=Og7Hw0VebNbj6nfnKSM/vmAUQsmv9slYcujmsjIJyew=; b=kHCuK7MjpEzWElyEdLh7t/oUx7c3+ahykK7//hNYHsnc19GA6yerXeQjTwupNzZEnh nYmf9k22cAC7rYxhlbgD/wN3AU/zG39X3ntI+kjDGB6Jcu+XwotqSaLozcjS7GKjW5Ry aaJ1G2UuPN1AXODEhLnF1cXCFEYNZwTEY8B6JEp5INP0b0f478MkHOA1qcTOhs22IH/T PrPXoygkjFqGR7uhz3FnvAQlfUv/ZaQBNfxEA6QwiXHAmE1p/qBRkGBGzRCNuhBH+P+Z b3Tz+yzP0ksvVqeX+EqxluqtIcqxMjvHwIJBF6x1ZG5yLbrmBmo56hFVa4YZSNW5QAGu F/9w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id i2-v6si1282816ejj.1.2019.01.17.08.38.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jan 2019 08:38:14 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id x0HGcE5b006021 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 17 Jan 2019 17:38:14 +0100 Received: from md1za8fc.ad001.siemens.net ([139.25.69.119]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id x0HGcDMt031029; Thu, 17 Jan 2019 17:38:14 +0100 Date: Thu, 17 Jan 2019 17:38:13 +0100 From: Henning Schild To: isar-users Cc: Cedric Hombourger Subject: Re: [PATCH 0/7] "apt-get source" fetch/unpack support Message-ID: <20190117173813.321197fd@md1za8fc.ad001.siemens.net> In-Reply-To: <20190117160427.26556-1-henning.schild@siemens.com> References: <20190117160427.26556-1-henning.schild@siemens.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: xyYB0yP8ao4v Am Thu, 17 Jan 2019 17:04:20 +0100 schrieb Henning Schild : > From: Henning Schild > > This series includes support for fetching upstream sources with > "apt-get source". This will make sure we fetch exactly what matches > out distro, without rewriting debian fetch/unpack logic. > I did consider implementing it as an "apt://" extension to the regular > fetcher but decided against that. You have to set SRC_APT and > effectively pass arguement to apt-get. That fetcher can only work in > packages and depends on buildchroot and mounting, so it can not be > part of the general fetcher. But maybe the general fetcher could > ignore "apt://" lines and this task will ignore anything but "apt://" > so we can still use SRC_URI instead of SRC_APT. Filtering all the "apt://" entries out does not really work. There is a call to bb.fetch.get_checksum_file_list where i can not filter, at least i did not yet figure out how. And it seems that the fetcher can not be extended with a new protocol without touching the bitbake core. Otherwise an empty implementation of "apt://" would have been the trick to let debian do it in a completely different step. Not sure it is worth forcing it into SRC_URI, we are in two worlds anyways, no need to pretend otherwise. Henning > Let us talk about the > interface. The documentation is still missing, but i thing it is > ready for a first review. > > The idea and parts of the code came from Mentor. > > Henning Schild (7): > conf: add deb-src entries to all our distro configs > dpkg-base: introduce an "apt-get source" fetch/unpack step > meta: move debianization code into a class and into dpkg-base > debianize: allow changlog version change > meta-isar/recipes-app: add upstream hello rebuild example > local.conf: remove example-hello from the default build > local.conf: enable rebuilding "hello" for all distros > > meta-isar/conf/distro/debian-buster.list | 3 + > meta-isar/conf/distro/debian-jessie.list | 3 + > .../conf/distro/debian-stretch-backports.list | 1 + > meta-isar/conf/distro/debian-stretch.list | 3 + > meta-isar/conf/distro/raspbian-jessie.list | 1 + > meta-isar/conf/local.conf.sample | 2 +- > meta-isar/recipes-app/hello/hello.inc | 19 +++++ > meta-isar/recipes-app/hello/hello_2.10.bb | 8 ++ > meta-isar/recipes-app/hello/hello_2.9.bb | 8 ++ > meta/classes/debianize.bbclass | 82 > +++++++++++++++++++ meta/classes/dpkg-base.bbclass | > 20 +++++ meta/classes/dpkg-raw.bbclass | 76 > ----------------- 12 files changed, 149 insertions(+), 77 deletions(-) > create mode 100644 meta-isar/recipes-app/hello/hello.inc > create mode 100644 meta-isar/recipes-app/hello/hello_2.10.bb > create mode 100644 meta-isar/recipes-app/hello/hello_2.9.bb > create mode 100644 meta/classes/debianize.bbclass >