From: Adonay Felipe Nogueira <adfeno@openmailbox.org>
To: 24834@debbugs.gnu.org
Subject: bug#24834: Samba commands expect configuration file inside store
Date: Sat, 03 Dec 2016 22:06:33 -0200 [thread overview]
Message-ID: <87fum4fth2.fsf@openmailbox.org> (raw)
In-Reply-To: <1477909074.12434.4.camel@adfeno-VPCEG17FB> (Adonay Felipe Nogueira's message of "Mon, 31 Oct 2016 08:17:54 -0200")
[-- Attachment #1: Type: text/plain, Size: 126 bytes --]
Here's a patch that tries to fix this issue. I already tested it, but
please do so also just in case.
Respectfully, Adonay.
[-- Attachment #2: guix.patch --]
[-- Type: text/x-diff, Size: 2188 bytes --]
From 086396d33e113a6d991b7c63063844c66a5610ca Mon Sep 17 00:00:00 2001
From: Adonay Felipe Nogueira <adfeno@openmailbox.org>
Date: Sat, 3 Dec 2016 21:22:56 -0200
Subject: [PATCH] gnu: samba: Don't expect configuration files inside the
store.
Attempts to fix <https://bugs.gnu.org/24834>.
* gnu/packages/samba.scm (samba) [arguments]:
* Set `--sysconfdir` to "/etc".
* Avoid creation of "/etc/samba" (otherwise would require root).
---
gnu/packages/samba.scm | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/samba.scm b/gnu/packages/samba.scm
index 1706ec3..6a27a63 100644
--- a/gnu/packages/samba.scm
+++ b/gnu/packages/samba.scm
@@ -2,6 +2,7 @@
;;; Copyright © 2013, 2015 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2016 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -121,11 +122,17 @@ anywhere.")
;; XXX: heimdal not packaged.
"--bundled-libraries=com_err"
(string-append "--prefix=" out)
+ ;; Don't write to store.
+ "--sysconfdir=/etc"
;; Install public and private libraries into
;; a single directory to avoid RPATH issues.
(string-append "--libdir=" libdir)
- (string-append "--with-privatelibdir=" libdir)))))))
-
+ (string-append "--with-privatelibdir=" libdir))))))
+ (add-before 'install 'disable-etc-samba-directory-creation
+ (lambda _
+ (substitute* "dynconfig/wscript"
+ (("bld\\.INSTALL_DIRS\\(\"\",[[:blank:]]{1,}\"\\$\\{CONFIGDIR\\}[[:blank:]]{1,}")
+ "bld.INSTALL_DIRS(\"\", \"")))))
;; XXX: The test infrastructure attempts to set password with
;; smbpasswd, which fails with "smbpasswd -L can only be used by root."
;; So disable tests until there's a workaround.
--
1.9.1
next prev parent reply other threads:[~2016-12-04 0:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-31 10:17 bug#24834: Samba commands expect configuration file inside store Adonay Felipe Nogueira
2016-11-03 13:38 ` Ludovic Courtès
2016-11-18 9:50 ` Adonay Felipe Nogueira
2016-11-23 10:44 ` Adonay Felipe Nogueira
2016-11-23 22:16 ` Ludovic Courtès
2016-11-23 10:52 ` Adonay Felipe Nogueira
2016-12-04 0:06 ` Adonay Felipe Nogueira [this message]
2016-12-07 23:29 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fum4fth2.fsf@openmailbox.org \
--to=adfeno@openmailbox.org \
--cc=24834@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).