FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 11-03-2011, 12:19 AM
Mike Gilbert
 
Default Rotating oversized ChangeLog files

On 11/02/2011 08:33 PM, Andreas K. Huettel wrote:
> I currently count 19 relevant files. If we keep the 100k limit and rotate
> yearly, this will be doable by hand in the foreseeable future and any attempt
> at automating is a complete waste of time.
>
> Opinions, flames, ...?
>

Just an observation: I think www-client/chromium has the fastest growing
ebuild changelog at 50-60k per year. That's a lot of version bumps!
 
Old 11-03-2011, 07:24 AM
Ulrich Mueller
 
Default Rotating oversized ChangeLog files

>>>>> On Thu, 3 Nov 2011, Andreas K Huettel wrote:

> The "old entries" file ChangeLog-2010 will be identical to the
> current ChangeLog file except for skipping at the start all entries
> added later than 31/12/2010.

Just to make sure that I understand it: Does this imply that the old
entries file will have a proper header?

> 774821 profiles/ChangeLog

Maybe you could split this one on a yearly basis, to keep the chunks
close to 100 kB?

Ulrich
 
Old 11-03-2011, 08:16 AM
Michael Haubenwallner
 
Default Rotating oversized ChangeLog files

On 11/03/2011 01:33 AM, Andreas K. Huettel wrote:
> In a week's time I personally, manually, will "rotate" all ChangeLog files
> larger than 100k in the tree, by splitting them at 31/12/2010-1/1/2011.

> Opinions, flames, ...?

<opinion>

Again for 'emerge --changelog':

As we do have the "$delay before breaking old" period, usually with $delay="1 year":
Should we also apply this $delay to the output of above command?

If yes, what I can think of ATM is:
* Do that first splitting in January 2012 (in less than 2 months).
* Have PM search in the old ChangeLogs if necessary.

The latter would also allow for completely emptying current ChangeLog each January
by moving that to ChangeLog-$lastyear.

</opinion>

/haubi/
 
Old 11-03-2011, 09:14 AM
"Andreas K. Huettel"
 
Default Rotating oversized ChangeLog files

On Donnerstag 03 November 2011 09:24:07 Ulrich Mueller wrote:
> >>>>> On Thu, 3 Nov 2011, Andreas K Huettel wrote:
> > The "old entries" file ChangeLog-2010 will be identical to the
> > current ChangeLog file except for skipping at the start all entries
> > added later than 31/12/2010.
>
> Just to make sure that I understand it: Does this imply that the old
> entries file will have a proper header?

Yes.

> > 774821 profiles/ChangeLog
>
> Maybe you could split this one on a yearly basis, to keep the chunks
> close to 100 kB?

Makes sense, yes. (With the earliest splitting when the file exceeds 100k for
the first time.)

--

Andreas K. Huettel
Gentoo Linux developer
dilfridge@gentoo.org
http://www.akhuettel.de/
 
Old 11-03-2011, 09:22 AM
"Andreas K. Huettel"
 
Default Rotating oversized ChangeLog files

On Donnerstag 03 November 2011 10:16:53 Michael Haubenwallner wrote:
>
> Again for 'emerge --changelog':
>
> As we do have the "$delay before breaking old" period, usually with
> $delay="1 year": Should we also apply this $delay to the output of above
> command?
>
> If yes, what I can think of ATM is:
> * Do that first splitting in January 2012 (in less than 2 months).
> * Have PM search in the old ChangeLogs if necessary.
>
> The latter would also allow for completely emptying current ChangeLog each
> January by moving that to ChangeLog-$lastyear.
>

Makes all perfect sense... however I suggest to agree on a general scheme and
go ahead manually first if implementation and/or discussion of its details or
planned features is lingering...

As opposed to EAPI features, this here is one of the cases where "availability
of an implementation" means "I'm here and can do it quickly".

--

Andreas K. Huettel
Gentoo Linux developer
dilfridge@gentoo.org
http://www.akhuettel.de/
 
Old 11-03-2011, 09:59 AM
Ulrich Mueller
 
Default Rotating oversized ChangeLog files

>>>>> On Thu, 3 Nov 2011, Andreas K Huettel wrote:

> On Donnerstag 03 November 2011 10:16:53 Michael Haubenwallner wrote:

>> As we do have the "$delay before breaking old" period, usually with
>> $delay="1 year": Should we also apply this $delay to the output of
>> above command?

> Makes all perfect sense... however I suggest to agree on a general
> scheme and go ahead manually first if implementation and/or
> discussion of its details or planned features is lingering...

How about this:
- Possible split points are only at the end of years.
- Start at the end of the file and go backwards.
- Split it whenever the piece after the split point is larger than $size.
- Stop if the next split point is less than $delay ago.

Reasonable values are 50 or 100 KiB for $size and 1 year for $delay,
IMHO.

ulrich
 
Old 11-03-2011, 10:46 PM
"Andreas K. Huettel"
 
Default Rotating oversized ChangeLog files

On Donnerstag 03 November 2011 11:59:55 Ulrich Mueller wrote:
> >>>>> On Thu, 3 Nov 2011, Andreas K Huettel wrote:
> > On Donnerstag 03 November 2011 10:16:53 Michael Haubenwallner wrote:
> >> As we do have the "$delay before breaking old" period, usually with
> >> $delay="1 year": Should we also apply this $delay to the output of
> >> above command?
> >
> > Makes all perfect sense... however I suggest to agree on a general
> > scheme and go ahead manually first if implementation and/or
> > discussion of its details or planned features is lingering...
>
> How about this:
> - Possible split points are only at the end of years.
> - Start at the end of the file and go backwards.
> - Split it whenever the piece after the split point is larger than $size.
> - Stop if the next split point is less than $delay ago.
>
> Reasonable values are 50 or 100 KiB for $size and 1 year for $delay,
> IMHO.

Sounds good. So, we have a spec... and the portage team has two months to get
it into "emerge --changelog".

--

Andreas K. Huettel
Gentoo Linux developer
dilfridge@gentoo.org
http://www.akhuettel.de/
 
Old 11-05-2011, 10:36 AM
"Andreas K. Huettel"
 
Default Rotating oversized ChangeLog files

>
> Sounds good. So, we have a spec... and the portage team has two months to
> get it into "emerge --changelog".
>

For whoever is interested, I've just filed a portage feature request in bug
389611.

https://bugs.gentoo.org/show_bug.cgi?id=389611
Please support "rotated ChangeLog files" in "emerge --changelog"

--
Andreas K. Huettel (dilfridge)
Gentoo Linux developer
kde, sci, arm, tex
 

Thread Tools




All times are GMT. The time now is 01:19 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org