View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001264 | bareos-core | General | public | 2020-08-01 14:01 | 2022-11-09 14:04 |
Reporter | mschiff | Assigned To | arogge | ||
Priority | normal | Severity | block | Reproducibility | always |
Status | closed | Resolution | won't fix | ||
Platform | amd64 | OS | Gentoo | OS Version | 17.1 |
Product Version | 19.2.8 | ||||
Summary | 0001264: bareos still requires EOL python2 to build | ||||
Description | EOL 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 Reproduce | try to build on system with python3 | ||||
Additional Information | Is 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? | ||||
Tags | broken, fd, plugin, python | ||||
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. |
|
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. | |
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! |
|
Bareos 20.0.0 has been released and adds full support for Python 3. | |
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! |
|
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. |
|
Thanks for clarifying! So bareos 19 and 20 still need python2 here, right? Is there an easy way to test this? |
|
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. |
|
Why does bareos 20 install /usr/lib64/python2.7/site-packages/bareosfd.so? Can it safely be removed from the package? | |
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. |
|
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 |