From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#26797: qemu looks for smbd at /usr/sbin Date: Sat, 06 May 2017 14:45:47 +0200 Message-ID: <878tmaw3us.fsf@gnu.org> References: <87zieq2sdx.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6z75-0006E7-7X for bug-guix@gnu.org; Sat, 06 May 2017 08:47:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d6z70-0004G1-Bj for bug-guix@gnu.org; Sat, 06 May 2017 08:47:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59096) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d6z70-0004Fx-7r for bug-guix@gnu.org; Sat, 06 May 2017 08:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d6z6z-0006Xu-VZ for bug-guix@gnu.org; Sat, 06 May 2017 08:47:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87zieq2sdx.fsf@elephly.net> (Ricardo Wurmus's message of "Sat, 06 May 2017 12:26:18 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ricardo Wurmus Cc: 26797@debbugs.gnu.org Ricardo Wurmus skribis: > Qemu comes with support for sharing files with a guest via Samba. This > is done by appending something like this to the qemu-system-* > invocation: > > =E2=80=A6 -net user,smb=3D$HOME/Downloads -net nic > > Qemu needs to be told *at configure time* where the smbd executable will > be at runtime. By default this is /usr/sbin/smbd. Users can work > around this problem by installing the =E2=80=9Csamba=E2=80=9D package and= creating a > link from /usr/sbin/smbd to the actual executable. > > It would be better to fix this, but this would require adding samba as a > dependency to Qemu, so that the location can be set at configure time. > Alternatively, we could patch Qemu to look for smbd depending on an > environment variable. See commit b344c505f4dff2ecbe981f0a0a3c3d67b222dcca, which removed the dependency and Samba. Prior to that commit, QEMU recorded the absolute file name of =E2=80=98smbd=E2=80=99. The problem is that Samba is big: --8<---------------cut here---------------start------------->8--- $ guix size qemu |tail -1 total: 710.5 MiB $ guix size qemu samba |tail -1 total: 1203.5 MiB --8<---------------cut here---------------end--------------->8--- Thus it=E2=80=99d be best if we modified QEMU to search for =E2=80=98smbd= =E2=80=99 in $PATH. WDYT? Ludo=E2=80=99.