GNU bug report logs -
#26651
[PATCH] gnu: nss-pam-ldap: Look for nslcd.conf in global /etc/ directory.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26651 in the body.
You can then email your comments to 26651 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#26651
; Package
guix-patches
.
(Tue, 25 Apr 2017 12:29:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ricardo Wurmus <ricardo.wurmus <at> mdc-berlin.de>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Tue, 25 Apr 2017 12:29:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/openldap.scm (nss-pam-ldapd)[arguments]: Set
"--with-ldap-conf-file" to look for global configuration file; add build phase
to install example configuration file in the package output directory.
---
gnu/packages/openldap.scm | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/openldap.scm b/gnu/packages/openldap.scm
index b67510647..61f7a9469 100644
--- a/gnu/packages/openldap.scm
+++ b/gnu/packages/openldap.scm
@@ -94,8 +94,23 @@
`(#:configure-flags
(list (string-append "--with-pam-seclib-dir="
(assoc-ref %outputs "out") "/lib/security/")
- (string-append "--with-ldap-conf-file="
- (assoc-ref %outputs "out") "/etc/nslcd.conf"))))
+ ;; nslcd cannot be convinced to look at run-time for its
+ ;; configuration file at a location that differs from the
+ ;; configured location.
+ "--with-ldap-conf-file=/etc/nslcd.conf")
+ #:phases
+ (modify-phases %standard-phases
+ ;; This is necessary because we tell nslcd with configure flags that
+ ;; it should look for its configuration file at /etc/nslcd.conf. The
+ ;; build system tries to install a default configuration to that very
+ ;; location.
+ (add-after 'unpack 'override-nslcd.conf-install-path
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "Makefile.in"
+ (("\\$\\(DESTDIR\\)\\$\\(NSLCD_CONF_PATH\\)")
+ (string-append (assoc-ref outputs "out")
+ "/etc/nslcd.conf.example")))
+ #t)))))
(inputs
`(("linux-pam" ,linux-pam)
("openldap" ,openldap)
--
2.11.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26651
; Package
guix-patches
.
(Tue, 25 Apr 2017 19:21:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 26651 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Ricardo Wurmus <ricardo.wurmus <at> mdc-berlin.de> writes:
> * gnu/packages/openldap.scm (nss-pam-ldapd)[arguments]: Set
> "--with-ldap-conf-file" to look for global configuration file; add build phase
> to install example configuration file in the package output directory.
> ---
> gnu/packages/openldap.scm | 19 +++++++++++++++++--
> 1 file changed, 17 insertions(+), 2 deletions(-)
>
> diff --git a/gnu/packages/openldap.scm b/gnu/packages/openldap.scm
> index b67510647..61f7a9469 100644
> --- a/gnu/packages/openldap.scm
> +++ b/gnu/packages/openldap.scm
> @@ -94,8 +94,23 @@
> `(#:configure-flags
> (list (string-append "--with-pam-seclib-dir="
> (assoc-ref %outputs "out") "/lib/security/")
> - (string-append "--with-ldap-conf-file="
> - (assoc-ref %outputs "out") "/etc/nslcd.conf"))))
> + ;; nslcd cannot be convinced to look at run-time for its
> + ;; configuration file at a location that differs from the
> + ;; configured location.
> + "--with-ldap-conf-file=/etc/nslcd.conf")
> + #:phases
> + (modify-phases %standard-phases
> + ;; This is necessary because we tell nslcd with configure flags that
> + ;; it should look for its configuration file at /etc/nslcd.conf. The
> + ;; build system tries to install a default configuration to that very
> + ;; location.
> + (add-after 'unpack 'override-nslcd.conf-install-path
> + (lambda* (#:key outputs #:allow-other-keys)
> + (substitute* "Makefile.in"
> + (("\\$\\(DESTDIR\\)\\$\\(NSLCD_CONF_PATH\\)")
> + (string-append (assoc-ref outputs "out")
> + "/etc/nslcd.conf.example")))
> + #t)))))
> (inputs
> `(("linux-pam" ,linux-pam)
> ("openldap" ,openldap)
LGTM.
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Ricardo Wurmus <ricardo.wurmus <at> mdc-berlin.de>
:
You have taken responsibility.
(Wed, 26 Apr 2017 11:12:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Ricardo Wurmus <ricardo.wurmus <at> mdc-berlin.de>
:
bug acknowledged by developer.
(Wed, 26 Apr 2017 11:12:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 26651-done <at> debbugs.gnu.org (full text, mbox):
Kei Kebreau <kei <at> openmailbox.org> writes:
> Ricardo Wurmus <ricardo.wurmus <at> mdc-berlin.de> writes:
>
>> * gnu/packages/openldap.scm (nss-pam-ldapd)[arguments]: Set
>> "--with-ldap-conf-file" to look for global configuration file; add build phase
>> to install example configuration file in the package output directory.
[…]
> LGTM.
Thanks. Pushed with a minor change in the summary.
(Commit 289a89801afaeee0522777078258ce103d0452e8)
--
Ricardo Wurmus
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 24 May 2017 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 29 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.