Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121426 - app-emulation/bochs does not build the GDB stub
Summary: app-emulation/bochs does not build the GDB stub
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
: 135679 144442 154048 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-03 06:02 UTC by Karl-Johan Karlsson
Modified: 2016-05-28 08:14 UTC (History)
8 users (show)

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


Attachments
Ebuild with additional USE flags for selecting SMP, GDB stub and debugger support (bochs-2.3.7.ebuild,3.74 KB, text/plain)
2009-04-28 17:44 UTC, Alex Busenius
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karl-Johan Karlsson 2006-02-03 06:02:23 UTC
app-emulation/bochs can be built with either an internal debugger or a GDB stub. The USE flag "debugger" currently enables or disables the internal debugger, but the GDB stub is never built. It should be, with USE="-debugger".

--- bochs-2.2.5-r1.ebuild       2006-01-25 22:32:38.000000000 +0100
+++ bochs-2.2.5-r2.ebuild       2006-02-03 14:51:32.000000000 +0100
@@ -65,6 +65,8 @@
        use debugger && \
                myconf="$myconf --enable-debugger --enable-disasm \
                                --enable-x86-debugger --enable-iodebug"
+       use debugger || \
+               myconf="$myconf --enable-gdb-stub"
        use vnc && \
                myconf="$myconf --with-rfb"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-06-05 14:01:31 UTC
*** Bug 135679 has been marked as a duplicate of this bug. ***
Comment 2 Luca Barbato gentoo-dev 2006-06-11 14:01:47 UTC
Makes sense. Committed, thanks
Comment 3 David Klempner 2006-06-19 22:32:46 UTC
This fix isn't sufficient for -debugger; --disable-smp is also necessary, per http://bugs.gentoo.org/show_bug.cgi?id=135679
Comment 4 Harald van Dijk (RETIRED) gentoo-dev 2006-06-21 15:30:07 UTC
Reopening because as noted, bochs now fails to build with USE=-debugger
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-08-19 11:51:37 UTC
*** Bug 144442 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-11-04 09:47:19 UTC
*** Bug 154048 has been marked as a duplicate of this bug. ***
Comment 7 Carlo Marcelo Arenas Belon 2007-09-04 00:37:40 UTC
this is "fixed" for >=app-emulation/bochs-2.2.6 by never enabling SMP as shown in the Changelog :

  26 Nov 2006; Luca Barbato <lu_zero@gentoo.org> bochs-2.2.6.ebuild:
  remove smp since it breaks gdb stub

--enable-smp has been validated to work in amd64 when USE="debugger" though
Comment 8 Carlo Marcelo Arenas Belon 2007-09-18 14:42:00 UTC
starting with >=app-emulation/bochs-2.3.5 for USE="-debugger" smp is now unconditionally disabled to prevent a build failure as suggested here.

there is no way yet to enable smp for the ebuild (unless it is done only for USE="debugger") but that is arguably a different bug as there is currently no way to break the build unless the ebuild is modified, and modified in the wrong place ;)
Comment 9 Alex Busenius 2009-04-28 17:41:55 UTC
The bug is still present in app-emulation/bochs-2.3.7

I've modified the ebuild so that all supported combinations of SMP, GDB stub and internal debugger can be selected using the flags smp, gdbstub and debugger.
It disables smp and shows a warning with USE="smp gdbstub" and aborts with an error message if USE="gdbstub debugger" is used.
This ebuild also fixes the QA warning from #258141.
Comment 10 Alex Busenius 2009-04-28 17:44:01 UTC
Created attachment 189726 [details]
Ebuild with additional USE flags for selecting SMP, GDB stub and debugger support
Comment 11 Pacho Ramos gentoo-dev 2016-05-28 08:14:35 UTC
please retry with 2.6.8, it looks to handle debugger again