<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><title>RE: problems getting cabal-install to work on CentOS</title><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.avgcert, li.avgcert, div.avgcert
        {mso-style-name:avgcert;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I have just checked – CentOS doesn’t seem to mount /tmp noexec out of the box -- at least not on the servers I have built (where I have used the default simple partition arrangement with /tmp in the root partition).<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>But two servers I have leased have been setup in this way, the original problem showing up on one of these servers.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>As for a quick and reliable method for testing noexec – how about the autoconfig way (i.e., design an experiment)?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>As for what to do when the system /tmp won’t do – a canned simple error message with workarounds would solve 90% of the problems; I either that or, for each build do “mkdir -p $HOME/.cabal-tmp”, issuing a warning to this effect. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Chris<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Duncan Coutts [mailto:duncan.coutts@googlemail.com] <br><b>Sent:</b> 14 February 2011 14:29<br><b>To:</b> Chris Dornan<br><b>Cc:</b> cabal-devel<br><b>Subject:</b> RE: problems getting cabal-install to work on CentOS<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p><span style='font-size:10.0pt'>On Mon, 2011-02-14 at 12:14 +0000, Chris Dornan wrote:<br>&gt; Hi Duncan,<br><br>&gt; I am pretty sure it was a tmp directory issue where the default tmp<br>&gt; directory prohibited execution.<br><br>Ah hah. This did subsequently get reported by someone else<br><br><a href="http://hackage.haskell.org/trac/hackage/ticket/685">http://hackage.haskell.org/trac/hackage/ticket/685</a><br><br><br>&gt; Its main about documentation (I couldn’t find an explanation of how to<br>&gt; control where Cabal puts its temporary files) and diagnostics –<br>&gt; something to the effect that ‘I failed to execute this file’ – I was<br>&gt; finding it very difficult to see what was happening.<br><br>I bet.<br><br><a href="http://hackage.haskell.org/trac/hackage/ticket/696">http://hackage.haskell.org/trac/hackage/ticket/696</a><br><br><br>Is /tmp noexec by default on current redhat/centos releases? If so we'll<br>want to up the priority of these tickets.<br><br>If /tmp is noexec, do you know what is the recommend solution on these<br>platforms. For compiling packages we need to be able to compile and<br>execute programs. Is there some other location other than /tmp that we<br>should use?<br><br>I wonder if there's a quick and reliable method for testing for noexec,<br>rather than waiting until we get to the stage where we've unpacked the<br>package, compiled Setup and are trying to run it.<br><br>Duncan</span><o:p></o:p></p><div class=MsoNormal align=center style='text-align:center'><hr size=1 width="100%" noshade style='color:#A0A0A0' align=center></div><p class=avgcert>No virus found in this message.<br>Checked by AVG - <a href="http://www.avg.com">www.avg.com</a><br>Version: 10.0.1204 / Virus Database: 1435/3442 - Release Date: 02/13/11<o:p></o:p></p></div></body></html>