2008-10-30 10:55:43

by Roland

[permalink] [raw]
Subject: how much license information inside the kernel ?

hi,

i found that there is a LOT of repeating licensing information in the kernel.

for me,

find ./linux-2.6.27 -type f -exec cat {} \; |egrep "free software|GNU General Public License|Free Software Foundation|version 2 of the License|distributed in the hope|WITHOUT ANY WARRANTY|FITNESS FOR A PARTICULAR"

gives a file sized ~3.5M

That`s more than 1% of the kernel source.

What about the idea to shorten that licening information to a minimum , e.g. by shrinking that to a single, catchy line , linking to a special licensing file like COPYING or linking to the FSF website ?

please no flames, i know this idea could be pure dynamite for some people - but i thought 3.5M is worth this mail.

regards
roland

ps:
i`m not sure if that has been discussed already, but i didn`t find that in the archive. please ignore, otherwise.
________________________________________________________________________
n 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten!
Nur 3,99 EUR/Monat! http://www.maildomain.web.de/?mc=021114


2008-10-30 14:24:39

by Jörn Engel

[permalink] [raw]
Subject: Re: how much license information inside the kernel ?

On Thu, 30 October 2008 11:54:57 +0100, [email protected] wrote:
>
> i found that there is a LOT of repeating licensing information in the kernel.
>
> for me,
>
> find ./linux-2.6.27 -type f -exec cat {} \; |egrep "free software|GNU General Public License|Free Software Foundation|version 2 of the License|distributed in the hope|WITHOUT ANY WARRANTY|FITNESS FOR A PARTICULAR"
>
> gives a file sized ~3.5M
>
> That`s more than 1% of the kernel source.

Scary, isn't it?

One of the problems is that corporate lawyers require the full GPL
preample in any source file. As a result, a lot of developers inside
companies cannot publish code without it. Whether that makes any sense
is anyone's guess. But it doesn't cause much harm either, so better
leave the bloat where it is.

Jörn

--
Time? What's that? Time is only worth what you do with it.
-- Theo de Raadt

2008-10-30 16:13:29

by Roland

[permalink] [raw]
Subject: Re: how much license information inside the kernel ?

> On Thu, 30 October 2008 11:54:57 +0100, [email protected] wrote:
> >
> > i found that there is a LOT of repeating licensing information in the kernel.
> >
> > for me,
> >
> > find ./linux-2.6.27 -type f -exec cat {} \; |egrep "free software|GNU General Public License|Free Software Foundation|version 2 of the License|distributed in the hope|WITHOUT ANY WARRANTY|FITNESS FOR A PARTICULAR"
> >
> > gives a file sized ~3.5M
> >
> > That`s more than 1% of the kernel source.
>
> Scary, isn't it?

i?m not really scared, but it`s a really impressing amount. :)

> One of the problems is that corporate lawyers require the full GPL
> preample in any source file. As a result, a lot of developers inside
> companies cannot publish code without it. Whether that makes any sense
> is anyone's guess. But it doesn't cause much harm either, so better
> leave the bloat where it is.

i feared something like that.

so, if it`s not just a common bad habit to add those lines again and again
but something being forced by lawyers - it would indeed not being worth
the effort to adress this, as you would need to review and discuss every
single file containing those lines....

thanks for feedback

roland

__________________________________________________________________
"Run, Fatboy, Run" sowie "Rails & Ties" kostenlos anschauen!
Blockbuster-Gutscheine sichern unter http://www.blockbuster.web.de

2008-10-30 18:48:15

by Chris Snook

[permalink] [raw]
Subject: Re: how much license information inside the kernel ?

[email protected] wrote:
> hi,
>
> i found that there is a LOT of repeating licensing information in the
> kernel.
>
> for me,
>
> find ./linux-2.6.27 -type f -exec cat {} \; |egrep "free software|GNU
> General Public License|Free Software Foundation|version 2 of the
> License|distributed in the hope|WITHOUT ANY WARRANTY|FITNESS FOR A
> PARTICULAR"
>
> gives a file sized ~3.5M
>
> That`s more than 1% of the kernel source.
>
> What about the idea to shorten that licening information to a minimum
> , e.g. by shrinking that to a single, catchy line , linking to a
> special licensing file like COPYING or linking to the FSF website ?
>
> please no flames, i know this idea could be pure dynamite for some
> people - but i thought 3.5M is worth this mail.
>
> regards roland
>
> ps: i`m not sure if that has been discussed already, but i didn`t
> find that in the archive. please ignore, otherwise.

It may be 3.5 MB uncompressed, but disk space is cheap, and repeated
strings compress extremely well to save bandwidth. If you work with the
kernel source enough for this to be an issue, you should use git.
You'll download these license headers once, and never again unless the
copyright info gets changed by a patch. From a technical perspective,
the problem isn't nearly as bad as it looks, and it keeps the lawyers
happy, so it's really not worth messing with. There's plenty of
lower-hanging fruit in unifying drivers for similar hardware, unifying
32-bit and 64-bit architectures, and other things that make the code
more maintainable.

-- Chris

2008-10-30 19:02:59

by Roland

[permalink] [raw]
Subject: Re: how much license information inside the kernel ?

> [email protected] wrote:
> > hi,
> >
> > i found that there is a LOT of repeating licensing information in the
> > kernel.
> >
> > for me,
> >
> > find ./linux-2.6.27 -type f -exec cat {} \; |egrep "free software|GNU
> > General Public License|Free Software Foundation|version 2 of the
> > License|distributed in the hope|WITHOUT ANY WARRANTY|FITNESS FOR A
> > PARTICULAR"
> >
> > gives a file sized ~3.5M
> >
> > That`s more than 1% of the kernel source.
> >
> > What about the idea to shorten that licening information to a minimum
> > , e.g. by shrinking that to a single, catchy line , linking to a
> > special licensing file like COPYING or linking to the FSF website ?
> >
> > please no flames, i know this idea could be pure dynamite for some
> > people - but i thought 3.5M is worth this mail.
> >
> > regards roland
> >
> > ps: i`m not sure if that has been discussed already, but i didn`t
> > find that in the archive. please ignore, otherwise.
>
> It may be 3.5 MB uncompressed, but disk space is cheap, and repeated
> strings compress extremely well to save bandwidth. If you work with the
> kernel source enough for this to be an issue, you should use git.
> You'll download these license headers once, and never again unless the
> copyright info gets changed by a patch. From a technical perspective,
> the problem isn't nearly as bad as it looks, and it keeps the lawyers
> happy, so it's really not worth messing with. There's plenty of
> lower-hanging fruit in unifying drivers for similar hardware, unifying
> 32-bit and 64-bit architectures, and other things that make the code
> more maintainable.
>
> -- Chris
>

yes, convinced - it?s not worth the work to clean that up.
________________________________________________________________________
Schon geh?rt? Bei WEB.DE gibt' s viele kostenlose Spiele:
http://games.entertainment.web.de/de/entertainment/games/free/index.html

2008-11-02 16:40:17

by Pavel Machek

[permalink] [raw]
Subject: Re: how much license information inside the kernel ?

On Thu 2008-10-30 11:54:57, [email protected] wrote:
> hi,
>
> i found that there is a LOT of repeating licensing information in the kernel.
>
> for me,
>
> find ./linux-2.6.27 -type f -exec cat {} \; |egrep "free software|GNU General Public License|Free Software Foundation|version 2 of the License|distributed in the hope|WITHOUT ANY WARRANTY|FITNESS FOR A PARTICULAR"
>
> gives a file sized ~3.5M

Now gzip it :-).

Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

2008-11-03 21:37:24

by Bodo Eggert

[permalink] [raw]
Subject: Re: how much license information inside the kernel ?

Pavel Machek <[email protected]> wrote:
> On Thu 2008-10-30 11:54:57, [email protected] wrote:

>> i found that there is a LOT of repeating licensing information in the kernel.
>>
>> for me,
>>
>> find ./linux-2.6.27 -type f -exec cat {} \; |egrep "free software|GNU General
>> Public License|Free Software Foundation|version 2 of the License|distributed
>> in the hope|WITHOUT ANY WARRANTY|FITNESS FOR A PARTICULAR"
>>
>> gives a file sized ~3.5M
>
> Now gzip it :-).

Now multiply it by the number of users.