Hi, here are fixes to compile with gcc14: https://github.com/elelay/aur-bareos/commit/57d2ff4393700bb5e29c36d9c95ff909eb4118d0 Thanks,
Search Criteria
Package Details: bareos-devel 23.0.1-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/bareos.git (read-only, click to copy) |
---|---|
Package Base: | bareos |
Description: | Bareos - Backup Archiving Recovery Open Sourced - Devel headers |
Upstream URL: | http://www.bareos.org |
Keywords: | Backup bacula bareos |
Licenses: | AGPL3 |
Groups: | bareos |
Submitter: | AlD |
Maintainer: | None |
Last Packager: | khvalera |
Votes: | 23 |
Popularity: | 0.000042 |
First Submitted: | 2014-07-23 09:45 (UTC) |
Last Updated: | 2024-02-20 22:01 (UTC) |
Dependencies (13)
- cmake (cmake-gitAUR) (make)
- gcc (gcc-gitAUR, gccrs-gitAUR, gcc11AUR, gcc-snapshotAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- glusterfs (make)
- jansson (jansson-gitAUR) (make)
- libmariadbclient (libmysqlclient55AUR, libmysqlclient56AUR, mariadb-libs-gitAUR, libmysqlclient81AUR, libmysqlclient57AUR, libmysqlclient80AUR, libmysqlclientAUR, mariadb-libs, mariadb-lts-libs) (make)
- lsb-release (make)
- pam_wrapper (make)
- postgresql-libs (postgresql-libs-12AUR, postgresql13-libsAUR, postgresql-libs-gitAUR) (make)
- python (python37AUR, python311AUR, python310AUR) (make)
- python-setuptools (make)
- qt5-base (qt5-base-gitAUR, qt5-base-headlessAUR) (make)
- rpcsvc-proto (make)
Required by (0)
Sources (5)
elelay commented on 2024-09-01 15:19 (UTC)
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
khvalera commented on 2023-05-08 22:35 (UTC)
The package has been updated but not tested yet. So check. @bsdice thanks!
hablitzel commented on 2023-05-08 20:30 (UTC)
@bsdice Thanks again for your help. It was the first that I changed a PKGBUILD file and patched source files. I've had some trouble with the patch you advised me to download. In my first attempts an error was thrown:
Applying patch 0007-gcc13.patch...
can't find file to patch at input line 23
Perhaps you used the wrong -p or --strip option?
I manually removed the first directory in the patch file in order to make it work with the patch
command (something like patch -p0...
in the PKGBUILD. Maybe there is a more elegant way to do this but at least it worked for me.
bsdice commented on 2023-05-05 19:32 (UTC)
You upgraded to gcc-13 and that has broken a bunch of stuff.
For 21 you need https://github.com/bareos/bareos/commit/2bb7d74215bf6ae4f350de11bff04b68cf3c82b3.patch
Also in PKGBUILD build() .. -DCMAKE_CXX_FLAGS="-Wno-use-after-free" \ -DCMAKE_C_FLAGS="-Wno-use-after-free" \ because otherwise some test fails.
And you need
+#include <system_error> +
in core/src/stored/dev.cc.
hablitzel commented on 2023-05-05 13:46 (UTC)
I'm just trying to update the package and I get this compiling error:
❯ LC_ALL=C yay -S bareos-filedaemon
AUR Explicit (1): bareos-filedaemon-22.0.3-1
AUR Dependency (1): bareos-common-22.0.3-1
....
[ 29%] Building CXX object core/src/lib/CMakeFiles/bareos.dir/thread_list.cc.o
/home/jens/.cache/yay/bareos/src/bareos/core/src/lib/thread_list.cc: In member function 'bool ThreadList::CreateAndAddNewThread(ConfigurationParser*, void*)':
/home/jens/.cache/yay/bareos/src/bareos/core/src/lib/thread_list.cc:227:35: error: expected unqualified-id before '&' token
227 | } catch (const std::system_error& e) {
| ^
/home/jens/.cache/yay/bareos/src/bareos/core/src/lib/thread_list.cc:227:35: error: expected ')' before '&' token
227 | } catch (const std::system_error& e) {
| ~ ^
| )
/home/jens/.cache/yay/bareos/src/bareos/core/src/lib/thread_list.cc:227:35: error: expected '{' before '&' token
/home/jens/.cache/yay/bareos/src/bareos/core/src/lib/thread_list.cc:227:37: error: 'e' was not declared in this scope
227 | } catch (const std::system_error& e) {
| ^
make[2]: *** [core/src/lib/CMakeFiles/bareos.dir/build.make:986: core/src/lib/CMakeFiles/bareos.dir/thread_list.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3844: core/src/lib/CMakeFiles/bareos.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Has anyone an idea what goes wrong here?
Pinned Comments