Skip to content

sdist fails with non-installed custom-depends: #4293

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

Closed
phadej opened this issue Feb 3, 2017 · 5 comments · Fixed by #5389
Closed

sdist fails with non-installed custom-depends: #4293

phadej opened this issue Feb 3, 2017 · 5 comments · Fixed by #5389

Comments

@phadej
Copy link
Collaborator

phadej commented Feb 3, 2017

$ cabal sdist
[1 of 1] Compiling Main             ( dist/setup/setup.hs, dist/setup/Main.o )
dist/setup/setup.hs:1:1: error:
    Failed to load interface for ‘Distribution.Extra.Doctest’
    Use -v to see a list of the files searched for.

Do we need cabal new-sdist?

@phadej
Copy link
Collaborator Author

phadej commented Feb 3, 2017

Or is there some workaround (the dependency is in store), or how to say to sdist "Don't configure" / "Pretend build-type: Simple".

@23Skidoo
Copy link
Member

23Skidoo commented Feb 3, 2017

Do we need cabal new-sdist?

Probably yes.

@23Skidoo
Copy link
Member

23Skidoo commented Feb 3, 2017

or how to say to sdist "Don't configure" / "Pretend build-type: Simple".

I don't think there is a way to do this now, but it should be possible to add by tinkering with D.S.SetupWrapper.

@ezyang
Copy link
Contributor

ezyang commented Feb 4, 2017

Workaround should be to set builddir to new-build's created dist directory.

cocreature added a commit to cocreature/emacs-keys that referenced this issue May 5, 2017
See haskell/cabal#4293 for the issue
responsible for breaking the travis build with new-build
@fgaz fgaz self-assigned this Aug 7, 2017
@RyanGlScott
Copy link
Member

It should be noted that this issue prevents the gl package from using new-build entirely.

@fgaz fgaz removed their assignment Mar 13, 2018
@typedrat typedrat self-assigned this Jun 12, 2018
@typedrat typedrat mentioned this issue Jun 20, 2018
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants