From patchwork Fri Sep 25 18:11:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg Hogan X-Patchwork-Id: 24299 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 CD21A27BBE8; Fri, 25 Sep 2020 19:14:00 +0100 (BST) 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_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, 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 1FA3127BBE9 for ; Fri, 25 Sep 2020 19:13:57 +0100 (BST) Received: from localhost ([::1]:53176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLsEG-0004oF-7A for patchwork@mira.cbaines.net; Fri, 25 Sep 2020 14:13:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLsDS-0004KJ-Vz for guix-patches@gnu.org; Fri, 25 Sep 2020 14:13:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33767) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLsDO-0004Ya-JN for guix-patches@gnu.org; Fri, 25 Sep 2020 14:13:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kLsDO-0005pT-Fh for guix-patches@gnu.org; Fri, 25 Sep 2020 14:13:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43619] [PATCH 1/2] gnu: Add liburing. Resent-From: Greg Hogan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Sep 2020 18:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43619 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43619@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160105754722350 (code B ref -1); Fri, 25 Sep 2020 18:13:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Sep 2020 18:12:27 +0000 Received: from localhost ([127.0.0.1]:45310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLsCo-0005oP-QP for submit@debbugs.gnu.org; Fri, 25 Sep 2020 14:12:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:46764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLsCj-0005oD-Pn for submit@debbugs.gnu.org; Fri, 25 Sep 2020 14:12:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45888) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLsCj-0004Fy-Du for guix-patches@gnu.org; Fri, 25 Sep 2020 14:12:21 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:54033) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLsCe-0004RL-8Z for guix-patches@gnu.org; Fri, 25 Sep 2020 14:12:21 -0400 Received: by mail-wm1-x32e.google.com with SMTP id x23so3974764wmi.3 for ; Fri, 25 Sep 2020 11:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=greghogan-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=yZTxShQ/goYittre0rNirTRdFjHqaLO2HPu0aA4fWX8=; b=JhbmwwlKB9J9zH7cLsRofma3dU8oGGyWmlZVxMkx0WafxP2rmHNV2QZEsTd62eDeGh Hos+NYht5qWjNhzFV6pplmhFWLLrRvkBEYvk9a9jaxO6foSupXD9NqoAJL6bP+0YA6yk zs6FP1XyKmlprhS/EGQMi9zZ6M7PAC1A+D/HIRb9AEKnmCaYxKTYXjrn4UZavEqw8dD+ Xp+IkN5rPXoqu5j5gHZC7nyItNSbYYwlrCupL9BqFyMG/3q6OKugsl/8+Hq7TgAtaHtX chvUkLFCPbujqFB/qDRGdIBYeDVSwF0hR3cDcqXN/XzuPC6oxKchOdCtO7lOczkTgGQ9 0Ivg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=yZTxShQ/goYittre0rNirTRdFjHqaLO2HPu0aA4fWX8=; b=Jr+/aElEiL6uNGC2f6QCgVZ9nzb4HGpGS6e7MFhRCQDJLI9mU8Kfyp3kWSGr2nU43C oMMrwNufql0s9rjKXU/8UUTH6DJrpw6migQURUuIaagyJ5NaBf5QkKkrcNcWxiH0yrUt cDvmWA1oxyijVaQBncm+bFBrrOUclaK1kvkgqZFRD/AM7evxYyKJWqZppY9iYSuWtkAm JFyS8IkBXZX5ggzT0bAipiqRji6TrwR7cJfAejZACIat3CDhQvMhuU1LfWOQnM04Z+6C UuD6vb/qycX7xfnbbmeUTuw/HJEdbRmirEj+vXF9Y8lFdDrttqs78T1Ugewv7Rve5YIR 0qqg== X-Gm-Message-State: AOAM530aGp5Enx15m1VjqxnUvnJTCKvIp/bZDDd9t5tPE7m0PDxx98QS ONhiiwac3/qGBMrHqzoHiASKHbI7am9pHead8TuwFPR1AEJi58EYp9Q= X-Google-Smtp-Source: ABdhPJzFQk04nEmhTasEiJcwdyTeK1E+N/Pdkzlu+2Lo3kCs+erDxey7gJ2tUUgWDaHRvy0r+uFbz+r/thHWG/3MijU= X-Received: by 2002:a1c:7c17:: with SMTP id x23mr4563691wmc.165.1601057530085; Fri, 25 Sep 2020 11:12:10 -0700 (PDT) MIME-Version: 1.0 From: Greg Hogan Date: Fri, 25 Sep 2020 14:11:56 -0400 Message-ID: Received-SPF: none client-ip=2a00:1450:4864:20::32e; envelope-from=code@greghogan.com; helo=mail-wm1-x32e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From 4cd8b67741d61b69e70ae2271b1063f53e3513e8 Mon Sep 17 00:00:00 2001 From: Greg Hogan Date: Tue, 22 Sep 2020 15:21:43 +0000 Subject: [PATCH 1/2] gnu: Add liburing. * gnu/packages/liburing.scm (liburing): New variable. --- gnu/local.mk | 1 + gnu/packages/liburing.scm | 58 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 gnu/packages/liburing.scm diff --git a/gnu/local.mk b/gnu/local.mk index f3b5b17e84..99e9b5a6ab 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -324,6 +324,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/libffcall.scm \ %D%/packages/libffi.scm \ %D%/packages/libftdi.scm \ + %D%/packages/liburing.scm \ %D%/packages/license.scm \ %D%/packages/calendar.scm \ %D%/packages/libidn.scm \ diff --git a/gnu/packages/liburing.scm b/gnu/packages/liburing.scm new file mode 100644 index 0000000000..261df445b0 --- /dev/null +++ b/gnu/packages/liburing.scm @@ -0,0 +1,58 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2020 Greg Hogan +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages liburing) + #:use-module (gnu packages) + #:use-module (guix licenses) + #:use-module (guix packages) + #:use-module (guix git-download) + #:use-module (guix build-system gnu)) + +(define-public liburing + (package + (name "liburing") + (version "0.7") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.kernel.dk/liburing") + (commit (string-append "liburing-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "15z44l7y4c6s6dlf7v8lq4znlsjbja2r4ifbni0l8cdcnq0w3zh3")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (replace 'configure + ;; configure fails if it is followed by SHELL, CONFIG_SHELL, + ;; --enable-fast-install, and --build + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (setenv "SHELL" (which "sh")) + (setenv "CONFIG_SHELL" (which "sh")) + (invoke "./configure" (string-append "--prefix=" out)))))))) + (home-page "https://github.com/axboe/liburing") + (synopsis "Simplified interface for io_uring") + (description "This is the io_uring library, liburing. liburing provides +helpers to setup and teardown io_uring instances, and also a simplified +interface for applications that don't need (or want) to deal with the full +kernel side implementation.") + (license expat)))