From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHGdW-0005ST-3H for guix-patches@gnu.org; Sat, 03 Jun 2017 17:31:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHGdT-0000h5-2z for guix-patches@gnu.org; Sat, 03 Jun 2017 17:31:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:51580) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dHGdS-0000gZ-Uq for guix-patches@gnu.org; Sat, 03 Jun 2017 17:31:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dHGdS-0007GL-PC for guix-patches@gnu.org; Sat, 03 Jun 2017 17:31:02 -0400 Subject: bug#27220: [PATCH 3/3] gnu: openldap: Provide path to cyrus-sasl for libtool. Resent-Message-ID: From: Leo Famulari Date: Sat, 3 Jun 2017 17:30:22 -0400 Message-Id: In-Reply-To: References: In-Reply-To: References: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 27220@debbugs.gnu.org * gnu/packages/openldap.scm (openldap)[arguments]: Add 'patch-sasl-path' phase.. --- gnu/packages/openldap.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gnu/packages/openldap.scm b/gnu/packages/openldap.scm index 3fd19632b..9a68d553b 100644 --- a/gnu/packages/openldap.scm +++ b/gnu/packages/openldap.scm @@ -72,7 +72,17 @@ #:phases (modify-phases %standard-phases (add-after 'configure 'provide-libtool - (lambda _ (copy-file (which "libtool") "libtool")))))) + (lambda _ (copy-file (which "libtool") "libtool"))) + (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")) + (sasl (assoc-ref inputs "cyrus-sasl"))) + (substitute* (map (lambda (f) (string-append out "/" f)) + '("lib/libldap.la" "lib/libldap_r.la")) + (("-lsasl2" lib) + (string-append "-L" sasl "/lib " lib))) + #t)))))) (synopsis "Implementation of the Lightweight Directory Access Protocol") (description "OpenLDAP is a free implementation of the Lightweight Directory Access Protocol.") -- 2.13.0