summaryrefslogtreecommitdiff
path: root/dev-util/diffball/diffball-1.0.1-r1.ebuild
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2019-10-27 15:14:09 -0700
committerZac Medico <zmedico@gentoo.org>2019-10-27 16:51:03 -0700
commitc1faef3a67ae5904fcd8e95495b005e268f1bc76 (patch)
tree1d8c0750dccbda1a5835e62c26cd573308c32037 /dev-util/diffball/diffball-1.0.1-r1.ebuild
parent6192c4997000c23fb6c611c297dbb7299083a488 (diff)
downloadgentoo-c1faef3a67ae5904fcd8e95495b005e268f1bc76.tar.gz
gentoo-c1faef3a67ae5904fcd8e95495b005e268f1bc76.tar.bz2
gentoo-c1faef3a67ae5904fcd8e95495b005e268f1bc76.zip
dev-util/diffball: revbump to 1.0.1-r1 for bug 543310
Fix stack buffer overflows reported in bug 543310. Bug: https://bugs.gentoo.org/543310 See: https://github.com/zmedico/diffball/pull/1 Reported-by: Aidan Thornton <makosoft@googlemail.com> Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'dev-util/diffball/diffball-1.0.1-r1.ebuild')
-rw-r--r--dev-util/diffball/diffball-1.0.1-r1.ebuild38
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-util/diffball/diffball-1.0.1-r1.ebuild b/dev-util/diffball/diffball-1.0.1-r1.ebuild
new file mode 100644
index 000000000000..7515e452dd66
--- /dev/null
+++ b/dev-util/diffball/diffball-1.0.1-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools flag-o-matic
+
+DESCRIPTION="Delta compression suite for using/generating binary patches"
+HOMEPAGE="https://github.com/zmedico/diffball"
+SRC_URI="https://github.com/zmedico/diffball/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/zmedico/diffball/pull/1.patch -> bug_543310_diffball_stack_buffer_overflows.patch"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="debug"
+
+RDEPEND=">=sys-libs/zlib-1.1.4
+ >=app-arch/bzip2-1.0.2
+ app-arch/xz-utils"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+# Invalid RESTRICT for source package. Investigate.
+RESTRICT="strip"
+
+PATCHES=("${DISTDIR}/bug_543310_diffball_stack_buffer_overflows.patch")
+
+src_prepare() {
+ # fix bug 548316 by restoring pre-GCC5 inline semantics
+ append-cflags -std=gnu89
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable debug asserts)
+}