summaryrefslogtreecommitdiff
path: root/user/gobject-introspection/musl-time64.patch
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-04-29 21:35:23 +0000
committerZach van Rijn <me@zv.io>2022-10-21 18:33:58 -0500
commitec050f50078fd08bd33107e059195292dc253c72 (patch)
treee9ae026a956640fd085fb7b61d7702c8f037b81d /user/gobject-introspection/musl-time64.patch
parent49893f35fe3f422c28d88551a7047dab6679f410 (diff)
downloadpackages-ec050f50078fd08bd33107e059195292dc253c72.tar.gz
packages-ec050f50078fd08bd33107e059195292dc253c72.tar.bz2
packages-ec050f50078fd08bd33107e059195292dc253c72.tar.xz
packages-ec050f50078fd08bd33107e059195292dc253c72.zip
user/gobject-introspection: bump { 1.66.1 --> 1.72.0 }. fixes #618.
Diffstat (limited to 'user/gobject-introspection/musl-time64.patch')
-rw-r--r--user/gobject-introspection/musl-time64.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/user/gobject-introspection/musl-time64.patch b/user/gobject-introspection/musl-time64.patch
new file mode 100644
index 000000000..53066bebb
--- /dev/null
+++ b/user/gobject-introspection/musl-time64.patch
@@ -0,0 +1,37 @@
+--- a/giscanner/ast.py
++++ b/giscanner/ast.py
+@@ -346,7 +346,8 @@
+ type_names['ssize_t'] = type_names['gssize']
+ type_names['uintptr_t'] = type_names['guintptr']
+ type_names['intptr_t'] = type_names['gintptr']
+-type_names['time_t'] = TYPE_LONG
++# musl libc 1.2 and newer uses 64 time_t for all arches
++type_names['time_t'] = TYPE_INT64
+ type_names['off_t'] = type_names['gsize']
+ type_names['pid_t'] = TYPE_INT
+ type_names['uid_t'] = TYPE_UINT
+--- a/tests/scanner/Regress-1.0-expected.gir
++++ b/tests/scanner/Regress-1.0-expected.gir
+@@ -2003,7 +2003,7 @@ uses a C sugar return type.</doc>
+ <type name="FooObject" c:type="RegressFooObject*"/>
+ </instance-parameter>
+ <parameter name="time" transfer-ownership="none">
+- <type name="glong" c:type="time_t"/>
++ <type name="gint64" c:type="time_t"/>
+ </parameter>
+ </parameters>
+ </method>
+@@ -8381,11 +8381,11 @@ https://bugzilla.gnome.org/show_bug.cgi?id=685399</doc>
+ <function name="test_timet" c:identifier="regress_test_timet">
+ <source-position filename="regress.h" line="94"/>
+ <return-value transfer-ownership="none">
+- <type name="glong" c:type="time_t"/>
++ <type name="gint64" c:type="time_t"/>
+ </return-value>
+ <parameters>
+ <parameter name="in" transfer-ownership="none">
+- <type name="glong" c:type="time_t"/>
++ <type name="gint64" c:type="time_t"/>
+ </parameter>
+ </parameters>
+ </function>