From patchwork Sat Sep 9 21:49:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Attila Lendvai X-Patchwork-Id: 53696 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 C4F6C27BBEA; Sat, 9 Sep 2023 22:52:21 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C38AF27BBE9 for ; Sat, 9 Sep 2023 22:52:20 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qf5s1-0004jJ-Mv; Sat, 09 Sep 2023 17:52: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 1qf5s0-0004jB-Go for guix-patches@gnu.org; Sat, 09 Sep 2023 17:52:00 -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 1qf5s0-00009p-9L for guix-patches@gnu.org; Sat, 09 Sep 2023 17:52:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qf5s1-0003bd-Uk for guix-patches@gnu.org; Sat, 09 Sep 2023 17:52:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65845] [PATCH] gnu: Add netperf. Resent-From: Attila Lendvai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 Sep 2023 21:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65845 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65845@debbugs.gnu.org Cc: Attila Lendvai X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169429628813820 (code B ref -1); Sat, 09 Sep 2023 21:52:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Sep 2023 21:51:28 +0000 Received: from localhost ([127.0.0.1]:48560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qf5rT-0003aq-HP for submit@debbugs.gnu.org; Sat, 09 Sep 2023 17:51:28 -0400 Received: from lists.gnu.org ([2001:470:142::17]:60370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qf5rP-0003aa-Or for submit@debbugs.gnu.org; Sat, 09 Sep 2023 17:51:26 -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 1qf5rH-0004ee-4Z for guix-patches@gnu.org; Sat, 09 Sep 2023 17:51:15 -0400 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qf5rE-00005i-MA for guix-patches@gnu.org; Sat, 09 Sep 2023 17:51:14 -0400 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-52889bc61b6so4308966a12.0 for ; Sat, 09 Sep 2023 14:51:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694296271; x=1694901071; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=iJU+++tO0Ye6OKMT1RVkkxUW+lUPAz0sxds6UCY+s/M=; b=bUk1K15V8O0NEp7xCdZTpiXOEPveXGX3VHgjID/4LnsFJmJXJnCJCGOpXRcgSTb0JY 9rnXLicpmobgy6IUOm36xhoe25AdGMrVqreADV9CGUJE2VSHIiEHo7kraXQX6ptnDc7y eDlqrPLqMW+KHx3MKVW4PorQi6aX3wgz3Utzs87+OBzAHdSdrDCG/Uxcw1FllKTh2UYM vK6Q4DdV9cbqLEUlry2M7p0g7c3DtSIen8V/YhQn6BnrDQ2i4n2IGvMRct1MHIWJzSZz vnQ54Q+iPc9Q/b0naSy+r5rawkrxor+SWtr2j5wJGHq7xlg4dOoPEiMKQg8H5XR7ysfb T/vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694296271; x=1694901071; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iJU+++tO0Ye6OKMT1RVkkxUW+lUPAz0sxds6UCY+s/M=; b=NyhJhWk3gWUPVIWYQ3mt1X8XjpCpW0NlIdLA3SLaAJ8BAarKO/7rsyyk9iYOvsUsY8 sK4fkY9RfZOultaf0igBSFz03sw2zS5gtmFSHb+SzK8avJaZMqOlp6VUoll3SGGgZr9a lTxMyz9rDUsQh/6UBFZQ5SbEB08mUupJpPz7f7FDw6/K2/co2ek6nfE9QfWeD/ZChTkv lp5NRhL81Uu4E468Qti/UdBYmOuksZuK35IKVWxCoX77OMPGUOvdZt3ElSRUOMlNIImc joEG6D22GyB96IBCgX1wJrLIhIsJ8UowHw/gTvsXmCt3823dFpfG/zF62Hr8awuc8zZH 0d0Q== X-Gm-Message-State: AOJu0YwbDc+h8mPB3pzCj9B6abU9V1JdRoOzFudNxHGsTx85ae6tMV/s 0wj7ZpOScls0u1K9VxWMH6xyrEgaPGU3zw== X-Google-Smtp-Source: AGHT+IEHSJBcL7NF/9OJ1YduxddToKlVbRzMf3JEgCR7XH86D3iUmbWLbIM7Uxq/60nNpbjWOyZNkA== X-Received: by 2002:a17:906:5198:b0:9a5:b1cd:bdf2 with SMTP id y24-20020a170906519800b009a5b1cdbdf2mr4905190ejk.51.1694296270494; Sat, 09 Sep 2023 14:51:10 -0700 (PDT) Received: from lelap.lan (2a00-1f40-b161-2f0-6b9f-85-742e-f655.pool6.panelnet.hu. [2a00:1f40:b161:2f0:6b9f:85:742e:f655]) by smtp.gmail.com with ESMTPSA id v14-20020a170906338e00b00992b1c93279sm2828898eja.110.2023.09.09.14.51.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Sep 2023 14:51:09 -0700 (PDT) From: Attila Lendvai X-Google-Original-From: Attila Lendvai Date: Sat, 9 Sep 2023 23:49:01 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::532; envelope-from=attila.lendvai@gmail.com; helo=mail-ed1-x532.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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/networking.scm (netperf): New variable. --- originally i added this to as a dependency for flint, but i got stuck with flint packaging (it wants to invoke binaries from the PATH). the itch is gone that originally initiated my packaging, so flint probably won't be finished by me, but netperf is useful by itself. gnu/packages/networking.scm | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) base-commit: e365c26a34fa485f9af46538fcea128db681c33d prerequisite-patch-id: ecd98c3607846b732bde724a08cae56ffec4a6c3 prerequisite-patch-id: 6793c8ad24215c5f14ce71a4741fff5f6ccd7eeb prerequisite-patch-id: 52e0d371350dbeb839990acd0bbe70bc5b5b995b prerequisite-patch-id: 504c90457c9d79e43b99ee020ba694d8caeb90d8 prerequisite-patch-id: d64e04ff364130aa81dfba39ac9d7acf9da4a384 prerequisite-patch-id: 4eaf6383c3eb26aadbd0caf24a0bc100ddc87ed6 prerequisite-patch-id: 06efe04a27135ca3d6cf817c057b28558adc36c7 prerequisite-patch-id: 8c31ac25a4efbd194ca3b7a65a097deaa26d015a prerequisite-patch-id: 1166ab46a52df0924076b071edc3c9c1c3357bf8 prerequisite-patch-id: 9083830fd89c8d814b1911970522b7746b86643a prerequisite-patch-id: 02cfc74134e55855d6f113b3bc877cd8a9fabf58 prerequisite-patch-id: 57e3ce092cb3ce3f1baab5811cc775c94c8d176c prerequisite-patch-id: a7efb6bed2b8436ef747c10a90a9937bfc64995c prerequisite-patch-id: 7f15cb5ac54a485ba366c258aafc507a50bd05e6 prerequisite-patch-id: a31227853bac471122393c16e575d2bcdedb979f diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index f4ecd85009..163cc0a3ff 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -286,6 +286,44 @@ (define-public lcrq the RFC.") (license (list license:gpl2 license:gpl3)))) +(define-public netperf + (let ((version "2.7.0") + (revision "1") + (commit "3bc455b23f901dae377ca0a558e1e32aa56b31c4")) + (package + (name "netperf") + (version (git-version version revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/HewlettPackard/netperf") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1msbhbvf39r1a0c9b9myla5i6235fvnp7r6021fl8b5svxjbb0dk")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags + ;; Without -fcommon the build fails on newer gcc. + ;; See: https://gcc.gnu.org/gcc-10/porting_to.html + (list "CFLAGS=-fcommon" + ;; --enable-demo is needed for flent (not yet packaged). + "--enable-demo"))) + (native-inputs + (list autoconf + automake)) + (home-page "https://hewlettpackard.github.io/netperf/") + (synopsis "Benchmarking tool to measure network performance") + (description + "Netperf is a benchmark that can be used to measure the performance of +many different types of networking. It provides tests for both unidirectional +throughput, and end-to-end latency. The environments currently measureable +by netperf include: TCP and UDP via BSD Sockets for both IPv4 and IPv6, DLPI, +Unix Domain Sockets, SCTP for both IPv4 and IPv6.") + (license license:expat)))) + (define-public lcsync (package (name "lcsync")