Wednesday, May 25, 2022

Re: [update] emulators/bochs to 2.7

On Wed, May 25, 2022 at 07:34:29PM +0900, rgc wrote:
> On Tue, May 24, 2022 at 10:11:50AM +0200, Omar Polo wrote:
> > Hello,
> >
> > nitpicks:
> >
> > - REVISION should be removed when bumping the version (it goes empty,
> > then 0, 1, 2, ...)
> > - it does not link to ncurses anymore
> > - while here, switch HOMEPAGE to https
>
> Noted. Thanks for the reminders.
>
> >
> > I'm attaching an updated diff. I still haven't played with it, only
> > built, but if nobody complains I'll commit it after some run testing :)
>
> For me the bug I encountered, it does not occur anymore. I'm running it on
> amd64 with DRDOS (that's why the floppy image swapping is a must) with
> no problems so far. My macppc is not running at the moment :-( so can't
> run other tests.

checking for mvaddch in -lcurses... yes
Package curses was not found in the pkg-config search path
checking for mvaddch in -lncurses... yes
Package ncurses was not found in the pkg-config search path
checking for mvaddch in -ltermlib... yes
Package termlib was not found in the pkg-config search path
checking for mvaddch in -lpdcurses... no
Curses library not found: tried curses, ncurses, termlib and pdcurses.
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2928 'do-configure': @for d in /usr/ports/pobj/bochs-2.7/bochs-2.7; do cp -f /u...)
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2948 '/usr/ports/pobj/bochs-2.7/.configure_done': @cd /usr/ports/emulators/bochs ...)
*** Error 2 in /usr/ports/emulators/bochs (/usr/ports/infrastructure/mk/bsd.port.mk:2607 'all': @lock=bochs-2.7; export _LOCKS_HELD=" bochs...)

one thing to note about the patch i originally submitted.
i removed "--with-term" because i could not figure out how
to fix the above ^^^ error, even with ncurses installed

i still haven't figured out the problem but attaching a
modified patch with "--with-term" which, of course, does
not compile


Index: Makefile
===================================================================
RCS file: /home/cvs/ports/emulators/bochs/Makefile,v
retrieving revision 1.75
diff -u -p -r1.75 Makefile
--- Makefile 11 Mar 2022 18:59:33 -0000 1.75
+++ Makefile 25 May 2022 20:40:41 -0000
@@ -1,11 +1,10 @@
COMMENT= x86 machine simulator

-DISTNAME= bochs-2.6.9
+DISTNAME= bochs-2.7
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bochs/}
-REVISION= 2

-HOMEPAGE= http://bochs.sourceforge.net/
+HOMEPAGE= https://bochs.sourceforge.net/

# LGPLv2.1+ and MIT
PERMIT_PACKAGE= Yes
@@ -28,7 +27,9 @@ CONFIGURE_ARGS= --enable-all-optimizatio
--enable-usb \
--enable-usb-ohci \
--enable-vmx=2 \
- --with-term
+ --with-term \
+ --enable-cet \
+ --enable-evex

FLAVORS= debug no_x11
FLAVOR?=
@@ -41,15 +42,11 @@ CONFIGURE_ARGS+=--disable-debugger-gui \
WANTLIB+= curses readline
.endif

-.if ${FLAVOR:Mno_x11}
-CONFIGURE_ARGS+=--with-nogui
-.else
LIB_DEPENDS+= converters/libiconv \
devel/sdl
CONFIGURE_ARGS+=--with-sdl \
--with-x11
-WANTLIB+= SDL X11 Xext Xpm Xrandr Xrender iconv sndio usbhid xcb
-.endif
+WANTLIB+= SDL X11 Xext Xpm Xrandr Xrender iconv sndio usbhid xcb curses

NO_TEST= Yes

Index: distinfo
===================================================================
RCS file: /home/cvs/ports/emulators/bochs/distinfo,v
retrieving revision 1.23
diff -u -p -r1.23 distinfo
--- distinfo 23 Apr 2017 13:25:29 -0000 1.23
+++ distinfo 23 May 2022 09:32:30 -0000
@@ -1,2 +1,2 @@
-SHA256 (bochs-2.6.9.tar.gz) = 7ltnf9mxufSEta60YU9D3yGZMIjAwFcRh/k6ywhm6Yw=
-SIZE (bochs-2.6.9.tar.gz) = 5169187
+SHA256 (bochs-2.7.tar.gz) = oBCrG/3HKsWgjS4kEs1HHA/r1mrx2TSbwNeWh53lsXo=
+SIZE (bochs-2.7.tar.gz) = 5298413
Index: patches/patch-Makefile_in
===================================================================
RCS file: /home/cvs/ports/emulators/bochs/patches/patch-Makefile_in,v
retrieving revision 1.11
diff -u -p -r1.11 patch-Makefile_in
--- patches/patch-Makefile_in 11 Mar 2022 18:59:33 -0000 1.11
+++ patches/patch-Makefile_in 23 May 2022 09:38:16 -0000
@@ -1,8 +1,18 @@
Don't gzip the man pages.

---- Makefile.in.orig Sat Mar 18 05:27:48 2017
-+++ Makefile.in Tue Apr 11 21:57:44 2017
-@@ -471,8 +471,8 @@ clean_docbook::
+Index: Makefile.in
+--- Makefile.in.orig
++++ Makefile.in
+@@ -39,7 +39,7 @@ DESTDIR =
+
+ VERSION=@VERSION@
+ REL_STRING=@REL_STRING@
+-MAN_PAGE_1_LIST=bochs bximage bochs-dlx
++MAN_PAGE_1_LIST=bochs bximage
+ MAN_PAGE_5_LIST=bochsrc
+ INSTALL_LIST_SHARE=bios/BIOS-bochs-* bios/VGABIOS* bios/SeaBIOS* bios/SeaVGABIOS* bios/bios.bin-* bios/vgabios-cirrus.bin-* @INSTALL_LIST_FOR_PLATFORM@
+ INSTALL_LIST_DOC=CHANGES COPYING LICENSE README TODO misc/slirp.conf misc/vnet.conf
+@@ -463,8 +463,8 @@ clean_docbook::
install_man::
-mkdir -p $(DESTDIR)$(man1dir)
-mkdir -p $(DESTDIR)$(man5dir)
Index: patches/patch-_bochsrc
===================================================================
RCS file: /home/cvs/ports/emulators/bochs/patches/patch-_bochsrc,v
retrieving revision 1.15
diff -u -p -r1.15 patch-_bochsrc
--- patches/patch-_bochsrc 11 Mar 2022 18:59:33 -0000 1.15
+++ patches/patch-_bochsrc 23 May 2022 09:38:30 -0000
@@ -1,6 +1,7 @@
---- .bochsrc.orig Sun Apr 2 11:43:48 2017
-+++ .bochsrc Tue Apr 11 21:57:44 2017
-@@ -571,7 +571,7 @@ pci: enabled=1, chipset=i440fx
+Index: .bochsrc
+--- .bochsrc.orig
++++ .bochsrc
+@@ -613,7 +613,7 @@ pci: enabled=1, chipset=i440fx
#
# Default value are sync=none, rtc_sync=0, time0=local
#=======================================================================
@@ -9,7 +10,7 @@

#=======================================================================
# CMOSIMAGE:
-@@ -627,13 +627,13 @@ private_colormap: enabled=0
+@@ -669,13 +669,13 @@ private_colormap: enabled=0
# The optional parameter 'write_protected' can be used to control the media
# write protect switch. By default it is turned off.
#=======================================================================
@@ -25,7 +26,7 @@

#=======================================================================
# FLOPPYB:
-@@ -759,8 +759,8 @@ floppy_bootsig_check: disabled=0
+@@ -800,8 +800,8 @@ floppy_bootsig_check: disabled=0
# log: ./bochs.out
# log: /dev/tty
#=======================================================================
Index: patches/patch-gui_textconfig_cc
===================================================================
RCS file: patches/patch-gui_textconfig_cc
diff -N patches/patch-gui_textconfig_cc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-gui_textconfig_cc 23 May 2022 09:45:21 -0000
@@ -0,0 +1,11 @@
+Index: gui/textconfig.cc
+--- gui/textconfig.cc.orig
++++ gui/textconfig.cc
+@@ -36,6 +36,7 @@
+ // isn't even defined in this context.
+ //
+
++#include "bochs.h"
+ #include "config.h"
+
+ #if BX_USE_TEXTCONFIG
Index: patches/patch-iodev_network_eth_socket_cc
===================================================================
RCS file: /home/cvs/ports/emulators/bochs/patches/patch-iodev_network_eth_socket_cc,v
retrieving revision 1.2
diff -u -p -r1.2 patch-iodev_network_eth_socket_cc
--- patches/patch-iodev_network_eth_socket_cc 11 Mar 2022 18:59:33 -0000 1.2
+++ patches/patch-iodev_network_eth_socket_cc 23 May 2022 09:38:07 -0000
@@ -1,20 +1,11 @@
---- iodev/network/eth_socket.cc.orig Tue Apr 11 22:08:35 2017
-+++ iodev/network/eth_socket.cc Tue Apr 11 22:10:14 2017
-@@ -83,12 +83,14 @@ extern "C" {
- #include <sys/types.h>
+Index: iodev/network/eth_socket.cc
+--- iodev/network/eth_socket.cc.orig
++++ iodev/network/eth_socket.cc
+@@ -93,7 +93,6 @@ extern "C" {
#include <sys/socket.h>
#include <sys/ioctl.h>
--#include <netpacket/packet.h>
#include <netinet/in.h>
-#include <net/ethernet.h>
#include <net/if.h>
--#include <linux/types.h>
- #include <netdb.h>
-+#ifdef __linux__
-+#include <netpacket/packet.h>
-+#include <net/ethernet.h>
-+#include <linux/types.h>
-+

No comments:

Post a Comment