From: Axel S. <Axe...@in...> - 2010-11-25 13:26:43
|
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 |