Mailing List Archive

Copyright lines in the profiles directory
Doing some review/cleanups in the MIPS profiles and there's some degree of
variability going on with the top copyright header, mainly in the beginning
year. I'm wanting to fix all of those up, but what is the appropriate
beginning year here? 1999, or the first year that the file appeared? I am
inclined to go with "Copyright 1999-2021 Gentoo Authors" across the board,
but given that copyright is always a touchy subject, figured I'd ask.

Current values:

# grep -rIn "Gentoo Foundation"
package.mask:1:# Copyright 1999-2017 Gentoo Foundation
mipsel/mips64el/make.defaults:1:# Copyright 2010-2014 Gentoo Foundation
mipsel/mips64el/multilib/n64/make.defaults:1:# Copyright 2011-2014 Gentoo
Foundation
mipsel/mips64el/multilib/n64/use.force:1:# Copyright 1999-2013 Gentoo Foundation
mipsel/mips64el/multilib/n32/make.defaults:1:# Copyright 2011-2014 Gentoo
Foundation
mipsel/mips64el/multilib/n32/use.force:1:# Copyright 1999-2013 Gentoo Foundation
mipsel/mips64el/multilib/o32/use.force:1:# Copyright 1999-2013 Gentoo Foundation
mipsel/mips64el/multilib/o32/make.defaults:1:# Copyright 2011-2014 Gentoo
Foundation
mipsel/mips64el/multilib/use.force:1:# Copyright 2011 Gentoo Foundation
mipsel/mips64el/multilib/make.defaults:1:# Copyright 1999-2013 Gentoo Foundation
mipsel/mips64el/multilib/use.mask:1:# Copyright 1999-2013 Gentoo Foundation
mipsel/mips64el/n64/use.force:1:# Copyright 1999-2014 Gentoo Foundation
mipsel/mips64el/n64/use.mask:1:# Copyright 1999-2014 Gentoo Foundation
mipsel/mips64el/n64/make.defaults:1:# Copyright 2010-2014 Gentoo Foundation
mipsel/mips64el/n32/make.defaults:1:# Copyright 2010-2014 Gentoo Foundation
mipsel/mips64el/n32/use.force:1:# Copyright 1999-2014 Gentoo Foundation
mipsel/mips64el/n32/use.mask:1:# Copyright 1999-2014 Gentoo Foundation
mipsel/o32/use.force:1:# Copyright 1999-2014 Gentoo Foundation
mipsel/o32/make.defaults:1:# Copyright 2010-2014 Gentoo Foundation
mipsel/o32/use.mask:1:# Copyright 1999-2014 Gentoo Foundation
mipsel/use.mask:1:# Copyright 1999-2017 Gentoo Foundation
use.force:1:# Copyright 2008-2014 Gentoo Foundation
o32/use.force:1:# Copyright 1999-2014 Gentoo Foundation
o32/use.mask:1:# Copyright 1999-2014 Gentoo Foundation
mips64/multilib/use.mask:1:# Copyright 1999-2013 Gentoo Foundation
mips64/multilib/make.defaults:1:# Copyright 1999-2013 Gentoo Foundation
mips64/multilib/o32/make.defaults:1:# Copyright 2011-2014 Gentoo Foundation
mips64/multilib/o32/use.force:1:# Copyright 1999-2013 Gentoo Foundation
mips64/multilib/n64/make.defaults:1:# Copyright 2011-2014 Gentoo Foundation
mips64/multilib/n64/use.force:1:# Copyright 1999-2013 Gentoo Foundation
mips64/multilib/n32/use.force:1:# Copyright 1999-2013 Gentoo Foundation
mips64/multilib/n32/make.defaults:1:# Copyright 2011-2014 Gentoo Foundation
mips64/multilib/use.force:1:# Copyright 2011 Gentoo Foundation
mips64/make.defaults:1:# Copyright 2010-2014 Gentoo Foundation
mips64/n64/use.mask:1:# Copyright 1999-2014 Gentoo Foundation
mips64/n64/use.force:1:# Copyright 1999-2014 Gentoo Foundation
mips64/n64/make.defaults:1:# Copyright 2011-2014 Gentoo Foundation
mips64/n32/use.force:1:# Copyright 1999-2014 Gentoo Foundation
mips64/n32/use.mask:1:# Copyright 1999-2014 Gentoo Foundation
mips64/n32/make.defaults:1:# Copyright 2011-2014 Gentoo Foundation

--
Joshua Kinard
Gentoo/MIPS
kumba@gentoo.org
rsa6144/5C63F4E3F5C6C943 2015-04-27
177C 1972 1FB8 F254 BAD0 3E72 5C63 F4E3 F5C6 C943

"The past tempts us, the present confuses us, the future frightens us. And
our lives slip away, moment by moment, lost in that vast, terrible in-between."

--Emperor Turhan, Centauri Republic
Re: Copyright lines in the profiles directory [ In reply to ]
On Sun, 2021-06-20 at 20:11 -0400, Joshua Kinard wrote:
> Doing some review/cleanups in the MIPS profiles and there's some degree of
> variability going on with the top copyright header, mainly in the beginning
> year. I'm wanting to fix all of those up, but what is the appropriate
> beginning year here? 1999, or the first year that the file appeared? I am
> inclined to go with "Copyright 1999-2021 Gentoo Authors" across the board,
> but given that copyright is always a touchy subject, figured I'd ask.
>

For profiles, I think 'first appeared' is the correct year. However,
I'd just not waste your time and leave the start year as is, i.e.:

sed -i -e '1s:-[0-9]+:-2021:' -e '1s:Foundation:Authors:' ...

or something like that (untested).

--
Best regards,
Micha? Górny
Re: Copyright lines in the profiles directory [ In reply to ]
>>>>> On Mon, 21 Jun 2021, Joshua Kinard wrote:

> Doing some review/cleanups in the MIPS profiles and there's some
> degree of variability going on with the top copyright header, mainly
> in the beginning year. I'm wanting to fix all of those up, but what is
> the appropriate beginning year here? 1999, or the first year that the
> file appeared?

Ideally, it should be the year when the file first appeared. However,
mgorny's approach is also fine (i.e. leave the start of the range
unchanged).

> I am inclined to go with "Copyright 1999-2021 Gentoo Authors" across
> the board,

Why would you move the starting year back in time? Please don't.

> but given that copyright is always a touchy subject, figured I'd ask.
Re: Copyright lines in the profiles directory [ In reply to ]
> On 21 Jun 2021, at 01:11, Joshua Kinard <kumba@gentoo.org> wrote:
>
> Doing some review/cleanups in the MIPS profiles and there's some degree of
> variability going on with the top copyright header, mainly in the beginning
> year. I'm wanting to fix all of those up, but what is the appropriate
> beginning year here? 1999, or the first year that the file appeared? I am
> inclined to go with "Copyright 1999-2021 Gentoo Authors" across the board,
> but given that copyright is always a touchy subject, figured I'd ask.

Somewhat related:

I did raise dropping these in the past [0] for pkgdev [1]
but we decided to keep them in the end.

So, maybe in future, pkgdev will update them for you.

[0] https://bugs.gentoo.org/774120
[0] https://github.com/pkgcore/pkgdev/issues/11
Re: Copyright lines in the profiles directory [ In reply to ]
On 6/21/2021 01:36, Ulrich Mueller wrote:
>>>>>> On Mon, 21 Jun 2021, Joshua Kinard wrote:
>
>> Doing some review/cleanups in the MIPS profiles and there's some
>> degree of variability going on with the top copyright header, mainly
>> in the beginning year. I'm wanting to fix all of those up, but what is
>> the appropriate beginning year here? 1999, or the first year that the
>> file appeared?
>
> Ideally, it should be the year when the file first appeared. However,
> mgorny's approach is also fine (i.e. leave the start of the range
> unchanged).

That works for me, thanks!


>> I am inclined to go with "Copyright 1999-2021 Gentoo Authors" across
>> the board,
>
> Why would you move the starting year back in time? Please don't.
>
>> but given that copyright is always a touchy subject, figured I'd ask.

Again, this is why I ask instead of what waltzing off and doing.

Odds are really likely that many of those profile files were just copied
from another one elsewhere in the tree. The starting year is all over the
place, and really, we did not have cascading profiles in 1999, so any of the
files that say "1999" as the start year likely have the wrong year in the
first place. More reasonably, I'd want to hunt down the actual creation
year of each file and then set the start year to the year that file first
appeared in CVS. Though, that'd be a tad on the pedantic side, not to
mention take a lot of time to trace each file individually.

:: waits for someone to drop some magic git-fu that does this in one line ::

--
Joshua Kinard
Gentoo/MIPS
kumba@gentoo.org
rsa6144/5C63F4E3F5C6C943 2015-04-27
177C 1972 1FB8 F254 BAD0 3E72 5C63 F4E3 F5C6 C943

"The past tempts us, the present confuses us, the future frightens us. And
our lives slip away, moment by moment, lost in that vast, terrible in-between."

--Emperor Turhan, Centauri Republic
Re: Copyright lines in the profiles directory [ In reply to ]
>>>>> On Mon, 21 Jun 2021, Joshua Kinard wrote:

>>> I am inclined to go with "Copyright 1999-2021 Gentoo Authors" across
>>> the board,
>>
>> Why would you move the starting year back in time? Please don't.
>>
>>> but given that copyright is always a touchy subject, figured I'd ask.

> Again, this is why I ask instead of what waltzing off and doing.

> Odds are really likely that many of those profile files were just copied
> from another one elsewhere in the tree. The starting year is all over the
> place, and really, we did not have cascading profiles in 1999, so any of the
> files that say "1999" as the start year likely have the wrong year in the
> first place. More reasonably, I'd want to hunt down the actual creation
> year of each file and then set the start year to the year that file first
> appeared in CVS. Though, that'd be a tad on the pedantic side, not to
> mention take a lot of time to trace each file individually.

> :: waits for someone to drop some magic git-fu that does this in one line ::

For a single file, something like this should do the job (assuming that
you've grafted the historical repo):

$ TZ=UTC git log --find-renames --find-copies --follow \
--pretty="format:%ad" --date="format-local:%Y" ${filename} | tail -n1

Ulrich
Re: Copyright lines in the profiles directory [ In reply to ]
On 6/21/2021 03:37, Ulrich Mueller wrote:
> TZ=UTC git log --find-renames --find-copies --follow \
> --pretty="format:%ad" --date="format-local:%Y" ${filename} | tail -n1

This looks like it works:

cat profiles/arch/mips/mips64/multilib/n64/use.force | head -n1
# Copyright 1999-2013 Gentoo Foundation

TZ=UTC git log --find-renames --find-copies --follow --pretty="format:%ad"
--date="format-local:%Y" profiles/arch/mips/mips64/multilib/n64/use.force |
tail -n1
2011

--
Joshua Kinard
Gentoo/MIPS
kumba@gentoo.org
rsa6144/5C63F4E3F5C6C943 2015-04-27
177C 1972 1FB8 F254 BAD0 3E72 5C63 F4E3 F5C6 C943

"The past tempts us, the present confuses us, the future frightens us. And
our lives slip away, moment by moment, lost in that vast, terrible in-between."

--Emperor Turhan, Centauri Republic