From eb072bd682f8d3986b6f60367bb5a6e87afc8ce0298ee7022621cd53a11a11fb Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 22 Jul 2019 08:36:41 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/hardware/usbguard?expand=0&rev=17 --- usbguard-pthread.patch | 12 ++++++++++++ usbguard.spec | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 usbguard-pthread.patch diff --git a/usbguard-pthread.patch b/usbguard-pthread.patch new file mode 100644 index 0000000..491c58c --- /dev/null +++ b/usbguard-pthread.patch @@ -0,0 +1,12 @@ +Index: usbguard-0.7.4/Makefile.am +=================================================================== +--- usbguard-0.7.4.orig/Makefile.am ++++ usbguard-0.7.4/Makefile.am +@@ -343,6 +343,7 @@ usbguard_daemon_CPPFLAGS=\ + @audit_CFLAGS@ + + usbguard_daemon_LDADD=\ ++ -pthread \ + $(top_builddir)/libusbguard.la \ + @seccomp_LIBS@ \ + @libcapng_LIBS@ \ diff --git a/usbguard.spec b/usbguard.spec index 1292981..70d1a4c 100644 --- a/usbguard.spec +++ b/usbguard.spec @@ -33,6 +33,7 @@ Source2: usbguard.keyring Source3: usbguard-daemon.conf Source4: usbguard-rpmlintrc Patch0: usbguard-applet-qt_desktop_menu_categories.patch +Patch1: usbguard-pthread.patch BuildRequires: asciidoc BuildRequires: aspell BuildRequires: audit-devel @@ -109,12 +110,12 @@ for interacting with the USBGuard daemon component. %prep %setup -q -n usbguard-%{version} %patch0 -p1 +%patch1 -p1 %build mkdir -p ./m4 autoreconf -i -s --no-recursive ./ -export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -pthread" %configure \ --disable-silent-rules \ --with-bundled-catch \