diff --git a/f7ebf2d19d1ffb2b5ec71dcb092bace7c33a4ca1.patch b/f7ebf2d19d1ffb2b5ec71dcb092bace7c33a4ca1.patch new file mode 100644 index 0000000..3297efe --- /dev/null +++ b/f7ebf2d19d1ffb2b5ec71dcb092bace7c33a4ca1.patch @@ -0,0 +1,53 @@ +From f7ebf2d19d1ffb2b5ec71dcb092bace7c33a4ca1 Mon Sep 17 00:00:00 2001 +From: Pedro Castro +Date: Sat, 23 Oct 2021 21:29:12 +0100 +Subject: [PATCH] Fix crash due to missing libdl + +Fixes #185 - Version 1.7 does not start on Fedora 35 beta +--- + src/External/Interop/Interop.cs | 8 ++++---- + src/GnomeSubtitles/Execution/gnome-subtitles.exe.config | 1 - + 2 files changed, 4 insertions(+), 5 deletions(-) + +diff --git a/src/External/Interop/Interop.cs b/src/External/Interop/Interop.cs +index 6525800..6d26158 100644 +--- a/src/External/Interop/Interop.cs ++++ b/src/External/Interop/Interop.cs +@@ -1,6 +1,6 @@ + /* + * This file is part of Gnome Subtitles. +- * Copyright (C) 2020 Pedro Castro ++ * Copyright (C) 2020-2021 Pedro Castro + * + * Gnome Subtitles is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by +@@ -28,13 +28,13 @@ public class Interop { + + /* Function imports */ + +- [DllImport("libdl")] ++ [DllImport("libc")] + private static extern IntPtr dlopen (string filename, int flags); + +- [DllImport("libdl")] ++ [DllImport("libc")] + private static extern IntPtr dlsym (IntPtr handle, string symbol); + +- [DllImport("libdl")] ++ [DllImport("libc")] + private static extern int dlclose (IntPtr handl); + + +diff --git a/src/GnomeSubtitles/Execution/gnome-subtitles.exe.config b/src/GnomeSubtitles/Execution/gnome-subtitles.exe.config +index 4ec86f7..1241e27 100644 +--- a/src/GnomeSubtitles/Execution/gnome-subtitles.exe.config ++++ b/src/GnomeSubtitles/Execution/gnome-subtitles.exe.config +@@ -1,5 +1,4 @@ + + + +- + +-- +GitLab + diff --git a/gnome-subtitles.spec b/gnome-subtitles.spec index d442c39..7f62399 100644 --- a/gnome-subtitles.spec +++ b/gnome-subtitles.spec @@ -7,6 +7,7 @@ Summary: Subtitle editor for Gnome License: GPLv2+ and (MPLv1.1 or GPLv2+ or LGPLv2+) URL: http://gnome-subtitles.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Patch0: f7ebf2d19d1ffb2b5ec71dcb092bace7c33a4ca1.patch BuildRequires: desktop-file-utils BuildRequires: gnome-doc-utils @@ -38,7 +39,7 @@ most common text-based subtitle formats and allows for subtitle editing, translation and synchronization. %prep -%autosetup +%autosetup -p1 %build