sys-devel/gdb: add USE=xxhash, bug #709690
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 15 Feb 2020 09:48:30 +0000 (09:48 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 15 Feb 2020 09:49:14 +0000 (09:49 +0000)
xxhash is an optional dependency to speed up internal hashing.

Reported-by: Georgy Yakovlev
Closes: https://bugs.gentoo.org/709690
Bug: https://bugs.gentoo.org/709696
Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
sys-devel/gdb/gdb-9.1.ebuild
sys-devel/gdb/gdb-9999.ebuild
sys-devel/gdb/metadata.xml

index fa5deb598106df77b878262aa27afe2f7451e9c9..c27518d0c97daf2e128b28332617a5fb5a6be97f 100644 (file)
@@ -46,7 +46,7 @@ SLOT="0"
 if [[ ${PV} != 9999* ]] ; then
        KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 fi
-IUSE="+client lzma multitarget nls +python +server source-highlight test vanilla xml"
+IUSE="+client lzma multitarget nls +python +server source-highlight test vanilla xml xxhash"
 REQUIRED_USE="
        python? ( ${PYTHON_REQUIRED_USE} )
        || ( client server )
@@ -65,7 +65,7 @@ RDEPEND="
        client? (
                dev-libs/mpfr:0=
                >=sys-libs/ncurses-5.2-r2:0=
-               sys-libs/readline:0=
+               >=sys-libs/readline-7:0=
                lzma? ( app-arch/xz-utils )
                python? ( ${PYTHON_DEPS} )
                xml? ( dev-libs/expat )
@@ -74,6 +74,9 @@ RDEPEND="
        source-highlight? (
                dev-util/source-highlight
        )
+       xxhash? (
+               dev-libs/xxhash
+       )
 "
 DEPEND="${RDEPEND}"
 BDEPEND="
@@ -171,6 +174,7 @@ src_configure() {
                        $(use_enable source-highlight)
                        $(use multitarget && echo --enable-targets=all)
                        $(use_with python python "${EPYTHON}")
+                       $(use_with xxhash)
                )
        fi
        if use sparc-solaris || use x86-solaris ; then
index 0917eed36ce3eea77c9e96d203c2308c86a65f39..06bc0404245438f913a31f061925073041322bd7 100644 (file)
@@ -46,7 +46,7 @@ SLOT="0"
 if [[ ${PV} != 9999* ]] ; then
        KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 fi
-IUSE="+client lzma multitarget nls +python +server source-highlight test vanilla xml"
+IUSE="+client lzma multitarget nls +python +server source-highlight test vanilla xml xxhash"
 REQUIRED_USE="
        python? ( ${PYTHON_REQUIRED_USE} )
        || ( client server )
@@ -65,7 +65,7 @@ RDEPEND="
        client? (
                dev-libs/mpfr:0=
                >=sys-libs/ncurses-5.2-r2:0=
-               sys-libs/readline:0=
+               >=sys-libs/readline-7:0=
                lzma? ( app-arch/xz-utils )
                python? ( ${PYTHON_DEPS} )
                xml? ( dev-libs/expat )
@@ -74,6 +74,9 @@ RDEPEND="
        source-highlight? (
                dev-util/source-highlight
        )
+       xxhash? (
+               dev-libs/xxhash
+       )
 "
 DEPEND="${RDEPEND}"
 BDEPEND="
@@ -169,6 +172,7 @@ src_configure() {
                        $(use_enable source-highlight)
                        $(use multitarget && echo --enable-targets=all)
                        $(use_with python python "${EPYTHON}")
+                       $(use_with xxhash)
                )
        fi
        if use sparc-solaris || use x86-solaris ; then
index 4940999342f23f630740162ab0903b8ba5fafe6b..c0ef0493f2a021ef760f93a4c0adde59dd247b24 100644 (file)
@@ -13,6 +13,7 @@
  <flag name="server">Install the "gdbserver" program (useful for embedded/remote targets)</flag>
  <flag name="source-highlight">Enable listing highlighting via <pkg>dev-util/source-highlight</pkg></flag>
  <flag name="xml">Support parsing XML data files needed (at least) for cpu features, memory maps, and syscall tracing</flag>
+ <flag name="xxhash">Use <pkg>dev-libs/xxhash</pkg> to speed up internal hashing.</flag>
 </use>
 <upstream>
  <remote-id type="cpe">cpe:/a:gnu:gdb</remote-id>