<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 16, 2016 at 9:48 AM, Simon Jakobi <span dir="ltr"><<a href="mailto:simon.jakobi@googlemail.com" target="_blank">simon.jakobi@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi!<br>
<span><br>
> So whats the official way of putting the -fgtk3 flag into stack?<br>
<br>
</span>To pass that flag to poppler, the syntax is<br>
<br>
--flag poppler:gtk3<br></blockquote><div><br></div><div>When I try stack build --flag poppler:gtk3<br></div><div> I get<br>=================<br>-- Failure when adding dependencies: <br> hoodle-core: needed (>=0.15.0 && <0.16), couldn't resolve its dependencies<br> needed for package hoodle-0.4.999<br><br>-- Failure when adding dependencies: <br> hoodle-publish: needed (>=0.2), couldn't resolve its dependencies<br> hoodle-render: needed (>=0.5.0 && <0.6), couldn't resolve its dependencies<br> poppler: needed (>=0.12.2.2), couldn't resolve its dependencies<br> needed for package hoodle-core-0.15.999<br><br>-- Failure when adding dependencies: <br> hoodle-render: needed (>=0.5.0), couldn't resolve its dependencies<br> needed for package hoodle-publish-0.2.0<br><br>-- Failure when adding dependencies: <br> poppler: needed (>=0.12.2.2), couldn't resolve its dependencies<br> needed for package hoodle-render-0.5.999<br><br>-- Failure when adding dependencies: <br> gtk3: needed (>=0.13 && <0.14), 0.14.2 found (latest applicable is 0.13.9)<br> needed for package poppler-0.13.1 with flags:<br> gtk3: True<br>=============<br></div><div>Happens whether I try more focussed:<br>$ stack build poppler --flag poppler:gtk3<br></div><div>get<br>=============<br>While constructing the BuildPlan the following exceptions were encountered:<br><br>-- Failure when adding dependencies: <br> gtk3: needed (>=0.13 && <0.14), 0.14.2 found (latest applicable is 0.13.9)<br> needed for package poppler-0.13.1 with flags:<br> gtk3: True<br>================<br><br></div><div><br>[In cut pasting Ive elided oodles of stuff like:<br><br>No packages found in snapshot which provide a "gtk2hsC2hs" executable, which is a build-tool dependency of "glib"<br>Missing build-tools may be caused by dependencies of the build-tool being overridden by extra-deps.<br>This should be fixed soon - see this issue <a href="https://github.com/commercialhaskell/stack/issues/595">https://github.com/commercialhaskell/stack/issues/595</a><br><br>]<br><br><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span><br>
> 1. Delete every file/directory under .stack-work that has the word poppler<br>
<br>
</span>That shouldn't be necessary.<br>
<span><br>
> 2. stack build poppler --flag gtk:gtk3<br>
> 3. stack build<br>
<br>
</span>It's best to be consistent about flag settings. It might be easiest to<br>
put them in your stack.yaml:<br>
<a href="http://docs.haskellstack.org/en/stable/yaml_configuration/#flags" rel="noreferrer" target="_blank">http://docs.haskellstack.org/en/stable/yaml_configuration/#flags</a><br>
<br></blockquote><div><br></div></div>This is the stack.yaml (without comments)<br><br>=======================<br># This file was automatically generated by stack init<br># For more information, see: <a href="http://docs.haskellstack.org/en/stable/yaml_configuration/" target="_blank">http://docs.haskellstack.org/en/stable/yaml_configuration/</a><br><br># Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2)<br>resolver: lts-5.8<br><br># Local packages, usually specified by relative directory name<br>packages:<br>- coroutine-object/<br>- hoodle/<br>- hoodle-builder/<br>- hoodle-core/<br>- hoodle-daemon/<br>- hoodle-extra/<br>- hoodle-manage/<br>- hoodle-parser/<br>- hoodle-publish/<br>- hoodle-render/<br>- hoodle-types/<br>- xournal-parser/<br>- xournal-types/<br># Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3)<br>extra-deps:<br>- TypeCompose-0.9.11<br>- aeson-0.11.1.1<br>- attoparsec-conduit-1.1.0<br>- gtk-0.13.9<br>- handa-gdata-0.7.0.3<br>- persistent-sqlite-2.2.1<br>- poppler-0.13.1<br>- svgcairo-0.13.0.4<br>- text-1.2.2.0<br>- transformers-free-1.0.1<br>- zlib-conduit-1.1.0<br><br># Override default flag values for local packages and extra-deps<br>flags: {}<br><br># Extra package databases containing global packages<br>extra-package-dbs: []<br>========================<br><br></div><div class="gmail_extra">What do you recommend to try to change?<br><br></div></div>