Hi Chris,<div><br></div><div>Is it possible to also make the GHC and haskell platform distributions available as relocatable rpms, instead of HUB packaging? The reason is that for some of us, when we work in complex production environment which has its own deployment procedures, we have to deploy it differently. A hard-coded path like /usr/hs won&#39;t work, and a packaging environment that depends on that hard-coded path won&#39;t work either in that case.</div>
<div><br></div><div>I actually downloaded RHEL5 GHC binary rpm from <a href="http://justhub.org">justhub.org</a>, and unpacked it using rpm2cpio. Then, I ended up doing grep and sed to replace all occurrences of &quot;/usr/hs&quot; with the path I installed it in. It worked well except for some caveats - some of the binary/data files such as *.hi seem to have the hard-coded path in them. That hasn&#39;t caused any issues so far, except for haddock which fails if gcc is called since it is coded to /usr/hs/bin/gcc (though haddock bash shell has right gcc path coded in it - I guess it ignores it in favor of the path in some binary file). </div>
<div><br></div><div>It will be very nice to have what I did above, as relocatable rpms, and without HUB dependency. That will help with, I suspect, reducing the duplication of efforts when some of us, who want to use haskell at work, end up compiling our own binaries for RHEL platform (since glibc on RHEL 5/6 is older than what ghc-pwd demands). I tried to compile GHC 7.4 on RHEL 5, but it failed to link because of some GHC bug. That is how I ended up using your compiled binary with my grep/sed hack. It was a great time-saver. Thank you for doing this work.</div>
<div><br></div><div>-Sanket</div><div><br><div class="gmail_quote">On Tue, Jan 3, 2012 at 7:49 AM, Chris Dornan <span dir="ltr">&lt;<a href="mailto:chris@chrisdornan.com">chris@chrisdornan.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
&#39;Antoine Latter&#39; &lt;<a href="mailto:aslatter@gmail.com">aslatter@gmail.com</a>&gt;:<br>
<br>
&gt; All of this is in my head, but assuming I already had some sort of<br>
&gt; Linux build-server set up, it would be nice to combine it with your<br>
&gt; work to make it easier to have the build-server run tests against<br>
&gt; multiple versions of GHC/HP. That&#39;s all I was getting at.<br>
<br>
Working within the Hub framework this is straightforward. If you are using public releases rather than special builds of the tools then it should be quite easy.<br>
<br>
Supposing you needed to test with Haskell Platform 2011.2.0.1 and hexpat-0.19.7:<br>
<br>
        # install the platform (probably done already)<br>
<br>
        sudo yum install haskell-platform-2011.2.0.1-hub<br>
<br>
       # create new hub &#39;test-2011.2.0.1&#39; based this HP<br>
<br>
       hub init 2011.2.0.1 test-2011.2.0.1<br>
<br>
       # install hexpat-0.19.7 into it<br>
<br>
       hub install-into test-2011.2.0.1 hexpat-2011.2.0.1<br>
<br>
Repeat as necessary to create your array of test environments.<br>
<br>
Now you just have to arrange select the appropriate hub for each test. Suppose the environment variable $testhubs contains all of your test hubs (&#39;test-2011.2.0.1&#39;, etc.), then the following shell command would prime the tools to successively use each of the test environments on each invocation  of make.<br>

<br>
        for h in $testhubs; do HUB=$h make; done<br>
<br>
Note that the justhub distribution isn&#39;t necessary for this -- you can do it manually.<br>
<br>
But it does make it easier.<br>
<div class="HOEnZb"><div class="h5"><br>
Chris<br>
<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div>