From b8c7370a682e4e29cda623222d17a790c01c3642 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 7 Aug 2024 12:37:21 +0100 Subject: gentoo auto-resync : 07:08:2024 - 12:37:20 --- net-dialup/lrzsz/Manifest | 2 + .../files/lrzsz-0.12.20-fix-integer-overflow.patch | 23 +++++++ net-dialup/lrzsz/lrzsz-0.12.20-r9.ebuild | 76 ++++++++++++++++++++++ 3 files changed, 101 insertions(+) create mode 100644 net-dialup/lrzsz/files/lrzsz-0.12.20-fix-integer-overflow.patch create mode 100644 net-dialup/lrzsz/lrzsz-0.12.20-r9.ebuild (limited to 'net-dialup/lrzsz') diff --git a/net-dialup/lrzsz/Manifest b/net-dialup/lrzsz/Manifest index 887aa09fd596..a184de2241f6 100644 --- a/net-dialup/lrzsz/Manifest +++ b/net-dialup/lrzsz/Manifest @@ -4,6 +4,7 @@ AUX lrzsz-0.12.20-automake-1.13.patch 454 BLAKE2B 19627ec86b92c5e1dfcd4404408b9a AUX lrzsz-0.12.20-c99.patch 714 BLAKE2B 5e475fd00cc6b49cf4b5a6ba54035fff9eee5a7d476825d127264f6295c4e625c987699a2c88fe806f9373d722c7992ee484a109be21c43847682bb7f272bb45 SHA512 940024654054dfe5a2f9fdb55c893ed58dffbbf98b95716e01691167503c4c6ae0b02ea7e16f1ae166921c1662fa6864ad4da9e50fdc679e77dde519a7e0a4d3 AUX lrzsz-0.12.20-configure-clang16.patch 283 BLAKE2B 93e58683157cb3da035d8974fe35ecd1b8569df44818bfbdd60d6f4e3e406a86d0b0ce41631c648fc0e3aa6640f753f3912f113caaf07a86a2ee8dc3067aadb9 SHA512 92b6cb4a7575413f63e62225b8c0f852a89703a732625ec7d589890546459a61762260547b6acb8efec87447407cec13e493eebd2610c6e2838f6ef66c06e239 AUX lrzsz-0.12.20-disable-nls.patch 616 BLAKE2B c90986a3b3acf8aecfdd0ccbdd07946ee4fd342db26506afbde872f0c9102a04227fe8e563c7f7bf85881884dad4f011a34bd238e070acf0d6e87a3d6ed5eb2f SHA512 df8535ec3035d6120d00d72c5e3fd1d4171d4e506af027dc9af6f7d1a24a09374b3ae2cf576ddef6aa4a49fee299a72a60b8d5503da353d9de95688a48a4f185 +AUX lrzsz-0.12.20-fix-integer-overflow.patch 672 BLAKE2B f6e8315b31bec6785f30de387a1f52a7c2de793e25acaab69ba5f6f2ff88b5308656fa1ada3f22d52eae2c081acb3f3379e847d8d647c6ec9c42ab5a241f4fc9 SHA512 925ee172d25eb10767a37d5e000bd6a650d68d4eb20af96e842931ab986578fd8804c6565c60ef25bcb59d595b5f3064b5ea5d23c607eb53055911e4e4931570 AUX lrzsz-0.12.20-gettext-0.20.patch 850 BLAKE2B f3d810b7335c33f1e28247cd7a68d50f939a8b6b4ad1d15839a22d46460627343c7515b13729c1cebd8b669310210ca985b17671e538deb9b4fcb9c42cbfd04f SHA512 39c140c7cef024604cd0148d32587176b3ab2e50a622bca2f02307bbf89ae62db3928a6defbcc3790bf1e35f30eaf0fa66e43174ff8dca8a86cb01bda4050b15 AUX lrzsz-0.12.20-gettext-0.22.patch 1016 BLAKE2B 415f2b2bbb9311bc306ab43f56df416cd66f4c08d95db81f473f284fa4d0618218ca53c55e1765480f2bfeb29b3d2efe7a78d012e26ef339262470ba556ed105 SHA512 0dbf6dc3e3bf6c91e194f19af6ded6c02fe5ad9ef9467669e4151dcaab15ab934a6b7a7e67c3be12ea7bbfa3f063b3932d5f9ce2e9a72976484e54dea329229a AUX lrzsz-autotools.patch 8725 BLAKE2B 8f499974f0184784d1e800a43e8fdd09b389bb2a2c48ae335708ca25eb2b7130b5554fcbb8217aa3833ffdf2d0756fe091df615351b4c23214e7889dbf2399aa SHA512 4ba98fb4a72d8fcc654741d57992598d56eded61e7b89c54d44edd7a609149e15d9948d777d70bf41137daa0b860c67e1212a3f38519434cb5d44546bfb94909 @@ -11,4 +12,5 @@ AUX lrzsz-implicit-decl.patch 428 BLAKE2B c08a244d292be32bb49fff6186cbe847c106de DIST lrzsz-0.12.20.tar.gz 280938 BLAKE2B 86511ab112da849f5894f18c045f2c8a9dd4c4e97426c1d98c5b91aade6c39e26f4a7e5674e057c9596a240dfd3ef32053fcdc8ee58b33654cf15eec64779b1e SHA512 9bce64036f1f1c65f5910f19802aecaf3dc5ffeab0feeca10fa8d2fe1b83e212391cce23056d22fd0eda52df89e12ede68eb5d22ffcf22f935910d2af7399f12 DIST lrzsz-m4-0.12.20.tar.bz2 23959 BLAKE2B 933e43f80a40478baef77d69f81fcb04947f2d0afb87f777b0c000ea4223408bf3e55d687cf625ab4835fb30e274f7058ff09ee3b51ad90e09723cd3053ee038 SHA512 c8818381f2e5271bc2dd7d469c0a33a6b22d42d3159b41f168223473a8b03322f3ff91a49ce398e3ef5abe7b355d92b83b1429d0c6d450d19985a60e2e1190d4 EBUILD lrzsz-0.12.20-r8.ebuild 1875 BLAKE2B 8eef9fef193ade5e247f4e51a4179d37838017ec4e14c5a43966fce85bcabd3a01bbd8e7dc4dad2ef578fb4056f3e1e0909fdb6ce382aae2a0192985b943167c SHA512 e73b7f36f01136c97053f80a47e82cf0c9a86087ea0910274fde5dbfac63f9be76de3e8ceaefaf284741ea04669f965abc0f7ec9431c0ef7290a15d26a026b57 +EBUILD lrzsz-0.12.20-r9.ebuild 1924 BLAKE2B 58d460d196ae573e94c29b25498645cf58fd08ff1c600eb17cc896a6cffa2f17ab345a53b7221f0d8883f96908236634a2e0b2d6e871714ccc55c937f5930c71 SHA512 da071e7786b8c2dfe2ba92c3d66399b0ee859df2f210093d3d9a781abbee47fcea4234dc580881e1fedb76123982ca5acc08f29ea84af947585b7b7fe1f389ac MISC metadata.xml 333 BLAKE2B df605c89da2e450f542b023df0a51e50a6177752593c7b2e97fab91cade3550cb0a93ebade7edcd4e4569853987b57449226709d6fb96643a5057e2e80d986ae SHA512 806f343912c267d02df9ab3715f57a63c6457db97f67c0737114533fb99bf94ab2f8ebe5da839f4b19993d6d705be6efc549783d42100ee49b77e57ffbda7908 diff --git a/net-dialup/lrzsz/files/lrzsz-0.12.20-fix-integer-overflow.patch b/net-dialup/lrzsz/files/lrzsz-0.12.20-fix-integer-overflow.patch new file mode 100644 index 000000000000..771b67dda473 --- /dev/null +++ b/net-dialup/lrzsz/files/lrzsz-0.12.20-fix-integer-overflow.patch @@ -0,0 +1,23 @@ +https://src.fedoraproject.org/rpms/lrzsz/blob/rawhide/f/lrzsz-0.12.20.patch +https://bugs.gentoo.org/797247 + +diff -urN lrzsz-0.12.20/src/zm.c lrzsz-0.12.20.new/src/zm.c +--- lrzsz-0.12.20/src/zm.c Tue Dec 29 09:48:38 1998 ++++ lrzsz-0.12.20.new/src/zm.c Tue Oct 8 12:46:58 2002 +@@ -431,10 +431,12 @@ + VPRINTF(3,("zsdata: %lu %s", (unsigned long) length, + Zendnames[(frameend-ZCRCE)&3])); + crc = 0; +- do { +- zsendline(*buf); crc = updcrc((0377 & *buf), crc); +- buf++; +- } while (--length>0); ++ ++ for( ; length; length--) { ++ zsendline(*buf); crc = updcrc((0377 & *buf), crc); ++ buf++; ++ } ++ + xsendline(ZDLE); xsendline(frameend); + crc = updcrc(frameend, crc); + diff --git a/net-dialup/lrzsz/lrzsz-0.12.20-r9.ebuild b/net-dialup/lrzsz/lrzsz-0.12.20-r9.ebuild new file mode 100644 index 000000000000..93f8a934e1ce --- /dev/null +++ b/net-dialup/lrzsz/lrzsz-0.12.20-r9.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools toolchain-funcs + +DESCRIPTION="Communication package providing the X, Y, and ZMODEM file transfer protocols" +HOMEPAGE="https://www.ohse.de/uwe/software/lrzsz.html" +SRC_URI=" + https://www.ohse.de/uwe/releases/${P}.tar.gz + https://dev.gentoo.org/~ceamac/${CATEGORY}/${PN}/${PN}-m4-${PV}.tar.bz2 +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux" +IUSE="nls" + +DEPEND="nls? ( virtual/libintl )" +BDEPEND="nls? ( sys-devel/gettext )" + +PATCHES=( + "${FILESDIR}"/${PN}-autotools.patch + "${FILESDIR}"/${PN}-implicit-decl.patch + "${FILESDIR}"/${P}-automake-1.12.patch + "${FILESDIR}"/${P}-automake-1.13.patch + "${FILESDIR}"/${P}-gettext-0.20.patch + "${FILESDIR}"/${P}-AR.patch + "${FILESDIR}"/${P}-configure-clang16.patch + "${FILESDIR}"/${P}-gettext-0.22.patch + "${FILESDIR}"/${P}-disable-nls.patch + "${FILESDIR}"/${P}-c99.patch + "${FILESDIR}"/${P}-fix-integer-overflow.patch +) + +DOCS=( AUTHORS COMPATABILITY ChangeLog NEWS \ + README{,.cvs,.gettext,.isdn4linux,.tests} THANKS TODO ) + +src_prepare() { + default + + # automake is unhappy if this is missing + >> config.rpath || die + # This is too old. Remove it so automake puts in a newer copy. + rm missing || die + # Autoheader does not like seeing this file. + rm acconfig.h || die + # embed default m4 files in case gettext is not installed + mv "${WORKDIR}"/m4 . || die + + eautoreconf +} + +src_configure() { + tc-export CC + + econf $(use_enable nls) +} + +src_test() { + # Don't use check target. + # See bug #120748 before changing this function. + emake vcheck +} + +src_install() { + default + + local x + for x in {r,s}{b,x,z} ; do + dosym l${x} /usr/bin/${x} + dosym l${x:0:1}z.1 /usr/share/man/man1/${x}.1 + [ "${x:1:1}" = "z" ] || dosym l${x:0:1}z.1 /usr/share/man/man1/l${x}.1 + done +} -- cgit v1.2.3