* [gentoo-commits] repo/gentoo:master commit in: dev-util/comparator/files/, dev-util/comparator/
@ 2020-06-15 2:32 Aaron Bauman
0 siblings, 0 replies; only message in thread
From: Aaron Bauman @ 2020-06-15 2:32 UTC (permalink / raw
To: gentoo-commits
commit: 5c559df0d530bec764328e5d0b69130cb07c92dd
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Sun Jun 14 22:22:50 2020 +0000
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Mon Jun 15 02:32:27 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c559df0
dev-util/comparator: fix compilation with GCC10
Changed license to BSD-2, added gitlab upstream URL, minor fixes to
ebuild.
Closes: https://bugs.gentoo.org/707744
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/16244
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
dev-util/comparator/comparator-2.12.ebuild | 21 ++++++++---------
.../comparator/files/comparator-2.12-gcc10.patch | 26 ++++++++++++++++++++++
dev-util/comparator/metadata.xml | 3 +++
3 files changed, 40 insertions(+), 10 deletions(-)
diff --git a/dev-util/comparator/comparator-2.12.ebuild b/dev-util/comparator/comparator-2.12.ebuild
index 5e4ba126dbd..8184007cd40 100644
--- a/dev-util/comparator/comparator-2.12.ebuild
+++ b/dev-util/comparator/comparator-2.12.ebuild
@@ -1,29 +1,30 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="7"
+EAPI=7
PYTHON_COMPAT=( python{3_6,3_7} )
+DISTUTILS_USE_SETUPTOOLS=no
inherit distutils-r1 toolchain-funcs
DESCRIPTION="ESR's utility for making fast comparisons among large source trees"
-HOMEPAGE="http://www.catb.org/~esr/comparator/"
+HOMEPAGE="http://www.catb.org/~esr/comparator/ https://gitlab.com/esr/comparator"
SRC_URI="http://www.catb.org/~esr/comparator/${P}.tar.gz"
-LICENSE="BSD"
+LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE=""
-RDEPEND=""
DEPEND="=app-text/docbook-xml-dtd-4.1.2*
app-text/xmlto"
+PATCHES=(
+ "${FILESDIR}/${P}-gcc10.patch"
+)
+
src_prepare() {
- sed \
- -e '/python setup.py install/d' \
- -i Makefile || die "sed failed"
- eapply_user
+ default
+ sed -e '/python setup.py install/d' -i Makefile || die "sed failed"
}
src_compile() {
diff --git a/dev-util/comparator/files/comparator-2.12-gcc10.patch b/dev-util/comparator/files/comparator-2.12-gcc10.patch
new file mode 100644
index 00000000000..8ba6914129f
--- /dev/null
+++ b/dev-util/comparator/files/comparator-2.12-gcc10.patch
@@ -0,0 +1,26 @@
+From c7fdc67aefb67851a1210c7d5adfc7287c4b6572 Mon Sep 17 00:00:00 2001
+From: "Azamat H. Hackimov" <azamat.hackimov@gmail.com>
+Date: Mon, 15 Jun 2020 01:14:24 +0300
+Subject: [PATCH] Fix compilation with GCC10
+
+Fix compilation with -fno-common, which is enabled by default in GCC10.
+---
+ shred.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/shred.h b/shred.h
+index d7eeb93..0e35b28 100644
+--- a/shred.h
++++ b/shred.h
+@@ -100,7 +100,7 @@ extern int shredfile(struct filehdr_t *,
+ extern void sort_hashes(struct sorthash_t *hashlist, int hashcount);
+
+ /* linebyline.c feature analyzer */
+-struct analyzer_t linebyline;
++extern struct analyzer_t linebyline;
+
+ /* shredcompare.c functions */
+ extern int merge_compare(struct sorthash_t *obarray, int hashcount);
+--
+2.26.2
+
diff --git a/dev-util/comparator/metadata.xml b/dev-util/comparator/metadata.xml
index 6ed3edf95f5..ab8846bb689 100644
--- a/dev-util/comparator/metadata.xml
+++ b/dev-util/comparator/metadata.xml
@@ -6,4 +6,7 @@
<name>Anthony G. Basile</name>
</maintainer>
<longdescription>ESR's utility for making fast comparisons among large source trees</longdescription>
+ <upstream>
+ <remote-id type="gitlab">esr/comparator</remote-id>
+ </upstream>
</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-15 2:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-15 2:32 [gentoo-commits] repo/gentoo:master commit in: dev-util/comparator/files/, dev-util/comparator/ Aaron Bauman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox