public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-benchmarks/siege/files/, app-benchmarks/siege/
@ 2023-10-20  7:03 Joonas Niilola
  0 siblings, 0 replies; only message in thread
From: Joonas Niilola @ 2023-10-20  7:03 UTC (permalink / raw
  To: gentoo-commits

commit:     390b6e304492abc975895a83359042db7beaeb22
Author:     Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Fri Sep  8 15:52:46 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Oct 20 06:57:22 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=390b6e30

app-benchmarks/siege: Fix incompatible pointer to integer conversion

Closes: https://bugs.gentoo.org/894338
Signed-off-by: Brahmajit Das <brahmajit.xyz <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/32690
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 .../files/siege-4.1.6-clang16-build-fix.patch      | 32 +++++++++++++
 app-benchmarks/siege/siege-4.1.6-r1.ebuild         | 55 ++++++++++++++++++++++
 2 files changed, 87 insertions(+)

diff --git a/app-benchmarks/siege/files/siege-4.1.6-clang16-build-fix.patch b/app-benchmarks/siege/files/siege-4.1.6-clang16-build-fix.patch
new file mode 100644
index 000000000000..1d36fdfd22d8
--- /dev/null
+++ b/app-benchmarks/siege/files/siege-4.1.6-clang16-build-fix.patch
@@ -0,0 +1,32 @@
+Bug: https://bugs.gentoo.org/894338
+--- a/src/cookies.c
++++ b/src/cookies.c
+@@ -66,7 +66,7 @@ cookies_destroy(COOKIES this)
+ BOOLEAN
+ cookies_add(COOKIES this, char *str, char *host)
+ {
+-  size_t  id    = pthread_self();
++  size_t  id    = (size_t) pthread_self();
+   //int     hlen  = 0;
+   //int     dlen  = 0;
+   NODE   *cur   = NULL; 
+@@ -169,7 +169,7 @@ cookies_header(COOKIES this, char *host, char *newton)
+   time_t now;
+   struct tm tm;
+   char   oreo[MAX_COOKIES_SIZE];
+-  size_t id = pthread_self();
++  size_t id = (size_t) pthread_self();
+ 
+   memset(oreo, '\0', sizeof oreo);
+ 
+--- a/src/ftp.c
++++ b/src/ftp.c
+@@ -151,7 +151,7 @@ ftp_stor(CONN *C, URL U)
+ {
+   size_t  len;
+   char    *file;
+-  size_t  id = pthread_self();
++  size_t  id = (size_t) pthread_self();
+   int     num = 2;
+   char    **parts;
+  

diff --git a/app-benchmarks/siege/siege-4.1.6-r1.ebuild b/app-benchmarks/siege/siege-4.1.6-r1.ebuild
new file mode 100644
index 000000000000..5b1dafa81d01
--- /dev/null
+++ b/app-benchmarks/siege/siege-4.1.6-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools bash-completion-r1
+
+DESCRIPTION="A HTTP regression testing and benchmarking utility"
+HOMEPAGE="https://www.joedog.org/siege-home https://github.com/JoeDog/siege"
+SRC_URI="http://download.joedog.org/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~x86 ~x64-macos"
+SLOT="0"
+IUSE="ssl"
+
+RDEPEND="
+	sys-libs/zlib
+	ssl? ( dev-libs/openssl:0= )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-4.1.6-clang16-build-fix.patch
+)
+
+src_prepare() {
+	default
+	# bundled macros break recent libtool
+	# remove /usr/lib from LDFLAGS, bug #732886
+	sed -i \
+		-e '/AC_PROG_SHELL/d' \
+		-e 's/SSL_LDFLAGS="-L.*lib"/SSL_LDFLAGS=""/g' \
+		-e 's/Z_LDFLAGS="-L.*lib"/Z_LDFLAGS=""/g' \
+		configure.ac || die "Failed to sed configure.ac"
+	rm *.m4 || die "failed to remove bundled macros"
+	eautoreconf
+}
+
+src_configure() {
+	local myconf=( $(use_with ssl ssl "${EPREFIX}/usr") )
+	econf "${myconf[@]}"
+}
+
+src_install() {
+	emake DESTDIR="${ED}" install
+	dodoc AUTHORS ChangeLog INSTALL README* doc/siegerc doc/urls.txt
+
+	newbashcomp "${FILESDIR}/${PN}".bash-completion "${PN}"
+}
+
+pkg_postinst() {
+	elog "An example ~/.siegerc file has been installed in"
+	elog "${EPREFIX}/usr/share/doc/${PF}/"
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-20  7:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-20  7:03 [gentoo-commits] repo/gentoo:master commit in: app-benchmarks/siege/files/, app-benchmarks/siege/ Joonas Niilola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox