On Sat, 9 Apr 2016 12:12:44 +0200 Ole Reifschneider wrote:

>On Tue, Apr 05, 2016 at 12:30:15AM -0400, Jonathan Callen wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA512
>>
>> On 04/04/2016 02:58 AM, Lars Wendler wrote:  
>> > On Sun, 3 Apr 2016 22:57:42 +0200 Ulrich Mueller wrote:
>> >  
>> >> Does anyone still use the CVS $Id$ keywords that are in all
>> >> ebuilds' headers, or are they being expanded anywhere? Or is
>> >> there any other reason why they should be kept?
>> >>
>> >> In fact, the council had already voted to drop them in its
>> >> 20141014 meeting:
>> >>
>> >> Can we drop CVS headers post-migration? Aye: blueness, creffett
>> >> (proxy for ulm), dberkholz, dilfridge, radhermit, rich0, williamh
>> >>
>> >>
>> >> Ulrich  
>> >
>> > Yes, I still use these lines to check for ebuild changes between
>> > portage and my personal overlay. So please keep this line.
>> >
>> > Thanks.
>> >
>> > Lars
>> >  
>>
>> I do the same (after enabling expansion in .git/info/attributes on
>> just "*.ebuild", I can even get a quick diff of what changed in
>> gentoo.git to update my overlay).
>>  
>
>Sounds cool. Can you please explain in more detail how you do this?
>
>Ole
>

Enable the ident feature for *.ebuild files in git:

  $ cat ~/gentoo/.git/info/attributes
  *.ebuild ident

Now re-checkout every ebuild you wanna track. 

  $ git checkout -- ~/gentoo/www-client/seamonkey/seamonkey-2.40.ebuild

Once you have done that those ebuilds will have some hash in the $Id$
field:

  $ grep '$Id' ~/gentoo/www-client/seamonkey/seamonkey-2.40.ebuild
  # $Id: 5ecd7709c6c8a316d9f005b4e4a0a54da81eb048 $

The same hash is in each corresponding ebuild in my personal overlay as
well. Occasionally I run a script to compare ebuilds from my overlay
with the one from the git tree. When the hash is different something in
the gentoo ebuild has changed and I can decide if I want to apply these
changes to ebuilds in my overlay as well.

I hope this brief explanation is sufficient.

Kind regards
Lars

-- 
Lars Wendler
Gentoo package maintainer
GPG: 21CC CF02 4586 0A07 ED93  9F68 498F E765 960E 9B39

Attention! New gpg key! See (self signed server cert for now)
http://www.gentoofan.org/blog/index.php?/archives/9-New-gpg-keys.html

Attachment: pgpjQtsVSDtLY.pgp
Description: Digitale Signatur von OpenPGP

Reply via email to