diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-01-05 06:31:58 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-01-05 06:31:58 +0000 |
commit | e4d9d6796d5018e338f0b27a3bc97716195bf0b8 (patch) | |
tree | 38d56da69a3b5d5ccc7d73796d38469f5d4e610c /app-benchmarks/siege | |
parent | 38efae7f3eb932ed41510139679efd5c1e2f5eda (diff) |
gentoo auto-resync : 05:01:2025 - 06:31:57edge
Diffstat (limited to 'app-benchmarks/siege')
-rw-r--r-- | app-benchmarks/siege/Manifest | 3 | ||||
-rw-r--r-- | app-benchmarks/siege/files/siege-4.1.7-clang16-build-fix.patch | 32 | ||||
-rw-r--r-- | app-benchmarks/siege/siege-4.1.7.ebuild | 55 |
3 files changed, 90 insertions, 0 deletions
diff --git a/app-benchmarks/siege/Manifest b/app-benchmarks/siege/Manifest index ed504f8900ee..ffc739a17d98 100644 --- a/app-benchmarks/siege/Manifest +++ b/app-benchmarks/siege/Manifest @@ -1,5 +1,8 @@ AUX siege-4.1.6-clang16-build-fix.patch 821 BLAKE2B db19d68b4006257ca4b1213e4a36531faa98e5224f8e18601483f8d109e47d6290e91f47c92133902b29c4de566ee026cf3dd81c71a449dea5510554d6774379 SHA512 d46251119c3f8f37ec6b15c47bbb5da155fdb008b7b781508cfc7bb412bf218aeababf79cbd00e9368e465775426e5a59511cf53605a31031fe6b7d23f245e76 +AUX siege-4.1.7-clang16-build-fix.patch 733 BLAKE2B 9cb74c6308d647aef2f6b39d0600c5d61ed65f1cd87f0b1bd34967a6bf3809b2906855eded9e7f3c19913159d2cb20b5af2d0ab0977c4999aec019b9c6b348b9 SHA512 6cad10b369d5278f885a4999d155550aa61df708819977a2ec87abede691e5c708d829895abae682f60d589861dcd176cbe962f056ca6aaf68474456abd21540 AUX siege.bash-completion 659 BLAKE2B 7d9ce4e253a3a95af6a008fb81a421b46139fef2cced8174a65e09f6196fb4fa50128199d462ee62f17c7c8c55e20aabafca1edec2d3ca7edb508dd5e8ac63ed SHA512 26a4f55ac8d57231d9cc137ac8243da4cc33a3efb6b5366891230087c3e4d7555bcf8c20a7608479142589254a8c049f3165807ecf9c0eba0eb72422e04279e8 DIST siege-4.1.6.tar.gz 527103 BLAKE2B aea71c93d0243113f8d9087ab4ea02ad1c64e10d8a10918139473ba865230a8e945d5371f19234bce22c95f8a412f68e94792ea0ea00eb451f208a17a37467f4 SHA512 cc674c9dc33aac35988708cd73b5061343cb1939e8a10b4dc50ceab42e65647b58557b6f3b48a03f5c992109bcac233425bf363e1f899135cfd9333d2517cfb2 +DIST siege-4.1.7.tar.gz 543447 BLAKE2B a4a5e7290ddace57f69a70d38bbcc901fb7651084840635981ea8b26c6bfc829215b03814a4b283709516a3994bd62f9e19fc304604249347b53238527108b97 SHA512 b7a842433410c7425c20308515db35151346249bd6886f9a36ef57c839ee974e05147792bff0fa72c3284dcb30b603fd6122c78f3220e144c688f41ebec9fec5 EBUILD siege-4.1.6-r1.ebuild 1334 BLAKE2B 4b720fa5546a5fdfa907a621f7a475eddf81da2ab7e63b7cc4914780787cc4ee3a112f9d5ac26aff26e0055e77b0358ccee46e4fbf45c5c5c34d18bc0b234932 SHA512 9831ec78ba1d9cb2fd69ea6f4402121a4edd1f76e0f2a3f6ac6dd8cc899a0ab0c0c67e6bb78367272e9c90b2e605bac249976d84e1810b9bc31180717f1362bd +EBUILD siege-4.1.7.ebuild 1329 BLAKE2B 8f37b8140d8ff09d6b3a472e6db4e124ed36021170a159459efa9d2cd4be4eedb5518ad3ee3891ec65db0cbf23da4bc809d58b8d978988a06fb0b2392e7cf073 SHA512 2bebcc7282c94ef9f57c8c223082c621b62653d87b954f5ea198511791a4b56c1b1e433db6d515552b47bf3335c4b999b9fc35edbd6515edb425760cf4cbeb66 MISC metadata.xml 628 BLAKE2B a51d5fc78c971b479422f299365edf6f8275ec57dc166eeaf9acc480b11a2927750e21632cddf8da582a940f33c1e03f434d641ce2235275e18d9cf6b4da6f50 SHA512 11166fa23294d414bfec852f72b30a2f754e37cbd23617a8704ac79e959f8ba4557da7205aecec2694b01cbf33b4550e98fc9371f4a4645cf0508f95e51d589c diff --git a/app-benchmarks/siege/files/siege-4.1.7-clang16-build-fix.patch b/app-benchmarks/siege/files/siege-4.1.7-clang16-build-fix.patch new file mode 100644 index 000000000000..ba11315a3960 --- /dev/null +++ b/app-benchmarks/siege/files/siege-4.1.7-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 @@ + BOOLEAN + cookies_add(COOKIES this, char *str, char *host) + { +- size_t id = pthread_self(); ++ size_t id = (size_t) pthread_self(); + NODE *cur = NULL; + NODE *pre = NULL; + NODE *new = NULL; +@@ -174,7 +174,7 @@ + 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); + tmp = time(NULL); +--- a/src/ftp.c ++++ b/src/ftp.c +@@ -151,7 +151,7 @@ + { + 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.7.ebuild b/app-benchmarks/siege/siege-4.1.7.ebuild new file mode 100644 index 000000000000..26e8142ae9ad --- /dev/null +++ b/app-benchmarks/siege/siege-4.1.7.ebuild @@ -0,0 +1,55 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools bash-completion-r1 + +DESCRIPTION="HTTP regression testing and benchmarking utility" +HOMEPAGE="https://www.joedog.org/siege-home https://github.com/JoeDog/siege" +SRC_URI="https://download.joedog.org/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~x86 ~x64-macos" +IUSE="ssl" + +RDEPEND=" + sys-libs/zlib + ssl? ( dev-libs/openssl:0= ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-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}/" +} |