summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-crypt/fcrackzip')
-rw-r--r--app-crypt/fcrackzip/fcrackzip-1.0.ebuild10
-rw-r--r--app-crypt/fcrackzip/files/fcrackzip-1.0-Fix-Wimplicit-int.patch19
-rw-r--r--app-crypt/fcrackzip/metadata.xml2
3 files changed, 27 insertions, 4 deletions
diff --git a/app-crypt/fcrackzip/fcrackzip-1.0.ebuild b/app-crypt/fcrackzip/fcrackzip-1.0.ebuild
index 696cdae5bdf0..be7a5a2cff1a 100644
--- a/app-crypt/fcrackzip/fcrackzip-1.0.ebuild
+++ b/app-crypt/fcrackzip/fcrackzip-1.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-DESCRIPTION="a zip password cracker"
+DESCRIPTION="Zip password cracker"
HOMEPAGE="http://oldhome.schmorp.de/marc/fcrackzip.html"
SRC_URI="http://oldhome.schmorp.de/marc/data/${P}.tar.gz"
@@ -13,6 +13,10 @@ KEYWORDS="~amd64 ~x86"
RDEPEND="app-arch/unzip"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.0-Fix-Wimplicit-int.patch
+)
+
src_prepare() {
default
sed -i -e '/funroll/d' configure || die
diff --git a/app-crypt/fcrackzip/files/fcrackzip-1.0-Fix-Wimplicit-int.patch b/app-crypt/fcrackzip/files/fcrackzip-1.0-Fix-Wimplicit-int.patch
new file mode 100644
index 000000000000..131cb4afade2
--- /dev/null
+++ b/app-crypt/fcrackzip/files/fcrackzip-1.0-Fix-Wimplicit-int.patch
@@ -0,0 +1,19 @@
+From 29a7c52bbf58b9465bbda3f2aa76849e30282a85 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Wed, 19 Oct 2022 03:43:04 +0100
+Subject: [PATCH] Fix -Wimplicit-int
+
+Bug: https://bugs.gentoo.org/874951
+--- a/cpmask.c
++++ b/cpmask.c
+@@ -126,8 +126,8 @@ static u8 cp_key[] =
+ 0x03, 0x01, 0x04, 0x19, 0x0c, 0x0f, 0x0e, 0x12, 0x07, 0x0b, 0x18, 0x11, 0x1a
+ };
+
+-static cp_table_lu1[MAX_CP_WIDTH];
+-static cp_table_lu2[MAX_CP_WIDTH];
++static UI cp_table_lu1[MAX_CP_WIDTH];
++static UI cp_table_lu2[MAX_CP_WIDTH];
+
+ /* this is a bottleneck */
+ static void
diff --git a/app-crypt/fcrackzip/metadata.xml b/app-crypt/fcrackzip/metadata.xml
index 7a38bb900964..115e9d64a669 100644
--- a/app-crypt/fcrackzip/metadata.xml
+++ b/app-crypt/fcrackzip/metadata.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
</pkgmetadata>