Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Nov 2002 18:41:20 +0000
From:      Ceri Davies <ceri@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/45827: [PATCH] Fix emulators/bochs WITH_BOCHS_PROCESSORS
Message-ID:  <E18HTbE-000AyQ-00@rhadamanth.submonkey.net>

next in thread | raw e-mail | index | archive | help

>Number:         45827
>Category:       ports
>Synopsis:       [PATCH] Fix emulators/bochs WITH_BOCHS_PROCESSORS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 28 10:50:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ceri Davies <ceri@FreeBSD.org>
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD rhadamanth.private.submonkey.net 4.7-STABLE FreeBSD 4.7-STABLE #2: Wed Nov 27 01:01:49 GMT 2002 setantae@rhadamanth.private.submonkey.net:/usr/obj/usr/src/sys/RHADAMANTH i386

	
>Description:
The Makefile for emulators/bochs contains a cut-n-paste-o, resulting in a
failure when make is invoked with WITH_BOCHS_PROCESSORS defined.
	
>How-To-Repeat:

 # cd /usr/ports/emulators/bochs
 # make WITH_BOCHS_PROCESSORS=2
 "Makefile", line 44: Malformed conditional (${WITH_BOCHS_CPU_LEVEL} < 1 || ${WITH_BOCHS_CPU_LEVEL} > 15)
 "Makefile", line 44: Need an operator
 "Makefile", line 45: "WITH_BOCHS_CPU_LEVEL must be an integer value between 1 and 15."
 # 

>Fix:

	Apply the following patch:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/emulators/bochs/Makefile,v
retrieving revision 1.48
diff -u -r1.48 Makefile
--- Makefile	3 Nov 2002 14:41:51 -0000	1.48
+++ Makefile	28 Nov 2002 18:34:49 -0000
@@ -41,8 +41,8 @@
 .endif
 
 .if defined(WITH_BOCHS_PROCESSORS)
-.if ${WITH_BOCHS_CPU_LEVEL} < 1 || ${WITH_BOCHS_CPU_LEVEL} > 15
-.error "WITH_BOCHS_CPU_LEVEL must be an integer value between 1 and 15."
+.if ${WITH_BOCHS_PROCESSORS} < 1 || ${WITH_BOCHS_PROCESSORS} > 15
+	.error "WITH_BOCHS_PROCESSORS must be an integer value between 1 and 15."
 .endif
 CONFIGURE_ARGS+=	--enable-processors=${WITH_BOCHS_PROCESSORS}
 WITH_BOCHS_CPU_LEVEL=	6
	


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E18HTbE-000AyQ-00>