Okay, I went ahead and created the issue: List licenses on the search results page · Issue #650 · ros-infrastructure/rosindex · GitHub .
I also found a very old issue on this topic list of all packages known to ros index with their licenses · Issue #181 · ros-infrastructure/rosindex · GitHub . The issue contains a script that can at least create the CSV with licenses locally.
I ran it for a few distros and here are some trimmed histograms. I’ve put in bold known SPDX identifiers. Apparently, they are there, but the majority does not follow SPDX (including all core ROS 2!).
Noetic
BSD: 1401
Apache 2.0: 225
MIT: 164
license not found: 88
Apache-2.0: 42
BSD-3-Clause: 27
Apache License 2.0: 27
GPLv3: 26
BSD-3: 25
LGPLv3: 19
LGPL: 19
GPL: 16
Apache 2: 13
Proprietary: 11
GPLv2: 10
BSD 3-Clause: 8
GPL-3.0-or-later: 6
EPL: 6
Humble
Apache License 2.0: 764
BSD: 650
Apache-2.0: 191
MIT: 182
Apache 2.0: 169
BSD-3-Clause: 141
GPLv3: 40
Apache 2: 33
Apache License, Version 2.0: 31
license not found: 21
BSD Clause 3: 12
LGPLv3: 11
BSD 3-clause: 10
Apache2: 10
BSD-2-Clause: 8
Apache-2: 7
LGPL: 4
GPL-3.0-or-later: 4
GPL-3.0: 4
GPL: 4
BSD 3-Clause: 4**
MIT License: 3
LGPL-2.1-or-later: 3
GPL-2.0-or-later: 3**
BSD-3: 3
Jazzy
Apache License 2.0: 713
BSD: 601
Apache-2.0: 257
MIT: 218
Apache 2.0: 156
BSD-3-Clause: 148
Apache License, Version 2.0: 34
Apache 2: 31
GPLv3: 30
LGPLv3: 9
BSD-2-Clause: 9
Apache2: 9
license not found: 7
GPL-3.0-only: 7
Apache-2: 7
GPL-2.0-or-later: 5
zlib: 4
LGPL-2.1-or-later: 4
LGPL: 4
GPL: 4
Public Domain: 3
MIT License: 3
GPLv2: 3
GPL-3.0: 3
BSD-3: 3
BSD-2: 3
BSD 3-clause: 3
BSD 3-Clause: 3
ALv2: 3
Lyrical
Apache License 2.0: 585
BSD: 511
Apache-2.0: 161
BSD-3-Clause: 123
MIT: 120
Apache 2.0: 94
Apache License, Version 2.0: 35
GPLv3: 30
license not found: 25
LGPLv3: 9
BSD-2-Clause: 9
Apache2: 9
Apache-2: 7
GPL-3.0-only: 5
GPL-2.0-or-later: 4
GPL: 4
MPL-2.0: 3
MIT License: 3
LGPL-2.1-or-later: 3
LGPL: 3
GPL-3.0: 3
BSD-2: 3
BSD 3-clause: 3
BSD 3-Clause: 3
Apache 2: 3
ALv2: 3
Public Domain: 2
Rolling
Apache License 2.0: 579
BSD: 479
MIT: 117
BSD-3-Clause: 114
Apache-2.0: 109
Apache 2.0: 95
license not found: 40
GPLv3: 30
Apache License, Version 2.0: 13
LGPLv3: 9
BSD-2-Clause: 9
Apache2: 9
Apache-2: 7
GPL-3.0-only: 5
GPL-2.0-or-later: 4
GPL: 4
MPL-2.0: 3
MIT License: 3
LGPL-2.1-or-later: 3
GPL-3.0: 3
BSD-2: 3
BSD 3-clause: 3
BSD 3-Clause: 3
Apache 2: 3
ALv2: 3
Public Domain: 2
MIT-0: 2
LGPL: 2
GNU Lesser Public License 2.1: 2
CC-BY-3.0: 2
BSL-1.0: 2
A few tables from Gemini
I haven’t checked these tables row-by-row, but a quick look says they’re consistent with the exact data from the tables above.
And percentage of total distro packages:
And with some normalization of the license names: