update package to 0.10.2
update package to 0.10.2
This commit is contained in:
parent
b51b3502a9
commit
cd5a2f59be
@ -0,0 +1,36 @@
|
|||||||
|
From ba991da43469a1844b67fcec19a15ceda409fc3f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Ralph Boehme <slow@samba.org>
|
||||||
|
Date: Tue, 17 Jul 2018 12:59:50 +0200
|
||||||
|
Subject: [PATCH 04/27] tevent: fix CID 1437974 dereference after null check
|
||||||
|
|
||||||
|
Probably a copy/paste error from the tevent_debug() statement a few
|
||||||
|
lines above as at this place we want to pass main_ev directly to
|
||||||
|
tevent_debug() anyway.
|
||||||
|
|
||||||
|
Signed-off-by: Ralph Boehme <slow@samba.org>
|
||||||
|
Reviewed-by: Volker Lendecke <vl@samba.org>
|
||||||
|
|
||||||
|
Autobuild-User(master): Volker Lendecke <vl@samba.org>
|
||||||
|
Autobuild-Date(master): Tue Jul 17 16:21:21 CEST 2018 on sn-devel-144
|
||||||
|
|
||||||
|
Signed-off-by: root <root@localhost.localdomain>
|
||||||
|
---
|
||||||
|
tevent_wrapper.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/tevent_wrapper.c b/tevent_wrapper.c
|
||||||
|
index a0e915f..f431e8f 100644
|
||||||
|
--- a/tevent_wrapper.c
|
||||||
|
+++ b/tevent_wrapper.c
|
||||||
|
@@ -339,7 +339,7 @@ struct tevent_context *_tevent_context_wrapper_create(struct tevent_context *mai
|
||||||
|
/*
|
||||||
|
* stacking of wrappers is not supported
|
||||||
|
*/
|
||||||
|
- tevent_debug(main_ev->wrapper.glue->main_ev, TEVENT_DEBUG_FATAL,
|
||||||
|
+ tevent_debug(main_ev, TEVENT_DEBUG_FATAL,
|
||||||
|
"%s: %s() stacking not allowed\n",
|
||||||
|
__func__, location);
|
||||||
|
errno = EINVAL;
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
||||||
98
libtevent.spec
Normal file
98
libtevent.spec
Normal file
@ -0,0 +1,98 @@
|
|||||||
|
%{!?python3_sitearch: %define python3_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||||
|
|
||||||
|
%global talloc_version 2.3.1
|
||||||
|
|
||||||
|
Name: libtevent
|
||||||
|
Version: 0.10.2
|
||||||
|
Release: 1
|
||||||
|
Summary: Tevent is an event system based on the talloc memory management library.
|
||||||
|
License: LGPLv3+
|
||||||
|
URL: http://tevent.samba.org
|
||||||
|
Source0: http://samba.org/ftp/tevent/tevent-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch1: 0001-tevent-fix-CID-1437974-dereference-after-null-check.patch
|
||||||
|
|
||||||
|
BuildRequires: gcc libtirpc-devel docbook-style-xsl doxygen libxslt git
|
||||||
|
BuildRequires: libtalloc-devel >= %{talloc_version}
|
||||||
|
BuildRequires: python3-devel python3-talloc-devel >= %{talloc_version}
|
||||||
|
|
||||||
|
Provides: bundled(libreplace)
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
Tevent is an event system based on the talloc memory management library. It is the core event system used in Samba.
|
||||||
|
The low level tevent has support for many event types, including timers, signals, and the classic file descriptor events.
|
||||||
|
Tevent also provide helpers to deal with asynchronous code providing the tevent_req (tevent request) functions.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Libraries and header files for tevent
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
Requires: libtalloc-devel%{?_isa} >= 2.0.7 pkgconfig
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Libraries and header files for tevent
|
||||||
|
|
||||||
|
%package -n python3-tevent
|
||||||
|
Summary: Python 3 libraries files for tevent
|
||||||
|
Requires: libtevent%{?_isa} = %{version}-%{release}
|
||||||
|
Obsoletes: python2-tevent
|
||||||
|
|
||||||
|
%{?python_provide:%python_provide python3-tevent}
|
||||||
|
|
||||||
|
%description -n python3-tevent
|
||||||
|
Python3 libraries files for tevent
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Man for tevent
|
||||||
|
Requires: man
|
||||||
|
|
||||||
|
%description help
|
||||||
|
Man for tevent
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n tevent-%{version} -p1 -Sgit
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --disable-rpath --bundled-libraries=NONE --builtin-libraries=replace
|
||||||
|
|
||||||
|
%make_build V=1
|
||||||
|
doxygen doxy.config
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \;
|
||||||
|
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}
|
||||||
|
cp -a ./doc/man/* $RPM_BUILD_ROOT/%{_mandir}/
|
||||||
|
|
||||||
|
%check
|
||||||
|
%make_build check
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_libdir}/libtevent.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/tevent.h
|
||||||
|
%{_libdir}/libtevent.so
|
||||||
|
%{_libdir}/pkgconfig/tevent.pc
|
||||||
|
|
||||||
|
%files -n python3-tevent
|
||||||
|
%{python3_sitearch}/*
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%exclude %{_mandir}/man3/todo*
|
||||||
|
%{_mandir}/man3/tevent*
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Jul 30 2020 yanglongkang <yanglongkang@huawei.com> - 0.10.2-1
|
||||||
|
- update to 0.10.2 version
|
||||||
|
|
||||||
|
* Mon Feb 17 2020 sunshihao <sunshihao@huawei.com> - 0.10.1-1
|
||||||
|
- Type:enhancement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:update tevent to 0.10.1
|
||||||
|
|
||||||
|
* Tue Sep 3 2019 wubo<wubo40@huawei.com> - 0.9.37-4
|
||||||
|
- Package init
|
||||||
BIN
tevent-0.10.2.tar.gz
Normal file
BIN
tevent-0.10.2.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user