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 \