Blame SOURCES/0003-github-coreos-rpm-ostree-pr2870.patch

2df828
From c497411e3bc24538a26bc249245ebcebe8fff337 Mon Sep 17 00:00:00 2001
2df828
From: Luca BRUNO <luca.bruno@coreos.com>
2df828
Date: Wed, 2 Jun 2021 11:53:54 +0000
2df828
Subject: [PATCH] makefile/lib: filter out private sources from gir list
2df828
2df828
This excludes C source files too (instead of just headers) from the list of
2df828
source files scanned by gir.
2df828
It fixes the following error:
2df828
```
2df828
src/lib/rpmver-private.c:27: Error: RpmOstree: identifier not found on the first line:
2df828
 * Split EVR into epoch, version, and release components.
2df828
```
2df828
---
2df828
 Makefile-lib.am | 2 +-
2df828
 1 file changed, 1 insertion(+), 1 deletion(-)
2df828
2df828
diff --git a/Makefile-lib.am b/Makefile-lib.am
2df828
index f9d67f5c5..cc4b4de61 100644
2df828
--- a/Makefile-lib.am
2df828
+++ b/Makefile-lib.am
2df828
@@ -44,7 +44,7 @@ RpmOstree_1_0_gir_INCLUDES = OSTree-1.0 Gio-2.0
2df828
 RpmOstree_1_0_gir_CFLAGS = $(librpmostree_1_la_CFLAGS)
2df828
 RpmOstree_1_0_gir_LIBS = librpmostree-1.la
2df828
 RpmOstree_1_0_gir_SCANNERFLAGS = --warn-all --identifier-prefix=RpmOstree --symbol-prefix=rpm_ostree
2df828
-RpmOstree_1_0_gir_FILES = $(librpmostreeinclude_HEADERS) $(filter-out %-private.h,$(librpmostree_1_la_SOURCES))
2df828
+RpmOstree_1_0_gir_FILES = $(librpmostreeinclude_HEADERS) $(filter-out %-private.c %-private.h,$(librpmostree_1_la_SOURCES))
2df828
 INTROSPECTION_GIRS += RpmOstree-1.0.gir
2df828
 gir_DATA += RpmOstree-1.0.gir
2df828
 typelib_DATA += RpmOstree-1.0.typelib