FYI

Unpacked the python3 tar ball and it seems that the files: Lib/cgi.py T and Tools/pybench/pybench.py contain a bang line of !/usr/local/bin/python


I don't know if it causes any errors, but the patched version I complied is working so far as I use python3 with rpm package manager

I found the following tid bit in a rpm source file that i found looking on the internet  and  used it to patch the files

    #removing reference to /usr/local/bin/python within
    #files to avoid a false dependencies
    sed -i                            \
        -e 's:^#!./usr/local/bin/python:#!/usr/bin/python:'    \
        -e 's:^#!/usr/local/bin/python:#!/usr/bin/python:'    \
        Lib/cgi.py                    \
        Tools/pybench/pybench.py

Here is what I did

    sed -i                            \
        -e 's:^#!./usr/local/bin/python:#!/usr/bin/python:'    \
        -e 's:^#!/usr/local/bin/python:#!/usr/bin/python:'    \
        Lib/cgi.py                    \
        Tools/pybench/pybench.py
    ./configure \
        --prefix=%{_prefix} \
        --enable-shared \
        --with-system-expat \
        --with-system-ffi \
        --with-ensurepip=yes


--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to