Compare commits

...

2 Commits

Author SHA1 Message Date
David Abdurachmanov ad1b224f1e
Fix Python 2 sub-package
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-09-17 18:21:59 +03:00
David Abdurachmanov 2f398702da
Fix compilation error
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-09-17 16:37:41 +03:00
2 changed files with 26 additions and 5 deletions

View File

@ -0,0 +1,13 @@
diff --git a/src/c/src/zookeeper.c b/src/c/src/zookeeper.c
index e9d462e..82cfc84 100644
--- a/src/c/src/zookeeper.c
+++ b/src/c/src/zookeeper.c
@@ -3441,7 +3441,7 @@ int zoo_add_auth(zhandle_t *zh,const char* scheme,const char* cert,
static const char* format_endpoint_info(const struct sockaddr_storage* ep)
{
static char buf[128];
- char addrstr[128];
+ char addrstr[INET6_ADDRSTRLEN];
void *inaddr;
#ifdef WIN32
char * addrstring;

View File

@ -3,7 +3,7 @@
Name: zookeeper
Version: 3.4.9
Release: 11%{?dist}
Release: 11.1.riscv64%{?dist}
Summary: A high-performance coordination service for distributed applications
License: ASL 2.0 and BSD
URL: https://zookeeper.apache.org/
@ -19,6 +19,8 @@ Patch3: %{name}-3.4.9-server.patch
Patch4: mt_adaptor.c.patch
Patch5: 0001-cppunit-config-no-longer-exists-use-pkg-config.patch
Patch6: missing-pom.template.patch
# See: https://git-wip-us.apache.org/repos/asf?p=zookeeper.git;a=commit;h=5d187ff0adc836e6d18fd4c78188f52cdbb56c25
Patch7: zookeeper-3.4.9-5d187ff0adc836e6d18fd4c78188f52cdbb56c25.patch
BuildRequires: autoconf
@ -120,7 +122,7 @@ Provides: zkpython%{?_isa} = %{version}-%{release}
Requires: python2
%description -n python2-%{name}
The python-%{name} package contains Python bindings for %{name}.
The python2-%{name} package contains Python 2 bindings for %{name}.
%prep
%autosetup -p1
@ -215,9 +217,9 @@ mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -pr build/docs/api/* %{buildroot}%{_javadocdir}/%{name}/
pushd src/contrib/zkpython
%{__python} src/python/setup.py build --build-base=$PWD/build \
%{__python2} src/python/setup.py build --build-base=$PWD/build \
install --root=%{buildroot} ;\
chmod 0755 %{buildroot}%{python_sitearch}/zookeeper.so
chmod 0755 %{buildroot}%{python2_sitearch}/zookeeper.so
popd
find %{buildroot} -name '*.la' -exec rm -f {} ';'
@ -299,11 +301,17 @@ getent passwd zookeeper >/dev/null || \
%doc LICENSE.txt NOTICE.txt
%files -n python2-%{name}
%{python2_sitearch}/ZooKeeper-?.?-py%{python_version}.egg-info
%{python2_sitearch}/ZooKeeper-?.?-py%{python2_version}.egg-info
%{python2_sitearch}/zookeeper.so
%doc LICENSE.txt NOTICE.txt src/contrib/zkpython/README
%changelog
* Mon Sep 17 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 3.4.9-11.1.riscv64
- Fix Python 2 packages
* Mon Sep 17 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 3.4.9-11.0.riscv64
- Fix compilation error
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.9-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild