From unknown Sat Aug 16 17:01:18 2025 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-Spam-Score: -2.3 (--) 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 From unknown Sat Aug 16 17:01:18 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Kai Jellinghaus Subject: bug#72793: closed (Re: [bug#72793] [PATCH] Package DPDK) Message-ID: References: <87ldxwzbz9.fsf@iscas.ac.cn> X-Gnu-PR-Message: they-closed 72793 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 72793@debbugs.gnu.org Date: Wed, 06 Nov 2024 14:15:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1730902503-4303-1" This is a multi-part message in MIME format... ------------=_1730902503-4303-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #72793: [PATCH] Package DPDK which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 72793@debbugs.gnu.org. --=20 72793: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D72793 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1730902503-4303-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 72793-done) by debbugs.gnu.org; 6 Nov 2024 14:15:00 +0000 Received: from localhost ([127.0.0.1]:40164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8goF-00016y-Ll for submit@debbugs.gnu.org; Wed, 06 Nov 2024 09:15:00 -0500 Received: from smtp84.cstnet.cn ([159.226.251.84]:50166 helo=cstnet.cn) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8goA-00016V-OM for 72793-done@debbugs.gnu.org; Wed, 06 Nov 2024 09:14:57 -0500 Received: from m (unknown [107.174.64.25]) by APP-05 (Coremail) with SMTP id zQCowADnMcqveStnZa98AA--.2545S2; Wed, 06 Nov 2024 22:14:27 +0800 (CST) From: Zheng Junjie To: Kai Jellinghaus Subject: Re: [bug#72793] [PATCH] Package DPDK In-Reply-To: (Kai Jellinghaus's message of "Sat, 24 Aug 2024 15:25:25 +0200") References: Date: Wed, 06 Nov 2024 22:13:46 +0800 Message-ID: <87ldxwzbz9.fsf@iscas.ac.cn> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-CM-TRANSID: zQCowADnMcqveStnZa98AA--.2545S2 X-Coremail-Antispam: 1UD129KBjvJXoW3JFW7CFW7CFWrCF13GF15urg_yoW7GF1kpF yfCrWYvr4kJr4xJws3WF1a9r13u3s3GF4UK3ZrWayxAa1qvFW8ArWIqay5A3ZxCw1xCw42 g3WkXFyUGry8ZrJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvmb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I 8E87Iv6xkF7I0E14v26rxl6s0DM2vj62AExVA0xI801c8C04v26x02cVCv0xWle2I262IY c4CY6c8Ij28IcVAaY2xG8wASzI0EjI02j7AqF2xKxwAqx4xG64xvF2IEw4CE5I8CrVC2j2 WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkE bVWUJVW8JwACjcxG0xvEwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJV W8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF 1VAFwI0_Jrv_JF1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6x IIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvE x4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnU UI43ZEXa7IUeAHUPUUUUU== X-Originating-IP: [107.174.64.25] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 72793-done Cc: 72793-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Kai Jellinghaus writes: > 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)) Normally we use python-minimal, not python. move some native-inputs to inputs. they're runtime dependent. > + (inputs '()) add numactl libarchive zlib jansson libxcrypt libpcap libbpf openssl libbsd, is meson configure phase say. > + (arguments > + ; tests do exist, however they all require /sys/devices/system/ > to be available. TODO > + `(#:tests? #f)) test require /sys/devices/system/, so we canno't run tests. add -Dplatform=3Dgeneric -Dtests=3Dfalse . and add properties tunable? to #t > + (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/= base/* > + 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 patch pushed. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfr6klGDOXiwIdX/bO1qpk+Gi3/AFAmcreZoACgkQO1qpk+Gi 3/Bqcg//RcHuKvBn7RshECKsxae3mNCRwRSx6jy4vfg0rf9j/tZH2ZZm+li4gZm/ yVj0dIy4I8/HCSmI+rV84w6xmerTOq7a4idG2+/TQcO9rD4XAv9h+obj06Ds1OYr 9VK2PPn6+iRSTa77maLSHDwPeaPQiGOctt4y5+jK+QA2emY2pqKdzefKwyzf0oyz ESDW7XpNu6WHQKwYS4X8iSXX4H3ShFCvI9rT4KzwsbmVWwYeypAccEw/TQ0ccA61 0b6/5QRMtT0e2B+uq43GNot/py3aHi6fIwMq5pt2B+fnf+DoGZV2hBuSyYtKghzo vPnXIUFq/yJiyiR72vfGmvNwlMYbXgYqFkzu/ujEOZUdvYD4gG8bbeE/i5fhCywW UoayxUtcgl9UP+oGQj0286Xh84glGBDxmIMpz8k6TD/ha2lwt375pWfDpqD3bj2y oEg9SsIUiy7I0urubH3RAjAKkHvn2CYblzx2Mu5kBqxZFbKgM+84mucABYeQnGj8 Cucy51BCrrsjcbAO2Wwls7VEs1F4OFev96yfZwtaLYoT14t0qE28k4RI8uTdbkd4 sfXICb+rZ24/wI6WHbE/NwTsTNKwOa+TPABMVo72dVQ0U6VbY73HBNonU21zgLfs caXnVzO19N6MJkIlPu8rFkVlNXd3rQfJQo7t/R3PeBPtT2pgd1U= =7m6I -----END PGP SIGNATURE----- --=-=-=-- ------------=_1730902503-4303-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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: Subject: [PATCH] Package DPDK To: guix-patches@gnu.org 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 ------------=_1730902503-4303-1--