Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jun 2005 10:05:16 +0200 (CEST)
From:      Michael Nottebrock <lofi@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/82434: [Patch] Fix libvisual on 4.x
Message-ID:  <200506200805.j5K85Guf052019@kiste.my.domain>
Resent-Message-ID: <200506200810.j5K8AMfx092568@freefall.freebsd.org>

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

>Number:         82434
>Category:       ports
>Synopsis:       [Patch] Fix libvisual on 4.x
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 20 08:10:22 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Michael Nottebrock
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD kiste 5.4-STABLE FreeBSD 5.4-STABLE #1: Mon Jun 6 20:56:05 CEST 2005 root@kiste:/usr/obj/usr/src/sys/KISTE-UP i386


	
>Description:
	Libvisual uses some inline assembly to optimize usage of
	special instruction sets like MMX. Unfortunately it does this
	in a way that's incompatible with gcc 2.95.
 
>How-To-Repeat:
	
>Fix:
	The patch modifies the configure script to not flag the define
	that triggers the offending code if the compiler is gcc and the
	major compiler version is lower than 3. This fixes compilation
	on FreeBSD 4.x and keeps the optimizations intact on 5.x. 

	Patch obtained from NetBSD pkgsrc.

--- libvisual.diff begins here ---
Index: files/patch-configure
===================================================================
RCS file: files/patch-configure
diff -N files/patch-configure
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-configure	20 Jun 2005 07:59:03 -0000
@@ -0,0 +1,14 @@
+--- configure.orig	Sat Jun 18 23:42:46 2005
++++ configure	Sat Jun 18 23:44:31 2005
+@@ -25450,7 +25450,11 @@
+         if test x$lv_ix86 = xyes ; then
+                 cat >>$outfile <<_______EOF
+ 
++#if defined(__GNUC__) && __GNUC__ <= 2
++#define VISUAL_ARCH_UNKNOWN
++#else
+ #define VISUAL_ARCH_X86
++#endif
+ _______EOF
+         fi
+ 
--- libvisual.diff ends here ---


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



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