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

Stack doesn't install PO files properly #1508

Closed
volhovm opened this issue Dec 13, 2015 · 2 comments
Closed

Stack doesn't install PO files properly #1508

volhovm opened this issue Dec 13, 2015 · 2 comments
Milestone

Comments

@volhovm
Copy link

volhovm commented Dec 13, 2015

There's a related problem here.
Distribution.Simple.I18N.GetText is common to work with locales and translations. It overrides cabal hooks in order to install .po files to /usr/share/locale/....
This feature still works well with stack 0.1.6.0, but not anymore in version 0.1.8.0. In 0.1.6.0 .po translations are copied to .stack-work/.../share/... on stack build, but with new version it doesn't happen.

@mgsloan
Copy link
Contributor

mgsloan commented Dec 14, 2015

Yes, stack build now invokes Setup.hs copy and register instead of running Setup.hs install. This means postCopy gets invoked instead of postInstall. Here's the issue that caused this change:
#1203 . IIRC, it's also what cabal install does?

Here's how to implement postInstall in terms of postCopy: ghcjs/ghcjs@d5c67ef

@mgsloan
Copy link
Contributor

mgsloan commented Dec 14, 2015

Please re-open if there's something stack can do better here. Unfortunately, there's not much we can do about the postInst / postCopy stuff.

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

No branches or pull requests

2 participants