-
Notifications
You must be signed in to change notification settings - Fork 710
Please add --licensedir flag to cabal-install #5281
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
Comments
there's a problem though: for tooling I'm working on I need to be able to locate the license files; the docdir is registered in the pkg-db; so locating the licence file is doable now by querying the pkg-db for the docdir, and working from there. If we add a licensdir, we need to extend the IPI format to register this new location moreover, we have additional problems with the current install-logic which I intended to address to avoid licence files overwriting or being overwritten by name-clashes (ticket pending) |
@hvr can you explain in more detail? Eg I don't see any docdir in package .conf files? Anyway seems to me Cabal happily breaks API for major versions, though I see what you are saying :) |
- needed for modern RPM-based Linux distros like Fedora and SUSE - still defaults to docdir
- needed for modern RPM-based Linux distros like Fedora and SUSE - defaults to docdir
Breaking the API isn't a big deal if all you need to do is to change your code; but in this case you'd make it impossible to adapt to the new API, as you'd remove the ability to locate those files via the pkg-db metadata |
- needed for modern RPM-based Linux distros like Fedora and SUSE - defaults to docdir
So we need to add licensedir to pkg-db too? I just don't understand how docdir is getting into it? |
Currently, cabal install license files into the location given by
--docdir
. Many distributions, however, have a special location into which license files (and nothing else) should be placed, i.e. both SUSE and Fedora use/usr/share/licenses/PKGNAME
for that purpose. It would be nice if we could have Cabal install those license files into the correct location right away, instead of having to move the files around after the fact.The text was updated successfully, but these errors were encountered: