From patchwork Fri Jan 11 05:52:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: guy fleury iteriteka X-Patchwork-Id: 717 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 189AC16A5D; Fri, 11 Jan 2019 05:53:09 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id CA64B16A5B for ; Fri, 11 Jan 2019 05:53:07 +0000 (GMT) Received: from localhost ([127.0.0.1]:41840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghpkh-00026l-1t for patchwork@mira.cbaines.net; Fri, 11 Jan 2019 00:53:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghpkd-00026c-Jz for guix-patches@gnu.org; Fri, 11 Jan 2019 00:53:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghpkc-0004VO-8S for guix-patches@gnu.org; Fri, 11 Jan 2019 00:53:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55162) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ghpkb-0004VA-V4 for guix-patches@gnu.org; Fri, 11 Jan 2019 00:53:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ghpkb-00016V-Mo for guix-patches@gnu.org; Fri, 11 Jan 2019 00:53:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34034] [PATCH]: Add Bochs Resent-From: Guy fleury Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 11 Jan 2019 05:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34034 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Leo Famulari Received: via spool by 34034-submit@debbugs.gnu.org id=B34034.15471859734229 (code B ref 34034); Fri, 11 Jan 2019 05:53:01 +0000 Received: (at 34034) by debbugs.gnu.org; 11 Jan 2019 05:52:53 +0000 Received: from localhost ([127.0.0.1]:54443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghpkT-000169-BT for submit@debbugs.gnu.org; Fri, 11 Jan 2019 00:52:53 -0500 Received: from mail-oi1-f177.google.com ([209.85.167.177]:45609) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghpkR-00015t-53 for 34034@debbugs.gnu.org; Fri, 11 Jan 2019 00:52:52 -0500 Received: by mail-oi1-f177.google.com with SMTP id y1so11298762oie.12 for <34034@debbugs.gnu.org>; Thu, 10 Jan 2019 21:52:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cQyZLvXNTeHitxaCDsy/XfeiU0pmE7bkSUNwRfxZ/iQ=; b=gCaswYRV+NnS25nl7ZR6TGv93bs8poK8CBXBQyHKvOwRCPlFTIscjZYMBygXSN2RWU FAPcti3dgvekpb0EvJQXAuWRetw+wdkMMjnjifGsXuBEpFdw1ipuBoBSvQmo2fuMuvui blrp6/42tO8LKiWAQEGcfzK6YIqAKx6i1v1A3deTyO+6XbBN1Bi352lQJm1MyJ9e1cIC CZN9bizj3dVM0u7lbAV/eC+AqYtgPC4Pl9fKXdWRwerAHahHEUsGiqHuuRY18KqQvY+Z i7IR/Kh9RuMv+9NbJ7epiAfkfL8wCkeex+MrHaoZVH48FiHNnxrBusV6op2Re0bxANc7 gErA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cQyZLvXNTeHitxaCDsy/XfeiU0pmE7bkSUNwRfxZ/iQ=; b=NzAJDJ7gDcu6QPFACE8USWddmS5RrTd37O8ixa444NfdxHiQnfOwXOmKgFQ7JC7FK1 03At8rF0Xa2Oyko/t2w9ZWaUKdSsHJOHTdogg+mRI1BYLeEYA5fFBN/olTWPEapDLJov aEzwOzg9Ch2dxllcVYcgWI3H49QRfvKOBKWq5os9teB/f8vpZyKqKpCJNztkkaX3g8Er hLwRORxuwlxL0YE0jd953Dluzg3qcF9rESIqAfsoftPNRD6Mtswf1NVPwbXzc8nhWZqH SFNx09+sZXmg1dsvWCyiS7KV4n6EsBlyE+w4MxJkSZHniUv/Q3qHPOsSM6J9RUR2y8sw 9aKA== X-Gm-Message-State: AJcUukdb+aU+Ka8GDflLFveJ9SFteXXhabIQVL8yswkCelkZrFYPK8db clG4daPy9qYX/xS6x43LShPoJmLHJ53Qkne7pOYQZA== X-Google-Smtp-Source: ALg8bN4ohodWb94UI9dxWikvbzABqPI4mn3+yKQNi8xBs3ja6rBB6PU/HEY84dQRgaTq+mC1OUXIU2fdMvebqY1DtN0= X-Received: by 2002:aca:1c04:: with SMTP id c4mr8033243oic.191.1547185965363; Thu, 10 Jan 2019 21:52:45 -0800 (PST) MIME-Version: 1.0 References: <20190110234228.GA28964@jasmine.lan> In-Reply-To: <20190110234228.GA28964@jasmine.lan> From: Guy fleury Date: Fri, 11 Jan 2019 06:52:31 +0100 Message-ID: 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: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 34034@debbugs.gnu.org Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches hi Le ven. 11 janv. 2019 à 00:42, Leo Famulari a écrit : > On Thu, Jan 10, 2019 at 07:18:04PM +0100, Guy fleury wrote: > > From 0380fab2ad7195407fc29afb830a86dbfae03b3f Mon Sep 17 00:00:00 2001 > > From: guy fleury iteriteka > > Date: Thu, 10 Jan 2019 17:33:30 +0100 > > Subject: [PATCH] gnu: Add Bochs > > Thank you! > > > + (outputs '("out")) > > This is the default, so it's okay to leave it out. > > > + `(#:tests? #f)) ;; no tests exits > > "No tests exist" > > > + (inputs > > + `(("glib" ,glib) > > + ("gtk+" ,gtk+) > > + ("libxrandr" ,libxrandr))) > > I noticed that it doesn't keep references to glib and gtk+: > > ------ > $ guix gc --references $(./pre-inst-env guix build --no-grafts bochs) > /gnu/store/2dk55i5wdhcbh2z8hhn3r55x4873iyp1-libxext-1.3.3 > /gnu/store/3vlscch2sxybd34qx2ianpg92crm9akm-libxdmcp-1.1.2 > /gnu/store/4sqps8dczv3g7rwbdibfz6rf5jlk7w90-gcc-5.5.0-lib > /gnu/store/6lwn8v33r2z2l2pgky2dnzim3696dwnn-libbsd-0.9.1 > /gnu/store/8baabfjazsr7s4y0jig1sn84xnxf75xa-libx11-1.6.6 > /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28 > /gnu/store/hnj08aavzpsi72wvi4qqrp5dqbyqxqqs-libxcb-1.13 > /gnu/store/mawqhgh0bdxpa4gjxs1fjyhwvv6i8w5g-libxau-1.0.8 > /gnu/store/mbbj3j86amqls868hip0l85q9lx8gbcn-libxrandr-1.5.1 > /gnu/store/x6fyr53k53sd5ghnh3abpnr1mqsy3xig-bochs-2.6.9 > /gnu/store/xrvwszmahcb7k2zcyag3vmqwswzrbvcg-libxrender-0.9.10 > ------ > thanks for this tips. > So, I think it's possible to omit those two inputs. > > > + "Bochs is an emulator which can emulate Intel x86 CPU, common I/O > > +devices, and a custom BIOS. It can also compiled to emulate many > different > > "It can also be compiled to ..." > > > +Bochs can running most Operating Systems inside the emulation including > Linux, > > +DOS or Microsoft Windows.") > > "Bochs can run most operating systems ..." > > > + (license license:lgpl2.0))) > > I checked some of the source files and I think it is lgpl2.0+. > > Can you send an updated patch? :) > From ed8c4f10dd669de42539dc44437c5729230be59d Mon Sep 17 00:00:00 2001 From: guy fleury iteriteka Date: Thu, 10 Jan 2019 17:33:30 +0100 Subject: [PATCH] gnu: Add Bochs --- gnu/packages/virtualization.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index 274f827cd..6deda2e86 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -10,6 +10,7 @@ ;;; Copyright © 2018 Danny Milosavljevic ;;; Copyright © 2018 Sou Bunnbu ;;; Copyright © 2018 Julien Lepiller +;;; Copyright © 2019 Guy Fleury Iteriteka ;;; ;;; This file is part of GNU Guix. ;;; @@ -1058,3 +1059,30 @@ and the user can specify exactly what parts of the filesystem should be visible in the sandbox. Any such directories specified is mounted nodev by default, and can be made readonly.") (license license:lgpl2.0+))) + +(define-public bochs + (package + (name "bochs") + (version "2.6.9") + (source + (origin + (method url-fetch) + (uri (string-append "https://sourceforge.net/projects/bochs/files/bochs/" + version "/bochs-" version ".tar.gz")) + (sha256 + (base32 + "1379cq4cnfprhw8mgh60i0q9j8fz8d7n3d5fnn2g9fdiv5znfnzf")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f)) ;; no tests exit + (inputs + `(("libxrandr" ,libxrandr))) + (home-page "http://bochs.sourceforge.net/") + (synopsis "Emulator for x86 PC") + (description + "Bochs is an emulator which can emulate Intel x86 CPU, common I/O +devices, and a custom BIOS. It can also be compiled to emulate many different +x86 CPUs, from early 386 to the most recent x86-64 Intel and AMD processors. +Bochs can run most Operating Systems inside the emulation including Linux, +DOS or Microsoft Windows.") + (license license:lgpl2.0+))) -- 2.19.2