From: Christian Storm <christian.storm@siemens.com>
To: isar-users@googlegroups.com
Subject: Re: [PATCH] Map git objects to buildchroot
Date: Tue, 21 Nov 2017 09:14:24 +0100 [thread overview]
Message-ID: <20171121081424.fkbr2amupexta2sc@MD1KR9XC.ww002.siemens.net> (raw)
In-Reply-To: <fcc90d97-d093-cd5f-2bc3-e61cd96e5045@ilbers.de>
> [...]
> BTW: we always have option to clone git repository to workspace by
> running in ${WORKDIR}/git:
>
> $ git repack -a
>
> in do_build() task. With this, no extra mount/umount logic is needed.
Yes, right, providing a (proper) git checkout in the working directory
solves the problem, as a mount --bind does. For a proper checkout,
you'll have to have the (entire) history/tags available, i.e., not a
shallow clone. For large repositories, this may take some time which a
mount --bind does not consume. On the pro side, using a (proper)
checkout, there's no way to mess with the repository from within the
buildroot, i.e., building from the same source twice - for whatever
reason - uses the exact same revision as base: Changes made to the
repository in one don't affect the other.
That said, I'm fine with both solutions.
So, would you go ahead and post a patch, Alex?
> We could consider this behavior for source 3.0 packages only by using
> some flag in recipe.
Well, no. This way you're entangling Debian packaging internals to the
recipe. I would opt against this. Most probably you'll want to do git
operations even if you don't use source 3.0 (git) packages, e.g.,
getting the latest git tag or whatever. So, I'd opt for doing it for
every source git package, unconditionally.
Kind regards,
Christian
--
Dr. Christian Storm
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Otto-Hahn-Ring 6, 81739 M�nchen, Germany
next prev parent reply other threads:[~2017-11-21 8:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-14 16:48 [PATCH] dpkg-base: mount git source folder into buildchroot Christian Storm
2017-11-17 15:17 ` Alexander Smirnov
2017-11-17 17:05 ` Christian Storm
2017-11-20 9:37 ` Henning Schild
2017-11-20 11:30 ` Christian Storm
2017-11-20 15:06 ` [PATCH] Map git objects to buildchroot Alexander Smirnov
2017-11-20 15:32 ` Henning Schild
2017-11-20 15:54 ` Alexander Smirnov
2017-11-21 8:14 ` Christian Storm [this message]
2017-11-21 14:52 ` Alexander Smirnov
2017-11-21 8:20 ` Henning Schild
2017-11-21 8:57 ` Alexander Smirnov
2017-11-21 9:07 ` 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=20171121081424.fkbr2amupexta2sc@MD1KR9XC.ww002.siemens.net \
--to=christian.storm@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