From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer <michael.tremer@ipfire.org> To: development@lists.ipfire.org Subject: Re: Dropping Python 2 - question about boost Date: Fri, 07 May 2021 12:00:10 +0100 Message-ID: <DB3CFB56-2283-41D7-A640-CE3F30D19187@ipfire.org> In-Reply-To: <9a8faca1-45db-950d-9c93-5317e57f35df@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8099295530116845806==" List-Id: <development.lists.ipfire.org> --===============8099295530116845806== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, > On 6 May 2021, at 20:40, Adolf Belka <adolf.belka(a)ipfire.org> wrote: >=20 > Hi Michael, >=20 > On 06/05/2021 00:30, Michael Tremer wrote: >> Hello, >>> On 5 May 2021, at 17:49, Adolf Belka <adolf.belka(a)ipfire.org> wrote: >>>=20 >>> Hi Michael, >>>=20 >>> I am up for helping. I suspect the ones written in python2 that need to b= e converted to python3 might not be so good for me. I have never programmed i= n python at all. >>>=20 >>> I will have a go with some of the packages and see how things go. >> Yeah, so with most of the packages, we would need to disable Python 2 and = enable Python 3. That is it. No programming. >=20 > So I am working with boost now and it looks like I have successfully built = that using python3 Excellent. > One thing I noticed is that boost also has the static libraries created but= then commented out in the rootfile. Should these be disabled. There is a par= ameter to do that except for two libraries that are only built as static. The= BLFS page on boost suggests that most people will not need the static librar= ies so it would look like I should disable them. Yes, you can disable them wherever you stumble over them. Best, -Michael >=20 > Regards, > Adolf. >>> I can start with something like fetchmail and see if I run into any probl= ems or not. >> Yes! Brilliant :) >> -Michael >>> Regards, >>>=20 >>> Adolf. >>>=20 >>>=20 >>> On 05/05/2021 16:27, Michael Tremer wrote: >>>> Hello, >>>>=20 >>>> I would like to talk about what has been discussed at the last developer= conference call this week: Dropping Python 2 >>>>=20 >>>> This version of Python has reached its end of life and will no longer re= ceive any security fixes. Hence we need to get rid of it as soon as possible. >>>>=20 >>>> However, there is lots of software that still depends on it which has to= be migrated away first. >>>>=20 >>>> There are at least the following packages: >>>>=20 >>>> boost >>>> fetchmail >>>> fireinfo >>>> iotop >>>> ipaddr >>>> libxml2 >>>> libxslt >>>> newt >>>> nmap >>>> python >>>> python-clientform >>>> python-daemon >>>> python-distutils >>>> python-distutils-extra >>>> python-docutils >>>> python-feedparser >>>> python-inotify >>>> python-ipaddress >>>> python-m2crypto >>>> python-mechanize >>>> python-optional-src >>>> python-pyparsing >>>> python-rssdler >>>> python-setuptools >>>> python-six >>>> python-typing >>>>=20 >>>> We also have the following scripts: >>>>=20 >>>> config/ca-certificates/certdata2pem.py >>>> config/unbound/unbound-dhcp-leases-bridge >>>>=20 >>>> Fireinfo is written by us and has a lot of C which will make it a little= bit more difficult to migrate. We would also have to be very careful to not = change any behaviour of the current implementation. >>>>=20 >>>> The rest is probably either software that is entirely written in Python = 2 or software that brings bindings for Python. The latter case is easy becaus= e we can either force it to build with Python 3 or we just disable the bindin= gs. >>>>=20 >>>> Ultimately we might need to keep Python around in the build system if th= ere are other packages that rely on it. However, it would be great if we were= able to remove it from the distribution very soon. Looking at his list, it d= oes not seem to be too difficult. >>>>=20 >>>> Would anyone be up to help and remove Python from any of those packages = above? I would like to aim for Core Update 158 and remove as much stuff as po= ssible - if we can everything - and then remove Python 2 in the update after = that. If anyone has any custom scripts or applications, people will have some= time to migrate away. >>>>=20 >>>> Best, >>>> -Michael >>>=20 >>> --=20 >>> Sent from my laptop >>>=20 --===============8099295530116845806==--