Emerging sys-devel/gdb-7.4 with the vanilla useflag set results in a debugger that still prints gentoo related infos: % gdb GNU gdb (Gentoo 7.4 p1) 7.4 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". For bug reporting instructions, please see: <http://bugs.gentoo.org/> What about the following approach? ... gdb_branding() { printf "Gentoo ${PV} " printf "p${PATCH_VER}" } src_configure() { strip-unsupported-flags local myconf=( $(if (! use vanilla ) ; then echo --with-pkgversion="$(gdb_branding)" echo --with-bugurl='http://bugs.gentoo.org/' fi) --disable-werror $(is_cross && echo --with-sysroot="${EPREFIX}"/usr/${CTARGET}) ) ... This gives: % gdb GNU gdb (GDB) 7.4 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Thanks. Reproducible: Always
the configure flag does not require a patch and thus does not fall into the vanilla category. upstream supports that.
there is one slight inaccuracy in the output which i've fixed here: http://sources.gentoo.org/sys-devel/gdb/gdb-7.4.ebuild?r1=1.1&r2=1.2 http://sources.gentoo.org/sys-devel/gdb/gdb-9999.ebuild?r1=1.8&r2=1.9