]> git.pld-linux.org Git - packages/libldm.git/commitdiff
- fix building with glib 2.35.0+ auto/th/libldm-0.2.3-3
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 21 Oct 2016 05:38:39 +0000 (07:38 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 21 Oct 2016 05:38:39 +0000 (07:38 +0200)
- rel 3

libldm-gtype.patch [new file with mode: 0644]
libldm.spec

diff --git a/libldm-gtype.patch b/libldm-gtype.patch
new file mode 100644 (file)
index 0000000..a378d26
--- /dev/null
@@ -0,0 +1,12 @@
+--- libldm-0.2.3/src/ldmtool.c.orig    2013-08-04 11:41:00.357706797 +0100
++++ libldm-0.2.3/src/ldmtool.c 2013-08-04 11:41:58.605069312 +0100
+@@ -777,7 +777,9 @@
+     }
+     g_option_context_free(context);
++#if (GLIB_MAJOR_VERSION <= 2 && GLIB_MINOR_VERSION <= 35 && GLIB_MICRO_VERSION <= 0)
+     g_type_init();
++#endif
+     LDM * const ldm = ldm_new(&err);
index c6d6befa8c3886e51f169d79e4258c0eafde6816..c900da206689e8edc42589b311db5810c3ccbada 100644 (file)
@@ -7,12 +7,13 @@ Summary:      A tool to manage Windows dynamic disks
 Summary(pl.UTF-8):     Narzędzie do zarządzania dynamicznymi dyskami Windows
 Name:          libldm
 Version:       0.2.3
-Release:       2
+Release:       3
 License:       LGPL v3+ (libldm), GPL v3+ (ldmtool)
 Group:         Libraries
 Source0:       https://github.com/mdbooth/libldm/downloads/%{name}-%{version}.tar.gz
 # Source0-md5: a7771c0a0f84dab6d7ce6a565ede4229
 Patch0:                %{name}-warnings.patch
+Patch1:                %{name}-gtype.patch
 URL:           https://github.com/mdbooth/libldm/
 BuildRequires: autoconf >= 2.68
 BuildRequires: automake >= 1.6
@@ -92,6 +93,7 @@ Dokumentacja API biblioteki libldm.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
This page took 0.091669 seconds and 4 git commands to generate.