From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: bug#26797: qemu looks for smbd at /usr/sbin Date: Sat, 06 May 2017 16:42:59 +0200 Message-ID: <87y3uayrkc.fsf@fastmail.com> References: <87zieq2sdx.fsf@elephly.net> <878tmaw3us.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d70wJ-00082u-D8 for bug-guix@gnu.org; Sat, 06 May 2017 10:44:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d70wF-0000hc-F7 for bug-guix@gnu.org; Sat, 06 May 2017 10:44:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59975) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d70wF-0000hY-BQ for bug-guix@gnu.org; Sat, 06 May 2017 10:44:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d70wE-00012J-7X for bug-guix@gnu.org; Sat, 06 May 2017 10:44:03 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <878tmaw3us.fsf@gnu.org> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Ricardo Wurmus Cc: 26797@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > 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 an= d 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. Tangentially, would it make sense to add a "qemu-full" package? I'd like to add RBD support when Ceph is stable on Hydra, but that adds another ~300MiB to the closure (and a very expensive dependency..). --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlkN4PMACgkQoqBt8qM6 VPo7Qgf/Ycu+D5obukPqjgaU6O4Qgg5EmdZdUtAYDNCVPRz6tFTDmW3JR7nwDYN4 IlHgReQNGtMmdzyPx6iCY5Ib0bz2G6qG3+tXZEXsIINPCoSpYVk3qVM0U8Yqu3qQ B6fIg08ymE6epoHsPaU0CMk7C1k1aXGk17gO4FYM6o/uB6N8Yz+68jq1f19p9XHl GwZ8kGggau3xq1s8QZYSJvEhvuK3dpC4ywpvZoMuSnyUKMBEIhqcjF/jEv13CzkQ E9XzrdDsRaQE5B3c2MVAeoXUyXDAB9AEzLB11oBDE7xiNfwCW815+EpDjE2mz5zg ugjGLjqcJVy8rckA/jibDiZCQhN4BQ== =3vxK -----END PGP SIGNATURE----- --=-=-=--