* [gentoo-commits] repo/gentoo:master commit in: app-crypt/shash/files/, app-crypt/shash/
@ 2016-05-10 19:55 Sven Wegener
0 siblings, 0 replies; only message in thread
From: Sven Wegener @ 2016-05-10 19:55 UTC (permalink / raw
To: gentoo-commits
commit: d9e1f3bd966a4b9cccc7f25ac55592b0673c7c7d
Author: Felix Janda <felix.janda <AT> posteo <DOT> de>
AuthorDate: Mon Apr 25 12:05:18 2016 +0000
Commit: Sven Wegener <swegener <AT> gentoo <DOT> org>
CommitDate: Tue May 10 19:55:03 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9e1f3bd
app-crypt/shash Fix compilation with format-security (bug #521004)
Also update EAPI to 6
Closes: https://github.com/gentoo/gentoo/pull/1345
Signed-off-by: Sven Wegener <swegener <AT> gentoo.org>
.../shash/files/shash-0.2.6-format-security.patch | 28 +++++++++++++++++
app-crypt/shash/shash-0.2.6-r3.ebuild | 35 ++++++++++++++++++++++
2 files changed, 63 insertions(+)
diff --git a/app-crypt/shash/files/shash-0.2.6-format-security.patch b/app-crypt/shash/files/shash-0.2.6-format-security.patch
new file mode 100644
index 0000000..4e46639
--- /dev/null
+++ b/app-crypt/shash/files/shash-0.2.6-format-security.patch
@@ -0,0 +1,28 @@
+--- shash-0.2.6/src/errors.c
++++ shash-0.2.6/src/errors.c
+@@ -4,7 +4,7 @@
+
+ void err_quit(char *errmsg)
+ {
+- fprintf(stderr, errmsg);
++ fputs(errmsg, stderr);
+ exit(-1);
+ }
+
+@@ -12,7 +12,7 @@
+ {
+
+ if (quiet < 1) {
+- fprintf(stderr, errmsg);
++ fputs(errmsg, stderr);
+ }
+
+ }
+@@ -20,6 +20,6 @@
+ void err_crit(char *errmsg)
+ {
+ if (quiet <= 2) {
+- fprintf(stderr, errmsg);
++ fputs(errmsg, stderr);
+ }
+ }
diff --git a/app-crypt/shash/shash-0.2.6-r3.ebuild b/app-crypt/shash/shash-0.2.6-r3.ebuild
new file mode 100644
index 0000000..dfd8c98
--- /dev/null
+++ b/app-crypt/shash/shash-0.2.6-r3.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit bash-completion-r1
+
+DESCRIPTION="Generate or check digests or MACs of files"
+HOMEPAGE="http://mcrypt.hellug.gr/shash/"
+SRC_URI="ftp://mcrypt.hellug.gr/pub/mcrypt/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="static"
+
+DEPEND=">=app-crypt/mhash-0.8.18-r1"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PV}-manpage-fixes.patch
+ "${FILESDIR}"/${P}-binary-files.patch
+ "${FILESDIR}"/${P}-format-security.patch
+)
+
+src_configure() {
+ econf $(use_enable static static-link)
+}
+
+src_install() {
+ emake install DESTDIR="${D}"
+ dodoc AUTHORS ChangeLog INSTALL NEWS doc/sample.shashrc doc/FORMAT
+ newbashcomp "${FILESDIR}"/shash.bash-completion ${PN}
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-10 19:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-10 19:55 [gentoo-commits] repo/gentoo:master commit in: app-crypt/shash/files/, app-crypt/shash/ Sven Wegener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox