From: Henning Schild <henning.schild@siemens.com>
To: Alexander Smirnov <asmirnov@ilbers.de>
Cc: <isar-users@googlegroups.com>
Subject: Re: [PATCH 4/4 v2] dpkg-base: Update git alternates
Date: Mon, 27 Nov 2017 16:42:48 +0100 [thread overview]
Message-ID: <20171127164248.78ef8955@md1em3qc> (raw)
In-Reply-To: <914f6cf4-f91d-bdef-d169-3688f6f01346@ilbers.de>
Am Mon, 27 Nov 2017 11:03:47 +0300
schrieb Alexander Smirnov <asmirnov@ilbers.de>:
> On 11/27/2017 10:44 AM, Henning Schild wrote:
> > Am Fri, 24 Nov 2017 18:12:43 +0300
> > schrieb Alexander Smirnov <asmirnov@ilbers.de>:
> >
> >> On 11/24/2017 05:57 PM, Henning Schild wrote:
> >>> Am Thu, 23 Nov 2017 13:25:32 +0300
> >>> schrieb Alexander Smirnov <asmirnov@ilbers.de>:
> >>>
> >>>> Update git alternates to work in buildchroot.
> >>>>
> >>>> Signed-off-by: Alexander Smirnov <asmirnov@ilbers.de>
> >>>> ---
> >>>> meta/classes/dpkg-base.bbclass | 7 +++++++
> >>>> 1 file changed, 7 insertions(+)
> >>>>
> >>>> diff --git a/meta/classes/dpkg-base.bbclass
> >>>> b/meta/classes/dpkg-base.bbclass index 21ae88d..d51a709 100644
> >>>> --- a/meta/classes/dpkg-base.bbclass
> >>>> +++ b/meta/classes/dpkg-base.bbclass
> >>>> @@ -18,6 +18,13 @@ dpkg_runbuild() {
> >>>>
> >>>> # Wrap the function dpkg_runbuild with the bind mount for
> >>>> buildroot do_build() {
> >>>> + if [ -d ${WORKDIR}/git/.git ]; then
> >>>> + OBJ_PATH=$(cat
> >>>> ${WORKDIR}/git/.git/objects/info/alternates)
> >>>> + REPO_PATH=$(dirname $OBJ_PATH)
> >>>> + REPO_NAME=$(basename $REPO_PATH)
> >>>> + echo "/git/$REPO_NAME/objects" >
> >>>> ${WORKDIR}/git/.git/objects/info/alternates
> >>>> + fi
> >>>
> >>> Does that not overwrite a file so that the repo can now work only
> >>> in buildchroot and will be broken on the host?
> >>>
> >>
> >> It does, but in general there is no use-case for having working
> >> repo clone on the host. I could restore original alternates in
> >> cleanup hook, but it really makes no sense.
> >
> > I do not like breaking that clone, even for a short while and
> > repairing it later.
> > The host-clone might be looked at while debugging.
> > And one could imagine the fetcher/unpacker supporting deduplication
> > if multiple recipes use the same repo. Even if such a feature is not
> > present in bitbake today, if it is implemented Isar will break.
> > Think one recipe being in do_build and another one in do_fetch at
> > the same time.
>
> Don't understand what you mean, but probably the following items
> could better describe what happens in this patch:
>
> 1. There is Isar downloads folder 'tmp/downloads', which contains git
> clones from origins.
> 2. There is workdir folder per recipe, which contains git clone from
> Isar downloads folder.
> 3. The patch modifies clone in workdir, so the only current recipe is
> user for this repo.
> 4. The downloads folder content stays unmodified for all the time.
I see, in that case i have no objections.
Thanks,
Henning
> Alex
prev parent reply other threads:[~2017-11-27 15:42 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-23 10:25 [PATCH 0/4 v2] Buildchroot prepare/cleanup Alexander Smirnov
2017-11-23 10:25 ` [PATCH 1/4 v2] dpkg-base: Fix buildchroot dependancy Alexander Smirnov
2017-11-23 10:25 ` [PATCH 2/4 v2] image: Add do_rootfs template to image class Alexander Smirnov
2017-11-23 10:25 ` [PATCH 3/4 v2] buildchroot: Add prepare and cleanup tasks Alexander Smirnov
2017-11-24 14:55 ` Henning Schild
2017-11-24 15:48 ` Alexander Smirnov
2017-11-24 16:34 ` Henning Schild
2017-11-24 16:51 ` Alexander Smirnov
2017-11-27 7:56 ` Henning Schild
2017-11-27 8:15 ` Alexander Smirnov
2017-12-08 7:58 ` Christian Storm
2017-12-11 9:23 ` Alexander Smirnov
2017-12-11 12:16 ` Henning Schild
2017-12-11 13:37 ` Storm, Christian (CT RDA ITP SES-DE)
2017-12-11 14:12 ` Alexander Smirnov
2017-12-11 15:14 ` Christian Storm
2017-12-12 7:39 ` Alexander Smirnov
2017-12-12 8:01 ` Christian Storm
2017-12-12 8:21 ` Alexander Smirnov
2017-12-11 11:32 ` Henning Schild
2017-12-11 18:29 ` Henning Schild
2017-12-11 19:56 ` Alexander Smirnov
2017-12-12 8:04 ` Christian Storm
2017-12-12 12:05 ` Henning Schild
2017-12-13 5:43 ` Jan Kiszka
2017-12-11 18:32 ` Henning Schild
2017-11-23 10:25 ` [PATCH 4/4 v2] dpkg-base: Update git alternates Alexander Smirnov
2017-11-24 14:57 ` Henning Schild
2017-11-24 15:12 ` Alexander Smirnov
2017-11-27 7:44 ` Henning Schild
2017-11-27 8:03 ` Alexander Smirnov
2017-11-27 15:42 ` Henning Schild [this message]
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=20171127164248.78ef8955@md1em3qc \
--to=henning.schild@siemens.com \
--cc=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