mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-arch/lha: security cleanup
Bug: https://bugs.gentoo.org/572418 Package-Manager: Portage-2.3.99, Repoman-2.3.23 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST lha-1.14i-ac20050924p1.tar.gz 285518 BLAKE2B 7e10ee4cfaeb7212f9dfbe254d33ec7b97bce41a042eed3d6f826790650f5059a19d2a334cc41a86112ba8d80904168a0b3c2785e7670577b2bda0b4d27f0dcc SHA512 efe43d407d273f8f724f7b205223bd122c76adac4b67ad5e9811e88cae03f1f3c3af4297aa6f24951a02558975bbafacf697e97ab0da578b4e0115b89237566f
|
||||
DIST lha-114i_p20201004.tar.gz 220541 BLAKE2B 64268deb40de67d5f4888f7d4b4529fa1b6ca02c562bd041d9edd1ac9cc74ccfa43198c79310bd354806e3095f6aba8c97256b49686feb8c713e3d8110137103 SHA512 9a9337cbb6a3d71253597750301e37163c5b495e712f2374adf2ac0d19f731ed49482a3f8b639e4c48c7ef6fa7ed9f9081516d77548e9c88ed3b9ac037efeb06
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/src/getopt_long.c 2013-12-18 16:05:59.789413528 -0600
|
||||
+++ b/src/getopt_long.c 2013-12-18 16:06:01.200420472 -0600
|
||||
@@ -64,7 +64,7 @@
|
||||
|
||||
#ifndef USE_GNU
|
||||
#include <stdio.h>
|
||||
-#include <getopt_long.h>
|
||||
+#include "getopt_long.h"
|
||||
|
||||
char *optarg;
|
||||
int optind;
|
||||
@@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit autotools flag-o-matic
|
||||
|
||||
MY_P="${PN}-1.14i-ac20050924p1"
|
||||
|
||||
DESCRIPTION="Utility for creating and opening lzh archives"
|
||||
HOMEPAGE="https://lha.osdn.jp https://github.com/jca02266/lha"
|
||||
SRC_URI="mirror://sourceforge.jp/${PN}/22231/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="lha"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm hppa ~ia64 ~m68k ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~m68k-mint"
|
||||
RESTRICT="bindist"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-file-list-from-stdin.patch
|
||||
"${FILESDIR}"/${P}-fix-getopt_long-declaration.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -e '/^AM_C_PROTOTYPES/d' \
|
||||
-e 's/^AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' \
|
||||
-i configure.ac || die #423125, 467544
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-cppflags -DPROTOTYPES #423125
|
||||
|
||||
if [[ ${CHOST} == *-interix* ]]; then
|
||||
export ac_cv_header_inttypes_h=no
|
||||
export ac_cv_func_iconv=no
|
||||
fi
|
||||
|
||||
econf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
mandir="${EPREFIX}"/usr/share/man/ja \
|
||||
install
|
||||
|
||||
dodoc ChangeLog Hacking_of_LHa
|
||||
}
|
||||
Reference in New Issue
Block a user