You are not logged in.
Hi,
As I care much about Free Software I wanted to find out, how much unfree software I use with arch.
I hacked up some scripts that show me which licences I use mostly, etc., but I found out that most packages most lack the license description.
I have 673 packages installed, and here are the licenses used:
350 None
203 GPL
113 LGPL
26 custom
7 BSD
5 MPL
2 APACHE
2 MIT
1 GPL2
1 CCPL-Attribution-ShareAlike-2.5
1 zlib
1 custom:none
1 custom:ISC
1 LPGL
1 lgpl
1 ASL-1.1
1 CUSTOUM
1 X11
1 GFDL
1 cracklib
I was a little bit confused, why there are so many packages without any licence specified.
I think this should be fixed ASAP, especially to create a good basis for this: http://bugs.archlinux.org/task/6510
btw, all my packages (except two) are from current or testing!
Regards ![]()
PS: I will post my scripts very soonish, they just need some more clean-ups.
Last edited by gummibaerchen (2007-07-29 12:06:01)
Offline
I did mention this in the "repo reorganization" thread a little while ago, since someone mentioned using the License field since someone mentioned using the license field as an alternative to a non-free repository, so I thought I'd check the viability of it. No one responded to it then, I'm not particuarly bothered by this so I didn't follow it up with a bug report, but it should really be fixed.
My result the was 462 out of 696 packages without a licence entry. My current result is 455 out of 718 without a licence entry. Which looks like a slight improvement.
I didn't even bother with a complete script to get my results I just used a long command with lots of pipes. Here is my full list
455 None
149 GPL
35 LGPL
25 custom
14 BSD
11 GPL LGPL
5 GPL custom
3 LGPL MPL
3 APACHE
2 MPL GPL
2 LGPL GPL
2 lgpl
2 GPL2
2 custom
1 ZLIB
1 zlib
1 PHP
1 MPL GPL LGPL
1 MIT
1 GPL LGPL MIT
1 CUSTOUM
1 cracklib
The command to get total packages installed
pacman -Qi | wc -lAnd the command to get the licence counts
pacman -Q | cut -d" " -f1 | xargs pacman -Qi | grep Licence | cut -d\: -f2 | sort | uniq -c | sort -grOffline
i might be mistaking, but i think that most of those packages have been built a long time ago, when i guess the lisence array wasnt part of pkgbuilds.
& since there were no updates they havent been built lately again
btw the command to get the licence counts returns nothing here
Last edited by dolby (2007-07-29 12:27:24)
There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums. That is why we avoid it. -- ewaller (arch linux forum moderator)
Offline
Hi retsaw,
I see that this is really a problem and therefore the next script I will write will list packages with a particular license (most interesting: None).
But how should this be handled? Should all people who find missing licenses write to the maintainer or would a post on some mailinglist be enough?
btw: my "scripts" aren't that big, but a little bit longer than yours, as I am not the best in bash programming...
---
in order to get your script working some may have to change from "Licence" (British English) to "License" (American English).
Seems like pacman is localized ![]()
$ pacman -Q | cut -d" " -f1 | xargs pacman -Qi | grep License | cut -d\: -f2 | sort | uniq -c | sort -grLast edited by gummibaerchen (2007-07-29 12:36:11)
Offline
229 License : None
132 License : GPL
34 License : LGPL
23 License : custom
12 License : GPL LGPL
4 License : BSD
3 License : GPL custom
2 License : MPL GPL
2 License : LGPL MPL
2 License : LGPL GPL
1 License : zlib
1 License : vim
1 License : unknown
1 License : selflicensed
1 License : lgpl
1 License : custom:none
1 License : custom:ISC
1 License : custom:GPL
1 License : cracklib
1 License : MPL GPL LGPL
1 License : MIT
1 License : ICU License
1 License : GPL2
1 License : GPL-2
1 License : GPL LGPL MPL
1 License : GPL LGPL MIT
1 License : CUSTOUM
1 License : ASL-1.1 X11
Well I get similar results. I wonder who put CUSTOUM as the license
Offline
(not for a flame wars, just plain curiosity)
Why do you care?
Offline
191 None
73 GPL
24 LGPL
14 custom
8 GPL LGPL
4 BSD
3 GPL custom
2 MPL GPL
2 LGPL MPL
1 zlib
1 lgpl
1 custom
1 cracklib
1 MPL GPL LGPL
1 LPGL
1 LGPL GPL
1 GPL2
1 GPL LGPL MIT
1 CCPL-Attribution-ShareAlike-2.5
Yeah I agree, there should be a cleanup on this.
Use the Source, Luke!
Offline
Well I get similar results. I wonder who put CUSTOUM as the license
grep -r CUSTOUM /var/lib/pacman/local
/var/lib/pacman/local/vim-7.1.12-1/desc:CUSTOUMmaybe?
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
nikron wrote:Well I get similar results. I wonder who put CUSTOUM as the license
grep -r CUSTOUM /var/lib/pacman/local /var/lib/pacman/local/vim-7.1.12-1/desc:CUSTOUMmaybe?
yeah, Vim has that as license:
$ pacman -Qi vim | grep Licen
License : CUSTOUM(not for a flame wars, just plain curiosity)
Why do you care?
Because in future pacman will have an option to just install packages which have a certain license and therefore we must have all the licenses right!
I think there should be mails to all maintainer in order to make them set the license right.
Otherwise the new function won't have any use for anyone ![]()
Offline
Someone has been emailing us, I think - at least, this weekend I got an email about one of my packages' licenses (that had already been fixed in CVS but not rebuilt) from someone who said they were checking a bunch of them
Regardless, this has been bugging me for a while. Sometime in the near future I might do a raid of [extra] to add/fix license tags all over the place.
Offline
Someone has been emailing us, I think - at least, this weekend I got an email about one of my packages' licenses (that had already been fixed in CVS but not rebuilt) from someone who said they were checking a bunch of them
That was me.
Regardless, this has been bugging me for a while. Sometime in the near future I might do a raid of [extra] to add/fix license tags all over the place.
Do you have already scripts in place to this? Because I was going to write something to find packages without any license, but I you already have such scripts there would not be much sense in it...
BTW: Is it important to have quotation marks around the license?
Sometimes I saw things like this:
license=(CUSTOM)But in the Packaging Standards[1] it states to have it like this
license=('GPL')Maybe we can have this fixed as well, if it is important, as it wouldn't be much extra work..
But maybe I just split hairs.
Offline
That was me.
Aha!
Do you have already scripts in place to this? Because I was going to write something to find packages without any license, but I you already have such scripts there would not be much sense in it...
Hm... I don't know of any scripts that officially do this, however I have a script I wrote a while back to check dependencies that I could easily modify to check the licenses instead. In fact, I should probably submit these to the dev mailing list to help others out.
BTW: Is it important to have quotation marks around the license?
Nope, it's more of a stylistic thing - I prefer them, but they're not necessary.
Offline
In the PKGBUILD the marks are the usual meaning they have in bash scripts?
i.e., ' disables all special meaning of characters
" disables special meaning of many characters (notably does not disable the meaning of $)
If it is so, why putting marks around the licences? It is just for having only one style when : appears?
Offline
Indeed they are the usual bash-script meaning. Like I said, for most cases (GPL, LGPL, etc...) it's just a stylistic choice - I prefer it, think it's more consistent and clear, but that's just my opinion
Offline
What's the difference between custom and custom?
339 None
127 GPL
40 LGPL (++)
31 custom <-- ???
10 GPL LGPL (*)
6 custom <-- ???
6 GPL custom
4 BSD
3 LGPL MPL
3 APACHE
2 MPL GPL
2 LGPL GPL (*)
1 zlib (+)
1 lgpl (++)
1 cracklib
1 ZLIB (+)
1 MPL GPL LGPL (**)
1 MIT
1 LPGL (shouldn't this be lgpl?)
1 ICU License
1 GPL LGPL MPL (**)
1 GPL LGPL MIT
1 CUSTOUM (custoum indeed)Regarding (*) and (**), licenses should be in alphabetical order.
Regarding (+) and (++), capitalisation should be the norm.
Offline
What's the difference between custom and custom?
Perhaps a whitespace issue?
1 LPGL (shouldn't this be lgpl?)
Yes.
1 CUSTOUM (custoum indeed)
Indeed, needs to be fixed.
Regarding (*) and (**), licenses should be in alphabetical order.
Is that really necessary? Seems an awfully arbitrary decision to enforce. I suppose pacman could ensure order, but it's fluff.
Regarding (+) and (++), capitalisation should be the norm.
The "norm" should be whatever the directory structure is inside /usr/share/licenses. That happens to be capitalized, so in this case I agree with you.
Offline
@gummibaerchen
So if the program you need for doing your job have a licence you do not like you will reprogram it from scratch? LOL
Joking a part, I understood.
Is that really necessary? Seems an awfully arbitrary decision to enforce. I suppose pacman could ensure order, but it's fluff.
If you do not you may have that
MPL GPL LGPL
LGPL MPL GPL
GPL LGPL MPLare three different licences...
Last edited by ezzetabi (2007-07-30 18:52:52)
Offline
Cerebral wrote:Is that really necessary? Seems an awfully arbitrary decision to enforce. I suppose pacman could ensure order, but it's fluff.
If you do not you may have that
MPL GPL LGPL LGPL MPL GPL GPL LGPL MPLare three different licences...
No, those are three lists of three licenses each. They don't combine to become one license - that's just an issue in the quick sed script that was put together to list all these licenses. It's just an aesthetic issue, no more.
Offline
I see, and what about customs licences? It may means anything from 'just send me a postcard if you wish' to 'if you read this you have to buy my software',,,
How the licences filter can manage that?
Offline
I see, and what about customs licences? It may means anything from 'just send me a postcard if you wish' to 'if you read this you have to buy my software',,,
How the licences filter can manage that?
I think most people who use that filter will filter for Free/GPL compatible licenses and therefore custom is not an option for them.
Really custom licenses are hard to specify. But are there many projects using a modified GPL/BSD/MIT/whatever as their _only_ license?
For example Vim, which has a custom license, has a GPL compatible license, so maybe we need some way to define that.
Offline
Do we really need this "feature" ?
Imho its against the KISS principle and the arch philosophy, only fullfilling the wishes of some fuddy-duddy geeks.
Arch never needed that and will never ever need that, the users want just the packages, and dont care about the rest. (dealing with licenses, non-free repo etc)
Same goes for the non-free repo stuff discussed before.
The effort from the Devs needed for these things would be more useful for something else (something that matters) imho ![]()
Offline
Do we really need this "feature" ?
Imho its against the KISS principle and the arch philosophy, only fullfilling the wishes of some fuddy-duddy geeks.
Arch never needed that and will never ever need that, the users want just the packages, and dont care about the rest. (dealing with licenses, non-free repo etc)
Same goes for the non-free repo stuff discussed before.The effort from the Devs needed for these things would be more useful for something else (something that matters) imho
I think the filter is a nice idea and is much easier/simpler than what others do.
And the effort to implement that feature doesn't seem to be such big.
Coming to have the right license in the PKGBUILD: If there is such a field it should be filled out correctly IMHO.
Offline
(not for a flame wars, just plain curiosity)
Why do you care?
Some of the licences (GPL...) require a copy of the licence text to be distributed with the software. I don't think it applies to the PKGBUILDs in AUR (since Arch is only distributing a recipe that enables the user to download the software itself from another distributor). But for the binary packages, not setting the licence field is, as far as I can see, a breach of the licence. Arch Linux could potentially get into trouble.
Of course, I'm not a lawyer, so I'm not sure.
By the way, currently makepkg refuses to build a package that doesn't specify an arch. Possibly this could be applied to licence field too?
Offline
I was thinking about a real example. apsfilter is (GPL custom:postware), I do not think Klemm actually becomes angry if you do not send the post card to him... Yet, it is not a true pure GPL. It would be excluded?
Offline
Do we really need this "feature" ?
Imho its against the KISS principle and the arch philosophy, only fullfilling the wishes of some fuddy-duddy geeks.
Arch never needed that and will never ever need that, the users want just the packages, and dont care about the rest. (dealing with licenses, non-free repo etc)
Same goes for the non-free repo stuff discussed before.The effort from the Devs needed for these things would be more useful for something else (something that matters) imho
I found this mail interesting :
http://www.archlinux.org/pipermail/arch … 01187.html
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline