View | Details | Raw Unified | Return to bug 49720 | Differences between
and this patch

Collapse All | Expand All

(-)a/talloc/001_python3.patch (+19 lines)
Line 0    Link Here 
1
commit feb748cca30be18307d3d84ae95470b276bac1b2
2
Author: Andreas Hasenack <andreas@canonical.com>
3
Date:   Tue Feb 26 21:06:34 2019 +0000
4
5
    d/rules: fix globbing for talloc static library creation
6
7
diff --git debian/rules debian/rules
8
index 7b54167..7b2f08e 100755
9
--- debian/rules
10
+++ debian/rules
11
@@ -63,7 +63,7 @@ override_dh_auto_clean:
12
 override_dh_auto_install:
13
 	$(MAKE) install DESTDIR=$(DESTDIR)
14
 	# Waf really should be doing this:
15
-	ar -rc libtalloc.a bin/default/talloc.*.o
16
+	ar -rc libtalloc.a bin/default/talloc*.o
17
 	mv libtalloc.a $(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)
18
 
19
 override_dh_strip:
(-)a/talloc/002_python3.patch (+32 lines)
Line 0    Link Here 
1
commit e42af93d6d2bb7c35cd9c245b990dcdb11b83f60
2
Author: Andreas Hasenack <andreas@canonical.com>
3
Date:   Tue Feb 26 20:44:32 2019 +0000
4
5
    d/rules: build for python2 and python3
6
7
diff --git debian/rules debian/rules
8
index 7b2f08e..73002f3 100755
9
--- debian/rules
10
+++ debian/rules
11
@@ -17,18 +17,19 @@ DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
12
 conf_args = --prefix=/usr --disable-rpath-install --disable-rpath --bundled-libraries=NONE
13
 conf_args += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
14
 conf_args += --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
15
+conf_args += --extra-python=python2
16
 conf_args += -v
17
 
18
 export PYTHON="$(shell which `pyversions -d`)"
19
 
20
 %:
21
-	dh $* --parallel --with python2
22
+	dh $* --parallel --with python2,python3
23
 
24
 override_dh_python2:
25
 	dh_python2 --no-guessing-versions
26
 
27
 override_dh_auto_configure:
28
-	LDFLAGS="$(LDFLAGS)" PYTHON="$(PYTHON)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" ./configure $(conf_args)
29
+	LDFLAGS="$(LDFLAGS)" PYTHON="" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" ./configure $(conf_args)
30
 
31
 override_dh_auto_build:
32
 	$(MAKE) all V=1
(-)a/talloc/003_python3.patch (+49 lines)
Line 0    Link Here 
1
commit 36b0a76075956eddaf558c673f145b650eba2245
2
Author: Andreas Hasenack <andreas@canonical.com>
3
Date:   Tue Feb 26 21:22:44 2019 +0000
4
5
    d/control, d/python3-talloc.install: new python3 binding package
6
7
diff --git debian/control debian/control
8
index 828dd96..d6e9dcd 100644
9
--- debian/control
10
+++ debian/control
11
@@ -9,7 +9,8 @@ Build-Depends: debhelper (>= 9),
12
   dh-exec,
13
   dh-python,
14
   libpopt-dev,
15
-  python-dev (>= 2.6.6-3)
16
+  python-dev (>= 2.6.6-3),
17
+  python3-dev,
18
 Standards-Version: 4.0.0
19
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-samba/talloc.git
20
 Vcs-Git: https://anonscm.debian.org/git/pkg-samba/talloc.git
21
@@ -41,6 +42,20 @@ Description: hierarchical pool based memory allocator - development files
22
  .
23
  This package contains the development files.
24
 
25
+Package: python3-talloc
26
+Section: python
27
+Architecture: linux-any kfreebsd-any
28
+Depends: libtalloc2 (= ${binary:Version}),
29
+         ${misc:Depends},
30
+         ${python3:Depends},
31
+         ${shlibs:Depends}
32
+Provides: ${python3:Provides}
33
+Description: hierarchical pool based memory allocator - Python3 bindings
34
+ A hierarchical pool based memory allocator with destructors. It uses
35
+ reference counting to determine when memory should be freed.
36
+ .
37
+ This package contains the Python 3 bindings.
38
+
39
 Package: python-talloc
40
 Pre-Depends: ${misc:Pre-Depends}
41
 Architecture: any
42
diff --git debian/python3-talloc.install debian/python3-talloc.install
43
new file mode 100644
44
index 0000000..0f4359e
45
--- /dev/null
46
+++ debian/python3-talloc.install
47
@@ -0,0 +1,2 @@
48
+usr/lib/*/libpytalloc-util.cpython-35m-*.so.*
49
+usr/lib/python3*
(-)a/talloc/004_python3.quilt (+93 lines)
Line 0    Link Here 
1
commit 25e64859c693bab522f2b6f537ff34016af494fe
2
Author: Andreas Hasenack <andreas@canonical.com>
3
Date:   Wed Feb 27 14:32:43 2019 +0000
4
5
    d/python3-talloc.symbols.{common,amd64,armhf,arm64,s390x,ppc64el,i386}: use per-arch symbols file
6
7
diff --git debian/python3-talloc.symbols.amd64 debian/python3-talloc.symbols.amd64
8
new file mode 100644
9
index 0000000..94333ad
10
--- /dev/null
11
+++ debian/python3-talloc.symbols.amd64
12
@@ -0,0 +1,3 @@
13
+libpytalloc-util.cpython-35m-x86-64-linux-gnu.so.2 python3-talloc #MINVER#
14
+ PYTALLOC_UTIL.CPYTHON_35M_X86_64_LINUX_GNU_2.1.16@PYTALLOC_UTIL.CPYTHON_35M_X86_64_LINUX_GNU_2.1.16 2.1.16
15
+#include "python3-talloc.symbols.common"
16
diff --git debian/python3-talloc.symbols.arm64 debian/python3-talloc.symbols.arm64
17
new file mode 100644
18
index 0000000..2e75156
19
--- /dev/null
20
+++ debian/python3-talloc.symbols.arm64
21
@@ -0,0 +1,3 @@
22
+libpytalloc-util.cpython-35m-aarch64-linux-gnu.so.2 python3-talloc #MINVER#
23
+ PYTALLOC_UTIL.CPYTHON_35M_AARCH64_LINUX_GNU_2.1.16@PYTALLOC_UTIL.CPYTHON_35M_AARCH64_LINUX_GNU_2.1.16 2.1.16
24
+#include "python3-talloc.symbols.common"
25
diff --git debian/python3-talloc.symbols.armhf debian/python3-talloc.symbols.armhf
26
new file mode 100644
27
index 0000000..32dcc53
28
--- /dev/null
29
+++ debian/python3-talloc.symbols.armhf
30
@@ -0,0 +1,3 @@
31
+libpytalloc-util.cpython-35m-arm-linux-gnueabihf.so.2 python3-talloc #MINVER#
32
+ PYTALLOC_UTIL.CPYTHON_35M_ARM_LINUX_GNUEABIHF_2.1.16@PYTALLOC_UTIL.CPYTHON_35M_ARM_LINUX_GNUEABIHF_2.1.16 2.1.16
33
+#include "python3-talloc.symbols.common"
34
diff --git debian/python3-talloc.symbols.common debian/python3-talloc.symbols.common
35
new file mode 100644
36
index 0000000..e8d4966
37
--- /dev/null
38
+++ debian/python3-talloc.symbols.common
39
@@ -0,0 +1,27 @@
40
+ PYTALLOC_UTIL.PY3_2.1.10@PYTALLOC_UTIL.PY3_2.1.10 2.1.16
41
+ PYTALLOC_UTIL.PY3_2.1.11@PYTALLOC_UTIL.PY3_2.1.11 2.1.16
42
+ PYTALLOC_UTIL.PY3_2.1.12@PYTALLOC_UTIL.PY3_2.1.12 2.1.16
43
+ PYTALLOC_UTIL.PY3_2.1.13@PYTALLOC_UTIL.PY3_2.1.13 2.1.16
44
+ PYTALLOC_UTIL.PY3_2.1.14@PYTALLOC_UTIL.PY3_2.1.14 2.1.16
45
+ PYTALLOC_UTIL.PY3_2.1.15@PYTALLOC_UTIL.PY3_2.1.15 2.1.16
46
+ PYTALLOC_UTIL.PY3_2.1.16@PYTALLOC_UTIL.PY3_2.1.16 2.1.16
47
+ PYTALLOC_UTIL.PY3_2.1.5@PYTALLOC_UTIL.PY3_2.1.5 2.1.16
48
+ PYTALLOC_UTIL.PY3_2.1.6@PYTALLOC_UTIL.PY3_2.1.6 2.1.16
49
+ PYTALLOC_UTIL.PY3_2.1.7@PYTALLOC_UTIL.PY3_2.1.7 2.1.16
50
+ PYTALLOC_UTIL.PY3_2.1.8@PYTALLOC_UTIL.PY3_2.1.8 2.1.16
51
+ PYTALLOC_UTIL.PY3_2.1.9@PYTALLOC_UTIL.PY3_2.1.9 2.1.16
52
+ _pytalloc_check_type@PYTALLOC_UTIL.PY3_2.1.9 2.1.16
53
+ _pytalloc_get_mem_ctx@PYTALLOC_UTIL.PY3_2.1.6 2.1.16
54
+ _pytalloc_get_ptr@PYTALLOC_UTIL.PY3_2.1.6 2.1.16
55
+ _pytalloc_get_type@PYTALLOC_UTIL.PY3_2.1.6 2.1.16
56
+ pytalloc_BaseObject_PyType_Ready@PYTALLOC_UTIL.PY3_2.1.6 2.1.16
57
+ pytalloc_BaseObject_check@PYTALLOC_UTIL.PY3_2.1.6 2.1.16
58
+ pytalloc_BaseObject_size@PYTALLOC_UTIL.PY3_2.1.6 2.1.16
59
+ pytalloc_Check@PYTALLOC_UTIL.PY3_2.1.5 2.1.16
60
+ pytalloc_GenericObject_reference_ex@PYTALLOC_UTIL.PY3_2.1.9 2.1.16
61
+ pytalloc_GenericObject_steal_ex@PYTALLOC_UTIL.PY3_2.1.9 2.1.16
62
+ pytalloc_GetBaseObjectType@PYTALLOC_UTIL.PY3_2.1.6 2.1.16
63
+ pytalloc_GetObjectType@PYTALLOC_UTIL.PY3_2.1.5 2.1.16
64
+ pytalloc_reference_ex@PYTALLOC_UTIL.PY3_2.1.5 2.1.16
65
+ pytalloc_steal@PYTALLOC_UTIL.PY3_2.1.5 2.1.16
66
+ pytalloc_steal_ex@PYTALLOC_UTIL.PY3_2.1.5 2.1.16
67
diff --git debian/python3-talloc.symbols.i386 debian/python3-talloc.symbols.i386
68
new file mode 100644
69
index 0000000..6af4333
70
--- /dev/null
71
+++ debian/python3-talloc.symbols.i386
72
@@ -0,0 +1,3 @@
73
+libpytalloc-util.cpython-35m-i386-linux-gnu.so.2 python3-talloc #MINVER#
74
+ PYTALLOC_UTIL.CPYTHON_35M_I386_LINUX_GNU_2.1.16@PYTALLOC_UTIL.CPYTHON_35M_I386_LINUX_GNU_2.1.16 2.1.16
75
+#include "python3-talloc.symbols.common"
76
diff --git debian/python3-talloc.symbols.ppc64el debian/python3-talloc.symbols.ppc64el
77
new file mode 100644
78
index 0000000..acb14bb
79
--- /dev/null
80
+++ debian/python3-talloc.symbols.ppc64el
81
@@ -0,0 +1,3 @@
82
+libpytalloc-util.cpython-35m-powerpc64le-linux-gnu.so.2 python3-talloc #MINVER#
83
+ PYTALLOC_UTIL.CPYTHON_35M_POWERPC64LE_LINUX_GNU_2.1.16@PYTALLOC_UTIL.CPYTHON_35M_POWERPC64LE_LINUX_GNU_2.1.16 2.1.16
84
+#include "python3-talloc.symbols.common"
85
diff --git debian/python3-talloc.symbols.s390x debian/python3-talloc.symbols.s390x
86
new file mode 100644
87
index 0000000..019ba8e
88
--- /dev/null
89
+++ debian/python3-talloc.symbols.s390x
90
@@ -0,0 +1,3 @@
91
+libpytalloc-util.cpython-35m-s390x-linux-gnu.so.2 python3-talloc #MINVER#
92
+ PYTALLOC_UTIL.CPYTHON_35M_S390X_LINUX_GNU_2.1.16@PYTALLOC_UTIL.CPYTHON_35M_S390X_LINUX_GNU_2.1.16 2.1.16
93
+#include "python3-talloc.symbols.common"
(-)a/talloc/005_python3.patch (+15 lines)
Line 0    Link Here 
1
commit 0c05ad0b4aa228f37af9036ca573c2fbb6d26a7d
2
Author: Andreas Hasenack <andreas@canonical.com>
3
Date:   Wed Feb 27 14:22:21 2019 +0000
4
5
    d/rules: check python3-talloc symbols
6
7
diff --git debian/rules debian/rules
8
index 9b2bbdf..75ce95f 100755
9
--- debian/rules
10
+++ debian/rules
11
@@ -70,3 +70,4 @@ override_dh_auto_install:
12
 override_dh_makeshlibs:
13
 	dh_makeshlibs -plibtalloc2 -- -c4
14
 	dh_makeshlibs -ppython-talloc -Xtalloc. -- -c3
15
+	dh_makeshlibs -ppython3-talloc -Xtalloc. -- -c3
(-)a/talloc/006_python3.patch (+50 lines)
Line 0    Link Here 
1
commit 669fd6ffcbb52e36789b44772c20bad5bf81dfaa
2
Author: Andreas Hasenack <andreas@canonical.com>
3
Date:   Wed Feb 27 20:47:07 2019 +0000
4
5
    d/control, d/python3-talloc-dev.install, d/rules: new python3-talloc-dev package
6
7
diff --git debian/control debian/control
8
index 998a58c..0e34fbf 100644
9
--- debian/control
10
+++ debian/control
11
@@ -56,6 +56,17 @@ Description: hierarchical pool based memory allocator - Python3 bindings
12
  .
13
  This package contains the Python 3 bindings.
14
 
15
+Package: python3-talloc-dev
16
+Architecture: any
17
+Multi-Arch: same
18
+Section: libdevel
19
+Depends: pkg-config, python3-talloc (= ${binary:Version}), ${misc:Depends}, ${python:Depends}
20
+Description: talloc Python 3 bindings - development files
21
+ A hierarchical pool based memory allocator with destructors. It uses
22
+ reference counting to determine when memory should be freed.
23
+ .
24
+ This package contains the development files for the Python 3 bindings.
25
+
26
 Package: python-talloc
27
 Pre-Depends: ${misc:Pre-Depends}
28
 Architecture: any
29
diff --git debian/python3-talloc-dev.install debian/python3-talloc-dev.install
30
new file mode 100755
31
index 0000000..92837be
32
--- /dev/null
33
+++ debian/python3-talloc-dev.install
34
@@ -0,0 +1,4 @@
35
+#! /usr/bin/dh-exec
36
+usr/include/pytalloc.h ${DEB_PY3_INCDIR}
37
+usr/lib/*/pkgconfig/pytalloc-util.cpython-*.pc
38
+usr/lib/*/libpytalloc-util.cpython-*.so
39
diff --git debian/rules debian/rules
40
index 75ce95f..7837f92 100755
41
--- debian/rules
42
+++ debian/rules
43
@@ -41,6 +41,7 @@ endif
44
 
45
 override_dh_install:
46
 	DEB_PY2_INCDIR=$(shell python-config --includes | sed 's,^-I\([^ ]*\).*,\1,') \
47
+	DEB_PY3_INCDIR=$(shell python3-config --includes | sed 's,^-I\([^ ]*\).*,\1,') \
48
 		dh_install --list-missing
49
 
50
 get-packaged-orig-source:
(-)a/talloc/007_python3.patch (+19 lines)
Line 0    Link Here 
1
commit e79247175369007726adcb7efde371c916a3279b
2
Author: Mathieu Parent <math.parent@gmail.com>
3
Date:   Sat Mar 23 08:47:53 2019 +0100
4
5
    dpkg-gencontrol: warning: Depends field of package python3-talloc-dev: substitution variable ${python:Depends} used, but is not defined
6
7
diff --git debian/control debian/control
8
index 0e34fbf..186398a 100644
9
--- debian/control
10
+++ debian/control
11
@@ -60,7 +60,7 @@ Package: python3-talloc-dev
12
 Architecture: any
13
 Multi-Arch: same
14
 Section: libdevel
15
-Depends: pkg-config, python3-talloc (= ${binary:Version}), ${misc:Depends}, ${python:Depends}
16
+Depends: pkg-config, python3-talloc (= ${binary:Version}), ${misc:Depends}
17
 Description: talloc Python 3 bindings - development files
18
  A hierarchical pool based memory allocator with destructors. It uses
19
  reference counting to determine when memory should be freed.
(-)a/talloc/008_python3.patch (+19 lines)
Line 0    Link Here 
1
commit 5deadff0f91ac9048d3c9552b08144f3b10b34af
2
Author: Mathieu Parent <math.parent@gmail.com>
3
Date:   Sat Mar 23 08:54:53 2019 +0100
4
5
    Standards-Version: 4.3.0
6
7
diff --git debian/control debian/control
8
index 52c2023..1e723f6 100644
9
--- debian/control
10
+++ debian/control
11
@@ -11,7 +11,7 @@ Build-Depends: debhelper (>= 9),
12
   libpopt-dev,
13
   python-dev (>= 2.6.6-3),
14
   python3-dev,
15
-Standards-Version: 4.0.0
16
+Standards-Version: 4.3.0
17
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-samba/talloc.git
18
 Vcs-Git: https://anonscm.debian.org/git/pkg-samba/talloc.git
19
 
(-)a/talloc/009_python3.quilt (+15 lines)
Line 0    Link Here 
1
commit 49217e83cea951c42bc80aeda7dcc198eb7d4f7c
2
Author: Mathieu Parent <math.parent@gmail.com>
3
Date:   Sat Mar 23 08:57:17 2019 +0100
4
5
    Add Build-Depends-Package: python3-talloc-dev to python3-talloc.symbols.common
6
7
diff --git debian/python3-talloc.symbols.common debian/python3-talloc.symbols.common
8
index e8d4966..5ffd890 100644
9
--- debian/python3-talloc.symbols.common
10
+++ debian/python3-talloc.symbols.common
11
@@ -1,3 +1,4 @@
12
+* Build-Depends-Package: python3-talloc-dev
13
  PYTALLOC_UTIL.PY3_2.1.10@PYTALLOC_UTIL.PY3_2.1.10 2.1.16
14
  PYTALLOC_UTIL.PY3_2.1.11@PYTALLOC_UTIL.PY3_2.1.11 2.1.16
15
  PYTALLOC_UTIL.PY3_2.1.12@PYTALLOC_UTIL.PY3_2.1.12 2.1.16
(-)a/talloc/010_python3.patch (-1 / +31 lines)
Line 0    Link Here 
0
- 
1
commit d7b864850199c0b47ad96764c6cdf6da46c9cdaf
2
Author: Mathieu Parent <math.parent@gmail.com>
3
Date:   Sat Mar 23 09:03:08 2019 +0100
4
5
    Add python3-talloc{,-dev}.lintian-overrides
6
7
diff --git debian/python3-talloc-dev.lintian-overrides debian/python3-talloc-dev.lintian-overrides
8
new file mode 100644
9
index 0000000..038be62
10
--- /dev/null
11
+++ debian/python3-talloc-dev.lintian-overrides
12
@@ -0,0 +1 @@
13
+python3-talloc-dev: wrong-section-according-to-package-name python3-talloc-dev => python
14
diff --git debian/python3-talloc.lintian-overrides debian/python3-talloc.lintian-overrides
15
new file mode 100644
16
index 0000000..cb0e5b4
17
--- /dev/null
18
+++ debian/python3-talloc.lintian-overrides
19
@@ -0,0 +1,3 @@
20
+python3-talloc: package-name-doesnt-match-sonames libpytalloc-util.cpython-*
21
+# False positives, see #896012
22
+python3-talloc: library-not-linked-against-libc usr/lib/x86_64-linux-gnu/libpytalloc-util.cpython-*.so.*
23
diff --git debian/source/lintian-overrides debian/source/lintian-overrides
24
index 48a18fa..d348676 100644
25
--- debian/source/lintian-overrides
26
+++ debian/source/lintian-overrides
27
@@ -1,2 +1,3 @@
28
-# Variable defined in debian/rules
29
+# Variables defined in debian/rules
30
 talloc source: dh-exec-subst-unknown-variable debian/python-talloc-dev.install DEB_PY2_INCDIR
31
+talloc source: dh-exec-subst-unknown-variable debian/python3-talloc-dev.install DEB_PY3_INCDIR

Return to bug 49720