Subject: bug#24834: closed (Re: bug#24834: Samba commands expect configuration file inside store)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 07 Dec 2016 23:30:03 +0000

Your bug report

#24834: Samba commands expect configuration file inside store

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
24834: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24834
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#24834: Samba commands expect configuration file inside store
From: [email-masked] (Ludovic Courtès)
To: Adonay Felipe Nogueira <[email-masked]>
Cc: [email-masked]
Date: Thu, 08 Dec 2016 00:29:38 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Adonay Felipe Nogueira <[email-masked]> skribis:

> Here's a patch that tries to fix this issue. I already tested it, but
> please do so also just in case.
>
>
> Respectfully, Adonay.
>
> From 086396d33e113a6d991b7c63063844c66a5610ca Mon Sep 17 00:00:00 2001
> From: Adonay Felipe Nogueira <[email-masked]>
> 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).

Apply with commit log and indentation tweaks.  It builds fine here.

Thank you!

Ludo’.

Subject: Samba commands expect configuration file inside store
From: Adonay Felipe Nogueira <[email-masked]>
To: Relatórios de falhas do Guix e GuixSD <[email-masked]>
Date: Mon, 31 Oct 2016 08:17:54 -0200
List-Id: <debbugs-submit.debbugs.gnu.org>

# Begin of terminal interaction
$ strace ".guix-profile/sbin/samba/smbd"
stat64("/gnu/store/...-samba-4.5.0/etc/samba/smb.conf", 0xbfeb41b0) = -1
ENOENT (No such file or directory)
open("/gnu/store/...-samba-4.5.0/etc/samba/smb.conf", O_RDONLY|
O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2001, ...}) = 0
exit_group(1)                           = ?
+++ exited with 1 +++
# End of terminal interaction

Sorry for my brevity, I'll return to this issue at a later time.