From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jun 20 08:10:22 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCB1C16A41C for ; Mon, 20 Jun 2005 08:10:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A36943D48 for ; Mon, 20 Jun 2005 08:10:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j5K8AMxr092569 for ; Mon, 20 Jun 2005 08:10:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j5K8AMfx092568; Mon, 20 Jun 2005 08:10:22 GMT (envelope-from gnats) Resent-Date: Mon, 20 Jun 2005 08:10:22 GMT Resent-Message-Id: <200506200810.j5K8AMfx092568@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Michael Nottebrock Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78D4E16A41C for ; Mon, 20 Jun 2005 08:05:20 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0247843D1F for ; Mon, 20 Jun 2005 08:05:19 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-04-z2.arcor-online.net (mail-in-04-z2.arcor-online.net [151.189.8.16]) by mail-in-08.arcor-online.net (Postfix) with ESMTP id 0C15F5017F for ; Mon, 20 Jun 2005 10:05:19 +0200 (CEST) Received: from mail-in-03.arcor-online.net (mail-in-05.arcor-online.net [151.189.21.45]) by mail-in-04-z2.arcor-online.net (Postfix) with ESMTP id 7504C10143B for ; Mon, 20 Jun 2005 10:05:18 +0200 (CEST) Received: from lofi.dyndns.org (dsl-213-023-192-129.arcor-ip.net [213.23.192.129]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id 50BB931FC9 for ; Mon, 20 Jun 2005 10:05:18 +0200 (CEST) Received: from kiste.my.domain (root@kiste.my.domain [192.168.8.4]) by lofi.dyndns.org (8.13.3/8.13.3) with ESMTP id j5K85GC7023442 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 20 Jun 2005 10:05:16 +0200 (CEST) (envelope-from lofi@freebsd.org) Received: from kiste.my.domain (lofi@localhost [127.0.0.1]) by kiste.my.domain (8.13.1/8.13.1) with ESMTP id j5K85GQt052020 for ; Mon, 20 Jun 2005 10:05:16 +0200 (CEST) (envelope-from lofi@kiste.my.domain) Received: (from lofi@localhost) by kiste.my.domain (8.13.1/8.13.1/Submit) id j5K85Guf052019; Mon, 20 Jun 2005 10:05:16 +0200 (CEST) (envelope-from lofi) Message-Id: <200506200805.j5K85Guf052019@kiste.my.domain> Date: Mon, 20 Jun 2005 10:05:16 +0200 (CEST) From: Michael Nottebrock To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/82434: [Patch] Fix libvisual on 4.x X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2005 08:10:23 -0000 >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: