summaryrefslogtreecommitdiff
path: root/bareos/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'bareos/PKGBUILD')
-rw-r--r--bareos/PKGBUILD18
1 files changed, 15 insertions, 3 deletions
diff --git a/bareos/PKGBUILD b/bareos/PKGBUILD
index 74c1d0411..22ee34a1e 100644
--- a/bareos/PKGBUILD
+++ b/bareos/PKGBUILD
@@ -50,9 +50,19 @@ makedepends_armv6h=("${_pinned_dependencies_libmariadbclient[@]}")
makedepends_armv7h=("${_pinned_dependencies_libmariadbclient[@]}")
makedepends_aarch64=(ceph "${_pinned_dependencies_libmariadbclient[@]}")
source=("$pkgbase-$pkgver.tar.gz::https://github.com/$pkgbase/$pkgbase/archive/Release/$pkgver.tar.gz"
-'check-if-bareos-backup-is-running')
+'check-if-bareos-backup-is-running'
+2bb7d74215bf6ae4f350de11bff04b68cf3c82b3.patch)
sha512sums=('cbdf4bfb5284104894e7fb8ddbb20d6ecedd827c8133b13913e9a27c4e3b98b550ec60a9a23c2c4efe6d566c94ed745d77946a444e5fccb56c09ab8f740d9f8c'
- '0235763891f368c13931f0fc43e3ae2d7ec796b7ef35896b6b9c048345d539308abe4a9bafda4e95221a89231d2f373ac3cfc2098d572d4068a1c068d27452f6')
+ '0235763891f368c13931f0fc43e3ae2d7ec796b7ef35896b6b9c048345d539308abe4a9bafda4e95221a89231d2f373ac3cfc2098d572d4068a1c068d27452f6'
+ '7256e57d5331835f5dbf1598ff37bbef2f1b57b46cb494a12c0230530b3f1e444fe7e4dc6f9a9064a68e2b739a65cfad034815fd5328086a7e2a9cfd1038f302')
+
+prepare() {
+ cd $pkgbase-Release-$pkgver
+ patch -p1 -i ../2bb7d74215bf6ae4f350de11bff04b68cf3c82b3.patch
+ sed -i '
+ 1i #include <system_error>
+ ' core/src/stored/dev.cc
+}
build() {
cd $pkgbase-Release-$pkgver
@@ -99,7 +109,9 @@ build() {
-Darchivedir=/var/lib/$pkgbase/storage \
-Dbsrdir=/var/lib/$pkgbase \
-Dsubsys-dir=/run/$pkgbase \
- -Dsystemd=yes
+ -Dsystemd=yes \
+ -DCMAKE_CXX_FLAGS="-Wno-use-after-free" \
+ -DCMAKE_C_FLAGS="-Wno-use-after-free"
make
make DESTDIR="$srcdir/install" install