Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 400707 - sys-devel/gdb doesn't fully honor vanilla USE flag
Summary: sys-devel/gdb doesn't fully honor vanilla USE flag
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-25 09:33 UTC by octoploid
Modified: 2012-01-25 19:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description octoploid 2012-01-25 09:33:43 UTC
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
Comment 1 SpanKY gentoo-dev 2012-01-25 19:29:38 UTC
the configure flag does not require a patch and thus does not fall into the vanilla category.  upstream supports that.
Comment 2 SpanKY gentoo-dev 2012-01-25 19:31:42 UTC
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