From: Alexander Smirnov <asmirnov@ilbers.de>
To: isar-users@googlegroups.com
Subject: Re: [PATCH] Map git objects to buildchroot
Date: Tue, 21 Nov 2017 17:52:43 +0300 [thread overview]
Message-ID: <8d3214bf-8280-1ba9-8521-f120d8809daf@ilbers.de> (raw)
In-Reply-To: <20171121081424.fkbr2amupexta2sc@MD1KR9XC.ww002.siemens.net>
Hi again,
On 11/21/2017 11:14 AM, Christian Storm wrote:
>> [...]
>> 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?
Yeah, could do this now.
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.
>
next prev parent reply other threads:[~2017-11-21 14:52 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
2017-11-21 14:52 ` Alexander Smirnov [this message]
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=8d3214bf-8280-1ba9-8521-f120d8809daf@ilbers.de \
--to=asmirnov@ilbers.de \
--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