mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 23:07:10 -08:00
Merge updates from master
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
https://github.com/chaos/scrub/commit/9c9b3f28439835f44329228e2435f3f89e7dcee1
|
||||
|
||||
From 9c9b3f28439835f44329228e2435f3f89e7dcee1 Mon Sep 17 00:00:00 2001
|
||||
From: Sergio Correia <scorreia@redhat.com>
|
||||
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)
|
||||
|
||||
@@ -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
|
||||
)
|
||||
@@ -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 )"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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+"
|
||||
|
||||
Reference in New Issue
Block a user