mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
14
dev-db/recutils/files/recutils-1.9-add-const.patch
Normal file
14
dev-db/recutils/files/recutils-1.9-add-const.patch
Normal 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] != ']')))))
|
||||
{
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user