public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: "Hombourger, Cedric" <Cedric_Hombourger@mentor.com>,
	"[ext] Henning Schild" <henning.schild@siemens.com>
Cc: isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH 2/7] dpkg-base: introduce an "apt-get source" fetch/unpack step
Date: Mon, 28 Jan 2019 18:13:40 +0100	[thread overview]
Message-ID: <1c16145f-52cc-2f9d-87ff-bd02eb681829@siemens.com> (raw)
In-Reply-To: <7a0c801896344cbabf871b9fbeded3fd@svr-ies-mbx-02.mgc.mentorg.com>

On 28.01.19 18:12, Hombourger, Cedric wrote:
> Hi Jan,
> 
> Henning did a good of rework to the changeset used in our local project tree, he deserves most of the credits :)
> 

OK. Then let's move a credit like "based on original patch(es) by ..." into the 
commit log but remove the bogus SOB.

Jan

> Cedric
> 
> -----Original Message-----
> From: Jan Kiszka [mailto:jan.kiszka@siemens.com]
> Sent: Monday, January 28, 2019 6:07 PM
> To: [ext] Henning Schild <henning.schild@siemens.com>; isar-users <isar-users@googlegroups.com>
> Cc: Hombourger, Cedric <Cedric_Hombourger@mentor.com>
> Subject: Re: [PATCH 2/7] dpkg-base: introduce an "apt-get source" fetch/unpack step
> 
> On 17.01.19 17:04, [ext] Henning Schild wrote:
>> From: Henning Schild <henning.schild@siemens.com>
>>
>> This creates a new task to fetch/unpack debian sources from debian
>> source mirrors. This is done using "apt-get source" and the new
>> variable APT_SRC to control the arguments.
>>
>> An example where a original debian package gets rebuild will follow in
>> a later commit.
>>
>> Signed-off-by: Cedric Hombourger <Cedric_Hombourger@mentor.com>
> 
> How does Cedric SOB come in here, before your own? Is it his patch that should actually be credited by a proper "From:"?
> 
>> Signed-off-by: Henning Schild <henning.schild@siemens.com>
>> ---
>>    meta/classes/dpkg-base.bbclass | 19 +++++++++++++++++++
>>    1 file changed, 19 insertions(+)
>>
>> diff --git a/meta/classes/dpkg-base.bbclass
>> b/meta/classes/dpkg-base.bbclass index f1b127c..2f324f9 100644
>> --- a/meta/classes/dpkg-base.bbclass
>> +++ b/meta/classes/dpkg-base.bbclass
>> @@ -20,6 +20,25 @@ do_adjust_git[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}"
>>    inherit patch
>>    addtask patch after do_adjust_git before do_build
>>    
>> +SRC_APT ?= ""
>> +
>> +do_apt_fetch[depends] = "buildchroot-target:do_build"
>> +
>> +do_apt_fetch() {
>> +	if [ -z "${@d.getVar("SRC_APT", True).strip()}" ]; then
>> +		exit
>> +	fi
>> +	dpkg_do_mounts
>> +	E="${@ bb.utils.export_proxies(d)}"
>> +	sudo -E chroot --userspec=$( id -u ):$( id -g ) ${BUILDCHROOT_DIR} \
>> +		sh -c 'cd ${PP} && apt-get -y source ${SRC_APT}'
>> +	dpkg_undo_mounts
>> +}
>> +
>> +addtask apt_fetch after do_unpack before do_patch
>> +do_apt_fetch[lockfiles] += "${REPO_ISAR_DIR}/isar.lock"
>> +do_apt_fetch[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}"
>> +
>>    def get_package_srcdir(d):
>>        s = d.getVar("S", True)
>>        workdir = d.getVar("WORKDIR", True)
>>
> 
> Jan
> 
> --
> Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
> 

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

  reply	other threads:[~2019-01-28 17:13 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-17 16:04 [PATCH 0/7] "apt-get source" fetch/unpack support Henning Schild
2019-01-17 16:04 ` [PATCH 1/7] conf: add deb-src entries to all our distro configs Henning Schild
2019-01-17 16:04 ` [PATCH 2/7] dpkg-base: introduce an "apt-get source" fetch/unpack step Henning Schild
2019-01-28 17:06   ` Jan Kiszka
2019-01-28 17:12     ` Hombourger, Cedric
2019-01-28 17:13       ` Jan Kiszka [this message]
2019-01-30 13:57   ` [PATCHv2 " Henning Schild
2019-01-30 13:58     ` Henning Schild
2019-01-17 16:04 ` [PATCH 3/7] meta: move debianization code into a class and into dpkg-base Henning Schild
2019-01-17 16:04 ` [PATCH 4/7] debianize: allow changlog version change Henning Schild
2019-01-17 16:04 ` [PATCH 5/7] meta-isar/recipes-app: add upstream hello rebuild example Henning Schild
2019-01-30 13:06   ` [PATCHv2 " Henning Schild
2019-01-30 13:07     ` Henning Schild
2019-01-17 16:04 ` [PATCH 6/7] local.conf: remove example-hello from the default build Henning Schild
2019-01-28 17:08   ` Jan Kiszka
2019-01-29 11:14     ` Maxim Yu. Osipov
2019-01-17 16:04 ` [PATCH 7/7] local.conf: enable rebuilding "hello" for all distros Henning Schild
2019-01-29 11:20   ` Maxim Yu. Osipov
2019-01-30 13:04     ` Henning Schild
2019-01-17 16:38 ` [PATCH 0/7] "apt-get source" fetch/unpack support Henning Schild
2019-01-21  9:29   ` Claudius Heine
2019-01-28 17:17   ` Jan Kiszka
2019-01-28 16:57 ` Henning Schild
2019-01-30  6:43   ` Maxim Yu. Osipov
2019-01-30  9:15     ` Henning Schild
2019-01-30 12:24     ` Henning Schild

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1c16145f-52cc-2f9d-87ff-bd02eb681829@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=Cedric_Hombourger@mentor.com \
    --cc=henning.schild@siemens.com \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox