* do_adjust_git in dpkg-base.class
@ 2019-02-07 13:03 Lisicki, Raphael
2019-02-07 15:31 ` Jan Kiszka
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Lisicki, Raphael @ 2019-02-07 13:03 UTC (permalink / raw)
To: isar-users
Hello everybody,
the function do_adjust_git in dpkg-base.class breaks git for all operations outside of the buildchroot. E.g. it is not possible to use git in a prepare_build command, as it is not yet done in the buildchroot, but the git adjustment has already been done.
I would suggest to move the call to do_adjust_git into dpkg_do_mounts and maybe even undo it afterwards, so that targets that run after build can also have access to a working git repo.
Best regards
Raphael Lisicki
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: do_adjust_git in dpkg-base.class
2019-02-07 13:03 do_adjust_git in dpkg-base.class Lisicki, Raphael
@ 2019-02-07 15:31 ` Jan Kiszka
2019-02-07 17:51 ` Henning Schild
2019-02-07 18:19 ` Henning Schild
2 siblings, 0 replies; 4+ messages in thread
From: Jan Kiszka @ 2019-02-07 15:31 UTC (permalink / raw)
To: [ext] Lisicki, Raphael, isar-users
On 07.02.19 14:03, [ext] Lisicki, Raphael wrote:
> Hello everybody,
>
> the function do_adjust_git in dpkg-base.class breaks git for all operations outside of the buildchroot. E.g. it is not possible to use git in a prepare_build command, as it is not yet done in the buildchroot, but the git adjustment has already been done.
> I would suggest to move the call to do_adjust_git into dpkg_do_mounts and maybe even undo it afterwards, so that targets that run after build can also have access to a working git repo.
Moving it earlier should probably be fine. But undoing after some step can cause
troubles when your rebuild your target and do not restart the task that applies
the adjustment.
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: do_adjust_git in dpkg-base.class
2019-02-07 13:03 do_adjust_git in dpkg-base.class Lisicki, Raphael
2019-02-07 15:31 ` Jan Kiszka
@ 2019-02-07 17:51 ` Henning Schild
2019-02-07 18:19 ` Henning Schild
2 siblings, 0 replies; 4+ messages in thread
From: Henning Schild @ 2019-02-07 17:51 UTC (permalink / raw)
To: [ext] Lisicki, Raphael; +Cc: isar-users
I never was a fan of that messing with git step. Unfortunately my patch
against bitbake was never merged, one that would use true clones and
eliminate the problem with the "link".
At the moment you have to live with that. Maybe we can find a way of
patching the git argv from within the fetcher implementation of Isar.
Henning
Am Thu, 7 Feb 2019 13:03:58 +0000
schrieb "[ext] Lisicki, Raphael" <raphael.lisicki@siemens.com>:
> Hello everybody,
>
> the function do_adjust_git in dpkg-base.class breaks git for all
> operations outside of the buildchroot. E.g. it is not possible to use
> git in a prepare_build command, as it is not yet done in the
> buildchroot, but the git adjustment has already been done. I would
> suggest to move the call to do_adjust_git into dpkg_do_mounts and
> maybe even undo it afterwards, so that targets that run after build
> can also have access to a working git repo.
>
> Best regards
> Raphael Lisicki
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: do_adjust_git in dpkg-base.class
2019-02-07 13:03 do_adjust_git in dpkg-base.class Lisicki, Raphael
2019-02-07 15:31 ` Jan Kiszka
2019-02-07 17:51 ` Henning Schild
@ 2019-02-07 18:19 ` Henning Schild
2 siblings, 0 replies; 4+ messages in thread
From: Henning Schild @ 2019-02-07 18:19 UTC (permalink / raw)
To: [ext] Lisicki, Raphael; +Cc: isar-users
Am Thu, 7 Feb 2019 13:03:58 +0000
schrieb "[ext] Lisicki, Raphael" <raphael.lisicki@siemens.com>:
> Hello everybody,
>
> the function do_adjust_git in dpkg-base.class breaks git for all
> operations outside of the buildchroot. E.g. it is not possible to use
> git in a prepare_build command, as it is not yet done in the
> buildchroot, but the git adjustment has already been done. I would
> suggest to move the call to do_adjust_git into dpkg_do_mounts and
> maybe even undo it afterwards, so that targets that run after build
> can also have access to a working git repo.
Even if the patching was done later, you would see the same problem in
the first rebuild. Since the patching does not get undone.
If you need to use git you can enter the buildchroot and call it with
"mount; sudo chroot -E ..." ... the repeating pattern. Or you might get
away with "git -C somewhere/in/dldir" ... hack, or "git clone
file://somewhere/in/dldir ${WORKDIR}/git_host". Now thinking about that
we might enable adjust_git to keep a host copy for you, if you ask
for it ... somehow. Or you write your own _prepend it with "cp -r git
git_host" ;).
Henning
> Best regards
> Raphael Lisicki
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-02-07 18:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-07 13:03 do_adjust_git in dpkg-base.class Lisicki, Raphael
2019-02-07 15:31 ` Jan Kiszka
2019-02-07 17:51 ` Henning Schild
2019-02-07 18:19 ` Henning Schild
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox