stress-ng: remove libaio and libbsd support
authorRosen Penev <redacted>
Sun, 6 Sep 2020 20:04:28 +0000 (13:04 -0700)
committerRosen Penev <redacted>
Sun, 6 Sep 2020 22:23:32 +0000 (15:23 -0700)
Signed-off-by: Rosen Penev <redacted>
utils/stress-ng/Makefile
utils/stress-ng/patches/020-no-bsd-aio.patch [new file with mode: 0644]

index 593ebd848b0edcc839d0e612895a43bb0d98ac5a..3220c32c46d27cb698929c92d81c7f213ec287f7 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=stress-ng
 PKG_VERSION:=0.11.18
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://kernel.ubuntu.com/~cking/tarballs/stress-ng
diff --git a/utils/stress-ng/patches/020-no-bsd-aio.patch b/utils/stress-ng/patches/020-no-bsd-aio.patch
new file mode 100644 (file)
index 0000000..0fb07e7
--- /dev/null
@@ -0,0 +1,65 @@
+--- a/Makefile.config
++++ b/Makefile.config
+@@ -67,7 +67,7 @@ ifeq ($(shell uname -s),SunOS)
+ endif
+ ifndef $(HAVE_LIB_AIO)
+-HAVE_LIB_AIO = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_AIO) TEST_PROG=test-libaio have_test_prog)
++#HAVE_LIB_AIO = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_AIO) TEST_PROG=test-libaio have_test_prog)
+ ifeq ($(HAVE_LIB_AIO),1)
+       CONFIG_CFLAGS += -DHAVE_LIB_AIO
+       CONFIG_LDFLAGS += $(LIB_AIO)
+@@ -76,7 +76,7 @@ endif
+ endif
+ ifndef $(HAVE_LIB_BSD)
+-HAVE_LIB_BSD = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_BSD) TEST_PROG=test-libbsd have_test_prog)
++#HAVE_LIB_BSD = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_BSD) TEST_PROG=test-libbsd have_test_prog)
+ ifeq ($(HAVE_LIB_BSD),1)
+       CONFIG_CFLAGS += -DHAVE_LIB_BSD
+       CONFIG_LDFLAGS += $(LIB_BSD)
+@@ -103,7 +103,7 @@ endif
+ endif
+ ifndef $(HAVE_LIB_SCTP)
+-HAVE_LIB_SCTP = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_SCTP) TEST_PROG=test-libsctp have_test_prog)
++#HAVE_LIB_SCTP = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_SCTP) TEST_PROG=test-libsctp have_test_prog)
+ ifeq ($(HAVE_LIB_SCTP),1)
+       CONFIG_CFLAGS += -DHAVE_LIB_SCTP
+       CONFIG_LDFLAGS += $(LIB_SCTP)
+@@ -178,7 +178,7 @@ endif
+ endif
+ ifndef $(HAVE_AIO_H)
+-HAVE_AIO_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=aio.h have_header_h)
++#HAVE_AIO_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=aio.h have_header_h)
+ ifeq ($(HAVE_AIO_H),1)
+       CONFIG_CFLAGS += -DHAVE_AIO_H
+ $(info autoconfig: using aio.h)
+@@ -2516,7 +2516,7 @@ endif
+ endif
+ ifndef $(HAVE_SETPROCTITLE)
+-HAVE_SETPROCTITLE = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_BSD) TEST_PROG=test-setproctitle have_test_prog)
++#HAVE_SETPROCTITLE = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_BSD) TEST_PROG=test-setproctitle have_test_prog)
+ ifeq ($(HAVE_SETPROCTITLE),1)
+       CONFIG_CFLAGS += -DHAVE_SETPROCTITLE
+ $(info autoconfig: using setproctitle)
+@@ -3140,7 +3140,7 @@ endif
+ ifndef $(HAVE_WCSLCAT)
+ WCSFUNC=wcslcat
+ export WCSFUNC
+-HAVE_WCSLCAT = $(shell $(MAKE) $(MAKE_OPTS) WCSFUNC=wcslcat have_wcsfunc)
++#HAVE_WCSLCAT = $(shell $(MAKE) $(MAKE_OPTS) WCSFUNC=wcslcat have_wcsfunc)
+ ifeq ($(HAVE_WCSLCAT),1)
+       CONFIG_CFLAGS += -DHAVE_WCSLCAT
+ $(info autoconfig: using wcslcat)
+@@ -3150,7 +3150,7 @@ endif
+ ifndef $(HAVE_WCSLCPY)
+ WCSFUNC=wcslcpy
+ export WCSFUNC
+-HAVE_WCSLCPY = $(shell $(MAKE) $(MAKE_OPTS) WCSFUNC=wcslcpy have_wcsfunc)
++#HAVE_WCSLCPY = $(shell $(MAKE) $(MAKE_OPTS) WCSFUNC=wcslcpy have_wcsfunc)
+ ifeq ($(HAVE_WCSLCPY),1)
+       CONFIG_CFLAGS += -DHAVE_WCSLCPY
+ $(info autoconfig: using wcslcpy)
git clone https://git.99rst.org/PROJECT