Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jun 2003 21:38:16 +0200 (CEST)
From:      Hendrik Scholz <hendrik@scholz.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        lioux@FreeBSD.org
Subject:   ports/53418: port-upgrade: multimedia/linux-divx4plugin (fix broken header files)
Message-ID:  <200306171938.h5HJcGnk095369@goanna.lan.raisdorf.net>
Resent-Message-ID: <200306171950.h5HJoE6B097168@freefall.freebsd.org>

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

>Number:         53418
>Category:       ports
>Synopsis:       port-upgrade: multimedia/linux-divx4plugin (fix broken header files)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 17 12:50:13 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Hendrik Scholz
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
NetUSE AG
>Environment:
System: FreeBSD goanna.lan.raisdorf.net 5.1-RELEASE FreeBSD 5.1-RELEASE #4: Sat Jun 7 12:12:29 CEST 2003 hscholz@goanna.lan.raisdorf.net:/usr/src/sys/i386/compile/GOANNA i386


	
>Description:
This is an update of linux-divx4 to the latest version which allows
correct usage of the header files.

>How-To-Repeat:

Try to use decore.h or encore.h, i.e. using the latest transcode from cvs
including DivX 5 support:

configure:19047: cc -c -I/compat/linux/usr/include/divx -O -pipe -mcpu=pentiumpro -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  conftest.c >&5
In file included from configure:19159:
/compat/linux/usr/include/divx/decore.h:31:1: warning: "BIG_ENDIAN" redefined
In file included from /usr/include/sys/types.h:48,
                 from configure:19127: 
/usr/include/machine/endian.h:65:1: warning: this is the location of the previous definition

decore.h contains at line 30:

#if ( (! defined (WIN32)) && (! defined (LINUX)) )
#define BIG_ENDIAN
#endif

This definition is obviously broken since there are non big-endian machines
out there not running Windows or Linux :)

>Fix:

Upgrade the port (the definitions in decore.h and encore.h have been removed)
or add two patches to disable the broken cpp blocks to the current port.

	

--- linux-divx4linux-5.0.20030428.patch begins here ---
diff -u linux-divx4linux-5.0.20020418/Makefile linux-divx4linux/Makefile
--- linux-divx4linux-5.0.20020418/Makefile	Tue Jun 17 21:07:35 2003
+++ linux-divx4linux/Makefile	Tue Jun 17 21:23:19 2003
@@ -10,8 +10,7 @@
 CATEGORIES=	multimedia linux
 MASTER_SITES=	http://download.divx.com/divx/
 PKGNAMEPREFIX=	linux-
-DISTNAME=	${PORTNAME}501-${RELEASE_DATE}
-EXTRACT_SUFX=	.tgz
+DISTNAME=	${PORTNAME}-std-${RELEASE_DATE}
 
 MAINTAINER=	lioux@FreeBSD.org
 COMMENT=	Linux binary release of DivX (TM) Codec
@@ -21,12 +20,12 @@
 ONLY_FOR_ARCHS=	i386
 USE_REINPLACE=	yes
 USE_LINUX_PREFIX=	yes
-WRKSRC=	${WRKDIR}/${DISTNAME:S/501-/-/}
+WRKSRC=	${WRKDIR}/${PORTNAME}-${RELEASE_DATE}
 NO_BUILD=	yes
 PLIST_SUB=	PKGNAME="${PKGNAME}"
 
-DOC_EXT=	htm linux txt
-RELEASE_DATE=	20020418
+DOC_EXT=	htm
+RELEASE_DATE=	20030428
 
 post-patch:
 .for ext in ${DOC_EXT}
diff -u linux-divx4linux-5.0.20020418/distinfo linux-divx4linux/distinfo
--- linux-divx4linux-5.0.20020418/distinfo	Tue Jun 17 21:07:35 2003
+++ linux-divx4linux/distinfo	Tue Jun 17 21:12:44 2003
@@ -1 +1 @@
-MD5 (divx4linux501-20020418.tgz) = 936df07d3ff88b486778a2150f910fc0
+MD5 (divx4linux-std-20030428.tar.gz) = 6332d98ad949a40c588681acbf4078f4
diff -u linux-divx4linux-5.0.20020418/pkg-plist linux-divx4linux/pkg-plist
--- linux-divx4linux-5.0.20020418/pkg-plist	Tue Jun 17 21:07:35 2003
+++ linux-divx4linux/pkg-plist	Tue Jun 17 21:24:11 2003
@@ -1,6 +1,4 @@
 %%PORTDOCS%%usr/doc/%%PKGNAME%%/DivX MPEG-4 Codec and Its Interface.htm
-%%PORTDOCS%%usr/doc/%%PKGNAME%%/README.linux
-%%PORTDOCS%%usr/doc/%%PKGNAME%%/license.txt
 usr/include/divx/decore.h
 usr/include/divx/encore2.h
 usr/lib/libdivxdecore.so
--- linux-divx4linux-5.0.20030428.patch ends here ---


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



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