From f077c725ef746943ec7902350b30ff569f5995ba Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 8 Nov 2022 09:23:49 +0000 Subject: gentoo auto-resync : 08:11:2022 - 09:23:49 --- dev-libs/Manifest.gz | Bin 95762 -> 95763 bytes dev-libs/libtompoly/Manifest | 4 +- ...y-0.04-Fix-Wimplicit-function-declaration.patch | 64 ++++++++++++--------- dev-libs/libtompoly/libtompoly-0.04-r1.ebuild | 37 ------------ dev-libs/libtompoly/libtompoly-0.04-r2.ebuild | 37 ++++++++++++ dev-libs/libvterm/Manifest | 2 +- dev-libs/libvterm/libvterm-0.3.ebuild | 2 +- 7 files changed, 78 insertions(+), 68 deletions(-) delete mode 100644 dev-libs/libtompoly/libtompoly-0.04-r1.ebuild create mode 100644 dev-libs/libtompoly/libtompoly-0.04-r2.ebuild (limited to 'dev-libs') diff --git a/dev-libs/Manifest.gz b/dev-libs/Manifest.gz index c3fc9fe72c2b..63aa5574ec7d 100644 Binary files a/dev-libs/Manifest.gz and b/dev-libs/Manifest.gz differ diff --git a/dev-libs/libtompoly/Manifest b/dev-libs/libtompoly/Manifest index 512d43e32d0c..1cdc739c6404 100644 --- a/dev-libs/libtompoly/Manifest +++ b/dev-libs/libtompoly/Manifest @@ -1,4 +1,4 @@ -AUX libtompoly-0.04-Fix-Wimplicit-function-declaration.patch 3113 BLAKE2B 77f58e605cb897f2ec6ada6edbdbaf582f62c0d54cdcf2456f89cfd6ab8e0dd47e6a622511973b2b926b1a611478d7e8a09c0e337afc1e2f70a3f14764f0fe36 SHA512 599f1bd7c434abf5c68195b54ab569311ebbcc39dbb63ecec7c966d55c3a6ba76b78559be6e667ee15dfa085f83c5860002bfc26f37eb391abb636609c64e460 +AUX libtompoly-0.04-Fix-Wimplicit-function-declaration.patch 3693 BLAKE2B f549593e1540cc34aa65785be8a26caf91b752bbe8d1b77bcd45b3720904cddd1357025cf1aa22035df5ce8644ec609c5ffdb9707c2c61e9ac953fe9ba21144b SHA512 9a46f2bf2b7c065cf8b8a463d7977a0ce45a93ecd9d83c9a0699ffd1df8b136693ea2e859e0711aa70e3069fe5005bb29de29129688c9645fe43f3d87575e5c6 DIST ltp-0.04.tar.bz2 171966 BLAKE2B 748fd04d55bd3dcdcd9510de1e34e2b9d96c38fc4f48c14137676f60c6d89751e8a095e07687d368d9a46e49ed056484cf8971e96fc400cde15b254a7374c38c SHA512 64a0b25eb058fc2475e6c645138729796099081ad7e926b58d2e83468d988048607e26716b4b669f0e923ea74d4d9705ff5a0466eb41cbe160488d0173447234 -EBUILD libtompoly-0.04-r1.ebuild 787 BLAKE2B 50bd5523b80be11db62f4928a6c8af5098d130c51bc9bc163eafd166e45093887ed484db7f94d6c6fc84fd942c8c8310c1dcc2ef37cc1a3d990bdf00722742b3 SHA512 86ffacdf939609bac18fa29c277244a09502920d142af78f51820d6fd50c9ed0105dfc54ee63a3823b013b67dc45d29d1fbe05d36e1919d08c62baeee865b17f +EBUILD libtompoly-0.04-r2.ebuild 787 BLAKE2B 7ba4ae35883e39d44d771408d3aca0c3747f76e603bff8323e45950eafef5b01e25667459efc53c93c5b85f2b70ce34fd01a12e3bf737a42c6e992a2ccf80b72 SHA512 7f6bd724c0180787d6fa9db3804c937b3d0c2c9c857c7146b0d35deaae174d903818fef2440b4e74fe2ab4caad145a6acaf86581f3cb6347f6ae7dd115279c92 MISC metadata.xml 910 BLAKE2B cd74dfeebe4cf884027b6ec410f5e01e79ef59fadac951939a14e6a2483a785ac90e164e14558a8042eb711defe309fd15fcecd7dd97b5f059d11bff477dc883 SHA512 9dfc6fc5a3deb7c91c7cab20915a52003531ba43aa49bad37da9c52a378c94b301b0b3a93bd02542a9a4bb78c83837649ce4347ecdc897eacfdbe52f65eaaa1d diff --git a/dev-libs/libtompoly/files/libtompoly-0.04-Fix-Wimplicit-function-declaration.patch b/dev-libs/libtompoly/files/libtompoly-0.04-Fix-Wimplicit-function-declaration.patch index 49a005d44b1e..f02cc99df63c 100644 --- a/dev-libs/libtompoly/files/libtompoly-0.04-Fix-Wimplicit-function-declaration.patch +++ b/dev-libs/libtompoly/files/libtompoly-0.04-Fix-Wimplicit-function-declaration.patch @@ -1,38 +1,39 @@ -https://github.com/libtom/libtompoly/pull/4 +https://github.com/libtom/libtompoly/commit/2803e69dcc7cac9b470360c984b62198a3774882 -From 62f0b57e577cb3ec371042e60eb82ffcd0ae6bd0 Mon Sep 17 00:00:00 2001 +From 2803e69dcc7cac9b470360c984b62198a3774882 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 19 Oct 2022 02:21:00 +0100 Subject: [PATCH] Fix -Wimplicit-function-declaration -Causes build failures with Clang 16. +Clang 16 will make -Wimplicit-function-declaration error by default. + +For more information, see LWN.net [0] or LLVM's Discourse [1], gentoo-dev@ [2], +or the (new) c-std-porting mailing list [3]. + +[0] https://lwn.net/Articles/913505/ +[1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213 +[2] https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240 +[3] hosted at lists.linux.dev. Bug: https://bugs.gentoo.org/875527 +Signed-off-by: Sam James --- a/pb_add.c +++ b/pb_add.c -@@ -10,6 +10,7 @@ - * Tom St Denis, tomstdenis@iahu.ca, http://poly.libtomcrypt.org - */ - #include -+#include - - int pb_add(pb_poly *a, pb_poly *b, pb_poly *c) - { -@@ -17,7 +18,7 @@ int pb_add(pb_poly *a, pb_poly *b, pb_poly *c) +@@ -17,7 +17,7 @@ int pb_add(pb_poly *a, pb_poly *b, pb_poly *c) pb_poly *tmp; /* grow c to be the max size */ - y = MAX(a->used, b->used); -+ y = fmax(a->used, b->used); ++ y = PB_MAX(a->used, b->used); if (c->alloc < y) { if ((err = pb_grow(c, y)) != MP_OKAY) { return err; -@@ -28,7 +29,7 @@ int pb_add(pb_poly *a, pb_poly *b, pb_poly *c) +@@ -28,7 +28,7 @@ int pb_add(pb_poly *a, pb_poly *b, pb_poly *c) characteristic = mp_iszero(&(c->characteristic)); /* add the terms */ - z = MIN(a->used, b->used); -+ z = fmin(a->used, b->used); ++ z = PB_MIN(a->used, b->used); for (x = 0; x < z; x++) { if ((err = mp_add(&(a->terms[x]), &(b->terms[x]), &(c->terms[x]))) != MP_OKAY) { return err; @@ -89,29 +90,38 @@ Bug: https://bugs.gentoo.org/875527 { --- a/pb_sub.c +++ b/pb_sub.c -@@ -10,6 +10,7 @@ - * Tom St Denis, tomstdenis@iahu.ca, http://poly.libtomcrypt.org - */ - #include -+#include - - int pb_sub(pb_poly *a, pb_poly *b, pb_poly *c) - { -@@ -17,7 +18,7 @@ int pb_sub(pb_poly *a, pb_poly *b, pb_poly *c) +@@ -17,7 +17,7 @@ int pb_sub(pb_poly *a, pb_poly *b, pb_poly *c) pb_poly *tmp; /* grow c to be the max size */ - y = MAX(a->used, b->used); -+ y = fmax(a->used, b->used); ++ y = PB_MAX(a->used, b->used); if (c->alloc < y) { if ((err = pb_grow(c, y)) != MP_OKAY) { return err; -@@ -28,7 +29,7 @@ int pb_sub(pb_poly *a, pb_poly *b, pb_poly *c) +@@ -28,7 +28,7 @@ int pb_sub(pb_poly *a, pb_poly *b, pb_poly *c) characteristic = mp_iszero(&(c->characteristic)); /* sub the terms */ - z = MIN(a->used, b->used); -+ z = fmin(a->used, b->used); ++ z = PB_MIN(a->used, b->used); for (x = 0; x < z; x++) { if ((err = mp_sub(&(a->terms[x]), &(b->terms[x]), &(c->terms[x]))) != MP_OKAY) { return err; +--- a/tompoly.h ++++ b/tompoly.h +@@ -112,4 +112,13 @@ int pb_rawsize(pb_poly *a); + int pb_toraw(pb_poly *a, unsigned char *dst); + int pb_readraw(pb_poly *a, unsigned char *buf, int len); + ++/* What follows should be in a private header, but it's fine for now like that. */ ++ ++#ifndef PB_MIN ++#define PB_MIN(x, y) (((x) < (y)) ? (x) : (y)) ++#endif ++#ifndef PB_MAX ++#define PB_MAX(x, y) (((x) > (y)) ? (x) : (y)) ++#endif ++ + #endif + diff --git a/dev-libs/libtompoly/libtompoly-0.04-r1.ebuild b/dev-libs/libtompoly/libtompoly-0.04-r1.ebuild deleted file mode 100644 index b8fd20681358..000000000000 --- a/dev-libs/libtompoly/libtompoly-0.04-r1.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit toolchain-funcs - -DESCRIPTION="portable ISO C library for polynomial basis arithmetic" -HOMEPAGE="https://www.libtom.net/" -SRC_URI="https://github.com/libtom/libtompoly/releases/download/${PV}/ltp-${PV}.tar.bz2" - -LICENSE="|| ( public-domain WTFPL-2 )" -SLOT="0" -KEYWORDS="amd64 ppc x86" - -DEPEND="dev-libs/libtommath" -RDEPEND="${DEPEND}" - -PATCHES=( - "${FILESDIR}"/${PN}-0.04-Fix-Wimplicit-function-declaration.patch -) - -src_prepare() { - default - sed -i \ - -e 's:\:$(AR):' \ - -e "/^LIBPATH/s:/lib:/$(get_libdir):" \ - makefile || die "Fixing makefile failed" - tc-export AR CC -} - -src_install() { - default - dodoc changes.txt pb.pdf - docinto demo - dodoc demo/demo.c -} diff --git a/dev-libs/libtompoly/libtompoly-0.04-r2.ebuild b/dev-libs/libtompoly/libtompoly-0.04-r2.ebuild new file mode 100644 index 000000000000..8199bd6ce0cd --- /dev/null +++ b/dev-libs/libtompoly/libtompoly-0.04-r2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Portable ISO C library for polynomial basis arithmetic" +HOMEPAGE="https://www.libtom.net/" +SRC_URI="https://github.com/libtom/libtompoly/releases/download/${PV}/ltp-${PV}.tar.bz2" + +LICENSE="|| ( public-domain WTFPL-2 )" +SLOT="0" +KEYWORDS="amd64 ppc x86" + +DEPEND="dev-libs/libtommath" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-0.04-Fix-Wimplicit-function-declaration.patch +) + +src_prepare() { + default + sed -i \ + -e 's:\:$(AR):' \ + -e "/^LIBPATH/s:/lib:/$(get_libdir):" \ + makefile || die "Fixing makefile failed" + tc-export AR CC +} + +src_install() { + default + dodoc changes.txt pb.pdf + docinto demo + dodoc demo/demo.c +} diff --git a/dev-libs/libvterm/Manifest b/dev-libs/libvterm/Manifest index 03ad4794bec8..e6a38a47498e 100644 --- a/dev-libs/libvterm/Manifest +++ b/dev-libs/libvterm/Manifest @@ -3,5 +3,5 @@ DIST libvterm-0.1.4.tar.gz 69122 BLAKE2B 4f0acc9ec6755c4a840e5df6c32c44e12c5316b DIST libvterm-0.3.tar.gz 83861 BLAKE2B a2e8e9d80698880d87f9d26977a4e3dec7b520c3096d0ca6f7823254eeebe51666380ed2a5c05c923dd8b138f15c87e671fdfb03e5511c01711e112cdda9867a SHA512 2a7b6831476465d6a9f7c792406f4e3c4eca0c3dbce4b7031f2646c87e33692128a3d3ce27e1541403772cc0b5eface7bd41325e1e5300c3915bfc0bac97a896 EBUILD libvterm-0.1.4-r1.ebuild 728 BLAKE2B 463cd2bf20ef1c8eba98789969bb2dab24599a2923c13e204d73ddbe407cd957ed37938f388603b4a542b71b369eed2aab249f3061c0c7b417f1e365b4fd5085 SHA512 45bdbde642172c252b94375f44207a1a011cdc5fd36a2330ced3434c9059dcb27277f076ba5d82542b7851f4699f3f673da3c85295c0e4c2ef1cfd77050f3f05 EBUILD libvterm-0.1.4.ebuild 882 BLAKE2B e4f2e22e191ce35883e9fa2700222e55b8c5d482251aa5dd9f35d982fa18d20371ff3781a5962a07aeade487ee0c0e4df474023894c035154aa79425e477dc81 SHA512 70201223cdcad83064d87b949525040294d925002e4b12faf318353a211171a596d3992413731c8d71b377bc866095d9811a4bb110d03b414022b1bcf64b33e3 -EBUILD libvterm-0.3.ebuild 776 BLAKE2B b52bd59e074f728c6bed5f7b6ec9e3283fff3731cb757a45d99ccf279fb562bf252997b015e93e2600dd1ba0c8ef683271b2d1b4c5a1616ed02f789e8445d422 SHA512 6ddad5ce34fa5a790ce434a92532e2394ba742743f2d98ddf136ac235611c6e5d5c85c0a6b142a546ea37a3e5686da89ea46882ad6b77d130e2f00b979eb5c45 +EBUILD libvterm-0.3.ebuild 775 BLAKE2B 2f026db9aff7ae25b51c6ce0a83e4ee5764d4c9b8137649e9bd1695af7d5ec13949813e910dea9053b7ac0e82e409195285becab00a386b9ca0059b43e8a8afe SHA512 2e244a5687c53d0f02aebfcbe2ebc3c8616db8a4888efce3b7850ac192ef39afe3a8f33bc28d30ef920a2f7aa4ac483c57c0f07a445d271bfa1623fe0c82a29e MISC metadata.xml 326 BLAKE2B 1ede96c6ed5288e9f8603f2c1fd2daad8bf48384c09b01de355628fd970e3f252b6d064cff58d70fb5838cdf0edaa71c6d83e65f240e0ce48559ef74cbff43b3 SHA512 951e8795d8482cd230a256c4084f5d0e28d9cfb7fdae75f239f72b7d67d900c9545b47bdafc8260eec393c302eed4fdd70912e965521312705fcb4ddb281d814 diff --git a/dev-libs/libvterm/libvterm-0.3.ebuild b/dev-libs/libvterm/libvterm-0.3.ebuild index a8a5224f87fd..c0bf0b5ba9d7 100644 --- a/dev-libs/libvterm/libvterm-0.3.ebuild +++ b/dev-libs/libvterm/libvterm-0.3.ebuild @@ -9,7 +9,7 @@ SRC_URI="https://www.leonerd.org.uk/code/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~arm arm64 ~riscv ~x86 ~x64-macos" +KEYWORDS="amd64 ~arm arm64 ~riscv ~x86 ~x64-macos" BDEPEND=" dev-lang/perl -- cgit v1.2.3