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:19:53
Message-Id: c0f5c232-0d65-341a-fc2c-c9eb80666207@verizon.net
In Reply to: Re: [gentoo-user] Python 2.7 removal : problem with Firefox + Spidermonkey by Walter Dnes
1 On 7/31/20 9:40 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 > The "make" command may take while to build, depending on RAM and CPU
34 > in your machine. Afterwards you probably have to include...
35 >
36 > <dev-lang/python-3.0
37 >
38 > ..in package.mask and also...
39 >
40 > =dev-lang/python-2.7.18
41 >
42 > ..in package.provided. Since the install in $HOME is not done by
43 > Portage, it'll be left alone. You may still run into problems if an
44 > ebuild looks for python files via hard-coded paths in /usr.
45 >
46
47 I just use this:
48 /var/lib/layman/palemoon/www-client/palemoon
49
50 and www-client/palemoon 28.11.0 installs without issue.
51
52 Your method makes palemoon.28.11.0
53 install without any dependence on python.2_7 ?
54
55 The package build/install for palemoon will not be part of
56 portage.....? (if I'm understanding what you have written).
57
58 James