mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
app-text/aiksaurus: Fix format-security, drop .la files
Closes: https://bugs.gentoo.org/521124 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
This commit is contained in:
41
app-text/aiksaurus/aiksaurus-1.2.1-r1.ebuild
Normal file
41
app-text/aiksaurus/aiksaurus-1.2.1-r1.ebuild
Normal file
@@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit flag-o-matic libtool
|
||||
|
||||
DESCRIPTION="A thesaurus lib, tool and database"
|
||||
HOMEPAGE="https://sourceforge.net/projects/aiksaurus"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
|
||||
IUSE="gtk"
|
||||
|
||||
RDEPEND="gtk? ( x11-libs/gtk+:2 )"
|
||||
DEPEND="${RDEPEND}
|
||||
gtk? ( virtual/pkgconfig )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-gcc43.patch"
|
||||
"${FILESDIR}/${P}-format-security.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# Needed to make relink work on FreeBSD, without it won't install.
|
||||
# Also needed for a sane .so versionning there.
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
filter-flags -fno-exceptions
|
||||
econf $(use_with gtk)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
--- aiksaurus-1.2.1/base/caiksaurus.cpp.orig 2014-06-07 21:14:03.869649696 +0100
|
||||
+++ aiksaurus-1.2.1/base/caiksaurus.cpp 2014-06-07 21:33:06.241471066 +0100
|
||||
@@ -254,7 +254,7 @@
|
||||
/* see if we got --version. */
|
||||
if ( !strcmp(arg, "--version") || !strcmp(arg, "-v") )
|
||||
{
|
||||
- printf(version);
|
||||
+ printf("%s", version);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
@@ -262,7 +262,7 @@
|
||||
else if ( !strcmp(arg, "--help") || !strcmp(arg, "-h") )
|
||||
{
|
||||
printf("Usage: %s [word]\n\n", argv[0]);
|
||||
- printf(help);
|
||||
+ printf("%s", help);
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
@@ -271,7 +271,7 @@
|
||||
if (argc != 2)
|
||||
{
|
||||
printf("Usage: %s [word]\n", argv[0]);
|
||||
- printf(help);
|
||||
+ printf("%s", help);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user