Package Details: bareos-director-python-plugins-common 24.0.0-2

Git Clone URL: https://aur.archlinux.org/bareos.git (read-only, click to copy)
Package Base: bareos
Description: Bareos - Backup Archiving Recovery Open Sourced - This package contains the common files for the python 2 and python 3 director plugins
Upstream URL: http://www.bareos.org
Keywords: Backup bacula bareos
Licenses: AGPL3
Groups: bareos
Submitter: AlD
Maintainer: khvalera
Last Packager: khvalera
Votes: 24
Popularity: 0.85
First Submitted: 2014-07-23 09:45 (UTC)
Last Updated: 2025-03-03 18:01 (UTC)

Pinned Comments

Latest Comments

1 2 3 4 5 6 .. 18 Next › Last »

LanceB98 commented on 2026-01-08 01:01 (UTC)

After botching a PostgreSQL upgrade (and successfully restoring from a Bareos backup), I decided to take the opportunity to upgrade this package to the latest Bareos. It was way more complex than I thought and I didn't feel comfortable adopting the package to potentially throw a wrench in the backup systems of unsuspecting users, but I do have a mostly complete PKGBUILD and patch files.

I have two patches formatted to be applied with git am to the current repo (commit 959a0859dfb7). Patch 1 updates Bareos to 25.0.1 and adds gcc14 as a dependency since I could not for the life of me figure out how to make Bareos build on gcc15, no amount of -Wno-error-s did the trick. It also updates the contained patches since the source files changed. Link to Patch 1

Patch 2 is where I'm feeling far less confident. For reasons I do not understand, the current PKGBUILD lists out every single file to be installed manually. I did my very best to update those, but it feels error prone. Here is a list of files that the Bareos install procedure creates, are NOT packaged, and that I didn't include in the PKGBUILD since I either couldn't figure out where they went or seemed to reference a module that didn't have a package currently. This patch, Link to Patch 2, includes all the updates to the packaging functions where I COULD figure out which package the files belonged to.

If anyone is brave enough to give it a go, let me know if I'm on the right track! It appears to be working, though I expect there are missing features that I don't know about since I have a simple use case. I'm sure there's some way that the original author generated all those install lines for specific files, but I have no idea how that was done and doing it manually is a pain.

gluceri commented on 2025-12-26 21:06 (UTC) (edited on 2025-12-26 21:09 (UTC) by gluceri)

Compilation fails complaining about "old-style-definition" and/or "old-style-declaration" in src/bareos/core/src/droplet/libdroplet/src/backend/cdmi/crcmodel.c

PKGBUILD should be updated adding "-Wno-error=old-style-declaration -Wno-error=old-style-definition" CMAKE flags

--- PKGBUILD.20251226   2025-12-26 22:00:32.877868868 +0100
+++ PKGBUILD    2025-12-26 22:00:01.383358358 +0100
@@ -125,8 +125,8 @@
     -Dscsi-crypto=yes \
     -Dsystemd=yes \
     -Dtraymonitor=yes \
-    -DCMAKE_CXX_FLAGS="-Wno-use-after-free" \
-    -DCMAKE_C_FLAGS="-Wno-use-after-free"
+    -DCMAKE_CXX_FLAGS="-Wno-use-after-free -Wno-error=old-style-declaration -Wno-error=old-style-definition" \
+    -DCMAKE_C_FLAGS="-Wno-use-after-free -Wno-error=old-style-declaration -Wno-error=old-style-definition"

   make DESTDIR="${srcdir}/install" install

arch-chicken commented on 2025-08-05 10:52 (UTC) (edited on 2025-08-05 11:27 (UTC) by arch-chicken)

Thank you @LanceB98 - using the "old" gcc-14 was the solution for me.

Actually, what I did, was adding two lines to PGKBUILD (after installing gcc14):

diff --git a/PKGBUILD b/PKGBUILD
index e94b506..534b597 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -125,7 +125,9 @@ build() {
     -Dscsi-crypto=yes \
     -Dsystemd=yes \
     -Dtraymonitor=yes \
+    -DCMAKE_CXX_COMPILER="g++-14" \
     -DCMAKE_CXX_FLAGS="-Wno-use-after-free" \
+    -DCMAKE_C_COMPILER="gcc-14" \
     -DCMAKE_C_FLAGS="-Wno-use-after-free"

   make DESTDIR="${srcdir}/install" install

LanceB98 commented on 2025-07-15 07:02 (UTC) (edited on 2025-07-15 20:40 (UTC) by LanceB98)

I couldn't build this because of compiler errors after Arch upgraded to gcc15, but I was able to get around that by installing gcc14 and running export CC="/usr/bin/gcc-14" and export CXX="/usr/bin/g++-14" Before running makepkg.

elelay commented on 2024-09-01 15:19 (UTC)

Hi, here are fixes to compile with gcc14: https://github.com/elelay/aur-bareos/commit/57d2ff4393700bb5e29c36d9c95ff909eb4118d0 Thanks,

simona commented on 2023-10-12 06:00 (UTC)

In file included from /usr/include/python2.7/Python.h:61, from /home/simona/.cache/yay/bareos/src/bareos/core/src/plugins/filed/python/module/bareosfd.cc:32: /usr/include/python2.7/pyport.h:917:76: error: ‘_PyArg_ParseTuple_SizeT’ is an unrecognized format function type [-Werror=format=] 917 | #define Py_FORMAT_PARSETUPLE(func,p1,p2) attribute((format(func,p1,p2))) | ^ /usr/include/python2.7/modsupport.h:27:65: note: in expansion of macro ‘Py_FORMAT_PARSETUPLE’ 27 | PyAPI_FUNC(int) PyArg_ParseTuple(PyObject , const char , ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3); | ^~~~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors make[2]: *** [core/src/plugins/filed/python/CMakeFiles/bareosfd-python2-module.dir/build.make:76: core/src/plugins/filed/python/CMakeFiles/bareosfd-python2-module.dir/module/bareosfd.cc.o] Error 1

FabioLolix commented on 2023-07-12 09:04 (UTC)

For me build fine with makepkg (29 packages to update) and devtools (extra-x86_64-build, all updated)

For readibility please encapsulate text error with ``` at top and bottom and post in English (i.e. using LANG=C makepkg)

simona commented on 2023-07-12 08:46 (UTC)

make[2]: *** [core/src/plugins/filed/python/CMakeFiles/bareosfd-python2-module.dir/build.make:76: core/src/plugins/filed/python/CMakeFiles/bareosfd-python2-module.dir/module/bareosfd.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:6298: core/src/plugins/filed/python/CMakeFiles/bareosfd-python2-module.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
-> Failed to install layer, rolling up to next layer.error:error making: bareos - exit status 4

make[1]: *** [CMakeFiles/Makefile2:6298: core/src/plugins/filed/python/CMakeFiles/bareosfd-python2-module.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
==> ERRORE: Si è verificato un errore in build().

FabioLolix commented on 2023-07-08 21:35 (UTC)

For getting the python version you can use something like _pyver=$(python -c "from sys import version_info; print(\"%d.%d\" % (version_info[0],version_info[1]))")

elelay commented on 2023-07-08 17:17 (UTC) (edited on 2023-07-08 17:17 (UTC) by elelay)

Hi, thanks for packaging bareos. I'm running juste the filedaemon on ArchLinux, but I noticed that during aur build it looks for python bindings in the wrong directory: it should be 3.11 now.

-python3_ver=3.10
+python3_ver=3.11