From patchwork Sun Feb 16 20:47:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brice Waegeneire X-Patchwork-Id: 20277 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 15EC827BBE4; Sun, 16 Feb 2020 20:48:15 +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.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 ESMTP id A2A5917B9D for ; Sun, 16 Feb 2020 20:48:14 +0000 (GMT) Received: from localhost ([::1]:36228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3Qpq-0008DB-6k for patchwork@mira.cbaines.net; Sun, 16 Feb 2020 15:48:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41621) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3Qpg-00088s-GP for guix-patches@gnu.org; Sun, 16 Feb 2020 15:48:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3Qpf-0008Ae-CL for guix-patches@gnu.org; Sun, 16 Feb 2020 15:48:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60015) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j3Qpf-0008AU-7q for guix-patches@gnu.org; Sun, 16 Feb 2020 15:48:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j3Qpf-00078k-6n for guix-patches@gnu.org; Sun, 16 Feb 2020 15:48:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39579] [PATCH v2 2/3] gnu: osinfo-db: Add osinfo-db. Resent-From: Brice Waegeneire Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 16 Feb 2020 20:48:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39579 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39579@debbugs.gnu.org Received: via spool by 39579-submit@debbugs.gnu.org id=B39579.158188605227384 (code B ref 39579); Sun, 16 Feb 2020 20:48:03 +0000 Received: (at 39579) by debbugs.gnu.org; 16 Feb 2020 20:47:32 +0000 Received: from localhost ([127.0.0.1]:37750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3Qp9-00077W-Q8 for submit@debbugs.gnu.org; Sun, 16 Feb 2020 15:47:32 -0500 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:46235) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3Qp7-00077L-4k for 39579@debbugs.gnu.org; Sun, 16 Feb 2020 15:47:30 -0500 X-Originating-IP: 78.237.113.178 Received: from localhost (luy13-1-78-237-113-178.fbx.proxad.net [78.237.113.178]) (Authenticated sender: brice@waegenei.re) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 2D442FF805 for <39579@debbugs.gnu.org>; Sun, 16 Feb 2020 20:47:28 +0000 (UTC) From: Brice Waegeneire Date: Sun, 16 Feb 2020 21:47:11 +0100 Message-Id: <20200216204712.16592-3-brice@waegenei.re> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200212163046.15761-1-brice@waegenei.re> References: <20200212163046.15761-1-brice@waegenei.re> MIME-Version: 1.0 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/virtualization.scm (osinfo-db): New variable. --- gnu/packages/virtualization.scm | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index ca8f143f51..308cadbe14 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -92,6 +92,7 @@ #:use-module (guix build-system go) #:use-module (guix build-system meson) #:use-module (guix build-system python) + #:use-module (guix build-system trivial) #:use-module (guix download) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) @@ -1418,3 +1419,39 @@ which is a hypervisor.") (description "This package contains a set of tools to assist administrators and developers in managing the database.") (license license:lgpl2.0+))) + +(define-public osinfo-db + (package + (name "osinfo-db") + (version "20200203") + (source (origin + (method url-fetch) + (uri (string-append "https://releases.pagure.org/libosinfo/osinfo-db-" + version ".tar.xz")) + (sha256 + (base32 + "1zjq1dhlci00j17dij7s3l30hybzmaykpk5b6bd5xbllp745njn5")))) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (let* ((out (assoc-ref %outputs "out")) + (osinfo-dir (string-append out "/share/osinfo")) + (source (assoc-ref %build-inputs "source")) + (osinfo-db-import + (string-append (assoc-ref %build-inputs "osinfo-db-tools") + "/bin/osinfo-db-import"))) + (mkdir-p osinfo-dir) + (invoke osinfo-db-import "--dir" osinfo-dir source) + #t)))) + (native-inputs + `(("intltool" ,intltool) + ("osinfo-db-tools" ,osinfo-db-tools))) + (home-page "https://gitlab.com/libosinfo/osinfo-db") + (synopsis "Database of information about operating systems") + (description "Osinfo-db provides the database files for use with the +libosinfo library. It provides information about guest operating systems for +use with virtualization provisioning tools") + (license license:lgpl2.0+)))