fix FTBFS: apply patch to generated file replacing parentinstance with parent

see https://github.com/hbons/webkit2-sharp/issues/6
This commit is contained in:
Timotheus Pokorra 2023-08-14 08:39:26 +02:00
commit 067b123780
2 changed files with 18 additions and 4 deletions

View file

@ -0,0 +1,11 @@
--- a/sources/Makefile.am 2023-08-12 21:24:16.266564059 +0200
+++ b/sources/Makefile.am 2023-08-12 21:25:33.461760068 +0200
@@ -52,6 +52,7 @@
--glue-includes=webkit2/webkit2.h, --gapidir=$(gapidir) \
--assembly-name=$(ASSEMBLY_NAME) && \
find $(srcdir)/generated/ -type f -name "*.cs" > $(GEN_SOURCES)
+ sed -i "s/parentInstance/parent/g" $(GLUEDIR)/generated.c
$(SRC_FILES_XML): $(GEN_SOURCES) $(CUSTOM_SOURCES)
echo "<SourceFiles>" > $(SRC_FILES_XML)

View file

@ -4,7 +4,7 @@
Name: webkit2-sharp
Version: 0
Release: 0.18%{?snapshotdate:.%{snapshotdate}git%{shortcommit}}%{?dist}
Release: 0.19%{?snapshotdate:.%{snapshotdate}git%{shortcommit}}%{?dist}
Summary: C# bindings for WebKit 2 with GTK+ 3
License: MIT
@ -15,6 +15,7 @@ Source0: %url/archive/%{commit}/%{name}-%{shortcommit}.tar.gz}
Source0: %url/archive/%{commit}/%{name}-%{version}.tar.gz}
Patch0: %{name}-a59fd76-fix_libdir.patch
Patch1: %{name}-a59fd76-fix_parentinstance.patch
Requires: webkit2gtk3
BuildRequires: make
@ -51,10 +52,9 @@ Development files for WebKit2-sharp
%prep
%{?shortcommit:
%autosetup -n %{name}-%{commit}}
%autosetup -n %{name}-%{commit} -p1}
%{!?shortcommit:
%autosetup -n %{name}-%{version}}
%autosetup -n %{name}-%{version} -p1}
%build
./autogen.sh
@ -85,6 +85,9 @@ find %{buildroot} -name '*.la' -delete
%changelog
* Mon Aug 14 2023 Timotheus Pokorra <timotheus.pokorra@solidcharity.com> - 0.0.19.20170219gita59fd76
- fix FTBFS: apply patch to generated file replacing parentinstance with parent
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.18.20170219gita59fd76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild