Merge ~ahasenack/ubuntu/+source/sssd:eoan-sssd-merge into ubuntu/+source/sssd:debian/sid

Proposed by Andreas Hasenack
Status: Merged
Approved by: Andreas Hasenack
Approved revision: 92b48e7eb17420f4987de85ef5c2e097e9425caf
Merge reported by: Andreas Hasenack
Merged at revision: 92b48e7eb17420f4987de85ef5c2e097e9425caf
Proposed branch: ~ahasenack/ubuntu/+source/sssd:eoan-sssd-merge
Merge into: ubuntu/+source/sssd:debian/sid
Diff against target: 245 lines (+177/-3)
7 files modified
debian/changelog (+44/-0)
debian/control (+4/-3)
debian/patches/GPO_CROND-customization.patch (+45/-0)
debian/patches/build-newer-samba.patch (+29/-0)
debian/patches/make-n_elements-public.patch (+38/-0)
debian/patches/python3-shebang.patch (+13/-0)
debian/patches/series (+4/-0)
Reviewer Review Type Date Requested Status
Christian Ehrhardt  (community) Approve
Canonical Server packageset reviewers Pending
Review via email: mp+367807@code.launchpad.net

Description of the change

Since sssd has good dep8 tests, I created a bileto ticket: https://bileto.ubuntu.com/#/ticket/3728

It's still running as I write this, we'll see the results tomorrow.

Simple merge from debian, just to drop two bits of delta that they also applied.

GPO_CROND-customization.patch is applied upstream, so eventually we will be able to drop it.

The "newer samba build fix" delta doesn't apply to debian at the moment because they are still on samba 4.9.x, while we are at 4.10 and need that.

Finally, the sss_obfuscate change from foundations is probably part of the get-rid-of-py2 movement, I'm not sure how important that is to debian or upstream at the moment.

To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Unfortunately bileto decided to rate all tests as "always failed" and due to that doesn't even link the result to check it on our own :-/ Usually those are direct links to the logs with keys and tokens in the URL, I doubt that we can recover that easily.

The actual merge LGTM thou.

(Not part of the merge): dpkg-shlibdeps seems to have some issues with this.
Could you take a look at "dpkg-shlibdeps: warning:" in the build log and check if that is a yet to be discovered problem or not?

+1 on the merge, maybe run some tests in local qemu before uploading ?

review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

DEP8 passes in a local autopkgtest run with qemu:

(...)
testuser1@ldap:~$ klist
Ticket cache: FILE:/tmp/krb5cc_10001_tPwlbB
Default principal: <email address hidden> [09:50:21]: test ldap-user-group-krb5-auth: -----------------------]
autopkgtest [09:50:22]: test ldap-user-group-krb5-auth: - - - - - - - - - - results - - - - - - - - - -
ldap-user-group-krb5-auth PASS
autopkgtest [09:50:23]: @@@@@@@@@@@@@@@@@@@@ summary
ldap-user-group-ldap-auth PASS
ldap-user-group-krb5-auth PASS
qemu-system-x86_64: terminating on signal 15 from pid 32392 (/usr/bin/python3)

real 4m3,206s

I'll check dpkg-shlibdeps

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

The shlibs warnings are because the .so files under the sssd directory in the library path are plugins.

I've seen these warnings forever, also in older releases, and in debian: https://buildd.debian.org/status/fetch.php?pkg=sssd&arch=amd64&ver=1.16.3-3&stamp=1543744496&raw=1

Not sure if there is a way to avoid them, like telling the tool to ignore the .so objects in that subdirectory. The manpage highlights this case, under "binary contains an unresolvable reference to symbol sym: it's probably a plugin", and offers no solution other than "If the binary is really a plugin, then disregard this warning.".

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Tagged and uploaded:

$ git push pkg upload/1.16.3-3.1ubuntu1
Enumerating objects: 46, done.
Counting objects: 100% (46/46), done.
Delta compression using up to 4 threads
Compressing objects: 100% (40/40), done.
Writing objects: 100% (40/40), 6.69 KiB | 1.12 MiB/s, done.
Total 40 (delta 25), reused 1 (delta 0)
To ssh://git.launchpad.net/~usd-import-team/ubuntu/+source/sssd
 * [new tag] upload/1.16.3-3.1ubuntu1 -> upload/1.16.3-3.1ubuntu1

$ dput ubuntu ../sssd_1.16.3-3.1ubuntu1_source.changes
Checking signature on .changes
gpg: ../sssd_1.16.3-3.1ubuntu1_source.changes: Valid signature from AC983EB5BF6BCBA9
Checking signature on .dsc
gpg: ../sssd_1.16.3-3.1ubuntu1.dsc: Valid signature from AC983EB5BF6BCBA9
Package includes an .orig.tar.gz file although the debian revision suggests
that it might not be required. Multiple uploads of the .orig.tar.gz may be
rejected by the upload queue management software.
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading sssd_1.16.3-3.1ubuntu1.dsc: done.
  Uploading sssd_1.16.3.orig.tar.gz: done.
  Uploading sssd_1.16.3-3.1ubuntu1.diff.gz: done.
  Uploading sssd_1.16.3-3.1ubuntu1_source.buildinfo: done.
  Uploading sssd_1.16.3-3.1ubuntu1_source.changes: done.
Successfully uploaded packages.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

This migrated.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index c64efd8..aedfd74 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,22 @@
6+sssd (1.16.3-3.1ubuntu1) eoan; urgency=medium
7+
8+ * Merge with Debian unstable. Remaining changes:
9+ - Fix build with newer samba (4.10+):
10+ + d/p/build-newer-samba.patch: replace ARRAY_SIZE with N_ELEMENTS, since
11+ the former is no longer available.
12+ + d/p/make-n_elements-public.patch: make N_ELEMENTS public
13+ - d/p/GPO_CROND-customization.patch: Set GPO_CROND to cron instead of
14+ crond for Debian and Ubuntu (LP #1572908)
15+ - Switch sss_obfuscate shebang to python3.
16+ * Dropped:
17+ - d/p/mit-krb-1.17-build-fix.patch: accept krb5 1.17 for building the PAC
18+ plugin
19+ [In 1.16.3-3.1]
20+ - d/p/fix-test-copy-ccache.patch: fix mocking krb5_creds in test_copy_ccache
21+ [In 1.16.3-3.1]
22+
23+ -- Andreas Hasenack <andreas@canonical.com> Wed, 22 May 2019 18:28:06 -0300
24+
25 sssd (1.16.3-3.1) unstable; urgency=high
26
27 * Non-maintainer upload.
28@@ -6,6 +25,31 @@ sssd (1.16.3-3.1) unstable; urgency=high
29
30 -- Dominik George <natureshadow@debian.org> Sun, 24 Feb 2019 11:05:55 +0100
31
32+sssd (1.16.3-3ubuntu3) eoan; urgency=medium
33+
34+ * Switch sss_obfuscate shebang to python3.
35+
36+ -- Dimitri John Ledkov <xnox@ubuntu.com> Mon, 29 Apr 2019 11:17:49 +0100
37+
38+sssd (1.16.3-3ubuntu2) eoan; urgency=medium
39+
40+ * d/p/GPO_CROND-customization.patch: Set GPO_CROND to cron instead of
41+ crond for Debian and Ubuntu (LP: #1572908)
42+
43+ -- Victor Tapia <victor.tapia@canonical.com> Mon, 23 Apr 2019 13:48:26 +0100
44+
45+sssd (1.16.3-3ubuntu1) disco; urgency=medium
46+
47+ * Fix build with newer samba (4.10+):
48+ - d/p/build-newer-samba.patch: replace ARRAY_SIZE with N_ELEMENTS, since
49+ the former is no longer available.
50+ - d/p/make-n_elements-public.patch: make N_ELEMENTS public
51+ * d/p/fix-test-copy-ccache.patch: fix mocking krb5_creds in test_copy_ccache
52+ * d/p/mit-krb-1.17-build-fix.patch: accept krb5 1.17 for building the PAC
53+ plugin
54+
55+ -- Andreas Hasenack <andreas@canonical.com> Mon, 04 Mar 2019 20:21:27 -0300
56+
57 sssd (1.16.3-3) unstable; urgency=medium
58
59 * fix-curl-ftbfs.diff: Fix build with current curl. (Closes: #913403)
60diff --git a/debian/control b/debian/control
61index 266a2ee..55dd137 100644
62--- a/debian/control
63+++ b/debian/control
64@@ -1,7 +1,8 @@
65 Source: sssd
66 Section: utils
67 Priority: optional
68-Maintainer: Debian SSSD Team <pkg-sssd-devel@alioth-lists.debian.net>
69+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
70+XSBC-Original-Maintainer: Debian SSSD Team <pkg-sssd-devel@alioth-lists.debian.net>
71 Uploaders: Timo Aaltonen <tjaalton@debian.org>
72 Build-Depends:
73 autopoint,
74@@ -232,8 +233,8 @@ Description: System Security Services Daemon -- proxy back end
75 Package: sssd-tools
76 Architecture: any
77 Depends:
78- python,
79- python-sss,
80+ python3,
81+ python3-sss,
82 sssd-common (= ${binary:Version}),
83 ${misc:Depends},
84 ${shlibs:Depends}
85diff --git a/debian/patches/GPO_CROND-customization.patch b/debian/patches/GPO_CROND-customization.patch
86new file mode 100644
87index 0000000..b2be61c
88--- /dev/null
89+++ b/debian/patches/GPO_CROND-customization.patch
90@@ -0,0 +1,45 @@
91+Description: GPO: Allow customization of GPO_CROND per OS
92+ For both Debian and Ubuntu, the cron PAM service is named "cron" instead
93+ of "crond", denying the use of the service by default.
94+
95+ This patch enables the HAVE_$OS (HAVE_DEBIAN/HAVE_FEDORA...) macros to select
96+ the service name during build, allowing further customization if required.
97+
98+Author: Victor Tapia <victor.tapia@canonical.com>
99+Origin: upstream, https://github.com/SSSD/sssd/commit/bc65ba9a07a924a58b13a0d5a935114ab72b7524
100+Bug-Ubuntu: https://launchpad.net/bugs/1572908
101+Index: sssd-1.16.3/src/external/platform.m4
102+===================================================================
103+--- sssd-1.16.3.orig/src/external/platform.m4
104++++ sssd-1.16.3/src/external/platform.m4
105+@@ -36,6 +36,14 @@ AM_CONDITIONAL([HAVE_SUSE], [test x"$osn
106+ AM_CONDITIONAL([HAVE_DEBIAN], [test x"$osname" = xdebian])
107+ AM_CONDITIONAL([HAVE_GENTOO], [test x"$osname" = xgentoo])
108+
109++AS_CASE([$osname],
110++ [redhat], [AC_DEFINE_UNQUOTED([HAVE_REDHAT], 1, [Build with redhat config])],
111++ [fedora], [AC_DEFINE_UNQUOTED([HAVE_FEDORA], 1, [Build with fedora config])],
112++ [suse], [AC_DEFINE_UNQUOTED([HAVE_SUSE], 1, [Build with suse config])],
113++ [gentoo], [AC_DEFINE_UNQUOTED([HAVE_GENTOO], 1, [Build with gentoo config])],
114++ [debian], [AC_DEFINE_UNQUOTED([HAVE_DEBIAN], 1, [Build with debian config])],
115++ [AC_MSG_NOTICE([Build with $osname config])])
116++
117+ AC_CHECK_MEMBERS([struct ucred.pid, struct ucred.uid, struct ucred.gid], , ,
118+ [[#include <sys/socket.h>]])
119+
120+Index: sssd-1.16.3/src/providers/ad/ad_gpo.c
121+===================================================================
122+--- sssd-1.16.3.orig/src/providers/ad/ad_gpo.c
123++++ sssd-1.16.3/src/providers/ad/ad_gpo.c
124+@@ -200,7 +200,11 @@ int ad_gpo_process_cse_recv(struct teven
125+ #define GPO_SSHD "sshd"
126+ #define GPO_FTP "ftp"
127+ #define GPO_SAMBA "samba"
128++#ifdef HAVE_DEBIAN
129++#define GPO_CROND "cron"
130++#else
131+ #define GPO_CROND "crond"
132++#endif
133+ #define GPO_POLKIT "polkit-1"
134+ #define GPO_SUDO "sudo"
135+ #define GPO_SUDO_I "sudo-i"
136diff --git a/debian/patches/build-newer-samba.patch b/debian/patches/build-newer-samba.patch
137new file mode 100644
138index 0000000..9b80f55
139--- /dev/null
140+++ b/debian/patches/build-newer-samba.patch
141@@ -0,0 +1,29 @@
142+From e1ff063ffa4ad459bd0c8a9da56abf8379401dbe Mon Sep 17 00:00:00 2001
143+From: Sumit Bose <sbose@redhat.com>
144+Date: Feb 16 2019 21:52:15 +0000
145+Subject: ad: replace ARRAY_SIZE with N_ELEMENTS
146+
147+
148+ARRAY_SIZE is taken from the Samba header file memory.h which is not
149+available as a public header in newer Samba versions anymore. This patch
150+replaces it with an internal macro.
151+
152+Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
153+Origin: upstream, https://pagure.io/SSSD/sssd/c/e1ff063ffa4ad459bd0c8a9da56abf8379401dbe
154+Last-Update: 2019-03-04
155+---
156+
157+diff --git a/src/providers/ad/ad_gpo_ndr.c b/src/providers/ad/ad_gpo_ndr.c
158+index 84ad75b..101701c 100644
159+--- a/src/providers/ad/ad_gpo_ndr.c
160++++ b/src/providers/ad/ad_gpo_ndr.c
161+@@ -258,7 +258,7 @@ ndr_pull_dom_sid(struct ndr_pull *ndr,
162+ NDR_CHECK(ndr_pull_align(ndr, 4));
163+ NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->sid_rev_num));
164+ NDR_CHECK(ndr_pull_int8(ndr, NDR_SCALARS, &r->num_auths));
165+- if (r->num_auths < 0 || r->num_auths > ARRAY_SIZE(r->sub_auths)) {
166++ if (r->num_auths < 0 || r->num_auths > N_ELEMENTS(r->sub_auths)) {
167+ return ndr_pull_error(ndr, NDR_ERR_RANGE, "value out of range");
168+ }
169+ NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->id_auth, 6));
170+
171diff --git a/debian/patches/make-n_elements-public.patch b/debian/patches/make-n_elements-public.patch
172new file mode 100644
173index 0000000..cdb8a65
174--- /dev/null
175+++ b/debian/patches/make-n_elements-public.patch
176@@ -0,0 +1,38 @@
177+From e32920a9c7998476b596507762b28fcf81f6a456 Mon Sep 17 00:00:00 2001
178+From: Sumit Bose <sbose@redhat.com>
179+Date: Feb 16 2019 21:52:09 +0000
180+Subject: utils: make N_ELEMENTS public
181+
182+
183+The calculation of the size of an array is used in the main code as
184+well, so it makes sense to move N_ELEMENTS to a common header to use it
185+more often.
186+
187+Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
188+
189+Origin: upstream, https://pagure.io/SSSD/sssd/c/e32920a9c7998476b596507762b28fcf81f6a456
190+Last-Update: 2019-03-04
191+---
192+
193+--- a/src/tests/common.h
194++++ b/src/tests/common.h
195+@@ -39,8 +39,6 @@
196+ #define SSS_ATTRIBUTE_WARN_UNUSED_RESULT
197+ #endif
198+
199+-#define N_ELEMENTS(arr) (sizeof(arr) / sizeof(arr[0]))
200+-
201+ extern TALLOC_CTX *global_talloc_context;
202+
203+ void check_leaks_push(TALLOC_CTX *ctx);
204+--- a/src/util/util.h
205++++ b/src/util/util.h
206+@@ -722,4 +722,8 @@
207+ #define P11_CHILD_TIMEOUT_DEFAULT 10
208+ #endif /* SSSD_LIBEXEC_PATH */
209+
210++#ifndef N_ELEMENTS
211++#define N_ELEMENTS(arr) (sizeof(arr) / sizeof(arr[0]))
212++#endif
213++
214+ #endif /* __SSSD_UTIL_H__ */
215diff --git a/debian/patches/python3-shebang.patch b/debian/patches/python3-shebang.patch
216new file mode 100644
217index 0000000..a74fd04
218--- /dev/null
219+++ b/debian/patches/python3-shebang.patch
220@@ -0,0 +1,13 @@
221+Description: Switch sss_obfuscate shebang to python3.
222+Author: Dimitri John Ledkov <xnox@ubuntu.com>
223+
224+Index: sssd-1.16.3/src/tools/sss_obfuscate
225+===================================================================
226+--- sssd-1.16.3.orig/src/tools/sss_obfuscate
227++++ sssd-1.16.3/src/tools/sss_obfuscate
228+@@ -1,4 +1,4 @@
229+-#!/usr/bin/python
230++#!/usr/bin/python3
231+
232+ from __future__ import print_function
233+
234diff --git a/debian/patches/series b/debian/patches/series
235index 9b354fd..d328d28 100644
236--- a/debian/patches/series
237+++ b/debian/patches/series
238@@ -1,3 +1,7 @@
239 fix-curl-ftbfs.diff
240 fix_copy_ccache_test.diff
241 fix_authdata_krb5_1.17.diff
242+build-newer-samba.patch
243+make-n_elements-public.patch
244+GPO_CROND-customization.patch
245+python3-shebang.patch

Subscribers

People subscribed via source and target branches