Author: pierre
Date: Fri Mar  5 13:12:48 2021
New Revision: 24345

Log:
Remove reference to python2 in newt, and prevent building python2 modules

Modified:
   trunk/BOOK/general/graphlib/newt.xml

Modified: trunk/BOOK/general/graphlib/newt.xml
==============================================================================
--- trunk/BOOK/general/graphlib/newt.xml        Fri Mar  5 08:34:40 2021        
(r24344)
+++ trunk/BOOK/general/graphlib/newt.xml        Fri Mar  5 13:12:48 2021        
(r24345)
@@ -86,12 +86,12 @@
       <!-- <xref linkend="tcl"/> and -->
       <xref role="runtime" linkend="gpm"/> (runtime)
     </para>
-
+<!-- Python 3 can be used, do not tell about python2
     <bridgehead renderas="sect4">Optional</bridgehead>
     <para role="optional">
       <xref linkend="python2"/> 
     </para>
-
+-->
     <para condition="html" role="usernotes">User Notes:
       <ulink url="&blfs-wiki;/newt"/>
     </para>
@@ -105,12 +105,14 @@
       command:
     </para>
 
-<screen><userinput>sed -e 's/^LIBNEWT =/#&amp;/' \
+<screen><userinput>sed -e 's/^LIBNEWT =/#&amp;/'                   \
     -e '/install -m 644 $(LIBNEWT)/ s/^/#/' \
-    -e 's/$(LIBNEWT)/$(LIBNEWTSONAME)/g' \
-    -i Makefile.in                           &amp;&amp;
+    -e 's/$(LIBNEWT)/$(LIBNEWTSONAME)/g'    \
+    -i Makefile.in                          &amp;&amp;
 
-./configure --prefix=/usr --with-gpm-support &amp;&amp;
+./configure --prefix=/usr           \
+            --with-gpm-support      \
+            --with-python=python&python3-majorver; &amp;&amp;
 make</userinput></screen>
 
     <para>
@@ -129,13 +131,19 @@
     <title>Command Explanations</title>
 
     <para>
+      <command>sed -e ... -i Makefile.in</command>: Disables installation of a
+      static library.
+    </para>
+
+    <para>
       <parameter>--with-gpm-support</parameter>: This switch enables mouse 
support for newt
       applications through GPM.
     </para>
 
     <para>
-      <command>sed -e ... -i Makefile.in</command>: Disables installation of a
-      static library.
+      <parameter>--with-python=python&python3-majorver;</parameter>: By giving
+      explicitly the name of the directory where python modules reside, this
+      switch prevents building the python2 module.
     </para>
 
   </sect2>
@@ -151,7 +159,7 @@
       <seglistitem>
         <seg> whiptail </seg>
         <seg> libnewt.so, whiptcl.so, and
-        
/usr/lib/python{&python2-majorver;,&python3-majorver;}/site-packages/_snack.so 
</seg>
+        /usr/lib/python&python3-majorver;/site-packages/_snack.so </seg>
         <seg> None </seg>
       </seglistitem>
     </segmentedlist>
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to