import libtalloc-2.2.0-7.el8

This commit is contained in:
CentOS Sources 2020-04-28 05:35:08 -04:00 committed by Andrew Lukoshko
parent b9b3a2b405
commit 2527414723
4 changed files with 46 additions and 4 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/talloc-2.1.16.tar.gz
SOURCES/talloc-2.2.0.tar.gz

View File

@ -1 +1 @@
69fe815888eddcbe2fb6fc3270ff9e977461000d SOURCES/talloc-2.1.16.tar.gz
d806e2e4e9b973e8ab6521d1dd20a03abae32c99 SOURCES/talloc-2.2.0.tar.gz

35
SOURCES/py3_abi.patch Normal file
View File

@ -0,0 +1,35 @@
From 80be2141ffde6270f71f3f4ed4300762f8765c80 Mon Sep 17 00:00:00 2001
From: Isaac Boukris <iboukris@gmail.com>
Date: Mon, 25 Nov 2019 13:16:42 +0100
Subject: [PATCH] ABI: add .PY3 alias to py{talloc,ldb} libs for backward
compatibility
Signed-off-by: Isaac Boukris <iboukris@samba.org>
---
buildtools/wafsamba/samba_abi.py | 8 ++++++++
1 file changed, 8 insertions(+)
Index: talloc-2.2.0/buildtools/wafsamba/samba_abi.py
===================================================================
--- talloc-2.2.0.orig/buildtools/wafsamba/samba_abi.py
+++ talloc-2.2.0/buildtools/wafsamba/samba_abi.py
@@ -172,6 +172,10 @@ def abi_write_vscript(f, libname, curren
version
"""
+ alias = None
+ if libname.startswith('PY') and libname.endswith('UTIL'):
+ alias = libname + '.PY3'
+
invmap = {}
for s in symmap:
invmap.setdefault(symmap[s], []).append(s)
@@ -180,6 +184,8 @@ def abi_write_vscript(f, libname, curren
versions = sorted(versions, key=version_key)
for k in versions:
symver = "%s_%s" % (libname, k)
+ if alias:
+ symver = "%s_%s" % (alias, k)
if symver == current_version:
break
f.write("%s {\n" % symver)

View File

@ -1,6 +1,6 @@
Name: libtalloc
Version: 2.1.16
Release: 3%{?dist}
Version: 2.2.0
Release: 7%{?dist}
Group: System Environment/Daemons
Summary: The talloc library
License: LGPLv3+
@ -19,6 +19,7 @@ Obsoletes: python2-talloc-devel < %{version}-%{release}
Obsoletes: python2-talloc-debuginfo < %{version}-%{release}
# Patches
Patch0001: py3_abi.patch
%description
A library that implements a hierarchical allocator with destructors.
@ -107,6 +108,12 @@ cp -a doc/man/* $RPM_BUILD_ROOT/%{_mandir}
%ldconfig_scriptlets -n python3-talloc
%changelog
* Mon Nov 25 2019 Isaac Boukris <iboukris@redhat.com> - 2.2.0-7
- related: rhbz#1754417 - Fix PY3 symbol names
* Wed Nov 20 2019 Isaac Boukris <iboukris@redhat.com> - 2.2.0-1
- Resolves: rhbz#1754417 - Rebase talloc to version 2.2.0 for samba
* Tue Apr 30 2019 Jakub Hrozek <jhrozek@redhat.com> - 2.1.16-3
- Also obsolete python2-libtalloc-debuginfo
- Resolves: rhbz#1567136 - libtalloc: Drop Python 2 subpackage from RHEL 8