Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2012 11:21:41 +0000 (UTC)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r306793 - in head/emulators/bochs: . files
Message-ID:  <201211011121.qA1BLfnK079896@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: madpilot
Date: Thu Nov  1 11:21:41 2012
New Revision: 306793
URL: http://svn.freebsd.org/changeset/ports/306793

Log:
  - Update to 2.6
  - Remove ABI version numbers from LIB_DEPENDS
  - Fix echoes in pre-everything target
  - Trim Makefile headers
  
  PR:		ports/171992
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
  Feature safe:	yes

Added:
  head/emulators/bochs/files/patch-iodev__network__eth_fbsd.cc   (contents, props changed)
Deleted:
  head/emulators/bochs/files/patch-iodev-eth_fbsd.cc
Modified:
  head/emulators/bochs/Makefile   (contents, props changed)
  head/emulators/bochs/distinfo   (contents, props changed)

Modified: head/emulators/bochs/Makefile
==============================================================================
--- head/emulators/bochs/Makefile	Thu Nov  1 10:55:29 2012	(r306792)
+++ head/emulators/bochs/Makefile	Thu Nov  1 11:21:41 2012	(r306793)
@@ -1,13 +1,8 @@
-# Ports collection makefile for:  bochs
-# Date created:			  16 December 1997
-# Whom:				  alex
-#
+# Created by: alex
 # $FreeBSD$
-#
 
 PORTNAME=	bochs
-PORTVERSION=	2.5.1
-PORTREVISION=	1
+PORTVERSION=	2.6
 PORTEPOCH=	2
 CATEGORIES=	emulators
 MASTER_SITES=	SF
@@ -16,17 +11,21 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	An IA-32 (x86) PC emulator that runs DOS, Win 95, and more
 
 LICENSE=	LGPL21
-LICENSE_FILE=	${WRKSRC}/COPYING
 
-OPTIONS_DEFINE=	A20_PIN ALIGN_CHECK ASSERT_CHECK CDROM CHAINING CLGD54XX CONF_MSRS CPP_SUFX \
-		DEBUG DEBUGGER_X86 DISASM DOCS ES1370 FAST_FUNCCALL FPU GAMEPORT IDLE_HACK \
-		INSTRUMENT IODEBUG LARGE_RAMFILE LOGGING LONG_PHY_ADDR MISALIGNEDSSE MWAIT NE2000 \
-		OPTIMIZATIONS PCI PLUGINS PNIC RAW_SERIAL READLINE REPEAT_SPEED RFB SB16 SDL \
-		SHOW_IPS SMP SVGA TERM USB USB_OHCI USB_XHCI VMX WX X11 X86_64 XPM
+OPTIONS_DEFINE=	A20_PIN ALIGN_CHECK ASSERT_CHECK \
+		CDROM CHAINING CLGD54XX CONF_MSRS CPP_SUFX \
+		DEBUG DEBUGGER_X86 DISASM DOCS \
+		E1000 ES1370 FAST_FUNCCALL FPU \
+		GAMEPORT IDLE_HACK IODEBUG \
+		LARGE_RAMFILE LOGGING LONG_PHY_ADDR \
+		MISALIGNEDSSE MWAIT NE2000 OPTIMIZATIONS PCI PLUGINS PNIC \
+		RAW_SERIAL READLINE REPEAT_SPEED RFB \
+		SB16 SDL SHOW_IPS SMP SVGA SVM TERM USB USB_OHCI USB_XHCI \
+		VMX WX X11 X86_64 XPM
 OPTIONS_SINGLE=	DEBUG
 OPTIONS_SINGLE_DEBUG=	DEBUGGER GDB_STUB
-OPTIONS_DEFAULT=	A20_PIN ALIGN_CHECK CDROM CONF_MSRS DISASM FPU LOGGING NE2000 \
-			OPTIMIZATIONS SB16 X11
+OPTIONS_DEFAULT=A20_PIN ALIGN_CHECK CDROM CONF_MSRS DISASM FPU LOGGING \
+		NE2000 OPTIMIZATIONS SB16 X11
 
 A20_PIN_DESC=	Enable support for A20 pin
 ALIGN_CHECK_DESC=	Enable alignment check support
@@ -40,13 +39,13 @@ DEBUG_DESCR=	Enable Debugging, select th
 DEBUGGER_DESC=	Enable debugger support
 DEBUGGER_X86_DESC=	Enable x86 hardware debugger
 DISASM_DESC=	Enable disassemler support
+E1000_DESC=	Enable Intel(R) Gigabit Ethernet support
 ES1370_DESC=	Enable ES1370 soundcard support
 FAST_FUNCCALL_DESC=	Enable fast function calls support (x86 only)
 FPU_DESC=	Enable FPU emulator
 GAMEPORT_DESC=	Enable standard PC gameport support
 GDB_STUB_DESC=	Enable GDB stub support
 IDLE_HACK_DESC=	Keep Bochs from using all CPU time
-INSTRUMENT_DESC=	Enable support for instrumentation
 IODEBUG_DESC=	Enable I/O interface to debugger
 LARGE_RAMFILE_DESC=	Enable large ramfile support
 LOGGING_DESC=	Enable logging
@@ -67,6 +66,7 @@ SDL_DESC=	Enable SDL display interface
 SHOW_IPS_DESC=	Enable logging of measured IPS
 SMP_DESC=	Enable SMP simulation support (CPU level 6)
 SVGA_DESC=	Enable SVGAlib support
+SVM_DESC=	Enable SVM (AMD: secure virtual machine) emulation
 TERM_DESC=	Use text only, console based interface
 USB_DESC=	Enable limited USB UHCI support
 USB_OHCI_DESC=	Enable limited USB OHCI support
@@ -78,7 +78,7 @@ XPM_DESC=	Enable XPM library support
 
 USE_GMAKE=	yes
 USE_AUTOTOOLS=	libtool
-CONFIGURE_ARGS=	--disable-docbook
+CONFIGURE_ARGS=	--disable-docbook --disable-instrumentation
 MAKE_JOBS_SAFE=	yes
 
 CFLAGS+=	-fno-exceptions -fomit-frame-pointer ${CPPFLAGS}
@@ -94,7 +94,7 @@ SUB_FILES=	pkg-message
 
 .include <bsd.port.options.mk>
 
-.if !${PORT_OPTIONS:MTERM} && !${PORT_OPTIONS:MWX} && ${PORT_OPTIONS:MX!!}
+.if !${PORT_OPTIONS:MTERM} && !${PORT_OPTIONS:MWX} && !${PORT_OPTIONS:MX11}
 CONFIGURE_ARGS+=--with-nogui
 .endif
 
@@ -164,6 +164,18 @@ CONFIGURE_ARGS+=--enable-disasm
 CONFIGURE_ARGS+=--disable-disasm
 .endif
 
+.if ${PORT_OPTIONS:ME1000}
+CONFIGURE_ARGS+=--enable-e1000
+.else
+CONFIGURE_ARGS+=--disable-e1000
+.endif
+
+.if ${PORT_OPTIONS:MES1370}
+CONFIGURE_ARGS+=--enable-es1370
+.else
+CONFIGURE_ARGS+=--disable-es1370
+.endif
+
 .if ${PORT_OPTIONS:MFAST_FUNCCALL}
 CONFIGURE_ARGS+=--enable-fast-function-calls
 .else
@@ -194,13 +206,6 @@ CONFIGURE_ARGS+=--enable-idle-hack
 CONFIGURE_ARGS+=--disable-idle-hack
 .endif
 
-.if ${PORT_OPTIONS:MINSTRUMENT}
-BROKEN=		currently unbuildable
-CONFIGURE_ARGS+=--enable-instrumentation
-.else
-CONFIGURE_ARGS+=--disable-instrumentation
-.endif
-
 .if ${PORT_OPTIONS:MIODEBUG}
 CONFIGURE_ARGS+=--enable-iodebug
 .else
@@ -274,6 +279,7 @@ CONFIGURE_ARGS+=--disable-raw-serial
 .endif
 
 .if ${PORT_OPTIONS:MREADLINE}
+USE_READLINE=	yes
 CONFIGURE_ARGS+=--enable-readline
 .else
 CONFIGURE_ARGS+=--disable-readline
@@ -312,12 +318,22 @@ WITH_CPU_LEVEL=	6
 .endif
 
 .if ${PORT_OPTIONS:MSVGA}
-LIB_DEPENDS+=	vga.1:${PORTSDIR}/graphics/svgalib
+LIB_DEPENDS+=	vga:${PORTSDIR}/graphics/svgalib
 CONFIGURE_ARGS+=--with-svga
+.else
+CONFIGURE_ARGS+=--without-svga
+.endif
+
+.if ${PORT_OPTIONS:MSVM}
+CONFIGURE_ARGS+=--enable-svm
+.else
+CONFIGURE_ARGS+=--disable-svm
 .endif
 
 .if ${PORT_OPTIONS:MTERM}
 CONFIGURE_ARGS+=--with-term
+.else
+CONFIGURE_ARGS+=--without-term
 .endif
 
 .if ${PORT_OPTIONS:MUSB}
@@ -379,7 +395,7 @@ CONFIGURE_ARGS+=--enable-cpu-level=${WIT
 .endif
 
 .if ${PORT_OPTIONS:MSB16} || ${PORT_OPTIONS:MES1370}
-LIB_DEPENDS+=	asound.2:${PORTSDIR}/audio/alsa-lib
+LIB_DEPENDS+=	asound:${PORTSDIR}/audio/alsa-lib
 CONFIGURE_ENV+=	SOUND_LINK_OPTS="-L${LOCALBASE}/lib"
 .endif
 
@@ -388,11 +404,11 @@ IGNORE=		GDB_STUB is incompatible with m
 .endif
 
 pre-everything::
-	@${ECHO_CMD}
 .if !defined(WITH_CPU_LEVEL)
+	@${ECHO_CMD}
 	@${ECHO_CMD} "If you want to change the processor level to emulate (default is 5, aka Pentium), set WITH_CPU_LEVEL to the desired value. Choices are 3, 4, 5 and 6 which mean target 386, 486, Pentium or Pentium Pro emulation." | ${FMT}
-.endif
 	@${ECHO_CMD}
+.endif
 
 post-patch:
 	@${REINPLACE_CMD} -Ee \

Modified: head/emulators/bochs/distinfo
==============================================================================
--- head/emulators/bochs/distinfo	Thu Nov  1 10:55:29 2012	(r306792)
+++ head/emulators/bochs/distinfo	Thu Nov  1 11:21:41 2012	(r306793)
@@ -1,2 +1,2 @@
-SHA256 (bochs-2.5.1.tar.gz) = 8d3f2ccd8fc3df2aff7ea370afc521cadd4a4f545faf6b0421013453ce3ea26e
-SIZE (bochs-2.5.1.tar.gz) = 4126651
+SHA256 (bochs-2.6.tar.gz) = 65123e44a6d2c1148d741da025d16311b9ccd600ef268b911aba73c67eaf86e1
+SIZE (bochs-2.6.tar.gz) = 4212828

Added: head/emulators/bochs/files/patch-iodev__network__eth_fbsd.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/bochs/files/patch-iodev__network__eth_fbsd.cc	Thu Nov  1 11:21:41 2012	(r306793)
@@ -0,0 +1,17 @@
+--- iodev/network/eth_fbsd.cc.orig	2012-09-02 20:30:11.000000000 +0900
++++ iodev/network/eth_fbsd.cc	2012-09-03 23:41:03.000000000 +0900
+@@ -235,6 +235,14 @@
+     return;
+   }
+ 
++  v = 1;
++  if (ioctl(this->bpf_fd, BIOCIMMEDIATE, &v) < 0) {
++    BX_PANIC(("eth_freebsd: could not enable immediate mode"));
++    close(this->bpf_fd);
++    this->bpf_fd = -1;
++    return;
++  }
++
+   // Set up non-blocking i/o
+   v = 1;
+   if (ioctl(this->bpf_fd, FIONBIO, &v) < 0) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211011121.qA1BLfnK079896>