On 12/21/2019 11:35 AM, Xi Ruoyao via blfs-dev wrote:
On 2019-12-16 00:53 +0000, Ken Moffat via blfs-dev wrote:
Indeed. The "patch" I found was 9800 lines. I haven't counted how
many lines are in my first attempt to update it. I have a severe
dislike of python, as is probably already apparent (the whitespace
issue) and I mostly find the error messages unuseful - if it fails
to find a specific thing, I would hope to get a more-specific
message.
I uploaded a mozjs-60 tarball which can be built with /usr/bin/python ->
python3:
http://www.linuxfromscratch.org/~xry111/mozjs-60.8.0-py3-src.tar.xz
“Patching" won't work here. Inside the source code tree there is a file n
amed pip-8.1.2-py2.py3-none-any.whl. It's actually a zip file containing some
python code. One .py file in the whl file have to be updated. "Patching" can't
modify a zip file.
So...I started down this path on my most recent build.
I started with the (apparently incorrect) assumption that Mozilla
projects will require Python-2.7.
I have /usr/bin/python -> python3.8, /usr/bin/python-config ->
python3.8-config, and /usr/bin/pip -> pip3.8.
I did the following with the original source (which worked for dependents):
=======================================================
# Fix incorrect interpreters
for file in `grep -Rl "#\!/usr/bin/env python" *`
do
sed 's@/usr/bin/env python@/usr/bin/env python2@' -i $file
done
# Undo damage from fist step
for file in `grep -Rl "/usr/bin/env python23" *`
do
sed 's@python23@python3@g' -i $file
done
=======================================================
Using your tarball with the above setup, I get an error:
dj@lfsdt1 [ /sources/mozjs-60.8.0-py3-src/mozjs-build ]$
../js/src/configure --prefix=/usr --with-intl-api --with-system-zlib
--with-system-icu --disable-jemalloc
--enable-readline && make File
"../js/src/../../configure.py", line 66
print("Creating config.status", file=sys.stderr)
^
SyntaxError: invalid syntax
It's trying to use 2.7 with 3.x syntax. `sed 's@2\[email protected]@g' -i
../js/src/configure` will get us past that. It builds to completion, and
installs to DESTDIR, but I haven't used it yet.
--DJ
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page