Bug 121426 - app-emulation/bochs does not build the GDB stub
Bug#: 121426 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: REOPENED Severity: normal Priority: P2
Resolution:  Assigned To: lu_zero@gentoo.org Reported By: creideiki+gentoo-bugzilla@lysator.liu.se
Component: Applications
URL: 
Summary: app-emulation/bochs does not build the GDB stub
Keywords:  
Status Whiteboard: 
Opened: 2006-02-03 06:02 0000
Description:   Opened: 2006-02-03 06:02 0000
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 From Jakub Moc (RETIRED) 2006-06-05 14:01:31 0000 -------
*** Bug 135679 has been marked as a duplicate of this bug. ***

------- Comment #2 From Luca Barbato 2006-06-11 14:01:47 0000 -------
Makes sense. Committed, thanks

------- Comment #3 From David Klempner 2006-06-19 22:32:46 0000 -------
This fix isn't sufficient for -debugger; --disable-smp is also necessary, per
http://bugs.gentoo.org/show_bug.cgi?id=135679

------- Comment #4 From Harald van Dijk 2006-06-21 15:30:07 0000 -------
Reopening because as noted, bochs now fails to build with USE=-debugger

------- Comment #5 From Jakub Moc (RETIRED) 2006-08-19 11:51:37 0000 -------
*** Bug 144442 has been marked as a duplicate of this bug. ***

------- Comment #6 From Jakub Moc (RETIRED) 2006-11-04 09:47:19 0000 -------
*** Bug 154048 has been marked as a duplicate of this bug. ***

------- Comment #7 From Carlo Marcelo Arenas Belon 2007-09-04 00:37:40 0000 -------
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 From Carlo Marcelo Arenas Belon 2007-09-18 14:42:00 0000 -------
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 From Alex Busenius 2009-04-28 17:41:55 0000 -------
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 From Alex Busenius 2009-04-28 17:44:01 0000 -------
Created an attachment (id=189726) [details]
Ebuild with additional USE flags for selecting SMP, GDB stub and debugger
support