Skip to content

Fix install of packages bundling generated source in dist/ #4012

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

Merged
merged 2 commits into from
Oct 21, 2016
Merged

Conversation

hvr
Copy link
Member

@hvr hvr commented Oct 20, 2016

Packages like alex include pre-generated lexer/parser source
in their source tarball as e.g.

dist/build/alex/alex-tmp/Scan.hs
dist/build/alex/alex-tmp/Parser.hs

to avoid having to have alex already installed before building
alex...

Unfortunately, 8dc39db broke
packages relying on this accidental feature by changing where the
distdir points to. This patch partly reverts that commit and
therefore addresses the regression aspect of #4009.

Packages like `alex` include pre-generated lexer/parser source
in their source tarball as e.g.

  dist/build/alex/alex-tmp/Scan.hs
  dist/build/alex/alex-tmp/Parser.hs

to avoid having to have alex already installed before building
alex...

Unfortunately, 8dc39db broke
packages relying on this accidental feature by changing where the
distdir points to. This patch partly reverts that commit and
therefore addresses the regression aspect of #4009.
Copy link
Contributor

@dcoutts dcoutts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

We should really fix the pre-processed src thing though.

@ezyang
Copy link
Contributor

ezyang commented Oct 20, 2016

Ahahahaha, so that's what it is. LGTM.

-- compatibility we put the dist dir within it
-- (i.e. tmp/src2345/foo-1.0/dist/).
--
-- Unfortunately. a few custom Setup.hs scripts do not respect
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/./,/

@hvr hvr merged commit a7fb9b9 into master Oct 21, 2016
@hvr hvr deleted the pr/issue-4009 branch October 21, 2016 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants