summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikita Puzyryov2018-09-08 20:47:46 +0300
committerNikita Puzyryov2018-09-08 20:47:46 +0300
commit0f552409a61477fa35b45a38a840c99b1ab60429 (patch)
treeb32f7da7e1b300ef75a1c7e45ac940bfba9e29e3
parentad31a3298c8d6857471ba4e3bbd7af9899723b0e (diff)
downloadaur-0f552409a61477fa35b45a38a840c99b1ab60429.tar.gz
Fix renameat2 test
https://github.com/systemd/casync/issues/166
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD10
-rw-r--r--renameat2-test-fix.patch7
3 files changed, 17 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e5a1bf48ec0..e71b3d347b2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -21,7 +21,9 @@ pkgbase = casync-git
provides = casync
conflicts = casync
source = casync-git::git+https://github.com/systemd/casync
+ source = renameat2-test-fix.patch
sha256sums = SKIP
+ sha256sums = 3fb0fc4965039d0fc5b51c8fe49bb7ad74108324ff921c6f5b74127036c28d51
pkgname = casync-git
diff --git a/PKGBUILD b/PKGBUILD
index ba111380cfb..6c9c4af1e2a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,8 +12,9 @@ optdepends=()
checkdepends=('rsync')
provides=('casync')
conflicts=('casync')
-source=("$pkgname::git+$url")
-sha256sums=('SKIP')
+source=("$pkgname::git+$url" 'renameat2-test-fix.patch')
+sha256sums=('SKIP'
+ '3fb0fc4965039d0fc5b51c8fe49bb7ad74108324ff921c6f5b74127036c28d51')
pkgver() {
cd "$pkgname"
@@ -23,6 +24,11 @@ pkgver() {
)
}
+prepare() {
+ cd "$srcdir/$pkgname"
+ patch -p1 -i "$srcdir/renameat2-test-fix.patch"
+}
+
build() {
cd "$srcdir/$pkgname"
arch-meson build/ -Dselinux=false
diff --git a/renameat2-test-fix.patch b/renameat2-test-fix.patch
new file mode 100644
index 00000000000..8022869578b
--- /dev/null
+++ b/renameat2-test-fix.patch
@@ -0,0 +1,7 @@
+diff --git a/meson.build b/meson.build
+index f42ed16..c0f741e 100644
+--- a/meson.build
++++ b/meson.build
+@@ -81 +81 @@ foreach ident : [
+- have = cc.has_function(ident[0], prefix : ident[1])
++ have = cc.has_function(ident[0], args : '-D_GNU_SOURCE', prefix : ident[1])