mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
19
app-forensics/mac-robber/files/mac-robber-1.02-posix.patch
Normal file
19
app-forensics/mac-robber/files/mac-robber-1.02-posix.patch
Normal 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);
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user