unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#52597] [PATCH] gnu: sssd: Fix build with glibc-2.33
@ 2021-12-18 10:58 Remco van 't Veer
  2021-12-18 19:58 ` bug#52597: " Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Remco van 't Veer @ 2021-12-18 10:58 UTC (permalink / raw)
  To: 52597; +Cc: Remco van 't Veer

* gnu/packages/patches/sssd-collision-with-external-nss-symbol.patch: Commit from sssd repo
* gnu/packages/sssd.scm: Add patch
---
 ...d-collision-with-external-nss-symbol.patch | 71 +++++++++++++++++++
 gnu/packages/sssd.scm                         |  4 +-
 2 files changed, 74 insertions(+), 1 deletion(-)
 create mode 100644 gnu/packages/patches/sssd-collision-with-external-nss-symbol.patch

diff --git a/gnu/packages/patches/sssd-collision-with-external-nss-symbol.patch b/gnu/packages/patches/sssd-collision-with-external-nss-symbol.patch
new file mode 100644
index 0000000000..9d59ae91be
--- /dev/null
+++ b/gnu/packages/patches/sssd-collision-with-external-nss-symbol.patch
@@ -0,0 +1,71 @@
+From fe9eeb51be06059721e873f77092b1e9ba08e6c1 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Michal=20=C5=BDidek?= <mzidek@redhat.com>
+Date: Thu, 27 Feb 2020 06:50:40 +0100
+Subject: [PATCH] nss: Collision with external nss symbol
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+One of our internal static function names started
+to collide with external nss symbol. Additional
+sss_ suffix was added to avoid the collision.
+
+This is needed to unblock Fedora Rawhide's
+SSSD build.
+
+Reviewed-by: Pavel Březina <pbrezina@redhat.com>
+---
+ src/responder/nss/nss_cmd.c | 18 ++++++++++--------
+ 1 file changed, 10 insertions(+), 8 deletions(-)
+
+diff --git a/src/responder/nss/nss_cmd.c b/src/responder/nss/nss_cmd.c
+index 356aea1564..02706c4b94 100644
+--- a/src/responder/nss/nss_cmd.c
++++ b/src/responder/nss/nss_cmd.c
+@@ -731,11 +731,13 @@ static void nss_getent_done(struct tevent_req *subreq)
+     talloc_free(cmd_ctx);
+ }
+ 
+-static void nss_setnetgrent_done(struct tevent_req *subreq);
++static void sss_nss_setnetgrent_done(struct tevent_req *subreq);
+ 
+-static errno_t nss_setnetgrent(struct cli_ctx *cli_ctx,
+-                               enum cache_req_type type,
+-                               nss_protocol_fill_packet_fn fill_fn)
++/* This function's name started to collide with external nss symbol,
++ * so it has additional sss_* prefix unlike other functions here. */
++static errno_t sss_nss_setnetgrent(struct cli_ctx *cli_ctx,
++                                   enum cache_req_type type,
++                                   nss_protocol_fill_packet_fn fill_fn)
+ {
+     struct nss_ctx *nss_ctx;
+     struct nss_state_ctx *state_ctx;
+@@ -777,7 +779,7 @@ static errno_t nss_setnetgrent(struct cli_ctx *cli_ctx,
+         goto done;
+     }
+ 
+-    tevent_req_set_callback(subreq, nss_setnetgrent_done, cmd_ctx);
++    tevent_req_set_callback(subreq, sss_nss_setnetgrent_done, cmd_ctx);
+ 
+     ret = EOK;
+ 
+@@ -790,7 +792,7 @@ static errno_t nss_setnetgrent(struct cli_ctx *cli_ctx,
+     return EOK;
+ }
+ 
+-static void nss_setnetgrent_done(struct tevent_req *subreq)
++static void sss_nss_setnetgrent_done(struct tevent_req *subreq)
+ {
+     struct nss_cmd_ctx *cmd_ctx;
+     errno_t ret;
+@@ -1040,8 +1042,8 @@ static errno_t nss_cmd_initgroups_ex(struct cli_ctx *cli_ctx)
+ 
+ static errno_t nss_cmd_setnetgrent(struct cli_ctx *cli_ctx)
+ {
+-    return nss_setnetgrent(cli_ctx, CACHE_REQ_NETGROUP_BY_NAME,
+-                           nss_protocol_fill_setnetgrent);
++    return sss_nss_setnetgrent(cli_ctx, CACHE_REQ_NETGROUP_BY_NAME,
++                               nss_protocol_fill_setnetgrent);
+ }
+ 
+ static errno_t nss_cmd_getnetgrent(struct cli_ctx *cli_ctx)
diff --git a/gnu/packages/sssd.scm b/gnu/packages/sssd.scm
index 7f7c71972a..9d254d4b3c 100644
--- a/gnu/packages/sssd.scm
+++ b/gnu/packages/sssd.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2021 Timotej Lazar <timotej.lazar@araneo.si>
+;;; Copyright © 2021 Remco van 't Veer <remco@remworks.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -150,7 +151,8 @@ (define-public sssd
                (base32
                 "1h6hwibaf3xa2w6qpzjiiywmfj6zkgbz4r2isf3gd0xm6vq7n6if"))
               (patches (search-patches "sssd-fix-samba.patch"
-                                       "sssd-system-directories.patch"))))
+                                       "sssd-system-directories.patch"
+                                       "sssd-collision-with-external-nss-symbol.patch"))))
     (build-system gnu-build-system)
     (arguments
      `(#:make-flags
-- 
2.34.0





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#52597: [PATCH] gnu: sssd: Fix build with glibc-2.33
  2021-12-18 10:58 [bug#52597] [PATCH] gnu: sssd: Fix build with glibc-2.33 Remco van 't Veer
@ 2021-12-18 19:58 ` Ludovic Courtès
  2021-12-18 21:31   ` [bug#52597] " Remco
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2021-12-18 19:58 UTC (permalink / raw)
  To: Remco van 't Veer; +Cc: 52597-done

Hi,

Remco van 't Veer <remco@remworks.net> skribis:

> * gnu/packages/patches/sssd-collision-with-external-nss-symbol.patch: Commit from sssd repo
> * gnu/packages/sssd.scm: Add patch

I added the patch to ‘gnu/local.mk’ and committed.

Thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#52597] [PATCH] gnu: sssd: Fix build with glibc-2.33
  2021-12-18 19:58 ` bug#52597: " Ludovic Courtès
@ 2021-12-18 21:31   ` Remco
  2021-12-18 23:51     ` Leo Famulari
  0 siblings, 1 reply; 4+ messages in thread
From: Remco @ 2021-12-18 21:31 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 52597-done

Hi Ludo,

> I added the patch to ‘gnu/local.mk’ and committed.

Oh thanks, I am new to this. Is gnu/local.mk something to be updated manually when adding something to the repository?

Cheers,
Remco




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#52597] [PATCH] gnu: sssd: Fix build with glibc-2.33
  2021-12-18 21:31   ` [bug#52597] " Remco
@ 2021-12-18 23:51     ` Leo Famulari
  0 siblings, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2021-12-18 23:51 UTC (permalink / raw)
  To: Remco; +Cc: Ludovic Courtès, 52597-done

On Sat, Dec 18, 2021 at 10:31:46PM +0100, Remco wrote:
> Hi Ludo,
> 
> > I added the patch to ‘gnu/local.mk’ and committed.
> 
> Oh thanks, I am new to this. Is gnu/local.mk something to be updated manually when adding something to the repository?

I'm not Ludo, but I'll answer. Yes, when adding a new file to Guix, it
needs to be registered in 'gnu/local.mk'.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-12-18 23:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-18 10:58 [bug#52597] [PATCH] gnu: sssd: Fix build with glibc-2.33 Remco van 't Veer
2021-12-18 19:58 ` bug#52597: " Ludovic Courtès
2021-12-18 21:31   ` [bug#52597] " Remco
2021-12-18 23:51     ` Leo Famulari

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).