From e1c6d4f540c4687429b78bde720496b411273645 Mon Sep 17 00:00:00 2001 From: Colin Booth Date: Sun, 4 Apr 2021 14:37:48 -0700 Subject: [PATCH] gatling: update to 0.16, fix lint Gatling 0.16 grew a header dependency on capability.h. However, it doesn't appear to actually use anything from libcap so until that changes, patch gatling.c to use linux/capability.h (from kernel-libc-headers) instead of sys/capability.h (from libcap-devel). --- srcpkgs/gatling/patches/gatling.c.patch | 12 ++++++++++++ srcpkgs/gatling/template | 15 +++++++-------- 2 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 srcpkgs/gatling/patches/gatling.c.patch diff --git a/srcpkgs/gatling/patches/gatling.c.patch b/srcpkgs/gatling/patches/gatling.c.patch new file mode 100644 index 000000000000..ab2a0bb6c68a --- /dev/null +++ b/srcpkgs/gatling/patches/gatling.c.patch @@ -0,0 +1,12 @@ +# patch gatling.c to use capability headers from the kernel instead of libcap +--- gatling.c.orig 2021-04-04 21:51:17.641001871 +0000 ++++ gatling.c 2021-04-04 21:51:49.798095616 +0000 +@@ -62,7 +62,7 @@ + + #ifdef __linux__ + #include +-#include ++#include + #endif + + char serverroot[1024]; diff --git a/srcpkgs/gatling/template b/srcpkgs/gatling/template index d1d83c202269..9993c3a0cd69 100644 --- a/srcpkgs/gatling/template +++ b/srcpkgs/gatling/template @@ -1,17 +1,17 @@ # Template file for 'gatling' pkgname=gatling -version=0.15 -revision=10 +version=0.16 +revision=1 build_style=gnu-makefile +make_build_target="gatling dl getlinks" +make_install_args="prefix=/usr MANDIR=/usr/share/man" makedepends="libowfat openssl-devel zlib-devel" short_desc="High performance web server" maintainer="Enno Boland " -license="GPL-2" -homepage="http://www.fefe.de/$pkgname/" +license="GPL-2.0-only" +homepage="http://www.fefe.de/gatling" distfiles="https://www.fefe.de/gatling/$pkgname-$version.tar.xz" -checksum=6fa329d0ced0c80deb8dde5460e9d9e984bee94f265043d7fdec0e253dce9aa4 -make_build_target="gatling dl getlinks" -make_install_args="prefix=/usr MANDIR=/usr/share/man" +checksum=5f96438ee201d7f1f6c2e0849ff273b196bdc7493f29a719ce8ed08c8be6365b CFLAGS="-std=c99 -I${XBPS_CROSS_BASE}/usr/include/libowfat -fcommon" @@ -24,4 +24,3 @@ pre_build() { pre_install() { vmkdir usr/share/man/man1 } -