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

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