diff --git a/71.patch b/71.patch new file mode 100644 index 0000000..5653f4a --- /dev/null +++ b/71.patch @@ -0,0 +1,26 @@ +From 1cb55c72f3a7c52832ef7684dba8b12fd835bf06 Mon Sep 17 00:00:00 2001 +From: "Benjamin A. Beasley" +Date: Wed, 18 Jan 2023 10:36:15 -0500 +Subject: [PATCH] Fix warning from libinstpatch-scan.c (gtkdoc) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fixes warning ”implicit declaration of function ‘ipatch_init’” +--- + docs/reference/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/docs/reference/CMakeLists.txt b/docs/reference/CMakeLists.txt +index c9ea3f6..3097736 100644 +--- a/docs/reference/CMakeLists.txt ++++ b/docs/reference/CMakeLists.txt +@@ -36,7 +36,7 @@ if (GTKDOC_FOUND) + IGNOREHEADERS ${ignore_headers} + SCANOPTS ${CMAKE_CURRENT_BINARY_DIR}/../../libinstpatch/version.h + SCANOBJOPTS --type-init-func=ipatch_init\(\) +- CFLAGS -I${CMAKE_SOURCE_DIR} ++ CFLAGS -I${CMAKE_SOURCE_DIR} -include libinstpatch/misc.h + LDFLAGS -L${CMAKE_CURRENT_BINARY_DIR}/../../libinstpatch -linstpatch-1.0 + LDPATH ${CMAKE_CURRENT_BINARY_DIR}/../../libinstpatch + DEPENDS instpatch-1.0 diff --git a/libinstpatch.spec b/libinstpatch.spec index 5de5474..4689997 100644 --- a/libinstpatch.spec +++ b/libinstpatch.spec @@ -36,6 +36,10 @@ License: LGPL-2.1-only AND LicenseRef-Fedora-Public-Domain %global forgeurl https://github.com/swami/%{name}/ Source0: %{forgeurl}/archive/v%{version}/%{name}-%{version}.tar.gz +# Fix warning from libinstpatch-scan.c (gtkdoc) +# https://github.com/swami/libinstpatch/pull/71 +Patch0: %{forgeurl}/pull/71.patch + BuildRequires: cmake BuildRequires: gcc BuildRequires: ninja-build @@ -109,7 +113,7 @@ The %{name}-doc package contains documentation and examples for %prep -%autosetup +%autosetup -p1 # Remove example for nonexistent Python bindings find examples -type f -name '*.py' -print -delete