View Issue Details

IDProjectCategoryView StatusLast Update
0001264bareos-coreGeneralpublic2022-11-09 14:04
Reportermschiff Assigned Toarogge  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionwon't fix 
Platformamd64OSGentooOS Version17.1
Product Version19.2.8 
Summary0001264: bareos still requires EOL python2 to build
DescriptionEOL python2 is about to be removed from Gentoo Linux pretty soon and Bareos will have to be removed from Gentoo because it requires python2 for building unconditionally.
Steps To Reproducetry to build on system with python3
Additional InformationIs there any chance this issue will be addressed in the near future?
Is there any known workaround like a simple patch to disable all python functionality until this issue is resolved?
Tagsbroken, fd, plugin, python

Activities

mschiff

mschiff

2020-08-01 15:18

reporter   ~0004027

I just noticed that only the stored and dird plugins are affected.

plugin/python-fd.so is building fine with python3

So for the moment we will switch to not deliver dird and stored python2-only plugins.
arogge

arogge

2020-08-04 09:45

manager   ~0004028

It is on the list for 20.x - you can check the nightly build from time to time. It should start working with python3 in a few weeks now.
arogge

arogge

2020-11-30 15:43

manager   ~0004059

the nightly build / master branch should now work without python 2.
Could you give it a shot and tell me if that fixes your problem?
Thank you!
arogge

arogge

2020-12-16 09:04

manager   ~0004067

Bareos 20.0.0 has been released and adds full support for Python 3.
mschiff

mschiff

2021-09-28 09:36

reporter   ~0004279

build is OK, but same problem still exists with vmware FD-Plugin. This still requires python2 which is EOL.

This also affects bareos 18 and 20

Are there patches already to get rid of py2 here? Thanks!
arogge

arogge

2021-09-28 09:42

manager   ~0004280

Last edited: 2021-09-28 09:48

How is this requiring python2? Because of the "#!/usr/bin/env python2" at the top of the plugin files?
AFAICT that is never actually evaluated and you can safely remove it or change it to "#!/usr/bin/env python3".

I just double-checked this. At least our Bareos 20.0.x VMware plugin packages for RHEL 8 do not require any python2. So it is not a hard requirement, but rather something we got wrong that leads to bogus dependencies being detected.

mschiff

mschiff

2021-09-28 23:12

reporter   ~0004283

Thanks for clarifying!

So bareos 19 and 20 still need python2 here, right? Is there an easy way to test this?
arogge

arogge

2021-09-29 09:41

manager   ~0004284

Bareos 19 definitely requires Python 2, because the changes to support Python 2 and Python 3 were done for Bareos 20 and were way too invasive to even consider backporting them.
Bareos 20 (and, of course, everything newer) should not require Python 2 anymore. If it does, there should be an easy fix for that.

However, there is a least one plugin (bareos-fd-ldap), that is known not to work with Python 3.
mschiff

mschiff

2021-09-30 12:35

reporter   ~0004290

Why does bareos 20 install /usr/lib64/python2.7/site-packages/bareosfd.so? Can it safely be removed from the package?
arogge

arogge

2021-09-30 16:15

manager   ~0004291

That happens, because you have Python 2 support enabled in Bareos and you have the python2 development libraries and headers available.
In that case you'll end up with a python2 plugin and a python3 plugin.

If CMake doesn't find Python2 it should not build the python2 plugins.
Basically, Bareos shouldn't require python2, but will use it if it is available.

Issue History

Date Modified Username Field Change
2020-08-01 14:01 mschiff New Issue
2020-08-01 14:01 mschiff Tag Attached: broken
2020-08-01 14:01 mschiff Tag Attached: cmake compilation
2020-08-01 14:01 mschiff Tag Attached: director
2020-08-01 14:01 mschiff Tag Attached: filedemon
2020-08-01 14:01 mschiff Tag Attached: python
2020-08-01 14:01 mschiff Tag Attached: storage
2020-08-01 15:15 mschiff Tag Detached: filedemon
2020-08-01 15:18 mschiff Note Added: 0004027
2020-08-04 09:45 arogge Assigned To => arogge
2020-08-04 09:45 arogge Status new => confirmed
2020-08-04 09:45 arogge Note Added: 0004028
2020-11-30 15:43 arogge Status confirmed => feedback
2020-11-30 15:43 arogge Note Added: 0004059
2020-12-16 09:04 arogge Status feedback => resolved
2020-12-16 09:04 arogge Resolution open => fixed
2020-12-16 09:04 arogge Note Added: 0004067
2021-09-28 09:36 mschiff Status resolved => new
2021-09-28 09:36 mschiff Resolution fixed => reopened
2021-09-28 09:36 mschiff Note Added: 0004279
2021-09-28 09:36 mschiff Tag Detached: cmake compilation
2021-09-28 09:36 mschiff Tag Detached: director
2021-09-28 09:38 mschiff Tag Attached: fd
2021-09-28 09:38 mschiff Tag Attached: plugin
2021-09-28 09:38 mschiff Tag Detached: storage
2021-09-28 09:42 arogge Note Added: 0004280
2021-09-28 09:48 arogge Note Edited: 0004280
2021-09-28 23:12 mschiff Note Added: 0004283
2021-09-29 09:41 arogge Note Added: 0004284
2021-09-30 12:35 mschiff Note Added: 0004290
2021-09-30 16:15 arogge Note Added: 0004291
2022-11-09 14:04 arogge Status new => resolved
2022-11-09 14:04 arogge Resolution reopened => won't fix
2022-11-09 14:04 arogge Status resolved => closed