Gentoo Archives: gentoo-user

From: james <garftd@×××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Python 2.7 removal : problem with Firefox + Spidermonkey
Date: Fri, 31 Jul 2020 22:10:08
Message-Id: 8953b893-891a-da54-3367-e398b3a14a43@verizon.net
1 On 7/31/20 9:50 AM, Walter Dnes wrote:
2 > On Wed, Jul 29, 2020 at 08:01:33PM -0400, james wrote
3 >
4 >> Me, palemoon is my fav browser and it seems to be long term stuck on
5 >> python 2.7...... Any suggests on a more secure, feature rich browser
6 >> other than palemoon would be interesting to me to at least test.
7 >
8 > Pale Moon is a Firefox fork and has inherited this dependancy from it.
9 > I used to build Pale Moon manually on an older 32-bit CentOS chroot.
10 > That CentOS version only went up to python 2.4, which did not work. I
11 > had to download a python 2.7 tarball and build it in the home dir (yes,
12 > it works). The Pale Moon build toolchain found it and it built OK. The
13 > steps are...
14 >
15 > #
16 > # Name it whatever you want
17 > mkdir pysource
18 > cd pysource
19 > wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tar.xz
20 > tar xf Py*
21 > cd Python-2.7.18
22 > #
23 > # Name it whatever you want
24 > ./configure --prefix=$HOME/py27
25 > make
26 > #
27 > # "su" or "sudo" is not required in the next step. You have write
28 > # permission to your home directory.
29 > make install
30 >
31 >
32
33 Interesting.
34
35 >
36 > The "make" command may take while to build, depending on RAM and CPU
37 > in your machine. Afterwards you probably have to include...
38 >
39 > <dev-lang/python-3.0
40 >
41 > ...in package.mask and also...
42 >
43 > =dev-lang/python-2.7.18
44 >
45 > ...in package.provided. Since the install in $HOME is not done by
46 > Portage, it'll be left alone. You may still run into problems if an
47 > ebuild looks for python files via hard-coded paths in /usr.
48
49 Explicitly, this will result in palemoon.28.11.0 being build, only
50 dependant on Python 3 ?
51
52
53 I just added a repo via layman:
54
55 /var/lib/layman/palemoon/www-client/palemoon
56
57
58 www-client/palemoon
59 Available versions: {M}(~)27.9.4[1] {M}**27.9999-r2[1]
60 (~)28.2.2*l^m[1] (~)28.3.0*l^m[1] 28.9.0.1*l[2] 28.9.0.2*l[2]
61 28.9.1*l[2] 28.9.2*l[2] 28.9.3*l[2] 28.10.0*l[2] 28.11.0
62
63 via [2] "palemoon" /var/lib/layman/palemoon
64
65
66 and it builds, robustly and without errors, but is still dependent on
67 python 2.7.
68
69
70 so your details do result in palemoon 28.11.0 without python 2.7
71 attendances?

Replies

Subject Author
Re: [gentoo-user] Python 2.7 removal : problem with Firefox + Spidermonkey Walter Dnes <waltdnes@××××××××.org>