SailfishOSS

Licenses per packages (not necessarily conclusive, taken from 1.1.0.39 almost clean system), proprietary packages:

This still needs some work, like assigning each openly licensed package with a source code repository. This will be a large task, but can be done if community really needs to know where the sources are.

Vaarainjärvi

= Non OSS packages =

= OSS packages =

= Misc =

Command for extraction (Non-OSS and OSS), used by locusf

rpm -qa --queryformat '%{name}, %{version}, %{license}\n \n'|grep -e "Proprietary" -e "TBD" -e "TODO"

rpm -qa --queryformat '> %{name}, %{version}, %{license}\n'|grep -v -e "Proprietary" -e "TBD" -e "TODO"

Python script to parse data and format, used by SK_work Will be pushed to github at some point.

f = open("rpms", 'r') proprietary = ["Proprietary", "TBD", "TODO", "Nokia", "LICENSE", "Jolla", "Myriad Group AG.", "Other", "Proprietary, BSD"]
 * 1) !/usr/bin/python

ossEntries = [] propEntries = [] sources = {} oss = open("out-oss.txt", 'r') for line in oss: line = line.replace("'''", "") splitted = line.split("||") if len(splitted) == 4: name = splitted[0].replace("|", "").strip source = splitted[3].strip if len(source) > 0: sources[name] = source oss.close print("Old sources found %s" % len(sources)) for line in f: 	splitted = line.strip.split(';') if len(splitted) == 4: name = splitted[0] license = splitted[2] source = "" if name in sources: source = sources[name] if "github.com/nemomobile" in splitted[3] or "github.com/sailfish" in splitted[3]: source = splitted[3] entry = (splitted[0], splitted[1], license, source) if not name.startswith("harbour"): if license in proprietary: propEntries.append(entry) else: ossEntries.append(entry) else: print(line) f.close ossEntries = sorted(ossEntries, key=lambda entry: entry[0]) propEntries = sorted(propEntries, key=lambda entry: entry[0]) print("OSS packages found %s" % len(ossEntries)) print("Proprietary packages found %s" % len(propEntries)) def writeFile(file, entries): out = open(file, 'w') out.write("{| class=\"wikitable sortable\"\n") out.write(" ! Name !! Summary !! License !! Source \n") for entry in entries: out.write(" |-\n") out.write(" | " + entry[0] + " || " + entry[1] + " || " + entry[2] + " || " + entry[3] + "\n") out.write(" |}\n") out.close writeFile("out-oss.txt", ossEntries) writeFile("out-prop.txt", propEntries)
 * 1) Load old source entries