From patchwork Sat Jan 9 14:30:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Legoll X-Patchwork-Id: 26287 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 96C2C27BC0F; Sat, 9 Jan 2021 14:31:24 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E3B3027BC0E for ; Sat, 9 Jan 2021 14:31:23 +0000 (GMT) Received: from localhost ([::1]:57936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyFGy-0001bX-V4 for patchwork@mira.cbaines.net; Sat, 09 Jan 2021 09:31:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyFGg-0001bA-BF for guix-patches@gnu.org; Sat, 09 Jan 2021 09:31:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39849) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kyFGg-0005q8-3T for guix-patches@gnu.org; Sat, 09 Jan 2021 09:31:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kyFGf-0006r9-UG for guix-patches@gnu.org; Sat, 09 Jan 2021 09:31:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45742] [PATCH] gnu: Add x86emu. Resent-From: Vincent Legoll Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 Jan 2021 14:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45742 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 45742@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161020265726342 (code B ref -1); Sat, 09 Jan 2021 14:31:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Jan 2021 14:30:57 +0000 Received: from localhost ([127.0.0.1]:51395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyFGb-0006qo-1D for submit@debbugs.gnu.org; Sat, 09 Jan 2021 09:30:57 -0500 Received: from lists.gnu.org ([209.51.188.17]:52082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyFGZ-0006qf-81 for submit@debbugs.gnu.org; Sat, 09 Jan 2021 09:30:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyFGZ-0001ay-1U for guix-patches@gnu.org; Sat, 09 Jan 2021 09:30:55 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:55909) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kyFGW-0005mi-Qi for guix-patches@gnu.org; Sat, 09 Jan 2021 09:30:54 -0500 Received: by mail-wm1-x32a.google.com with SMTP id c124so10039630wma.5 for ; Sat, 09 Jan 2021 06:30:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Rn++WYVUfCUE/nm6E0aLSY4X0/HymrURYDsWn3xw0CU=; b=IwAxpUVcJ3V9JZxnht/bBbCrPrUe2BH/UA1fOQBu3SBMADNOPyheUtg42qreiBQLgx Dpe77vBAPim3IFmaOZPYNxP47P3ifD1rdlIcqggxFw7olP1YAEUfoyW4MhFbxgqs7obB S7VneeBKh9oR+hlG6w1+yn4Xol7buMdo/kHxQyJoTGHfai9zMcnKS/mIHbFh4eBZkR6M tVovuHLBBByfQ/ufk/dHCAKSpXANzAeovNkHJ2b6pIqATd+Q0RtPqnLfcmKEp7l8oaL2 v4BEi5sQHAqKOzVqMkRD9qGPZikAoJL1LtTkKWu6JbPvumr6n/zdvqFXpx9O/Mrew0gV mUJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Rn++WYVUfCUE/nm6E0aLSY4X0/HymrURYDsWn3xw0CU=; b=ZH5r6Vim25qwv3B6qpmKIkiJ5zMP2b3OvouBMmgtJzMecqqtLGTCMZBs/7Twze9asb DeaFsXrkho+GPmgjg/gUMFqXeFj3yxcoSw55zLNVx/oKx2GKYzm7Q/PnRfPPU55QT0SA D6XqmlX8vX+EeykVDmiWBypn2SrWVTnw3qsBWXeonFh8236JU+7OqXc055UgOzwWUh3N Zwrq4RImOAFFkOCXA8xA2h7A9Q8uQFCGjeJ9S7O3uywsqVLyoaK/B1If1Y6uY5VqqLUP Li4u/3ACaIeL5SIVnqNrb5IKB6WqD3k7hKLedM5Ikozg0dFbYbFePXLGGO9YzIy4T2Vf E7cA== X-Gm-Message-State: AOAM533dEBC6k7BFiA8X8Fyt3y8ygQ4lDBgcsY/coMK1iamAC7O3uqNY gzuAevi/7CtEFva+SAIvx29U3VNXFg0= X-Google-Smtp-Source: ABdhPJwa/i6Jk+iL1h5n752juYkH6YO5ngWPZJIXGrnNsfmUd8+baWQtWHqeO66J7M5Il84wwS6g7Q== X-Received: by 2002:a1c:e083:: with SMTP id x125mr7706770wmg.0.1610202650911; Sat, 09 Jan 2021 06:30:50 -0800 (PST) Received: from localhost.localdomain (se167-1-82-242-148-1.fbx.proxad.net. [82.242.148.1]) by smtp.gmail.com with ESMTPSA id a17sm18184505wrs.20.2021.01.09.06.30.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Jan 2021 06:30:50 -0800 (PST) From: Vincent Legoll Date: Sat, 9 Jan 2021 15:30:38 +0100 Message-Id: <20210109143038.1918-1-vincent.legoll@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=vincent.legoll@gmail.com; helo=mail-wm1-x32a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vincent Legoll Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/linux.scm (x86emu): New variable. --- gnu/packages/linux.scm | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 8317723bbf..cb712dd8a4 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -74,6 +74,7 @@ #:use-module (gnu packages acl) #:use-module (gnu packages admin) #:use-module (gnu packages algebra) + #:use-module (gnu packages assembly) #:use-module (gnu packages audio) #:use-module (gnu packages autotools) #:use-module (gnu packages backup) @@ -98,6 +99,7 @@ #:use-module (gnu packages gawk) #:use-module (gnu packages gcc) #:use-module (gnu packages gettext) + #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages golang) #:use-module (gnu packages gperf) @@ -5767,6 +5769,49 @@ not as a replacement for it.") license:public-domain ; nist/dfft.c license:gpl3+)))) ; everything else +(define-public x86emu + (let ((revision "0") + (commit "cbc65a99d0f7d291b7c72444b8afa71649d214c4")) + (package + (name "x86emu") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/shift-crops/x86emu") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "16q69m5zb71pgwsw5w0ilkd0vqh0hrmgq10fqba3x604chb90a87")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; no tests + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* (#:key inputs outputs #:allow-other-keys) + (invoke "make" "all"))) + (replace 'install + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (outbin (string-append out "/bin"))) + (mkdir-p outbin) + (copy-file "x86emu" (string-append outbin "/x86emu")) + (copy-recursively "include" (string-append out "/include")) + #t)))))) + (native-inputs + `(("nasm" ,nasm))) + (inputs + `(("glfw" ,glfw))) + (home-page "https://github.com/shift-crops/x86emu") + (synopsis "simple x86 emulator") + (description "x86emu is an emulator of the x86 architecture. It supports +multiple CPU modes (16bit/32bit, Real/Protected), and some devices. You can +boot via FDD simulator (DMA not supported), and operate with mouse and keyboard.") + (license license:x11)))) + (define-public ecryptfs-utils (package (name "ecryptfs-utils")