From unknown Sun Jun 22 11:30:57 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#62859 <62859@debbugs.gnu.org> To: bug#62859 <62859@debbugs.gnu.org> Subject: Status: [PATCH core-updates] gnu: openldap: core-updates build fixes Reply-To: bug#62859 <62859@debbugs.gnu.org> Date: Sun, 22 Jun 2025 18:30:57 +0000 retitle 62859 [PATCH core-updates] gnu: openldap: core-updates build fixes reassign 62859 guix-patches submitter 62859 Brian Cully severity 62859 normal tag 62859 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 15 09:53:14 2023 Received: (at submit) by debbugs.gnu.org; 15 Apr 2023 13:53:14 +0000 Received: from localhost ([127.0.0.1]:48554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pngL3-0000wm-NL for submit@debbugs.gnu.org; Sat, 15 Apr 2023 09:53:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:57770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pngL0-0000we-P7 for submit@debbugs.gnu.org; Sat, 15 Apr 2023 09:53:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pngL0-0000ID-GO for guix-patches@gnu.org; Sat, 15 Apr 2023 09:53:10 -0400 Received: from coleridge.kublai.com ([166.84.7.167] helo=mail.spork.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pngKy-0003vE-CE for guix-patches@gnu.org; Sat, 15 Apr 2023 09:53:10 -0400 Received: from psyduck.jhoto.kublai.com (ool-18b8e9e7.dyn.optonline.net [24.184.233.231]) by mail.spork.org (Postfix) with ESMTPSA id 02C6686BD; Sat, 15 Apr 2023 09:53:00 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=spork.org; s=dkim; t=1681566787; bh=mL4kvhDv8ZmHiQOjjUdxoEV0oKAS41hanzBx6onFwqs=; h=From:To:Cc:Subject:Date; b=rmbGGX3FJul1DLdvUWfxwq4wL3k2TicUlvWgWLpV/koJXt4sy4YVFYRAIemurUJD0 yiOmO3ubUHLvR7MQi8eaVPD7z38Rs3gDll+tolGi8C6j/6joBZ17BEWfcOEbwkbWHG w91XLVrxh4aVN0Unq8Sa66cC9rlBCwMwSxpxTxZw= From: Brian Cully To: guix-patches@gnu.org Subject: [PATCH core-updates] gnu: openldap: core-updates build fixes Date: Sat, 15 Apr 2023 09:52:27 -0400 Message-Id: <3fe8a172b84e74c0442d74e48d3eff3cf5e92597.1681566668.git.bjc@spork.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=166.84.7.167; envelope-from=bjc@spork.org; helo=mail.spork.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Brian Cully X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Change quoting to use gexps, so that ungexping in the build phases doesn't fail with a syntax error. Remove references to libldap_r.so and .la, since they're no longer being built, and manually patching in a .so library when there's no corresponding .la seems like something that should be removed, with dependent packages updated, if necessary. * gnu/packages/openldap.scm (openldap): update quoting to use gexps, remove reference to libldap_r.la, which no longer exists, and remove custom install of libldap_r.so. --- gnu/packages/openldap.scm | 67 ++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 37 deletions(-) diff --git a/gnu/packages/openldap.scm b/gnu/packages/openldap.scm index 7409848795..4d3810ecfb 100644 --- a/gnu/packages/openldap.scm +++ b/gnu/packages/openldap.scm @@ -87,44 +87,37 @@ (define-public openldap (inputs (list bdb-5.3 cyrus-sasl gnutls libgcrypt zlib)) (native-inputs (list libtool groff bdb-5.3)) (arguments - `(#:tests? #f - #:configure-flags - '("--disable-static" - ,@(if (%current-target-system) - '("--with-yielding_select=yes" - "ac_cv_func_memcmp_working=yes") - '())) - ;; Disable install stripping as it breaks cross-compiling. - #:make-flags '("STRIP=") - #:phases - (modify-phases %standard-phases - ,@(if (%current-target-system) - '((add-before 'configure 'fix-cross-gcc - (lambda* (#:key target #:allow-other-keys) - (setenv "CC" (string-append target "-gcc")) - (setenv "STRIP" (string-append target "-strip"))))) - '()) - (add-after 'install 'patch-sasl-path - ;; Give -L arguments for cyrus-sasl to avoid propagation. - (lambda* (#:key inputs outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out")) - (krb5 (assoc-ref inputs "mit-krb5"))) ;propagated from cyrus-sasl + (list + #:tests? #f + #:configure-flags + #~(list "--disable-static" + #$@(if (%current-target-system) + '("--with-yielding_select=yes" + "ac_cv_func_memcmp_working=yes") + '())) + ;; Disable install stripping as it breaks cross-compiling. + #:make-flags + #~(list "STRIP=") + #:phases + #~(modify-phases %standard-phases + #$@(if (%current-target-system) + '((add-before 'configure 'fix-cross-gcc + (lambda* (#:key target #:allow-other-keys) + (setenv "CC" (string-append target "-gcc")) + (setenv "STRIP" (string-append target "-strip"))))) + '()) + (add-after 'install 'patch-sasl-path + ;; Give -L arguments for cyrus-sasl to avoid propagation. + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((krb5 (assoc-ref inputs "mit-krb5"))) ;propagated from cyrus-sasl - ;; The ancient Libtool bundled with OpenLDAP copies the linker flags - ;; from Cyrus-SASL and embeds them into its own .la files. Add an - ;; absolute reference to Kerberos so it does not have to be propagated. - (substitute* (map (lambda (f) (string-append out "/" f)) - '("lib/libldap.la" "lib/libldap_r.la")) - (("-lkrb5" lib) - (string-append "-L" krb5 "/lib " lib)))))) - (add-after 'install 'provide-libldap_r - (lambda _ - ;; The re-entrant libldap_r no longer exists since 2.6 - ;; as it has become the default: provide a linker alias - ;; for now. - (call-with-output-file (string-append #$output "/lib/libldap_r.so") - (lambda (port) - (format port "INPUT ( libldap.so )~%")))))))) + ;; The ancient Libtool bundled with OpenLDAP copies the linker flags + ;; from Cyrus-SASL and embeds them into its own .la files. Add an + ;; absolute reference to Kerberos so it does not have to be propagated. + (substitute* (map (lambda (f) (string-append #$output "/" f)) + '("lib/libldap.la")) + (("-lkrb5" lib) + (string-append "-L" krb5 "/lib " lib))))))))) (synopsis "Implementation of the Lightweight Directory Access Protocol") (description "OpenLDAP is a free implementation of the Lightweight Directory Access Protocol.") base-commit: 7ccf9943029747d4ba97160214f895b365511278 prerequisite-patch-id: 3a0a1be9df9a40370ebadd64ad6163c1a4f2bc4d prerequisite-patch-id: 04bc0329678ccd5fe51be207d86dc8a4ce969c8b prerequisite-patch-id: 7edab399c6512d85ed849f0877ccc9602888f1c8 -- 2.39.2 From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 16 01:02:06 2023 Received: (at 62859) by debbugs.gnu.org; 16 Apr 2023 05:02:06 +0000 Received: from localhost ([127.0.0.1]:50448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnuWc-0002R6-59 for submit@debbugs.gnu.org; Sun, 16 Apr 2023 01:02:06 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:20945) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnuWa-0002QV-9h for 62859@debbugs.gnu.org; Sun, 16 Apr 2023 01:02:04 -0400 Date: Sun, 16 Apr 2023 05:01:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1681621318; x=1681880518; bh=NC4khlmEOinRd5ylGjklDNZYTxUfEZPAznquPSMUU6Q=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=uCLJLoTNCAPksCqAWTN0UxrrJBNPwMymvyZCFqR9ES3LwZgcDRp9x0+pMp2Wl19z9 Myy/T73J7LrOIe37kDKQVdjiWP0Goi3BRGcLFSnL8R+xN3aSh51OnS6ktZ+tRufDaY M7wZdTWeCmaQxv4U2wj6ERJjiZX8sSp9avtflXMIUFxnJACg8WutLy5uMHefNWBfRt oebuKsNv1Xphcj7S47iLOrUfUIt8LMxoxfUYVpMgXSQuviFEMZwvKuFizNtGzkd0qf Nqv90dBfLCPVk0DcyZEL0q7a5Bi6e/zVmuhyhSdgjVaMwUcA+rNiiplpfkseTuvslD J3YF1MuefsvTg== To: Brian Cully From: John Kehayias Subject: Re: bug#62859: [PATCH core-updates] gnu: openldap: core-updates build fixes Message-ID: <87leiss9ms.fsf@protonmail.com> Feedback-ID: 7805494:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 62859 Cc: 62859@debbugs.gnu.org, Marius Bakke X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, (sending to both related patches, not sure which will be applied and I'm not familiar with openldap enough to finalize the fixes; also CC'ing Marius as author of the related commit) I think the patch-sasl-path phase was meant to be removed, as it was in https://git.savannah.gnu.org/cgit/guix.git/commit/?h=3Dcore-updates&id=3D0d= e5e6d6536a7bc94dd71047cf9573d71fa8d4b0 and I believe restored (erroneously I'm guessing) in the master merge in January. So I think that can be dropped completely. Hope this helps! John From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 16 07:38:43 2023 Received: (at control) by debbugs.gnu.org; 16 Apr 2023 11:38:43 +0000 Received: from localhost ([127.0.0.1]:50698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1po0iR-0004pP-0J for submit@debbugs.gnu.org; Sun, 16 Apr 2023 07:38:43 -0400 Received: from coleridge.kublai.com ([166.84.7.167]:56280 helo=mail.spork.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1po0iP-0004pH-8B for control@debbugs.gnu.org; Sun, 16 Apr 2023 07:38:41 -0400 Received: from psyduck (ool-18b8e9e7.dyn.optonline.net [24.184.233.231]) by mail.spork.org (Postfix) with ESMTPSA id 9E32287EA for ; Sun, 16 Apr 2023 07:38:39 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=spork.org; s=dkim; t=1681645120; bh=XZllS0iDK9s5XkcwiauafqqAgtxanG0VgEqj9CCdP7I=; h=Date:To:From:Subject; b=KB09p5WKoJhlUGEOHcFF5vKunk3wwUmUCQEV4gY48mwOOe2sbFGPGV3mmTYxJ4xoJ cflFcykZQXU2yOJocLWvh8cgX/7O0PSr5TWC4zcKT9ID89HN4eqo02fhrTJWdQngNs VrgfwTW+zoYQlCTjjp5Z9H8m+QuZBQfRr8PhlO4Q= Date: Sun, 16 Apr 2023 07:38:27 -0400 Message-Id: <87h6tgt5u4.fsf@psyduck.jhoto.kublai.com> To: control@debbugs.gnu.org From: Brian Cully Subject: control message for bug #62859 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) merge 62859 62863 quit From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 16 08:00:05 2023 Received: (at 62859-done) by debbugs.gnu.org; 16 Apr 2023 12:00:05 +0000 Received: from localhost ([127.0.0.1]:50723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1po137-00081g-Aj for submit@debbugs.gnu.org; Sun, 16 Apr 2023 08:00:05 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:48658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1po136-00080O-0Q; Sun, 16 Apr 2023 08:00:04 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 0D97817ED; Sun, 16 Apr 2023 13:59:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rygcy2LuYHPI; Sun, 16 Apr 2023 13:59:57 +0200 (CEST) Received: from jurong (unknown [IPv6:2001:861:c4:f2f0::c64]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 5B265709; Sun, 16 Apr 2023 13:59:57 +0200 (CEST) Date: Sun, 16 Apr 2023 13:59:55 +0200 From: Andreas Enge To: guix-devel@gnu.org Subject: Openldap in core-updates Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 62859-done Cc: 62859-done@debbugs.gnu.org, 62863-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Am Sun, Apr 16, 2023 at 01:09:02PM +0200 schrieb Andreas Enge: > A single package holds up a lot (gtk+ and so on): openldap. It was pointed out to me on IRC that there are already two fixes available on our issue tracker! I applied one of them and also removed the additional phase as suggested there. In a separate commit, I also updated to 2.6.4 and removed the non-hidden openldap-for-linphone variable, which had the confusing effect that the command line would refer to this package (so "guix refresh -l openldap" showed almost no dependents, for instance). If any of these pose problems, we should selectively revert part of the commits; but I am rather optimistic, as both versions create a library with the same soname. Thanks to all involved! Andreas From unknown Sun Jun 22 11:30:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 15 May 2023 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator