But I guess this is really more of a pro GPL site than it is a pro-Linux site. I am more interested in the Freedom part. Yes there are a few overlaps here and there. I want there to be as much guaranteed Free code out there as possible. More Free, less proprietary. BSD is more like public domain code than it is Free code. It can be included in proprietary software and the source does not have to be released with said proprietary software, thus working against the open source effort IMHO (source code forced into slavery). The GPL does not allow this to happen. I am not so much a fan of GNU as I am the GPL itself.
And regarding your thoughts about the amount of software under the BSD license. I just did a package count on my main desktop that I just upgraded to Fedora. I have a lot of software installed on it, 1040 packages to be exact. Of those 1040 packages, only 67 packages show up with the "BSD" license, 4 more show up with "BSD/GPL dual license", 1 shows up as "BSD/GPL", 1 more shows up as "GPL/BSD", and 2 show up with "GPL or BSD" for a total of 75 packages that use the BSD license either all or in part. There are a few more that use "BSDish" or "BSDlike" licenses but not many, and they really don't use the BSD license anyway but some other home-brew license that happens to be similar to the BSD license.
I think you were under the impression there is more software than there is in the typical Linux distro licensed under the BSD license. Some people incorrectly attribute Apache and XFree86 as using the BSD license. Maybe that's what you are thinking as well...
The rpm commands I used for this are:
Total installed RPMS:
- Code: Select all
$ rpm -qa | wc -l
Get the BSD licensed software installed:
- Code: Select all
$ rpm -qa --qf "%{LICENSE}\n" | grep -i bsd | egrep -v "ish|like|style" | sort
Count it:
- Code: Select all
$ rpm -qa --qf "%{LICENSE}\n" | grep -i bsd | egrep -v "ish|like|style" | sort | wc -l
Print package name and License only:
- Code: Select all
$ rpm -qa --qf "%{LICENSE} - %{NAME}\n" | grep -i bsd | egrep -v "ish|like|style" | sort
Here is my list (some of which didn't come with my distro):
http://voidmain.is-a-geek.net/files/misc/bsdpkgs.txt
And looking at that list I see there are some things I need to remove as they will never get used.
Of the above list of software there are only a few that I heavily depend on which I am thankful for. But that is a far cry different than BSD the kernel, the distribution.
Now, since I'm counting I might as well do it up right. Let's take the popular distribution Fedora Core 1. I just ran some numbers on it:
- Fedora Package Count: 1,466
- BSD or Partial BSD package count: 112 (7.6% of the total number)
- Full Fedora Installed Size: 3,716,309,703
- BSD Installed Size: 205,116,458 (5.5% of the total installed size)
Now as mentioned before some of the BSD packages I used in the above counts are actually dual licenced with GPL so it appears that the amount of code included with Fedora that uses the BSD license is somewhere less than 5.5%. I only counted the 3 install disks and not the 3 SRPM (source) disks. I'm sure the percentages are roughly the same since the source disks are just the source code for the binary disks. On the other hand, the BSD license does not require that the source be distributed with the binaries so it is entirely possible that the 3 SRPM CDs are 100% GPL, but I don't believe that to be the case.
If you are interested I got the installed sizes by querying/summing the "SIZE" field in the headers of the RPMS in question sorta like:
Now remember, just because someone chooses to use the BSD license and not the GPL does not really warrant attributing that software to the BSD distributions or group. Take PostgreSQL for instance. They are really a project all on their own. They did choose to use the BSD license rather than the GPL but PostgreSQL did not come about because of the BSD distributions.
On the other side of the house, here are the GPL numbers:
- GPL, LGPL, or dual/multi licensed package count: 990 (67.5% of the total number)
- GPL LGPL or dual/multi licensed installed size: 3,660,988,456 (98.5% of the total installed size)
Of course you'll notice that the percentages of GPL and BSD licensed packages add up to over 100% but that's because there is some overlap. The dual licensed software is included in both figures. Also the actual amount of GPL/LGPL software is surely less than the above numbers would indicate. Take the Mozilla packages for instance. There is some GPL code included with those packages so the GPL is listed in the License along with the Mozilla license and others. We all know that a very small amount of GPL/LGPL code percentage-wise makes up the Mozilla packages so that has to be taken into my non-scientific analysis.
At any rate, I think you would have to agree that your 27% figure is extremely low, and you are under the impression that there is far more BSD code in the average Linux distro than there really is.