From 9260b00ec90d1eae769780bb2c81382ef34ce938 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 4 Aug 2024 09:48:02 +0100 Subject: [PATCH 1/6] app-misc/scrub: backport UB fixes In particular -Wmaybe-uninitialized. Signed-off-by: Sam James --- .../scrub/files/scrub-2.6.1-ub-fixes.patch | 44 +++++++++++++++++++ app-misc/scrub/scrub-2.6.1-r2.ebuild | 19 ++++++++ 2 files changed, 63 insertions(+) create mode 100644 app-misc/scrub/files/scrub-2.6.1-ub-fixes.patch create mode 100644 app-misc/scrub/scrub-2.6.1-r2.ebuild diff --git a/app-misc/scrub/files/scrub-2.6.1-ub-fixes.patch b/app-misc/scrub/files/scrub-2.6.1-ub-fixes.patch new file mode 100644 index 0000000000000..db18d69df1034 --- /dev/null +++ b/app-misc/scrub/files/scrub-2.6.1-ub-fixes.patch @@ -0,0 +1,44 @@ +https://github.com/chaos/scrub/commit/9c9b3f28439835f44329228e2435f3f89e7dcee1 + +From 9c9b3f28439835f44329228e2435f3f89e7dcee1 Mon Sep 17 00:00:00 2001 +From: Sergio Correia +Date: Wed, 17 Mar 2021 08:08:07 -0300 +Subject: [PATCH] Minor fixes to keep clang static analyzer happy + +- Initialize `written' and `checked' in scrub() +- Initialize `mp->thd' before using it in refill_init() +- Do not assign return of read_all() to `n', if we do not read this + value, in writesig() +--- a/src/fillfile.c ++++ b/src/fillfile.c +@@ -122,6 +122,7 @@ refill_init(struct memstruct **mpp, refill_t refill, int memsize) + } + mp->size = memsize; + mp->refill = refill; ++ mp->thd = 0; + #if WITH_PTHREADS + if (!no_threads) { + if ((mp->err = pthread_create(&mp->thd, NULL, refill_thread, mp))) { +--- a/src/scrub.c ++++ b/src/scrub.c +@@ -445,7 +445,7 @@ scrub(char *path, off_t size, const sequence_t *seq, int bufsize, + prog_t p; + char sizestr[80]; + bool isfull = false; +- off_t written, checked; ++ off_t written = (off_t)-1, checked = (off_t)-1; + int pcol = progress_col(seq); + + if (!(buf = alloc_buffer(bufsize))) { +--- a/src/sig.c ++++ b/src/sig.c +@@ -74,7 +74,7 @@ writesig(char *path) + goto nomem; + if ((fd = open(path, O_RDWR)) < 0) + goto error; +- if ((n = read_all(fd, buf, blocksize)) < 0) ++ if (read_all(fd, buf, blocksize) < 0) + goto error; + memcpy(buf, SCRUB_MAGIC, sizeof(SCRUB_MAGIC)); + if (lseek(fd, 0, SEEK_SET) < 0) + diff --git a/app-misc/scrub/scrub-2.6.1-r2.ebuild b/app-misc/scrub/scrub-2.6.1-r2.ebuild new file mode 100644 index 0000000000000..f4dfa6ae1f8f0 --- /dev/null +++ b/app-misc/scrub/scrub-2.6.1-r2.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Overwrite files with iterative patterns" +HOMEPAGE="https://github.com/chaos/scrub" +SRC_URI="https://github.com/chaos/${PN}/releases/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~sparc ~x86" + +PATCHES=( + "${FILESDIR}"/${P}-implicit-function-declaration-test.patch + "${FILESDIR}"/${PN}-2.6.1-bashism-tests.patch + "${FILESDIR}"/${PN}-2.6.1-tests-block-size.patch + "${FILESDIR}"/${PN}-2.6.1-ub-fixes.patch +) From 2e62b44e2bc740302805dbb0778a0deeb400d5eb Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 4 Aug 2024 09:48:37 +0100 Subject: [PATCH 2/6] net-im/synapse: Stabilize 1.110.0 amd64, #937268 Signed-off-by: Sam James --- net-im/synapse/synapse-1.110.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-im/synapse/synapse-1.110.0.ebuild b/net-im/synapse/synapse-1.110.0.ebuild index 29e491f9fec3d..78eaa933aa420 100644 --- a/net-im/synapse/synapse-1.110.0.ebuild +++ b/net-im/synapse/synapse-1.110.0.ebuild @@ -116,7 +116,7 @@ LICENSE+=" || ( Apache-2.0 Boost-1.0 ) " SLOT="0" -KEYWORDS="~amd64 ~arm64 ~ppc64" +KEYWORDS="amd64 ~arm64 ~ppc64" IUSE="postgres systemd test" RESTRICT="!test? ( test )" From e97ce2226f5bd3f86231c4405d28c78f3c543229 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 4 Aug 2024 09:48:39 +0100 Subject: [PATCH 3/6] net-vpn/eduvpn-common: Stabilize 2.0.2 x86, #937269 Signed-off-by: Sam James --- net-vpn/eduvpn-common/eduvpn-common-2.0.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-vpn/eduvpn-common/eduvpn-common-2.0.2.ebuild b/net-vpn/eduvpn-common/eduvpn-common-2.0.2.ebuild index 84ff41be06c6b..3705c6b4e3527 100644 --- a/net-vpn/eduvpn-common/eduvpn-common-2.0.2.ebuild +++ b/net-vpn/eduvpn-common/eduvpn-common-2.0.2.ebuild @@ -28,7 +28,7 @@ else verify-sig? ( https://github.com/eduvpn/eduvpn-common/releases/download/${PV}/eduvpn-common-${PV}.tar.xz.asc ) https://www-user.tu-chemnitz.de/~hamari/eduvpn/${P}-deps.tar.xz " - KEYWORDS="~amd64 ~x86" + KEYWORDS="~amd64 x86" fi LICENSE="GPL-3+" From 4797296f98497e6da86ff2c928af7309b586cc5e Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 4 Aug 2024 09:48:40 +0100 Subject: [PATCH 4/6] net-vpn/eduvpn-client: Stabilize 4.3.1 x86, #937269 Signed-off-by: Sam James --- net-vpn/eduvpn-client/eduvpn-client-4.3.1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-vpn/eduvpn-client/eduvpn-client-4.3.1.ebuild b/net-vpn/eduvpn-client/eduvpn-client-4.3.1.ebuild index 13d420d01b3e3..3cef5931e283d 100644 --- a/net-vpn/eduvpn-client/eduvpn-client-4.3.1.ebuild +++ b/net-vpn/eduvpn-client/eduvpn-client-4.3.1.ebuild @@ -29,7 +29,7 @@ else https://github.com/eduvpn/python-eduvpn-client/releases/download/${PV}/${MY_P}.tar.xz verify-sig? ( https://github.com/eduvpn/python-eduvpn-client/releases/download/${PV}/${MY_P}.tar.xz.asc ) " - KEYWORDS="~amd64 ~x86" + KEYWORDS="~amd64 x86" S="${WORKDIR}/${MY_P}" fi From 4ff085fbf0a2e7b8277f804ce4c2d60c44c0cbde Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 4 Aug 2024 09:48:41 +0100 Subject: [PATCH 5/6] app-crypt/yubikey-manager: Stabilize 5.5.1 amd64, #937270 Signed-off-by: Sam James --- app-crypt/yubikey-manager/yubikey-manager-5.5.1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-crypt/yubikey-manager/yubikey-manager-5.5.1.ebuild b/app-crypt/yubikey-manager/yubikey-manager-5.5.1.ebuild index ffb275a96d57f..0ccbc1577f3df 100644 --- a/app-crypt/yubikey-manager/yubikey-manager-5.5.1.ebuild +++ b/app-crypt/yubikey-manager/yubikey-manager-5.5.1.ebuild @@ -25,7 +25,7 @@ S="${WORKDIR}"/${MY_P} LICENSE="BSD-2" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +KEYWORDS="amd64 ~arm64 ~ppc64 ~riscv ~x86" IUSE="ssl" VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/yubico.com.asc" From 0d12467247194fd922ad07d5878bf686e8598280 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 4 Aug 2024 09:48:42 +0100 Subject: [PATCH 6/6] app-crypt/yubikey-manager: Stabilize 5.5.1 x86, #937270 Signed-off-by: Sam James --- app-crypt/yubikey-manager/yubikey-manager-5.5.1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-crypt/yubikey-manager/yubikey-manager-5.5.1.ebuild b/app-crypt/yubikey-manager/yubikey-manager-5.5.1.ebuild index 0ccbc1577f3df..c5c8e5944f2c7 100644 --- a/app-crypt/yubikey-manager/yubikey-manager-5.5.1.ebuild +++ b/app-crypt/yubikey-manager/yubikey-manager-5.5.1.ebuild @@ -25,7 +25,7 @@ S="${WORKDIR}"/${MY_P} LICENSE="BSD-2" SLOT="0" -KEYWORDS="amd64 ~arm64 ~ppc64 ~riscv ~x86" +KEYWORDS="amd64 ~arm64 ~ppc64 ~riscv x86" IUSE="ssl" VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/yubico.com.asc"