<p dir="ltr"></p>
<p dir="ltr">-Khem<br>
On Apr 2, 2014 2:14 AM, &quot;Mike Crowe&quot; &lt;<a href="mailto:mac@mcrowe.com">mac@mcrowe.com</a>&gt; wrote:<br>
&gt;<br>
&gt; On Tuesday 01 April 2014 at 21:59:34 -0700, Khem Raj wrote:<br>
&gt; &gt; On Tue, Apr 1, 2014 at 3:11 AM, Mike Crowe &lt;<a href="mailto:mac@mcrowe.com">mac@mcrowe.com</a>&gt; wrote:<br>
&gt; &gt; &gt; It seems to be possible to disable building the &quot;CursesDialog&quot; component to<br>
&gt; &gt; &gt; remove the need for ncurses but I couldn&#39;t immediately see how to do that<br>
&gt; &gt; &gt; for a bootstrap build.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; The non-native cmake recipe depends on ncurses even though it passes<br>
&gt; &gt; &gt; -DBUILD_CursesDialog=0.<br>
&gt; &gt;<br>
&gt; &gt; you need to disable it completely in CMakefile.txt, just that define<br>
&gt; &gt; does not suffice you might try something like<br>
&gt; &gt; <a href="http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-util/cmake/files/cmake-2.8.10-libform.patch?diff_format=f&amp;view=markup">http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-util/cmake/files/cmake-2.8.10-libform.patch?diff_format=f&amp;view=markup</a><br>

&gt;<br>
&gt; As far as I can tell (by poisoning curses.h in the sysroot) the non-native<br>
&gt; cmake build does successfully avoid using curses by specifying<br>
&gt; -DBUILD_CursesDialog=0. I have successfully tested removing the<br>
&gt; ncurses dependency from the recipe too.<br>
&gt;<br>
&gt; The cmake-native bootstrap procedure means that it is not possible to get<br>
&gt; that parameter through to the ultimate cmake native build. So I came up<br>
&gt; with this patch:<br>
&gt;<br>
&gt; --- cmake-2.8.12.2/bootstrap~   2014-01-16 17:15:09.000000000 +0000<br>
&gt; +++ cmake-2.8.12.2/bootstrap    2014-04-01 21:27:23.841996822 +0100<br>
&gt; @@ -1578,6 +1578,7 @@ export MAKE<br>
&gt;<br>
&gt;  # Run bootstrap CMake to configure real CMake<br>
&gt;  cmake_options=&quot;-DCMAKE_BOOTSTRAP=1&quot;<br>
&gt; +cmake_options=&quot;${cmake_options} -DBUILD_CursesDialog=0&quot;<br>
&gt;  if [ -n &quot;${cmake_verbose}&quot; ]; then<br>
&gt;    cmake_options=&quot;${cmake_options} -DCMAKE_VERBOSE_MAKEFILE=1&quot;<br>
&gt;  fi<br>
&gt;<br>
&gt; If I apply this for cmake-native then it also doesn&#39;t require curses<br>
&gt; (tested with the same poisoning.)<br>
&gt;</p>
<p dir="ltr">this seems to be ok too </p>
<p dir="ltr">&gt; The Gentoo patch may be somewhat safer in the long term because it does a<br>
&gt; better job of ensuring that the curses dependency can&#39;t come back with<br>
&gt; newer cmake versions; it is more likely that the patch would not apply or<br>
&gt; the link would fail.<br>
&gt;<br>
&gt; Do you prefer the one line patch above or the Gentoo one?<br>
&gt;<br>
&gt; Thanks.<br>
&gt;<br>
&gt; Mike.<br>
</p>