-
-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add licensecheck target, copied from macports-infrastructure #211
Conversation
I'm not a fan of the "kitchen sink" approach of adding every feature to the |
Normally, I'd agree, but I really don't see another location where we could put this to make it useful and discoverable for porters.
Yeah, I had a feeling this was incomplete; I mostly wrote it on a whim after finding the The reason I tore it out was that I really couldn't find a suitable location for the database, and having a database argument to a Personally, I find the ability to check why there are no archives for a given port quite useful; archives are great 🙂 (One slightly unrelated thought I had was that the proper name for this command would actually be |
Indeed the ability for users to check if a port is distributable is useful. I use a shell script wrapper around the
If the problems are resolved and this PR is accepted, it would close https://trac.macports.org/ticket/60315. The existing lists of distributable licenses and license conflicts, as well as a new list of known nondistributable licenses (to implement https://trac.macports.org/ticket/60316), should be abstracted out into data files that get stored in _resources/port1.0/ in the ports tree so that they can be updated without requiring a new release of MacPorts base. |
As Ryan mentioned in https://trac.macports.org/ticket/60315, having the license data in the ports tree under _resources would be better as it could be updated w/o new macport release. |
@jmr Josh, if the license data itself is moved to After trying in vain to figure out the license chain for See: https://trac.macports.org/ticket/54633#comment:14 Your folks' thoughts? |
FYI, I've updated Dan's work to source license data from Base repo: Ports repo, including updated BASH completions: |
Thanks for picking this up! |
No problem, thanks for all of your great work on this Dan! |
That would partially solve one of the three issues I raised.
Better human-readable reporting of license conflict reasons is a separate issue (and a separate PR IIRC). |
In terms of sharing the data and logic, can the MacPorts infrastructure scripts utilize MacPorts base? (For example, simplifying That would alleviate all of your concerns, correct? |
And if we don't want the infrastructure scripts to depend on MacPorts base, where would the shared functionality be sourced from? |
This essentially copies over
port_binary_distributable.tcl
anddistributable_lib.tcl
from the infrastructure project, but with the database support removed as it seemed a poor fit for the general structure of MacPorts. My main motivation is that this is rather nice information to have, and that it would help answer the question why a given port doesn't have binaries. As is, you have to either clone the infrastructure project, or check the build logs for that.