File: 03_glib-2.68-support.patch

package info (click to toggle)
glib-d 2.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 456 kB
  • sloc: makefile: 5
file content (59 lines) | stat: -rw-r--r-- 1,462 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
From b22a87ee6f42806aff5f9173a24cd05995db6cb0 Mon Sep 17 00:00:00 2001
From: Mike Wey <mike@mikewey.eu>
Date: Sat, 3 Apr 2021 14:37:12 +0200
Subject: [PATCH] Fix building for GLib 2.68 / Fedora 34

See Also: #11
---
 src/APILookupGLib.txt | 6 ++++--
 src/APILookupGio.txt  | 6 ++++++
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/APILookupGLib.txt b/src/APILookupGLib.txt
index 6e10e20..d0d0bfc 100644
--- a/src/APILookupGLib.txt
+++ b/src/APILookupGLib.txt
@@ -320,7 +320,7 @@ code: start
 		if ( date is null )
 			return false;
 
-		return equal(this, date) != 0;
+		return g_date_time_compare(gDateTime, date.getDateTimeStruct()) != 0;
 	}
 
 	/** */
@@ -331,7 +331,7 @@ code: start
 		if ( date is null )
 			return int.min;
 
-		return compare(this, date);
+		return g_date_time_compare(gDateTime, date.getDateTimeStruct());
 	}
 
 	/** */
@@ -1489,6 +1489,8 @@ code: end
 struct: TimeZone
 noCode: new_local
 noCode: new_utc
+#TODO: Proper solution
+version 2.68: noCode: new_identifier
 
 struct: Tree
 class: BBTree
diff --git a/src/APILookupGio.txt b/src/APILookupGio.txt
index 8b285f2..87c6780 100644
--- a/src/APILookupGio.txt
+++ b/src/APILookupGio.txt
@@ -401,6 +401,12 @@ array: set_environ env
 struct: ThemedIcon
 noCode: new
 
+version 2.68: start
+	struct: TlsCertificate
+	#TODO: Proper solution
+	noCode: new_from_pkcs11_uris
+version: end
+
 struct: TlsPassword
 out: get_value length
 array: get_value Return length