From bb34fcebe5e90b8cfe73cb7d5412dcec91f66138 Mon Sep 17 00:00:00 2001 From: Paulo Machado Date: Thu, 19 Mar 2020 21:52:07 +0000 Subject: [PATCH] libcap: fix build failure Building is failing during the test compilation due to static compilation. Disable tests as they are not being used. Signed-off-by: Paulo Machado --- libs/libcap/patches/300-disable-tests.patch | 10 ++++++++++ libs/libcap/patches/300-uclibc-ng.patch | 11 ----------- 2 files changed, 10 insertions(+), 11 deletions(-) create mode 100644 libs/libcap/patches/300-disable-tests.patch delete mode 100644 libs/libcap/patches/300-uclibc-ng.patch diff --git a/libs/libcap/patches/300-disable-tests.patch b/libs/libcap/patches/300-disable-tests.patch new file mode 100644 index 000000000..9eb116ec0 --- /dev/null +++ b/libs/libcap/patches/300-disable-tests.patch @@ -0,0 +1,10 @@ +--- a/Makefile ++++ b/Makefile +@@ -16,7 +16,6 @@ endif + ifeq ($(GOLANG),yes) + $(MAKE) -C go $@ + endif +- $(MAKE) -C tests $@ + $(MAKE) -C progs $@ + $(MAKE) -C doc $@ + $(MAKE) -C kdebug $@ diff --git a/libs/libcap/patches/300-uclibc-ng.patch b/libs/libcap/patches/300-uclibc-ng.patch deleted file mode 100644 index c31c7059c..000000000 --- a/libs/libcap/patches/300-uclibc-ng.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/tests/Makefile -+++ b/tests/Makefile -@@ -32,7 +32,7 @@ run_libcap_psx_test: libcap_psx_test - ./libcap_psx_test - - libcap_psx_test: libcap_psx_test.c $(DEPS) -- $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create --static -+ $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create - - run_libcap_launch_test: libcap_launch_test libcap_psx_launch_test noop - sudo ./libcap_launch_test