dev-db/recutils: Fix incompatible pointer types and remove .la files

Closes: https://bugs.gentoo.org/941097
Closes: https://bugs.gentoo.org/941542
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40715
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
NHOrus
2025-02-23 17:17:32 +04:00
committed by Sam James
parent 198ac1858c
commit 327a205037
2 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
Cast bash-generated argv from char ** to const char ** so it would be of the same
type argv was declared
https://bugs.gentoo.org/941542
--- a/bash/testrec.c
+++ b/bash/testrec.c
@@ -60,7 +60,7 @@
/* Get arguments and verify them. */
- argv = make_builtin_argv (list, &argc);
+ argv = (const char**)make_builtin_argv (list, &argc);
if ((argc != 3)
|| ((strcmp (argv[0], "[%") == 0) && ((strlen (argv[2]) == 2) && ((argv[2][0] != '%') || (argv[2][1] != ']')))))
{

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -37,6 +37,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}"/${PV}
"${FILESDIR}"/${P}-add-const.patch
)
src_prepare() {
@@ -63,3 +64,10 @@ src_test() {
# tests have parallel issues
emake -j1 check
}
src_install() {
default
# Remove unneeded .la files (Bug #941097)
find "${ED}" -name '*.la' -type f -delete || die
}