Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package deepin-gir-generator for
openSUSE:Factory checked in at 2022-03-07 17:46:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/deepin-gir-generator (Old)
and /work/SRC/openSUSE:Factory/.deepin-gir-generator.new.1958 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "deepin-gir-generator"
Mon Mar 7 17:46:13 2022 rev:4 rq:959464 version:2.0.8
Changes:
--------
---
/work/SRC/openSUSE:Factory/deepin-gir-generator/deepin-gir-generator.changes
2022-01-31 22:56:57.897725778 +0100
+++
/work/SRC/openSUSE:Factory/.deepin-gir-generator.new.1958/deepin-gir-generator.changes
2022-03-07 17:46:18.399130836 +0100
@@ -1,0 +2,13 @@
+Wed Feb 23 06:25:57 UTC 2022 - Hillwood Yang <[email protected]>
+
+- Use last stable version of go to build
+
+-------------------------------------------------------------------
+Fri Feb 18 08:27:44 UTC 2022 - Hillwood Yang <[email protected]>
+
+- Update version to 2.0.8
+ * add struct SettingsSchema
+ * fix compatibility with glib 2.63+
+- Drop support-glib2_36-and-higher.patch
+
+-------------------------------------------------------------------
Old:
----
go-gir-generator-2.0.2.tar.gz
support-glib2_36-and-higher.patch
New:
----
go-gir-generator-2.0.8.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ deepin-gir-generator.spec ++++++
--- /var/tmp/diff_new_pack.eRJJRb/_old 2022-03-07 17:46:19.031130653 +0100
+++ /var/tmp/diff_new_pack.eRJJRb/_new 2022-03-07 17:46:19.039130651 +0100
@@ -18,18 +18,13 @@
%define _name go-gir-generator
Name: deepin-gir-generator
-Version: 2.0.2
+Version: 2.0.8
Release: 0
Summary: Go-gir-generator imeplement static golang bindings for GObject
License: MIT
Group: Development/Languages/Golang
Url: https://github.com/linuxdeepin/go-gir-generator
Source:
https://github.com/linuxdeepin/%{_name}/archive/%{version}/%{_name}-%{version}.tar.gz
-# PATCH-FIX-UPSTREAM support-glib2_36-and-higher.patch [email protected]
-- Fix compatibility with glib 2.63+
-Patch0: support-glib2_36-and-higher.patch
-%if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150300
-BuildRequires: golang(API) = 1.15
-%endif
BuildRequires: golang-packaging
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gudev-1.0)
@@ -110,6 +105,7 @@
%endif
%build
+export GO111MODULE=off
make %{?_smp_mflags}
%install
++++++ go-gir-generator-2.0.2.tar.gz -> go-gir-generator-2.0.8.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/go-gir-generator-2.0.2/Makefile
new/go-gir-generator-2.0.8/Makefile
--- old/go-gir-generator-2.0.2/Makefile 2019-05-09 07:16:36.000000000 +0200
+++ new/go-gir-generator-2.0.8/Makefile 2021-11-10 03:57:22.000000000 +0100
@@ -3,6 +3,7 @@
GOTEST = go build
GORUN = go run
OUT_GIR_DIR = out/src/pkg.deepin.io/gir/
+export GO111MODULE=off
all: build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/go-gir-generator-2.0.2/debian/rules
new/go-gir-generator-2.0.8/debian/rules
--- old/go-gir-generator-2.0.2/debian/rules 2019-05-09 07:16:36.000000000
+0200
+++ new/go-gir-generator-2.0.8/debian/rules 2021-11-10 03:57:22.000000000
+0100
@@ -1,5 +1,7 @@
#!/usr/bin/make -f
+
+export GOCACHE := /tmp/gocache
%:
dh $@
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/go-gir-generator-2.0.2/lib.in/gio-2.0/config.json
new/go-gir-generator-2.0.8/lib.in/gio-2.0/config.json
--- old/go-gir-generator-2.0.2/lib.in/gio-2.0/config.json 2019-05-09
07:16:36.000000000 +0200
+++ new/go-gir-generator-2.0.8/lib.in/gio-2.0/config.json 2021-11-10
03:57:22.000000000 +0100
@@ -53,9 +53,11 @@
"FileAttributeMatcher",
"ActionEntry",
"SettingsBackend",
+ "SettingsSchema",
+ "SettingsSchemaKey",
+ "SettingsSchemaSource",
"MountIface",
"OutputVector"
- //"SettingsSchema"
],
"interfaces": [
"Seekable",
@@ -73,147 +75,147 @@
},
"method-whitelist": {
"File": [
- "copy",
- "move",
- "delete",
- "get_uri",
- "monitor",
- "append_to",
- "append_to_async",
- "append_to_finish",
- "copy_attributes",
- "copy_finish",
- "create",
- "create_async",
- "create_finish",
- "create_readwrite",
- "create_readwrite_async",
- "create_readwrite_finish",
- "delete_async",
- "delete_finish",
- "dup",
- "eject_mountable",
- "eject_mountable_finish",
- "eject_mountable_with_operation",
- "eject_mountable_with_operation_finish",
- "enumerate_children",
- "enumerate_children_async",
- "enumerate_children_finish",
- "equal",
- "find_enclosing_mount",
- "find_enclosing_mount_async",
- "find_enclosing_mount_finish",
- "get_basename",
- "get_child",
- "get_child_for_display_name",
- "get_parent",
- "get_parse_name",
- "get_path",
- "get_relative_path",
- "get_uri_scheme",
- "has_parent ",
- "has_prefix",
- "has_uri_scheme",
- "hash",
- "is_native",
- "load_contents",
- "load_contents_async",
- "load_contents_finish",
- "load_partial_contents_finish",
- "make_directory",
- "make_directory_async",
- "make_directory_finish",
- "make_directory_with_parents",
- "make_symbolic_link",
- "measure_disk_usage_finish",
- "has_parent",
- "monitor_directory",
- "monitor_file",
- "mount_enclosing_volume",
- "mount_enclosing_volume_finish",
- "mount_mountable",
- "mount_mountable_finish",
- "open_readwrite",
- "open_readwrite_async",
- "open_readwrite_finish",
- "poll_mountable",
- "poll_mountable_finish",
- "query_default_handler",
- "query_exists",
- "query_file_type",
- "query_filesystem_info",
- "query_filesystem_info_async",
- "query_filesystem_info_finish",
- "query_info",
- "query_info_async",
- "query_info_finish",
- "query_settable_attributes",
- "query_writable_namespaces",
- "read",
- "read_async",
- "read_finish",
- "replace",
- "replace_async",
- "replace_contents",
- "replace_contents_async",
- "replace_contents_finish",
- "replace_finish",
- "replace_readwrite",
- "replace_readwrite_async",
- "replace_readwrite_finish",
- "resolve_relative_path",
- "set_attribute",
- "set_attribute_byte_string",
- "set_attribute_int32",
- "set_attribute_int64",
- "set_attribute_string",
- "set_attribute_uint32",
- "set_attribute_uint64",
- "set_attributes_async",
- "set_attributes_finish",
- "set_attributes_from_info",
- "set_display_name",
- "set_display_name_async",
- "set_display_name_finish",
- "start_mountable",
- "start_mountable_finish",
- "stop_mountable",
- "stop_mountable_finish",
- "supports_thread_contexts",
- "trash",
- "trash_async",
- "trash_finish",
- "unmount_mountable",
- "unmount_mountable_finish",
- "unmount_mountable_with_operation",
- "unmount_mountable_with_operation_finish"
+ "copy",
+ "move",
+ "delete",
+ "get_uri",
+ "monitor",
+ "append_to",
+ "append_to_async",
+ "append_to_finish",
+ "copy_attributes",
+ "copy_finish",
+ "create",
+ "create_async",
+ "create_finish",
+ "create_readwrite",
+ "create_readwrite_async",
+ "create_readwrite_finish",
+ "delete_async",
+ "delete_finish",
+ "dup",
+ "eject_mountable",
+ "eject_mountable_finish",
+ "eject_mountable_with_operation",
+ "eject_mountable_with_operation_finish",
+ "enumerate_children",
+ "enumerate_children_async",
+ "enumerate_children_finish",
+ "equal",
+ "find_enclosing_mount",
+ "find_enclosing_mount_async",
+ "find_enclosing_mount_finish",
+ "get_basename",
+ "get_child",
+ "get_child_for_display_name",
+ "get_parent",
+ "get_parse_name",
+ "get_path",
+ "get_relative_path",
+ "get_uri_scheme",
+ "has_parent ",
+ "has_prefix",
+ "has_uri_scheme",
+ "hash",
+ "is_native",
+ "load_contents",
+ "load_contents_async",
+ "load_contents_finish",
+ "load_partial_contents_finish",
+ "make_directory",
+ "make_directory_async",
+ "make_directory_finish",
+ "make_directory_with_parents",
+ "make_symbolic_link",
+ "measure_disk_usage_finish",
+ "has_parent",
+ "monitor_directory",
+ "monitor_file",
+ "mount_enclosing_volume",
+ "mount_enclosing_volume_finish",
+ "mount_mountable",
+ "mount_mountable_finish",
+ "open_readwrite",
+ "open_readwrite_async",
+ "open_readwrite_finish",
+ "poll_mountable",
+ "poll_mountable_finish",
+ "query_default_handler",
+ "query_exists",
+ "query_file_type",
+ "query_filesystem_info",
+ "query_filesystem_info_async",
+ "query_filesystem_info_finish",
+ "query_info",
+ "query_info_async",
+ "query_info_finish",
+ "query_settable_attributes",
+ "query_writable_namespaces",
+ "read",
+ "read_async",
+ "read_finish",
+ "replace",
+ "replace_async",
+ "replace_contents",
+ "replace_contents_async",
+ "replace_contents_finish",
+ "replace_finish",
+ "replace_readwrite",
+ "replace_readwrite_async",
+ "replace_readwrite_finish",
+ "resolve_relative_path",
+ "set_attribute",
+ "set_attribute_byte_string",
+ "set_attribute_int32",
+ "set_attribute_int64",
+ "set_attribute_string",
+ "set_attribute_uint32",
+ "set_attribute_uint64",
+ "set_attributes_async",
+ "set_attributes_finish",
+ "set_attributes_from_info",
+ "set_display_name",
+ "set_display_name_async",
+ "set_display_name_finish",
+ "start_mountable",
+ "start_mountable_finish",
+ "stop_mountable",
+ "stop_mountable_finish",
+ "supports_thread_contexts",
+ "trash",
+ "trash_async",
+ "trash_finish",
+ "unmount_mountable",
+ "unmount_mountable_finish",
+ "unmount_mountable_with_operation",
+ "unmount_mountable_with_operation_finish"
],
"AppInfo": [
- "launch",
- "create_from_commandline",
- "add_supports_type",
- "can_delete",
- "can_remove_supports_type",
- "delete",
- "dup",
- "equal",
- "get_commandline",
- "get_description",
- "get_display_name",
- "get_executable",
- "get_icon",
- "get_id",
- "get_name",
- "get_supported_types",
- "launch_uris",
- "remove_supports_type",
- "set_as_default_for_extension",
- "set_as_default_for_type",
- "set_as_last_used_for_type",
- "should_show",
- "supports_files",
- "supports_uris"
+ "launch",
+ "create_from_commandline",
+ "add_supports_type",
+ "can_delete",
+ "can_remove_supports_type",
+ "delete",
+ "dup",
+ "equal",
+ "get_commandline",
+ "get_description",
+ "get_display_name",
+ "get_executable",
+ "get_icon",
+ "get_id",
+ "get_name",
+ "get_supported_types",
+ "launch_uris",
+ "remove_supports_type",
+ "set_as_default_for_extension",
+ "set_as_default_for_type",
+ "set_as_last_used_for_type",
+ "should_show",
+ "supports_files",
+ "supports_uris"
]
},
"method-blacklist": {
@@ -222,7 +224,8 @@
"launch_uris_as_manager_with_fds"
],
"Cancellable": [
- "connect"
+ "connect",
+ "source_new"
],
"Application": [
"get_dbus_connection"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/go-gir-generator-2.0.2/lib.in/gio-2.0/gio.go.in
new/go-gir-generator-2.0.8/lib.in/gio-2.0/gio.go.in
--- old/go-gir-generator-2.0.2/lib.in/gio-2.0/gio.go.in 2019-05-09
07:16:36.000000000 +0200
+++ new/go-gir-generator-2.0.8/lib.in/gio-2.0/gio.go.in 2021-11-10
03:57:22.000000000 +0100
@@ -20,3 +20,10 @@
[<.go_utils>]
[<.go_bindings>]
+
+func (gs *Settings) GetSchema() *SettingsSchema {
+ var gsSchema *SettingsSchema
+ gs.GetProperty("settings-schema", &gsSchema)
+
+ return gsSchema
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/go-gir-generator-2.0.2/rpm/go-gir-generator.spec
new/go-gir-generator-2.0.8/rpm/go-gir-generator.spec
--- old/go-gir-generator-2.0.2/rpm/go-gir-generator.spec 1970-01-01
01:00:00.000000000 +0100
+++ new/go-gir-generator-2.0.8/rpm/go-gir-generator.spec 2021-11-10
03:57:22.000000000 +0100
@@ -0,0 +1,62 @@
+#add 2020-04-26
+%global _unpackaged_files_terminate_build 0
+%global with_debug 1
+
+%if 0%{?with_debug}
+%global debug_package %{nil}
+%endif
+
+Name: go-gir-generator
+Version: 2.0.5
+Release: 1
+Summary: Generate static golang bindings for GObject
+License: GPLv3
+URL: ssh://gerrit.uniontech.com:29418/go-gir-generator
+Source0: %{name}-%{version}.orig.tar.xz
+#Patch0: SettingsBackendLike.patch
+# https://cr.deepin.io/#/c/go-gir-generator/+/41653/
+#Patch1: %{name}_build-with-glib2.patch
+
+# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
+
+# If go_compiler is not set to 1, there is no virtual provide. Use golang
instead.
+BuildRequires: compiler(go-compiler)
+BuildRequires: pkgconfig(gobject-introspection-1.0)
+BuildRequires: pkgconfig(gudev-1.0)
+Provides: golang(gir/gobject-2.0)
+Provides: golang(gir/gio-2.0)
+Provides: golang(gir/glib-2.0)
+Provides: golang(gir/gudev-1.0)
+Provides: pkgconfig(pkg.deepin.io/gir/gio-2.0)
+Provides: deepin-gir-generator
+
+%description
+Generate static golang bindings for GObject
+
+%prep
+%setup -q -n %{name}-%{version}
+
+#GIO_VER=$(v=$(rpm -q --qf %{RPMTAG_VERSION} gobject-introspection); echo
${v//./})
+#if [ $GIO_VER -ge 1521 ]; then
+# Our gobject-introspection is too new
+# https://cr.deepin.io/#/c/16880/
+#%patch0 -p1
+#%patch1 -p1
+#fi
+
+%build
+export GOPATH="%{gopath}"
+%make_build
+
+%install
+%make_install
+
+%files
+%doc README.md
+%license LICENSE
+%{_bindir}/gir-generator
+%{gopath}/src/pkg.deepin.io/gir/
+
+%changelog
+* Thu Mar 23 2021 uoser <[email protected]> - 2.0.5-1
+- Update to 2.0.5
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/go-gir-generator-2.0.2/src/gir-generator/binding_generator.go
new/go-gir-generator-2.0.8/src/gir-generator/binding_generator.go
--- old/go-gir-generator-2.0.2/src/gir-generator/binding_generator.go
2019-05-09 07:16:36.000000000 +0200
+++ new/go-gir-generator-2.0.8/src/gir-generator/binding_generator.go
2021-11-10 03:57:22.000000000 +0100
@@ -302,13 +302,15 @@
pc := printer_to(this.out_c)
ctype := c_type_for_interface(bi, type_none)
+ ci := gi.ToCallableInfo(bi)
+
// type doesn't matter here, it's just a pointer after all
p("typedef void* %s;\n", ctype)
// and wrapper declarations for .c file only (cgo has problems
// with that)
- pc("extern void _%s_c_wrapper();\n", ctype)
- pc("extern void _%s_c_wrapper_once();\n", ctype)
+ pc("extern %s _%s_c_wrapper();\n", c_type(ci.ReturnType(),
type_none), ctype)
+ pc("extern %s _%s_c_wrapper_once();\n", c_type(ci.ReturnType(),
type_none), ctype)
}
}