From vs@foldr.org  Mon Nov 18 09:56:58 2002
Return-Path: <vs@foldr.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7364937B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 18 Nov 2002 09:56:58 -0800 (PST)
Received: from lambda.foldr.org (lambda.foldr.org [198.78.66.36])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DCF9743E42
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 18 Nov 2002 09:56:57 -0800 (PST)
	(envelope-from vs@foldr.org)
Received: from theater.foldr.org (pD9509C83.dip.t-dialin.net [217.80.156.131])
	by lambda.foldr.org (8.12.3/8.11.6) with ESMTP id gAIHusjN095018
	(using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK)
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 18 Nov 2002 18:56:56 +0100 (CET)
	(envelope-from vs@foldr.org)
Received: from monster.theater.foldr.org (monster.theater.foldr.org [IPv6:3ffe:b80:2de:3:2e0:29ff:fe98:abca])
	by theater.foldr.org (8.12.5/8.12.5) with ESMTP id gAIHuvBa011870
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK)
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 18 Nov 2002 18:56:57 +0100 (CET)
	(envelope-from vs@monster.theater.foldr.org)
Received: (from vs@localhost)
	by monster.theater.foldr.org (8.12.6/8.12.6/Submit) id gAIHunwt003799;
	Mon, 18 Nov 2002 18:56:49 +0100 (CET)
	(envelope-from vs)
Message-Id: <200211181756.gAIHunwt003799@monster.theater.foldr.org>
Date: Mon, 18 Nov 2002 18:56:49 +0100 (CET)
From: Volker Stolz <vs@foldr.org>
Reply-To: Volker Stolz <vs@foldr.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] Fix sysutils/x86info on -current
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         45412
>Category:       ports
>Synopsis:       [patch] Fix sysutils/x86info on -current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 18 10:00:02 PST 2002
>Closed-Date:    Mon Nov 18 22:34:56 PST 2002
>Last-Modified:  Mon Nov 18 22:34:56 PST 2002
>Originator:     Volker Stolz
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Lehrstuhl fr Informatik II
>Environment:
System: FreeBSD monster.theater.foldr.org 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Wed Nov 13 19:42:10 CET 2002 root@monster.ikea.net:/usr/src/sys/i386/compile/MONSTER i386


>Description:
- There's no such thing as machine/types.h, it's spelled sys/types here.
- CLFAGS police

Compiled on: -stable, -current
>How-To-Repeat:
>Fix:

diff -urN ofiles/patch-Makefile files/patch-Makefile
--- ofiles/patch-Makefile	Fri Nov 15 20:16:15 2002
+++ files/patch-Makefile	Mon Nov 18 17:15:11 2002
@@ -1,6 +1,10 @@
---- Makefile.orig	Thu Nov 14 13:42:46 2002
-+++ Makefile	Thu Nov 14 13:42:58 2002
-@@ -4,7 +4,7 @@
+--- Makefile.orig	Mon Nov 11 22:02:55 2002
++++ Makefile	Mon Nov 18 17:14:07 2002
+@@ -1,10 +1,10 @@
+-CFLAGS = -Wall -W -Wshadow -g -O2
++CFLAGS = -Wall -W -Wshadow # -g -O2
+ #CFLAGS += $(shell if $(CC) -m32 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-m32"; fi)
+ 
  #CFLAGS += -mwin32 -DWIN32_LEAN_AND_MEAN
  SHELL = /bin/sh
  
diff -urN ofiles/patch-mptable.c files/patch-mptable.c
--- ofiles/patch-mptable.c	Thu Jan  1 01:00:00 1970
+++ files/patch-mptable.c	Mon Nov 18 17:14:32 2002
@@ -0,0 +1,11 @@
+--- mptable.c.orig	Mon Nov 18 17:13:48 2002
++++ mptable.c	Mon Nov 18 17:13:59 2002
+@@ -41,8 +41,6 @@
+ 
+ #ifdef linux
+ typedef unsigned int vm_offset_t;
+-#else
+-#include <machine/types.h>
+ #endif
+ 
+ /* EBDA is @ 40:0e in real-mode terms */
diff -urN ofiles/patch-x86info.h files/patch-x86info.h
--- ofiles/patch-x86info.h	Thu Jan  1 01:00:00 1970
+++ files/patch-x86info.h	Mon Nov 18 17:14:58 2002
@@ -0,0 +1,11 @@
+--- x86info.h.orig	Mon Nov 18 17:13:19 2002
++++ x86info.h	Mon Nov 18 17:13:34 2002
+@@ -4,7 +4,7 @@
+ #ifdef linux
+ #include <linux/types.h>
+ #else
+-#include <machine/types.h>
++#include <sys/types.h>
+ #define __u32 int
+ #endif /* linux */
+ 

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Mon Nov 18 22:34:34 PST 2002 
State-Changed-Why:  
fixed, thanks for your report 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45412 
>Unformatted:
