On Tue, 28 Jul 2020 at 13:56, Christian Eggers <[email protected]> wrote:
>
> In my project, the linux kernel (together with dozens of our changes) is kept
> in a company internal GIT repository. The GPLv2 requires the following:
>
> > 2a) You must cause the modified files to carry prominent notices stating
> > that you changed the files and the date of any change.
>
> My idea is, that the GIT history (and diff) should be sufficient for 
> documenting
> our changes to the linux source code.
>
> But when I unpack the .tar.gz file which was deploy by archiver.bbclass,
> I get the following:
>
> # tar -xf my-linux-kernel.tar.gz
> # cd <temporary directory name>/git
> # git log
>
> > error: object directory 
> > /srv/gitlab-runner/downloads/[..]/yocto/git2/[xxx].git/objects does not 
> > exist; check .git/objects/info/alternates
> > fatal: bad object HEAD
>
> Note: The project has been built on another machine.
>
> From the bitbake user manual, 4.3.5, Git Fetcher:
> > "This bare clone is then cloned into the work directory during the unpack
> > stage when a specific tree is checked out. This is done using alternates and
> > by reference to minimize the amount of duplicate data on the disk and make
> > the unpack process fast."
>
> It looks like the .git directory within the tar archive doesn't contain
> the necessary information required for using the "git" command on
> the extracted "working copy". If I understood the bitbake doc correctly,
> the working copy is cloned "by reference" from a "bare" clone which
> resided outside the archived directory (in the downloads dir).
>
> So I have three questions:
> 1. Is it possible to archive the git project in a way, that the GIT history
> can be examined later?
> 2. If this is not possible, I would have to put my changes in an
> "external" patch file alongside the bitbake recipe, right?
> 3. Is there any value archiving the .git directory at all?

What configuration are you using to enable the archiver? There may be
ways to fix this by changing the configuration.

Also, which Yocto Project version/branch are you using?

Thanks,

-- 
Paul Barker
Konsulko Group
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141080): 
https://lists.openembedded.org/g/openembedded-core/message/141080
Mute This Topic: https://lists.openembedded.org/mt/75843071/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to