Package init

This commit is contained in:
overweight 2019-09-30 10:36:36 -04:00
commit 09b0cd26ea
3 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,31 @@
From f52e1f5c91a02b581abaad312134740d590c4270 Mon Sep 17 00:00:00 2001
From: Zhipeng Xie <xiezhipeng1@huawei.com>
Date: Tue, 10 Apr 2018 11:46:38 +0800
Subject: [PATCH] Fix double free for data.channel
Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
---
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

BIN
dbus-glib-0.110.tar.gz Normal file

Binary file not shown.

69
dbus-glib.spec Normal file
View File

@ -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 <luhuaxin@huawei.com> - 0.110-4
- Package init