app-forensics/mac-robber: update EAPI 6 -> 8

Closes: https://bugs.gentoo.org/712634
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert
2023-10-08 20:32:25 +02:00
parent 38c1341fb4
commit 742f324603
2 changed files with 31 additions and 6 deletions

View File

@@ -0,0 +1,19 @@
--- a/mac-robber.c
+++ b/mac-robber.c
@@ -45,6 +45,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
+#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -238,7 +239,7 @@
/* Make a buffer for the full path
* the 2 is for 1 NULL and 1 '/' for recursive directories
*/
- path_len = dir_len + MAXNAMLEN + 2;
+ path_len = dir_len + NAME_MAX + 2;
if (!(curpath = (char *) malloc(path_len))) {
printf("error allocating space for curpath\n");
exit(1);

View File

@@ -1,7 +1,7 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=8
inherit toolchain-funcs
@@ -12,18 +12,24 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
IUSE=""
PATCHES=( "${FILESDIR}"/${P}-posix.patch )
src_prepare() {
default
sed -i -e 's:$(GCC_CFLAGS):\0 $(LDFLAGS):' Makefile || die
# just rely on implicit rules
rm Makefile || die
}
src_configure() {
tc-export CC
}
src_compile() {
emake CC="$(tc-getCC)" GCC_OPT="${CFLAGS}"
emake mac-robber
}
src_install() {
dobin mac-robber
dodoc CHANGES README
einstalldocs
}