commit 09b0cd26eaaf0480774cce8d128fa2e59417129e Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:36:36 2019 -0400 Package init diff --git a/0001-Fix-double-free-for-data.channel.patch b/0001-Fix-double-free-for-data.channel.patch new file mode 100644 index 0000000..169c70a --- /dev/null +++ b/0001-Fix-double-free-for-data.channel.patch @@ -0,0 +1,31 @@ +From f52e1f5c91a02b581abaad312134740d590c4270 Mon Sep 17 00:00:00 2001 +From: Zhipeng Xie +Date: Tue, 10 Apr 2018 11:46:38 +0800 +Subject: [PATCH] Fix double free for data.channel + +Signed-off-by: Zhipeng Xie +--- + dbus/dbus-binding-tool-glib.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/dbus/dbus-binding-tool-glib.c b/dbus/dbus-binding-tool-glib.c +index ff0bb47..6d1c032 100644 +--- a/dbus/dbus-binding-tool-glib.c ++++ b/dbus/dbus-binding-tool-glib.c +@@ -870,11 +870,13 @@ dbus_binding_tool_output_glib_server (BaseInfo *info, GIOChannel *channel, const + ret = FALSE; + g_io_channel_shutdown (data.channel, TRUE, error); + g_io_channel_unref (data.channel); ++ data.channel = NULL; + goto io_lose; + } + + g_io_channel_shutdown (data.channel, TRUE, error); + g_io_channel_unref (data.channel); ++ data.channel = NULL; + + /* Now spawn glib-genmarshal to insert all our required marshallers */ + argv = g_ptr_array_new (); +-- +1.7.12.4 + diff --git a/dbus-glib-0.110.tar.gz b/dbus-glib-0.110.tar.gz new file mode 100644 index 0000000..535b057 Binary files /dev/null and b/dbus-glib-0.110.tar.gz differ diff --git a/dbus-glib.spec b/dbus-glib.spec new file mode 100644 index 0000000..605439d --- /dev/null +++ b/dbus-glib.spec @@ -0,0 +1,69 @@ +Name: dbus-glib +Version: 0.110 +Release: 4 +Summary: GLib bindings for DBUS +License: AFL and GPLv2+ +URL: http://www.freedesktop.org/software/dbus/ +Source0: https://dbus.freedesktop.org/releases/dbus-glib/%{name}-%{version}.tar.gz +Patch6000: 0001-Fix-double-free-for-data.channel.patch + +BuildRequires: gcc git gettext chrpath +BuildRequires: pkgconfig(dbus-1) >= 1.8 pkgconfig(glib-2.0) >= 2.40.0 expat-devel >= 1.95.5 + +%description +The D-Bus GLib package contains GLib interfaces to the D-Bus API. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%autosetup -n %{name}-%{version} -p1 -S git + +%build +%configure --enable-tests --enable-asserts --disable-gtk-doc --disable-static +%make_build + +%install +%make_install INSTALL="install -p" + +rm -f %{buildroot}/%{_libdir}/*.la + +chrpath --delete %{buildroot}/%{_bindir}/dbus-binding-tool +chrpath --delete %{buildroot}/%{_libexecdir}/dbus-bash-completion-helper + +%check +make check + +%pre + +%preun + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%doc NEWS +%license COPYING +%{_bindir}/dbus-binding-tool +%{_libdir}/lib%{name}-1.so.* +%{_mandir}/man1/dbus-binding-tool.1.gz + +%files devel +%defattr(-,root,root) +%{_sysconfdir}/bash_completion.d/dbus-bash-completion.sh +%{_includedir}/dbus-1.0/dbus/*.h +%{_libdir}/lib%{name}-1.so +%{_libdir}/pkgconfig/%{name}-1.pc +%{_libexecdir}/dbus-bash-completion-helper +%{_datadir}/gtk-doc/html/%{name} + + +%changelog +* Wed Aug 21 2019 luhuaxin - 0.110-4 +- Package init