New upstream release - 2.1.14

- Apply a patch to hide local ABI symbols to avoid issues with new
  binutils
- Patch the waf script to explicitly call python2 as "env python"
  doesn't yield py2 anymore
This commit is contained in:
Jakub Hrozek 2018-07-12 11:21:57 +02:00
parent 48d40c5827
commit 9f1f2af851
3 changed files with 40 additions and 3 deletions

View File

@ -5,8 +5,8 @@
%endif
Name: libtalloc
Version: 2.1.13
Release: 2%{?dist}
Version: 2.1.14
Release: 1%{?dist}
Group: System Environment/Daemons
Summary: The talloc library
License: LGPLv3+
@ -25,6 +25,8 @@ BuildRequires: doxygen
Provides: bundled(libreplace)
# Patches
Patch0001: talloc-dont-use-usr-bin-env-python.patch
Patch0002: talloc-hide-local-ABI-symbols.patch
%description
A library that implements a hierarchical allocator with destructors.
@ -134,7 +136,7 @@ cp -a doc/man/* $RPM_BUILD_ROOT/%{_mandir}
%files -n python2-talloc
%{_libdir}/libpytalloc-util.so.*
%{python_sitearch}/talloc.so
%{python2_sitearch}/talloc.so
%files -n python2-talloc-devel
%{_includedir}/pytalloc.h
@ -161,6 +163,12 @@ cp -a doc/man/* $RPM_BUILD_ROOT/%{_mandir}
%endif
%changelog
* Thu Jul 12 2018 Jakub Hrozek <jhrozek@redhat.com> - 2.1.14-1
- New upstream release - 2.1.14
- Apply a patch to hide local ABI symbols to avoid issues with new binutils
- Patch the waf script to explicitly call python2 as "env python" doesn't
yield py2 anymore
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.13-2
- Rebuilt for Python 3.7

View File

@ -0,0 +1,9 @@
diff -up talloc-2.1.14/buildtools/bin/waf.envpy talloc-2.1.14/buildtools/bin/waf
--- talloc-2.1.14/buildtools/bin/waf.envpy 2018-07-12 11:34:18.844030136 +0200
+++ talloc-2.1.14/buildtools/bin/waf 2018-07-12 11:36:30.471618578 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
# encoding: ISO-8859-1
# Thomas Nagy, 2005-2010

View File

@ -0,0 +1,20 @@
diff -up talloc-2.1.14/buildtools/wafsamba/samba_abi.py.sym_hide talloc-2.1.14/buildtools/wafsamba/samba_abi.py
--- talloc-2.1.14/buildtools/wafsamba/samba_abi.py.sym_hide 2015-12-10 12:01:40.000000000 +0100
+++ talloc-2.1.14/buildtools/wafsamba/samba_abi.py 2018-07-12 11:46:30.024298881 +0200
@@ -192,10 +192,12 @@ def abi_write_vscript(f, libname, curren
f.write("\t\t%s;\n" % x)
else:
f.write("\t\t*;\n")
- if abi_match != ["*"]:
- f.write("\tlocal:\n")
- for x in local_abi:
- f.write("\t\t%s;\n" % x[1:])
+ # Always hide symbols that must be local if exist
+ local_abi.extend(["!_end", "!_bss_start", "!_edata"])
+ f.write("\tlocal:\n")
+ for x in local_abi:
+ f.write("\t\t%s;\n" % x[1:])
+ if global_abi != ["*"]:
if len(global_abi) > 0:
f.write("\t\t*;\n")
f.write("};\n")