From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id wOqiKqwNymbqDwEA62LTzQ:P1 (envelope-from ) for ; Sat, 24 Aug 2024 16:43:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id wOqiKqwNymbqDwEA62LTzQ (envelope-from ) for ; Sat, 24 Aug 2024 18:43:24 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=FaAJ11qC; dkim=fail ("headers rsa verify failed") header.d=kaij.tech header.s=google header.b=gCS1bsPQ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724517804; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=qULCURNkkh1TB9pbDh3uozhIKdPHTIeRMWq/wMOVYv4=; b=h+KsvSW97f8Iedzxabtd8RHnbj09Es1HGEByHzvW4h8DocLWmNSft5zz4xZkCvnJrLnt8B Ai6qOv8qnulzL4n8LVum3UkFInTAPJd3u+A+LFT+1q4apszpsDCAF3qWmvb9xc2/592/+c ElwLz9jhJpUbuqM7IbW9ayKldecctNtApsdyzvZwy6IqThREdj5MN8Vqt7s7UEdw0/cgB8 Q+mYS4TW9/qD5pm0id5lbIbLcB1ox0+MWOFFS5Y6Tatyxlxde/7iqAqg4UjOsWNBp9XthR aKgKbGdgJTMiyGuYNA4d/XM3I05ajbw4nOKYhdnuRjsq2RXKSWdwwspm7zlVjQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724517804; a=rsa-sha256; cv=none; b=i+jHmNmqvCvpkZpKCdkTa0tq9m10diJE7dbmFjrC/oROT0LP8JNEyvc1Mqrbk0wBSYhSdk Uplb48Co97a0vEwaKOX21LYjbituW2CSw/unK63ANm8pka2kTLSiiu0JOaforcvmATIKKQ 14E2PEeo7+I1FQFESAL08P+jUz6ZxrTXJszAXEcAtQMc1kBOIjSltqomP7ZyqS30pN/87E DzFO5DSGXlNwPcK039Zhk7SAqHgzN7vcD4cQO3bIcBT4AelDeL6CBAmzxDZlonTR9SVEAE WjGnP9KBZ1ePPE9xz/ekfOEZxYwZeLt40g63BSpigYWbgQqOfMlHtw2QcjQT0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=FaAJ11qC; dkim=fail ("headers rsa verify failed") header.d=kaij.tech header.s=google header.b=gCS1bsPQ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 33CA76752F for ; Sat, 24 Aug 2024 18:43:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1shtqv-0006Ty-TI; Sat, 24 Aug 2024 12:43:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sht5i-0006aP-82 for guix-patches@gnu.org; Sat, 24 Aug 2024 11:54:14 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sht5h-0004Rx-Uq for guix-patches@gnu.org; Sat, 24 Aug 2024 11:54:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:MIME-Version:To:Subject; bh=qULCURNkkh1TB9pbDh3uozhIKdPHTIeRMWq/wMOVYv4=; b=FaAJ11qCPQK1rryzAaR+A9hF/IWlD1SSJxK50xu9xmKuFjlqpt3GPmPLTTBwUbo77Xy9JIXVmzm9Ab//8bgB48LgHioV9px26RK9d3TlarrPwTxFGaN7wF1hJe3qs1slfcD8MzjwiGjPjBFgaxELe78AMLOHfmucIsn06mhDuqvH9Rv+/tsZ18l7BXqbJtlvRyvd4F/hLg2AM6582aKaabs/xnA85C2yh1H1pIoyJa5dwxAcEz+fpyVfLSGXlm24yuWuT0mWgUKRLFxZAg4Wco0S5CX31Yb7DRouJl9qJ0E61PFU9WU+t9FSW+ud/QLB88lpzNfQcnFrkBUBkLkByA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sht6U-0003DB-6T for guix-patches@gnu.org; Sat, 24 Aug 2024 11:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72793] [PATCH] Package DPDK Resent-From: Kai Jellinghaus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 24 Aug 2024 15:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72793 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72793@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172451485112263 (code B ref -1); Sat, 24 Aug 2024 15:55:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Aug 2024 15:54:11 +0000 Received: from localhost ([127.0.0.1]:41786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sht5d-0003Be-5Q for submit@debbugs.gnu.org; Sat, 24 Aug 2024 11:54:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:53740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shqmk-0006wb-QV for submit@debbugs.gnu.org; Sat, 24 Aug 2024 09:26:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1shqlx-0003X3-UR for guix-patches@gnu.org; Sat, 24 Aug 2024 09:25:42 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1shqlv-00016R-Iw for guix-patches@gnu.org; Sat, 24 Aug 2024 09:25:41 -0400 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a86910caf9cso464181666b.1 for ; Sat, 24 Aug 2024 06:25:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kaij.tech; s=google; t=1724505936; x=1725110736; darn=gnu.org; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qULCURNkkh1TB9pbDh3uozhIKdPHTIeRMWq/wMOVYv4=; b=gCS1bsPQTbf79q+xF2GNLYxWa+AiPg+2HU1WmceFjfv06ktz3/SMiUMZHOKIc5wUze +GvMwCzKuoViYbJIgLufZPkQTwpzD364UsRUUaBFx9dSYGy644/c8r+pjYz5ycNSIjh4 Fob44TT3LBze0cH+HHIA/9x4TY2Lxh+ybA+Ny4FRxh63GDrTxUBkoapzRVATQB6mV3EV Od2l9Kuj7xmn/UiPgKjMftB5WajC7RYFMs/0oxcABQnZy4fp2+lbya8aHaYRZ8p5b9WU +CwH1mBEjPihjeAcb/AQffxFlI1uIaDqz5wZedg/Olx2KYFa1KC7zfbLYSDtfrMMlr4R JIog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724505936; x=1725110736; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qULCURNkkh1TB9pbDh3uozhIKdPHTIeRMWq/wMOVYv4=; b=UHlEGCkoV6kgWM1/UGfnDepyLN/pavugFILxUtcEdc4HJeRnXWXFRckq4L6JJmZnYK 0hLXaxGAo0Yucu2mFuZw+cS+H4/Pw2j1OIt4nzUoFz3Tc2N56al4k1c0p7MhP4nEc15n qLmieTVz4lN/uwuXt+rNcofV6/VoNZI3LOkiGDa7Gxh6aFJO8rsC2aU0cYSjz6N6dTsW IpF29Lys5crPwyHUyqk32FU0hblrvsOaRVnjU3klf4HS3s2VwNUZYHr8qOicJyRrd/Ln a4IcXxnRJP8QX6b0HU/Wo70BuBkOCplbPrihOiPWpAqmeCgkkFGQi53URtRmH6ujGNP0 ztsw== X-Gm-Message-State: AOJu0YzBmiays89gAqqq4BzWf3w2QEU2z+VDouECGGJUvqYKy35meL/n OHHWeXCAuNFL9EVOw3wHmKXrpgpqD6YEJXQLvyGrvfJ1M4UrxlxkYfz4Mw/Dcp1C0SDfMun7MLk zaQ08JjR5s9Gd2SPHFTMZbHwS71b0hTO67P+Za5enBZFNgSMtfL8= X-Google-Smtp-Source: AGHT+IF9/eY48LahPEX42Px+8D2z+ASdeSrvZlsBrEXvuzXhin+6MsLvwCdRYu8wJCFE9ALG9tuRl/B9Wb2mAS5iqMo= X-Received: by 2002:a17:907:724a:b0:a86:94cd:97f0 with SMTP id a640c23a62f3a-a86a2fae4f0mr535055766b.19.1724505936123; Sat, 24 Aug 2024 06:25:36 -0700 (PDT) MIME-Version: 1.0 From: Kai Jellinghaus Date: Sat, 24 Aug 2024 15:25:25 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=2a00:1450:4864:20::62b; envelope-from=kaij@j10-labs.com; helo=mail-ej1-x62b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 24 Aug 2024 11:54:07 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sat, 24 Aug 2024 12:43:00 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 33CA76752F X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -10.71 X-Spam-Score: -10.71 X-TUID: IPXg3xLk5853 I've created a small patch to create a dpdk package. I did my best to follow the docs, but please do point out any mistake I've made. As you will see tests are disabled currently - I've not been able to figure out how to mount /sys into the build sandbox. I'm not sure if this is critical for accepting the package. Additionally, this patch is based on my own copy of guix, so the base commit is likely incompatible. Again, I'm unsure if this poses a problem. Lastly, I haven't seen info on how the copyright headers are done. I've seen a bunch of different people so I'm assuming it's the author, and copyright isn't somehow signed over. Please let me know about any issues, I'm happy to put in the work. >From e2cbd9c0a296bab233728e193d670199e1fda6aa Mon Sep 17 00:00:00 2001 Message-ID: From: Kai Jellinghaus Date: Sat, 24 Aug 2024 15:06:09 +0200 Subject: [PATCH] Package DPDK Change-Id: Ib1486e7c9af77a88a90631f9dd775d54ba88ce9c --- gnu/local.mk | 1 + gnu/packages/dpdk.scm | 63 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 gnu/packages/dpdk.scm diff --git a/gnu/local.mk b/gnu/local.mk index 4d7b17e4b4..e0bb90fa13 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -249,6 +249,7 @@ GNU_SYSTEM_MODULES =3D \ %D%/packages/docbook.scm \ %D%/packages/docker.scm \ %D%/packages/documentation.scm \ + %D%/packages/dpdk.scm \ %D%/packages/dvtm.scm \ %D%/packages/easyrpg.scm \ %D%/packages/ebook.scm \ diff --git a/gnu/packages/dpdk.scm b/gnu/packages/dpdk.scm new file mode 100644 index 0000000000..4fb965799a --- /dev/null +++ b/gnu/packages/dpdk.scm @@ -0,0 +1,63 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2024 Kai Jellinghaus +;;; +;;; 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 dpdk) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix gexp) + #:use-module (guix utils) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix build-system meson) + #:use-module (gnu packages) + #:use-module (gnu packages backup) + #:use-module (gnu packages elf) + #:use-module (gnu packages linux) + #:use-module (gnu packages python) + #:use-module (gnu packages python-xyz) + #:use-module (gnu packages pkg-config)) + +(define-public dpdk + (package + (name "dpdk") + (version "24.07") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/DPDK/dpdk") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "04i4j4c5vcyldh0435hr01d2d5c0xf6y0sfg64764f79902i8p6i")))) + (build-system meson-build-system) + (native-inputs (list pkg-config python python-pyelftools numactl libarchive libelf)) + (inputs '()) + (arguments + ; tests do exist, however they all require /sys/devices/system/ to be available. TODO + `(#:tests? #f)) + (license (list + ; some files are additionally lgpl-2.1, but only in combination with bsd-3 + license:bsd-3 ; core components + license:gpl2 ; kernel components + license:expat ; lib/eal/windows/include/dirent.h, drivers/net/gve/ba= se/* + license:bsd-2 ; lib/eal/windows/include/getopt.h + license:isc)) ; lib/eal/windows/getopt.c (dual licensed to bsd-2) + (synopsis "Data Plane Development Kit") + (description "DPDK is a set of libraries and drivers for fast packet processing.") + (home-page "https://www.dpdk.org/"))) \ No newline at end of file base-commit: e27369b5e62e58b480b7d0dfeb1ed03180342353 --=20 2.46.0