View Issue Details

IDProjectCategoryView StatusLast Update
0001264bareos-coreGeneralpublic2022-11-09 14:04
Reportermschiff Assigned Toarogge  
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
bareos-master: impact
bareos-master: action
bareos-19.2: impact
bareos-19.2: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action




2020-08-01 15:18

reporter   ~0004027

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

plugin/ is building fine with python3

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


2020-08-04 09:45

developer   ~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.


2020-11-30 15:43

developer   ~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!


2020-12-16 09:04

developer   ~0004067

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


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!


2021-09-28 09:42

developer   ~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.



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?


2021-09-29 09:41

developer   ~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.


2021-09-30 12:35

reporter   ~0004290

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


2021-09-30 16:15

developer   ~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