-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
addpkg(main/netperf): 2.7.0 #26513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
addpkg(main/netperf): 2.7.0 #26513
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| TERMUX_PKG_HOMEPAGE=https://hewlettpackard.github.io/netperf/ | ||
| TERMUX_PKG_DESCRIPTION="Benchmarking tool for many different types of networking" | ||
| TERMUX_PKG_LICENSE="MIT" | ||
| TERMUX_PKG_MAINTAINER="@termux" | ||
| TERMUX_PKG_VERSION=2.7.0 | ||
| TERMUX_PKG_SRCURL=https://github.com/HewlettPackard/netperf/archive/netperf-${TERMUX_PKG_VERSION}.tar.gz | ||
| TERMUX_PKG_SHA256=4569bafa4cca3d548eb96a486755af40bd9ceb6ab7c6abd81cc6aa4875007c4e | ||
| TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-demo --enable-unixdomain --enable-dccp --enable-sctp ac_cv_func_setpgrp_void=yes" | ||
|
|
||
| termux_step_pre_configure() { | ||
| # avoid duplicated symbol errors | ||
| CFLAGS+=" -fcommon" | ||
|
|
||
| # replace config.sub and config.guess with newer versions | ||
| curl -L 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' -o config.sub | ||
| curl -L 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' -o config.guess | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Even if it doesn't, it's plain incorrect. |
||
|
|
||
| # apply 001-fix-inlining.patch from ArchLinux package | ||
| curl -L 'https://gitlab.archlinux.org/archlinux/packaging/packages/netperf/-/raw/main/001-fix-inlining.patch' -o 001-fix-inlining.patch | ||
| patch -Np1 -i 001-fix-inlining.patch | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please download this patch onto your computer and copy and paste it into the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's gonna break as soon as the package version in our repo and the Arch repo do not match. As already mentioned above, Arch Linux's |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| diff --git a/src/net_uuid.c b/src/net_uuid.c | ||
| index 8701120..cb061b2 100644 | ||
| --- a/src/net_uuid.c | ||
| +++ b/src/net_uuid.c | ||
| @@ -24,6 +24,7 @@ | ||
| #include "config.h" | ||
| #endif | ||
|
|
||
| +#include <unistd.h> | ||
| #include <stdio.h> | ||
| #include <stdlib.h> | ||
| #include <string.h> | ||
| diff --git a/src/netlib.c b/src/netlib.c | ||
| index f3a3fe5..7ef0eac 100644 | ||
| --- a/src/netlib.c | ||
| +++ b/src/netlib.c | ||
| @@ -1,3 +1,4 @@ | ||
| +#define _GNU_SOURCE | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This hunk should probably be moved to just above A copyright banner was added at the top of this file over 5 years ago and this would likely cause the patch to stop applying in a future release. |
||
| char netlib_id[]="\ | ||
| @(#)netlib.c (c) Copyright 1993-2012 Hewlett-Packard Company. Version 2.6.0"; | ||
|
|
||
| @@ -71,6 +72,7 @@ char netlib_id[]="\ | ||
| # define NSIG _NSIG | ||
| #endif /* MPE */ | ||
| #include <sys/types.h> | ||
| +#include <sys/sendfile.h> | ||
| #include <fcntl.h> | ||
| #include <stdio.h> | ||
| #include <stdlib.h> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Release 2.7.0 is not licensed under the MIT License1.
Update licenses HewlettPackard/netperf#54
The old license is a slightly modified BSD 4-Clause license2, which is so old and uncommon that we don't even have a specific License specifier for it in the build script linter3.
Footnotes
https://github.com/HewlettPackard/netperf/blob/netperf-2.7.0/COPYING ↩
https://choosealicense.com/licenses/bsd-4-clause/ ↩
https://github.com/termux/termux-packages/blob/3df94276a0de5b2b81c67c631c479e27841d338e/scripts/lint-packages.sh#L19-L40 ↩