diff --git a/usbguard-pthread.patch b/usbguard-pthread.patch new file mode 100644 index 0000000..bca8152 --- /dev/null +++ b/usbguard-pthread.patch @@ -0,0 +1,20 @@ +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=\ ++ -lpthread \ + $(top_builddir)/libusbguard.la \ + @seccomp_LIBS@ \ + @libcapng_LIBS@ \ +@@ -608,6 +609,7 @@ nodist_usbguard_applet_qt_SOURCES=\ + src/GUI.Qt/TargetDelegate.moc.cpp + + usbguard_applet_qt_LDADD=\ ++ -lpthread \ + $(top_builddir)/libusbguard.la \ + @qt_LIBS@ + diff --git a/usbguard.changes b/usbguard.changes index f66ea1e..66cc341 100644 --- a/usbguard.changes +++ b/usbguard.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jul 22 09:50:04 UTC 2019 - Marcus Meissner + +- link against libpthread to make it build (bsc#1141377) +- added usbguard-pthread.patch + ------------------------------------------------------------------- Wed May 22 13:38:28 UTC 2019 - Christophe Giboudeaux diff --git a/usbguard.spec b/usbguard.spec index 4e3f616..70d1a4c 100644 --- a/usbguard.spec +++ b/usbguard.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -26,13 +26,14 @@ Summary: A tool for implementing USB device usage policy # src/ThirdParty/Catch: Boost Software License - Version 1.0 License: GPL-2.0-or-later Group: System/Daemons -URL: https://usbguard.github.io +Url: https://usbguard.github.io Source0: https://github.com/USBGuard/usbguard/releases/download/usbguard-%{version}/usbguard-%{version}.tar.gz Source1: https://github.com/USBGuard/usbguard/releases/download/usbguard-%{version}/usbguard-%{version}.tar.gz.sig 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,6 +110,7 @@ for interacting with the USBGuard daemon component. %prep %setup -q -n usbguard-%{version} %patch0 -p1 +%patch1 -p1 %build mkdir -p ./m4