Skip to content
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

Track license-file in ghc package database. #701

Open
bos opened this issue May 24, 2012 · 5 comments
Open

Track license-file in ghc package database. #701

bos opened this issue May 24, 2012 · 5 comments
Labels
Cabal: other old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 status: consider closing type: enhancement
Milestone

Comments

@bos
Copy link
Contributor

bos commented May 24, 2012

(Imported from Trac #710, reported by elliottt on 2010-07-12)

ghc-pkg has supported (since 6.4) a license-file field in the package database. It would be useful to make this information available inside of Cabal, as guesses have to be made as to the location of the license file, currently.

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by elliottt on 2010-07-12)

Binary package parser changes

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by elliottt on 2010-07-13)

Thread license-file through Cabal

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by elliottt on 2010-07-13)

I've attached two patches for cabal and ghc, to support the tracking of the license-file field. Once a package is registered, ghc-pkg will now track the license-file field.

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by @dcoutts on 2010-07-13)

I have to admit, I'm slightly confused here. As far as I can see, ghc-pkg does not currently support any license-file field, but these patches add support to ghc-pkg (and Cabal) for it. Am I missing something?

If that's the case, then it changes the nature of the decision slightly, it's not just a matter of adding support for an existing feature, but of changing the standard Cabal-specified format that all compilers use for representing installed packages. That needs slightly more buy-in and support from the compiler authors.

It also touches on the issue of what information the package databases should actually track (especially when it comes to installed files like documentation files, see #674).

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by elliottt on 2010-08-09)

This page in the documentation states that ghc-pkg will deal with a license-file field, which it currently does not:

http://www.haskell.org/ghc/docs/6.12.2/html/users_guide/packages.html#installed-pkg-info

The patch addresses this by adding support for that field. Documentation since 6.4 has claimed that this field is managed, though no support has ever existed for it.

@ttuegel ttuegel added this to the _|_ milestone Apr 23, 2015
@gbaz gbaz changed the title Track license-file Track license-file in ghc package database. Feb 7, 2018
@andreabedini andreabedini added the old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cabal: other old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 status: consider closing type: enhancement
Projects
None yet
Development

No branches or pull requests

3 participants