From michaelnottebrock@gmx.net  Sun Aug 29 14:58:33 2004
Return-Path: <michaelnottebrock@gmx.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 8BF2C16A4D1; Sun, 29 Aug 2004 14:58:33 +0000 (GMT)
Received: from meitner.wh.uni-dortmund.de (meitner.wh.uni-dortmund.de [129.217.129.133])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id DB95F43D45; Sun, 29 Aug 2004 14:58:32 +0000 (GMT)
	(envelope-from michaelnottebrock@gmx.net)
Received: from lofi.dyndns.org (pc2-105.intern.meitner [10.3.12.105])
	by meitner.wh.uni-dortmund.de (Postfix) with ESMTP
	id C69821674DE; Sun, 29 Aug 2004 16:58:31 +0200 (CEST)
Received: from kiste.my.domain (root@kiste.my.domain [192.168.8.4])
	by lofi.dyndns.org (8.12.10/8.12.10) with ESMTP id i7TEwU7O094207
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Sun, 29 Aug 2004 16:58:30 +0200 (CEST)
	(envelope-from michaelnottebrock@gmx.net)
Received: from kiste.my.domain (lofi@localhost [127.0.0.1])
	by kiste.my.domain (8.13.1/8.13.1) with ESMTP id i7TEwS7L038119;
	Sun, 29 Aug 2004 16:58:28 +0200 (CEST)
	(envelope-from lofi@kiste.my.domain)
Received: (from lofi@localhost)
	by kiste.my.domain (8.13.1/8.13.1/Submit) id i7TEwR48038118;
	Sun, 29 Aug 2004 16:58:27 +0200 (CEST)
	(envelope-from lofi)
Message-Id: <200408291458.i7TEwR48038118@kiste.my.domain>
Date: Sun, 29 Aug 2004 16:58:27 +0200 (CEST)
From: Michael Nottebrock <michaelnottebrock@gmx.net>
Reply-To: Michael Nottebrock <michaelnottebrock@gmx.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: nobutaka@freebsd.org
Subject: libxine fails to recognise/decode xvid-encoded video if compiled with gcc 3.4
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         71105
>Category:       ports
>Synopsis:       libxine fails to recognise/decode xvid-encoded video if compiled with gcc 3.4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    nobutaka
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 29 15:00:40 GMT 2004
>Closed-Date:    Thu Sep 16 09:19:53 GMT 2004
>Last-Modified:  Thu Sep 16 09:19:53 GMT 2004
>Originator:     Michael Nottebrock
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD kiste 5.2-CURRENT FreeBSD 5.2-CURRENT #2: Wed Aug 11 18:49:54 CEST 2004 
root@kiste:/usr/obj/usr/src/sys/KISTE-UP i386


        
>Description:

        libxine fails to recognise/decode video files encoded with xvid if
        compiled with gcc 3.4. The xine frontend will pop up an error dialog,
        saying video the format is not recognized, other frontends like
	kaffeine will just display no video and play audio-only.
        libxine compiled with gcc 3.3 or earlier will recognise and decode the
	video.

>How-To-Repeat:
        Compile libxine on 5-CURRENT with OSVERSION 502123 or higher (or
	6-CURRENT).
        Install a frontend (xine, kaffeine).
        Fetch http://people.freebsd.org/~lofi/test.avi and try to play it.
        Apply patch attached to this PR to the port, recompile libxine and try
	again.

>Fix:

        Force compilation of libxine with gcc 3.3, patch below. Again, this
	is more of a stop-gap than a real fix, but given that ports-freeze for
	5.3-RELEASE starts in less than a week, it's better than having a broken
	libxine distributed.

	Note that USE_GCC can NOT be used - it's ignored on recent 5.2-C, 5.3
	and 6.0 FreeBSD.

--- libxine.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/multimedia/libxine/Makefile,v
retrieving revision 1.66
diff -u -r1.66 Makefile
--- Makefile	25 Aug 2004 13:39:34 -0000	1.66
+++ Makefile	29 Aug 2004 14:54:39 -0000
@@ -51,6 +51,12 @@
 
 .include <bsd.port.pre.mk>
 
+# GCC 3.4 breaks xvid decoder
+.if ${OSVERSION} > 502123
+BUILD_DEPENDS+=	gcc33:${PORTSDIR}/lang/gcc33
+CC=		gcc33
+.endif
+
 # PRId64, INT16_MAX macro are not defined
 .if ${OSVERSION} < 500040
 EXTRA_PATCHES=	${PATCHDIR}/extra-patch-config.h.in
--- libxine.diff ends here ---


>Release-Note:
>Audit-Trail:

Oops, wrong OSVERSION in the patch and How-To-Repeat section, should be 501124. New
patch below.

--- libxine.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/multimedia/libxine/Makefile,v
retrieving revision 1.66
diff -u -r1.66 Makefile
--- Makefile	25 Aug 2004 13:39:34 -0000	1.66
+++ Makefile	29 Aug 2004 15:07:55 -0000
@@ -51,6 +51,12 @@
 
 .include <bsd.port.pre.mk>
 
+# GCC 3.4 breaks xvid decoder
+.if ${OSVERSION} > 502124
+BUILD_DEPENDS+=	gcc33:${PORTSDIR}/lang/gcc33
+CC=		gcc33
+.endif
+
 # PRId64, INT16_MAX macro are not defined
 .if ${OSVERSION} < 500040
 EXTRA_PATCHES=	${PATCHDIR}/extra-patch-config.h.in
--- libxine.diff ends here ---

Responsible-Changed-From-To: freebsd-ports-bugs->nobutaka 
Responsible-Changed-By: lofi 
Responsible-Changed-When: Sun Aug 29 15:17:47 GMT 2004 
Responsible-Changed-Why:  
Over to maintainer. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=71105 
State-Changed-From-To: open->closed 
State-Changed-By: nobutaka 
State-Changed-When: Thu Sep 16 09:19:12 GMT 2004 
State-Changed-Why:  
Fixed, thanks! 

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