community/stress-ng: fix build with new musl and old kernel-headers

This commit is contained in:
Natanael Copa 2019-11-29 09:39:11 +00:00
parent 49a8e07ed8
commit dd02ab6587
2 changed files with 18 additions and 2 deletions

View File

@ -16,7 +16,8 @@ makedepends="
zlib-dev
"
subpackages="$pkgname-doc"
source="https://kernel.ubuntu.com/~cking/tarballs/stress-ng/stress-ng-$pkgver.tar.xz"
source="https://kernel.ubuntu.com/~cking/tarballs/stress-ng/stress-ng-$pkgver.tar.xz
fix-kernel-header-detection.patch"
build() {
make
@ -27,4 +28,5 @@ package() {
JOBDIR="/usr/share/doc/$pkgname/example-jobs/" install
}
sha512sums="97da711511d006ae309817b8a0d350069f5f70e453b6cd5f2be4f1b828e513758e3a891ac02358c9729e62c7be6497170599ef3474bb295f98c73a2fb12e66af stress-ng-0.10.06.tar.xz"
sha512sums="97da711511d006ae309817b8a0d350069f5f70e453b6cd5f2be4f1b828e513758e3a891ac02358c9729e62c7be6497170599ef3474bb295f98c73a2fb12e66af stress-ng-0.10.06.tar.xz
d444d2f0bc1969b133f8a915592079efdb049f08a4e13e4cfa078dc856015bbeb499abb47817b088a935096fe28c748d328f6907138eea6ec47f51efcd0d6889 fix-kernel-header-detection.patch"

View File

@ -0,0 +1,14 @@
diff --git a/stress-ramfs.c b/stress-ramfs.c
index 09d89a9..f02ce28 100644
--- a/stress-ramfs.c
+++ b/stress-ramfs.c
@@ -191,7 +191,8 @@ static int stress_ramfs_child(const args_t *args)
#if defined(__NR_fsopen) && \
defined(__NR_fsmount) && \
defined(__NR_fsconfig) && \
- defined(__NR_move_mount)
+ defined(__NR_move_mount) && \
+ defined(FSCONFIG_SET_STRING)
/*
* Use the new Linux 5.2 mount system calls
*/