[packages/libu2f-emu] fix build without apidocs

atler atler at pld-linux.org
Mon Jul 11 12:22:42 CEST 2022


commit 11e0fdd09d365843fe0b59b26baaf613741b5901
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Jul 11 12:22:05 2022 +0200

    fix build without apidocs

 libu2f-emu.spec  |  2 ++
 no-apidocs.patch | 20 ++++++++++++++++++++
 2 files changed, 22 insertions(+)
---
diff --git a/libu2f-emu.spec b/libu2f-emu.spec
index d44eec3..9016dd4 100644
--- a/libu2f-emu.spec
+++ b/libu2f-emu.spec
@@ -14,6 +14,7 @@ Group:		Libraries
 #Source0Download: https://github.com/MattGorko/libu2f-emu/tags
 Source0:	https://github.com/MattGorko/libu2f-emu/archive/%{gitref}/%{name}-%{snap}.tar.gz
 # Source0-md5:	79aa3b26eaf704d530aa49d8430d306b
+Patch0:		no-apidocs.patch
 URL:		https://github.com/MattGorko/libu2f-emu
 %{?with_apidocs:BuildRequires:	doxygen}
 %{?with_apidocs:BuildRequires:	graphviz}
@@ -60,6 +61,7 @@ Dokumentacja API biblioteki u2f-emu.
 
 %prep
 %setup -q -n %{name}-%{gitref}
+%patch0 -p1
 
 # allow build without -devel already installed
 ln -sf ../src/u2f-emu{,-types}.h tests
diff --git a/no-apidocs.patch b/no-apidocs.patch
new file mode 100644
index 0000000..c3e30f7
--- /dev/null
+++ b/no-apidocs.patch
@@ -0,0 +1,20 @@
+--- libu2f-emu-d1c4b9c2e1c42e8931033912c8b609521f2a7756/meson.build.orig	2022-07-11 12:13:48.158700002 +0200
++++ libu2f-emu-d1c4b9c2e1c42e8931033912c8b609521f2a7756/meson.build	2022-07-11 12:20:13.011601573 +0200
+@@ -49,7 +49,7 @@
+ 
+ doxygen = find_program('doxygen', required : false)
+ if not doxygen.found()
+-  error('Skip doc: doxygen not found.')
++  warning('Skip doc: doxygen not found.')
+ else
+   doc_config = configuration_data()
+   doc_config.set('VERSION', meson.project_version())
+@@ -60,7 +60,7 @@
+     doc_config.set('HAVE_DOT', 'YES')
+   else
+     doc_config.set('HAVE_DOT', 'NO')
+-    error('Skip dot in doc: dot not found.')
++    warning('Skip dot in doc: dot not found.')
+   endif
+ 
+   doc_config.set('top_srcdir', meson.source_root())
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libu2f-emu.git/commitdiff/11e0fdd09d365843fe0b59b26baaf613741b5901



More information about the pld-cvs-commit mailing list