From: Henning Schild <henning.schild@siemens.com>
To: <isar-users@googlegroups.com>
Cc: Cedric Hombourger <Cedric_Hombourger@mentor.com>,
Jan Kiszka <jan.kiszka@siemens.com>
Subject: Re: [PATCHv2 2/7] dpkg-base: introduce an "apt-get source" fetch/unpack step
Date: Wed, 30 Jan 2019 14:58:43 +0100 [thread overview]
Message-ID: <20190130145843.0cf4cfff@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <20190130135738.8641-1-henning.schild@siemens.com>
On Wed, 30 Jan 2019 14:57:38 +0100
Henning Schild <henning.schild@siemens.com> 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.
>
> based on original patch by Cedric Hombourger
> <Cedric_Hombourger@mentor.com>
Changed commit comment to contain the above instead of a
"Signed-off-by".
Henning
> 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)
next prev parent reply other threads:[~2019-01-30 13:58 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
2019-01-30 13:57 ` [PATCHv2 " Henning Schild
2019-01-30 13:58 ` Henning Schild [this message]
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=20190130145843.0cf4cfff@md1za8fc.ad001.siemens.net \
--to=henning.schild@siemens.com \
--cc=Cedric_Hombourger@mentor.com \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.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