sys-devel/gdb: add USE=xxhash, bug #709690

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>
This commit is contained in:
Sergei Trofimovich
2020-02-15 09:48:30 +00:00
parent 1fab6ea5e8
commit e785b425ed
3 changed files with 13 additions and 4 deletions

View 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

View 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

View 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>