On 25.11.2010, at 13:18, Jens Petersen wrote: >> b) putting Gtk2HsSetup.hs in either gtk2hs-buildtools or any other >> library >> means that ./Setup.hs has to run to realize that this library is >> missing and >> that it needs to be downloaded. However, ./Setup.hs cannot be run >> because it >> imports Gtk2HsSetup.hs which is not yet available. >> >> I don't know if (b) can be solved by e.g. conditionally importing >> Gtk2HsSetup.hs if it is there and only installing libraries and re- >> invoking >> Setup.hs one this is done. This is a common trick in Makefiles, >> e.g. one >> could call make recursively to first build dependencies. Any >> suggestions >> welcome. > > Perhaps. I guess I was just trying to say that having > Gtk2HsSetup in gtk2hs-buildtools still seems better to me > even if Setup is broken! :) > > Not claiming it is a good solution just better than having > a copy-library IMHO... But I hear your reluctance to do my hack. :) > > Sure in the long turn Cabal should be improved for this case...
How would this hack work? You suggest that Setup.hs fails to compile if the gtk2hs-buildtools package is not installed? That might work, but the error message will confuse users. Axel ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel