Author: pierre Date: Tue Mar 2 14:19:04 2021 New Revision: 24326 Log: Fix a header file in python for certain use cases; For usage of python3 for cracklib python bindings
Modified: trunk/BOOK/general/prog/python3.xml trunk/BOOK/introduction/welcome/changelog.xml trunk/BOOK/postlfs/security/cracklib.xml Modified: trunk/BOOK/general/prog/python3.xml ============================================================================== --- trunk/BOOK/general/prog/python3.xml Tue Mar 2 08:40:31 2021 (r24325) +++ trunk/BOOK/general/prog/python3.xml Tue Mar 2 14:19:04 2021 (r24326) @@ -116,6 +116,12 @@ <title>Installation of Python 3</title> <para> + Fix a header file, which is needed for some use cases: + </para> + +<screen><userinput>sed 's|cpython/||' -i Include/cpython/pystate.h</userinput></screen> + + <para> Install <application>Python 3</application> by running the following commands: </para> Modified: trunk/BOOK/introduction/welcome/changelog.xml ============================================================================== --- trunk/BOOK/introduction/welcome/changelog.xml Tue Mar 2 08:40:31 2021 (r24325) +++ trunk/BOOK/introduction/welcome/changelog.xml Tue Mar 2 14:19:04 2021 (r24326) @@ -45,6 +45,14 @@ <para>March 2nd, 2021</para> <itemizedlist> <listitem> + <para>[pierre] - Force usage of python3 for cracklib bindings.</para> + </listitem> + <listitem> + <para>[pierre] - Fix a header file in python, so that + <command>#include <python&python3-majorver;/Python.h></command> + works.</para> + </listitem> + <listitem> <para>[thomas] - Fix a seccomp issue in OpenSSH on non-x86_64 platforms.</para> </listitem> <listitem> Modified: trunk/BOOK/postlfs/security/cracklib.xml ============================================================================== --- trunk/BOOK/postlfs/security/cracklib.xml Tue Mar 2 08:40:31 2021 (r24325) +++ trunk/BOOK/postlfs/security/cracklib.xml Tue Mar 2 14:19:04 2021 (r24326) @@ -119,14 +119,14 @@ combinations</quote> that make bad passwords. </para> </important> - +<!-- <bridgehead renderas="sect3">CrackLib Dependencies</bridgehead> <bridgehead renderas="sect4">Optional</bridgehead> <para role="optional"> <xref linkend="python2"/> </para> - +--> <para condition="html" role="usernotes">User Notes: <ulink url="&blfs-wiki;/cracklib"/> </para> @@ -142,6 +142,7 @@ <screen><userinput>sed -i '/skipping/d' util/packer.c && +PYTHON=python3 \ ./configure --prefix=/usr \ --disable-static \ --with-default-dict=/lib/cracklib/pw_dict && @@ -207,6 +208,11 @@ </para> <para> + <command>PYTHON=python3</command>: This forces the installation of + python bindings for python3, even if python2 is installed. + </para> + + <para> <parameter>--with-default-dict=/lib/cracklib/pw_dict</parameter>: This parameter forces the installation of the <application>CrackLib</application> dictionary to the -- http://lists.linuxfromscratch.org/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page