From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Svante Signell Newsgroups: gmane.emacs.bugs Subject: bug#25081: Anybody needs help to set up a qemu VM for GNU/Hurd? Date: Thu, 08 Dec 2016 00:00:06 +0100 Organization: Home Message-ID: <1481151606.9077.59.camel__17742.0633765452$1481151766$gmane$org@gmail.com> References: <94f4d6ff-a8fa-45c3-b15b-e4a4af04dca6@cs.ucla.edu> Reply-To: svante.signell@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1481151766 31201 195.159.176.226 (7 Dec 2016 23:02:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 7 Dec 2016 23:02:46 +0000 (UTC) Cc: 25081@debbugs.gnu.org To: Paul Eggert , emacs-devel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 08 00:02:41 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cElEV-0007Ih-RN for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Dec 2016 00:02:40 +0100 Original-Received: from localhost ([::1]:42874 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cElEZ-0002jT-Vd for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Dec 2016 18:02:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cElD0-0001jX-DU for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2016 18:01:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cElCw-00048D-8A for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2016 18:01:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45036) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cElCw-000486-4h for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2016 18:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cElCv-0006Jn-Ki for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2016 18:01:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Svante Signell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Dec 2016 23:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25081 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25081-submit@debbugs.gnu.org id=B25081.148115160824219 (code B ref 25081); Wed, 07 Dec 2016 23:01:01 +0000 Original-Received: (at 25081) by debbugs.gnu.org; 7 Dec 2016 23:00:08 +0000 Original-Received: from localhost ([127.0.0.1]:60435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cElC3-0006IY-Sm for submit@debbugs.gnu.org; Wed, 07 Dec 2016 18:00:08 -0500 Original-Received: from mail-wm0-f68.google.com ([74.125.82.68]:33249) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cElC2-0006Gm-L5 for 25081@debbugs.gnu.org; Wed, 07 Dec 2016 18:00:07 -0500 Original-Received: by mail-wm0-f68.google.com with SMTP id u144so30854022wmu.0 for <25081@debbugs.gnu.org>; Wed, 07 Dec 2016 15:00:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:reply-to:to:cc:date:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=MwibM1yNvWWeVCEUenWhgn5NhDDjN3vUdYdb9jLrVFo=; b=J75pzqzhjRYGFEnWvxIuPHAaTlk73qFFs5mxJVRsTIZElvaRDlpPEom6m6Fe1znE8r mgMBAT06rDCtJiMrYNBdHvUUf8Lcu1I09IReTdRaTX/9qtSbKYnGK3qrj3cQ2CE55BMM aiB4BosaGDj8zumDyp2sl8B6clzrnsYzr4EiKcMj5u+cGO/n6OeDv/xae0VNEwieMo5N Py4Efs7ZugW15gXIXkw4rwAJwTmwcuK0nmuYGwXd/W33Qb3lzsk1pI/NTqrgq6hPSHdL VUCoLpKxAyJa1eh5o0Hu08CaN7q3oLfEhwwSpFbb1phbUWS8syJ/mziXJrRuINxzpmfl D3ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:reply-to:to:cc:date :in-reply-to:references:organization:mime-version :content-transfer-encoding; bh=MwibM1yNvWWeVCEUenWhgn5NhDDjN3vUdYdb9jLrVFo=; b=hexPNphu98bgieG5Ffia8e1qXyvZ0XQhVDR4cz5FewSTqOCcwDOviULOuPvpOuYoOU AjX/e78bSEaVz5ikBZJSzTDNvBW0vq9tNxJJ03bWDv7CdiZo4MxoUYGBPzMLD9CpNhs0 UFXrn/ukndc5p2XjpHHqWRGnp2wylN55XQISVAudGANzD+udNR8YLJHi0uSlXtVr4Dhx HfDX3il7xqPi7vaSAPet6zw8D/zblxu3/zNcHeySOQGZ+dGfcRB2+kgoNztHPggJWK5c IyXiGygLm7RAjXCfU8L3e9JlWBa4j6mzBh+YKXfb2v5A3CheDGLipqiun1VvJwsimD2u WwaA== X-Gm-Message-State: AKaTC02GPNbna9d1Kw5+oJC91bGVQJd9fDf1YnE6aSZWNULEluXB4KxvJPbRuRs45Uc8ow== X-Received: by 10.25.167.20 with SMTP id q20mr25263566lfe.115.1481151600695; Wed, 07 Dec 2016 15:00:00 -0800 (PST) Original-Received: from G3620 (178-78-231-178.customers.ownit.se. [178.78.231.178]) by smtp.gmail.com with ESMTPSA id h30sm5131946lji.28.2016.12.07.14.59.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Dec 2016 15:00:00 -0800 (PST) In-Reply-To: <94f4d6ff-a8fa-45c3-b15b-e4a4af04dca6@cs.ucla.edu> X-Mailer: Evolution 3.18.1-1 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:126711 Archived-At: Hi, adding emacs-devel to the recipients. I hope you don't mind. On Wed, 2016-12-07 at 14:36 -0800, Paul Eggert wrote: > I tried to get a qemu VM running for GNU/Hurd on my platform (Fedora 24 > x86-64), and did not succeed. > > The instructions in > https://people.debian.org/~sthibault/hurd-i386/installer/cdimage/ talk > about running "apt-get install qemu-kvm". Obviously this won't work on > Fedora. I'm not a big fan of virtualization to be honest, but after > messing with it a bit I found that the following Unix shell commands > sort-of worked: > > sudo dnf install @virtualization > > qemu-kvm -net user,hostfwd=tcp:127.0.0.1:2222-:22 -net nic -drive > file=debian-hurd-20160824.img,cache=writeback -m 1G I normally use: qemu-system-x86_64 -enable-kvm -m 2048 -net nic,model=rtl8139 -net user,hostfwd=tcp::-:22 -drive cache=writeback,index=0,media=disk,file=.img > The latter command outputs the somewhat scary-looking: > > WARNING: Image format was not specified for 'debian-hurd-20160824.img' > and probing guessed raw. >           Automatically detecting the format is dangerous for raw > images, write operations on block 0 will be restricted. >           Specify the 'raw' format explicitly to remove the restrictions. This is expected, since qemu does not know exactly in what format the file is in. Maybe just ignore that warning for now? I (and others) do. > and gives me a screen where I can log in as root and type the command > "password demo" to change the password, and then from another terminal > window I can run "ssh demo@localhost -p 2222" to login to GNU/Hurd, and > after creating .ssh/authorized_keys with my key, I can run "scp -P 2222 > emacs.tar.gz demo@localhost:". (This "emacs.tar.gz" was created by > running "make dist" followed by "tar cf emacs.tar.gz emacs-26.0.50" on > my development machine, in the master branch.) Although all this is > obvious if you're a VM expert and like messing with VMs, it's not > written down in the instructions. It might be easier to use the debian tools: apt-get update apt-get dist-upgrade apt-get build-dep emacs24/emacs25 apt-get source emacs24/emacs25 cd emacs24-24.5+1/emacs25-25.1+1 dpkg-buildpackage -b 2>&1 | tee ../build-whatever.log ... > (Plus, I hate having to type > Ctrl-Alt-G all the time while configuring the VM -- that's not > documented either.) Never used that? Ctrl-Alt toggles mouse focus though. > On GNU/Hurd I tried several ways to configure Emacs. None worked. I made > the most progess with this: > > tar xf emacs.tar.gz > > cd emacs-26.0.50 > > ./configure --without-x --with-gnutls=no > > This failed as follows: > > checking for library containing tputs... no > configure: error: The required function 'tputs' was not found in any > library. > The following libraries were tried (in order): >    libtinfo, libncurses, libterminfo, libtermcap, libcurses > Please try installing whichever of these libraries is most appropriate > for your system, together with its header files. > For example, a libncurses-dev(el) or similar package. > > At this point I gave up. I don't know where to grab GNU/Hurd packages > from, and anyway this process is taking more of my time than I would > like to spend. See above. > Perhaps you could build a GNU/Hurd image that already has all the > packages needed to develop programs like Emacs, and then send a complete > standalone recipe that will let someone easily reproduce the Emacs > problem even if they dislike messing with VMs. Likewise. Otherwise, you can git clone or download and build the tarball as you wrote above. (With the dependencies installed)