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?

regards
Christian



________________________________
 
[http://assets.arri.com/media/sign/2020-04-03-E-mail-signature-Stellar2_V1.jpg] 
<https://microsites.arri.com/stellar/>

Get all the latest information from www.arri.com<https://www.arri.com/>, 
Facebook<https://www.facebook.com/TeamARRI>, 
Twitter<https://twitter.com/ARRIChannel>, Instagram<https://instagram.com/arri> 
and YouTube<https://www.youtube.com/user/ARRIChannel>.

Arnold & Richter Cine Technik GmbH & Co. Betriebs KG
Sitz: München - Registergericht: Amtsgericht München - Handelsregisternummer: 
HRA 57918
Persönlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH
Sitz: München - Registergericht: Amtsgericht München - Handelsregisternummer: 
HRB 54477
Geschäftsführer: Dr. Michael Neuhäuser; Stephan Schenk; Walter Trauninger; 
Markus Zeiler
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141061): 
https://lists.openembedded.org/g/openembedded-core/message/141061
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