From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6647496723618856960 X-Received: by 2002:a5d:6b52:: with SMTP id x18mr1987949wrw.19.1548062971190; Mon, 21 Jan 2019 01:29:31 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:e8d1:: with SMTP id k17ls4492855wrn.6.gmail; Mon, 21 Jan 2019 01:29:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN59qSvlz17vKV3qWk8lAASOBsdhQUU72yXsDFO17eLsMddjyhFMOi9U5E8LnToISOTEIafo X-Received: by 2002:adf:b6ab:: with SMTP id j43mr1935293wre.22.1548062970792; Mon, 21 Jan 2019 01:29:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548062970; cv=none; d=google.com; s=arc-20160816; b=TwflbcIbyGsj35tM7qwPvTwVadB9WkrrW034I+ZkhtuVsBXivvwL6FmFoB8305uM3B FJazHvBn4MX1POo4f6YXxT9+4Q+s368t/jdIhlWhWG2B5ZGmbwP88AflhHgAmwkQ1YWS Cjsa2fvDYFFWx41ugdMBOv0Jq3ygnqep6pTh7yqSXtYDVksfQBGJrrsHlbd5QsZCm8KS /il7VQdOYAg014XHW6rxhusqGjgdWEXX1D0KVghsRr9u/mtsy6ElTUdkplVw/TEvfpyq C0kof5H8snlI2AUo1R0QGogldRhytLQIUo7W7RqsukmonE6UN7My7uskBzRM2eCHsOkf BU0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject; bh=dXsp2JbJG8aSL/bsjOSzV0/RLxNpehPK3MUL+qsFyRg=; b=GRFMtCiqXSrhNlj06TMDGrgwki/ibLmCngQ/mboncrlPKtUngKRrKUDnQsVhCN6Iri dBLNARe1udVk2VuDJrTycqDvqgi7iBLMSQCHzulN+dwqzpfEiXgVMog57v4wwK1YWCte FGRZJJ72n0OreAwG8J2OhTVa7VmzAk31RPlRLfFaIFfy/xRFPaX3Syy8JT/7OBBA4BKy 4A9Hq+/AP+4zMIq2n6gar7TFVERUZly1PF0qmzySNZ60QH+QZryfc78eMFDEe5sSkcSd E7UL2tuZ+Difl8VNoGRgkRU4LTAHjEOQX6SnETUbF5b1fK2sthLVcpPmnOLRwTm4uHUQ 7GcA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id x188si1418118wmb.3.2019.01.21.01.29.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Jan 2019 01:29:30 -0800 (PST) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id x0L9TTve011709 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Jan 2019 10:29:29 +0100 Received: from [139.25.69.181] (linux-ses-ext02.ppmd.siemens.net [139.25.69.181]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id x0L9TSA2005774; Mon, 21 Jan 2019 10:29:28 +0100 Subject: Re: [PATCH 0/7] "apt-get source" fetch/unpack support To: "[ext] Henning Schild" , isar-users Cc: Cedric Hombourger References: <20190117160427.26556-1-henning.schild@siemens.com> <20190117173813.321197fd@md1za8fc.ad001.siemens.net> From: Claudius Heine Message-ID: Date: Mon, 21 Jan 2019 10:29:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190117173813.321197fd@md1za8fc.ad001.siemens.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: wFzMwdUMrOsV Hi Henning, On 17/01/2019 17.38, [ext] Henning Schild wrote: > 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. Ok thx! As for variable conflict: There is "APTSRCS" in isar-bootstrap, which it IMO far enough away from "SRC_APT", so that name would be OK. Claudius > > 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 >> > -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de