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

Library vs. executalbe dependencies wrong #507

Closed
nomeata opened this issue Aug 19, 2015 · 2 comments
Closed

Library vs. executalbe dependencies wrong #507

nomeata opened this issue Aug 19, 2015 · 2 comments

Comments

@nomeata
Copy link

@nomeata nomeata commented Aug 19, 2015

Hi,

the gitit cabal file just made the Debian packaging infrastructure trip over. The reason seems to be that there are certain dependencies (most of them, actually) are only listed as dependencies of the executable, but not of the libraries. For example, Network/Gitit/Authentication.hs is actually part of the library, and it uses Network.Captcha.ReCaptcha, which is in recaptcha, which is only listed in the executable’s build-depends.

Why do you not move all the depends to the library section, and have the executable just build-depend on the gitit library?

Greetings,
Joachim

@jgm

This comment has been minimized.

Copy link
Owner

@jgm jgm commented Aug 19, 2015

Yes, that's clearly the way to go. This cabal file dates
from before cabal allowed you to have an executable depend
on a library defined in the same cabal file, and I guess I
never got around to updating it. I'll try to do that soon.

+++ Joachim Breitner [Aug 19 15 08:47 ]:

Hi,

the gitit cabal file just made the Debian packaging infrastructure trip over. The reason seems to be that there are certain dependencies (most of them, actually) are only listed as dependencies of the executable, but not of the libraries. For example, Network/Gitit/Authentication.hs is actually part of the library, and it uses Network.Captcha.ReCaptcha, which is in recaptcha, which is only listed in the executable’s build-depends.

Why do you not move all the depends to the library section, and have the executable just build-depend on the gitit library?

Greetings,
Joachim


Reply to this email directly or view it on GitHub:
#507

@jgm

This comment has been minimized.

Copy link
Owner

@jgm jgm commented Aug 19, 2015

This should be fixed by 0.12, just released. Let me know if not.

@jgm jgm closed this Aug 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.