mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
community/stress-ng: fix build with new musl and old kernel-headers
This commit is contained in:
parent
49a8e07ed8
commit
dd02ab6587
@ -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"
|
||||
|
||||
14
community/stress-ng/fix-kernel-header-detection.patch
Normal file
14
community/stress-ng/fix-kernel-header-detection.patch
Normal 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
|
||||
*/
|
||||
Loading…
x
Reference in New Issue
Block a user