Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Apr 2003 19:33:02 +0800 (WST)
From:      "Thomas E. Zander" <riggs@rrr.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/50673: mplayer CPU detection patch
Message-ID:  <200304071133.h37BX2C2023083@trillian.mugiri.au>
Resent-Message-ID: <200304071150.h37BoL22051931@freefall.freebsd.org>

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

>Number:         50673
>Category:       ports
>Synopsis:       mplayer CPU detection patch
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 07 04:50:21 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Thomas E. Zander
>Release:        FreeBSD 5.0-RELEASE-p6 i386
>Organization:
>Environment:
System: FreeBSD trillian.mugiri.au 5.0-RELEASE-p6 FreeBSD 5.0-RELEASE-p6 #0: Tue Mar 25 20:30:02 WST 2003 root@trillian.mugiri.au:/usr/obj/usr/src/sys/TRILLIAN i386


	
>Description:
	This patch suggested by Matthew Emmerton <matt@gsicomp.on.ca>
	fixes a bug in detecting p4 types correctly which could
	cause mplayer to crash.
	It consists of two files:
	o patch-cpudetect.h
	o patch-loader-win32.c
>How-To-Repeat:
>Fix:

	Diff to multimedia/mplayer is attached:


diff -ruN mplayer-old/Makefile mplayer/Makefile
--- mplayer-old/Makefile	Mon Apr  7 12:16:09 2003
+++ mplayer/Makefile	Mon Apr  7 19:09:19 2003
@@ -149,7 +149,7 @@
 
 PORTNAME=	mplayer
 PORTVERSION=	0.90.0.105
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	multimedia audio ipv6
 MASTER_SITES=	http://www1.mplayerhq.hu/MPlayer/releases/ \
 		http://www2.mplayerhq.hu/MPlayer/releases/ \
diff -ruN mplayer-old/files/patch-cpudetect.h mplayer/files/patch-cpudetect.h
--- mplayer-old/files/patch-cpudetect.h	Thu Jan  1 08:00:00 1970
+++ mplayer/files/patch-cpudetect.h	Mon Apr  7 19:08:50 2003
@@ -0,0 +1,11 @@
+--- cpudetect.h.orig	Sun Apr  6 01:28:52 2003
++++ cpudetect.h	Sun Apr  6 01:29:06 2003
+@@ -5,6 +5,8 @@
+ #define CPUTYPE_I486	4
+ #define CPUTYPE_I586	5
+ #define CPUTYPE_I686    6
++#define CPUTYPE_I686_7	7
++#define CPUTYPE_I686_8	8
+ 
+ typedef struct cpucaps_s {
+ 	int cpuType;
diff -ruN mplayer-old/files/patch-loader-win32.c mplayer/files/patch-loader-win32.c
--- mplayer-old/files/patch-loader-win32.c	Thu Jan  1 08:00:00 1970
+++ mplayer/files/patch-loader-win32.c	Mon Apr  7 19:08:50 2003
@@ -0,0 +1,11 @@
+--- loader/win32.c.orig	Sun Apr  6 01:29:17 2003
++++ loader/win32.c	Sun Apr  6 01:29:30 2003
+@@ -931,6 +931,8 @@
+ 
+ 	    switch(gCpuCaps.cpuType)
+ 	    {
++		case CPUTYPE_I686_8:
++		case CPUTYPE_I686_7:
+ 		case CPUTYPE_I686:
+ 		case CPUTYPE_I586:
+ 		    cachedsi.dwProcessorType = PROCESSOR_INTEL_PENTIUM;
>Release-Note:
>Audit-Trail:
>Unformatted:



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