From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2NuFAkrAOmS6FgAASxT56A (envelope-from ) for ; Sat, 15 Apr 2023 17:18:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GAeEAkrAOmRDsQAA9RJhRA (envelope-from ) for ; Sat, 15 Apr 2023 17:18:34 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 83CB87D2C for ; Sat, 15 Apr 2023 17:18:33 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pnhfA-0003m3-EB; Sat, 15 Apr 2023 11:18:04 -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 1pnhf8-0003lo-Tg for guix-patches@gnu.org; Sat, 15 Apr 2023 11:18:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pnhf8-0002eb-JC for guix-patches@gnu.org; Sat, 15 Apr 2023 11:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pnhf8-0003nM-ET for guix-patches@gnu.org; Sat, 15 Apr 2023 11:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62863] [PATCH core-updates] gnu: openldap: Fix build. Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 15 Apr 2023 15:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62863 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62863@debbugs.gnu.org Cc: Josselin Poiret X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168157185814555 (code B ref -1); Sat, 15 Apr 2023 15:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Apr 2023 15:17:38 +0000 Received: from localhost ([127.0.0.1]:49984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnhek-0003mf-4t for submit@debbugs.gnu.org; Sat, 15 Apr 2023 11:17:38 -0400 Received: from lists.gnu.org ([209.51.188.17]:33356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnheh-0003mX-CC for submit@debbugs.gnu.org; Sat, 15 Apr 2023 11:17:36 -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 1pnheh-0003j6-6H for guix-patches@gnu.org; Sat, 15 Apr 2023 11:17:35 -0400 Received: from jpoiret.xyz ([206.189.101.64]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pnheT-0002ZU-Mz for guix-patches@gnu.org; Sat, 15 Apr 2023 11:17:34 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 9F5BE1851E0; Sat, 15 Apr 2023 15:17:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1681571838; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=3in4BKNHQuHM5d/mWEH6CNiTSVEOZmImJL2iyAvLHvE=; b=mP1oiv27tVsBd8KZzv2QCoWF64g0vRzb/NF7ILsRdT4pP9ua0Oj7ppFoIkB6GA8gEfkPgD 3EqbVTGxn2MPaAdIASOhpW12te/Tp57MEHW8fdSMwUOojIqs++cCEa/MHMVsI1nHIgkZLu Cw4jfDNA+v2MSf6hlEf1wBOA+SgOblXnii/8tzjCKRGw18xG6xEu9S7ii7uNgoYOVtDiXJ 6q9jjn2VGu9CPhmjNBRW0JZ+jJrACToUNIeS6IpgYbEHwE/h2n8M6nmUSjJg4mM6Cuaoxt I+fLDbZx+0khMzrLNmNVwTd4PvfGjyUqRZ0YCrVCTnd9CSlW5/KNNBbABZ8+Qg== Date: Sat, 15 Apr 2023 17:17:11 +0200 Message-Id: <1127358858c069da42652a37105f542991757304.1681571782.git.dev@jpoiret.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: ++++ Received-SPF: pass client-ip=206.189.101.64; envelope-from=dev@jpoiret.xyz; helo=jpoiret.xyz 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_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Josselin Poiret X-ACL-Warn: , Josselin Poiret via Guix-patches From: Josselin Poiret via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681571913; a=rsa-sha256; cv=none; b=jt5EfrQaGrkjmR/1lp/wWvrTrlSc47DGW5lkDaTCrUyl+6klG1BWdZMmhgjoJoPGiaGw+5 mH2RcEe6bUK/O1OtjhioABvnADJOxzdLb43/nAPrhSLJVZkxfsgdh6U16Nns9vupRqNLiy zFtmLH9LX9NhpUuPv8+TFEw/vXUyEOW2wV9VIZR3+YpKvpJE/c50qPLt6l8TaPubmCxr1q LR4XueY2/D/X0TuE5KHv691XVDJc6SZMdIZThgX51O4Oe05p6SJYf5Fc3P2pKjtPUST88v ShB7JQWMpv4hkm0mM1RRnIu1nUa3nn8PtXiXyRbIszfdYVe8XZPWKl0jtX56/Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=mP1oiv27; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681571913; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=3in4BKNHQuHM5d/mWEH6CNiTSVEOZmImJL2iyAvLHvE=; b=glYzQtRsSnfu+m9kVelAnw2tXAeZH+VO5mhhgHDok4qF+9jJG3aACcMzyW7WbbT/TJYI4F l2pJ+erlf/VRHXDRGsb35PbuKRoOVOWf1oZFTo2LDLgEmE9xoDfH79T1OoMbASvDgMSQ/b V4tLsBFFqD1NtYnQrkD5lif3/53Oc2QoTP2pAQSnW02MsM4Looi2tW9WIpgoJON8UCJhuE q+dh3Zf8o+HGzdKXK6f0l7Nk97rBVFMRwXD4I2tLBA/Xy5HFrCdxZ2la2VVSdTEa8WHZs1 W9SV0OjDNacKAR2/il6+R4ikHDUL+gYCceQo1uWHctNt1UJAEQ3teOI8huExcw== X-Migadu-Queue-Id: 83CB87D2C Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=mP1oiv27; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -2.22 X-Spam-Score: -2.22 X-TUID: lTseuxKsxxbK * gnu/packages/openldap.scm (openldap): Switch arguments to g-exps. Also, do not try to patch libldap_r.la which doesn't exist anymore. --- gnu/packages/openldap.scm | 67 +++++++++++++++++++-------------------- 1 file changed, 33 insertions(+), 34 deletions(-) diff --git a/gnu/packages/openldap.scm b/gnu/packages/openldap.scm index 7409848795..42fc8269ac 100644 --- a/gnu/packages/openldap.scm +++ b/gnu/packages/openldap.scm @@ -84,47 +84,46 @@ (define-public openldap (base32 "0ihddk8c6hg9lkjv0wk0w13g8kb75r8dfsn1n6b77mzk3pbs38nj")))) (build-system gnu-build-system) - (inputs (list bdb-5.3 cyrus-sasl gnutls libgcrypt zlib)) + (inputs (list bdb-5.3 cyrus-sasl gnutls libgcrypt mit-krb5 zlib)) (native-inputs (list libtool groff bdb-5.3)) (arguments - `(#:tests? #f - #:configure-flags - '("--disable-static" + (list + #: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 + ;; 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 _ + (setenv "CC" #$(cc-for-target)) + (setenv "STRIP" #$(string-append (%current-target-system) "-strip"))))) + #~()) + (add-after 'install 'patch-sasl-path + ;; Give -L arguments for cyrus-sasl to avoid propagation. + (lambda* (#:key inputs #:allow-other-keys) + (let ((krb5-lib (basename (search-input-file inputs "lib/libkrb5.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 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* (list (string-append #$output "/lib/libldap.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 )~%")))))))) (synopsis "Implementation of the Lightweight Directory Access Protocol") (description "OpenLDAP is a free implementation of the Lightweight Directory Access Protocol.") -- 2.39.2