From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jan 24 04:40:01 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C42AB16A421 for ; Thu, 24 Jan 2008 04:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B0F5D13C442 for ; Thu, 24 Jan 2008 04:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0O4e19s099724 for ; Thu, 24 Jan 2008 04:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0O4e15M099723; Thu, 24 Jan 2008 04:40:01 GMT (envelope-from gnats) Resent-Date: Thu, 24 Jan 2008 04:40:01 GMT Resent-Message-Id: <200801240440.m0O4e15M099723@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, Elliot Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 571DF16A468 for ; Thu, 24 Jan 2008 04:32:41 +0000 (UTC) (envelope-from elliot.schlegelmilch@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by mx1.freebsd.org (Postfix) with ESMTP id 145A613C478 for ; Thu, 24 Jan 2008 04:32:40 +0000 (UTC) (envelope-from elliot.schlegelmilch@gmail.com) Received: by py-out-1112.google.com with SMTP id u52so116800pyb.10 for ; Wed, 23 Jan 2008 20:32:40 -0800 (PST) Received: by 10.65.95.12 with SMTP id x12mr370800qbl.71.1201147580784; Wed, 23 Jan 2008 20:06:20 -0800 (PST) Received: by 10.65.231.8 with HTTP; Wed, 23 Jan 2008 20:06:20 -0800 (PST) Message-Id: Date: Wed, 23 Jan 2008 20:06:20 -0800 From: Elliot To: FreeBSD-gnats-submit@FreeBSD.org In-Reply-To: <200801232215.m0NMFWER042711@radon.periodic> References: <200801232215.m0NMFWER042711@radon.periodic> Cc: Subject: ports/119937: Fwd: fix for multimedia/handbrake in amd64 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: Thu, 24 Jan 2008 04:40:01 -0000 >Number: 119937 >Category: ports >Synopsis: fix for multimedia/handbrake in amd64 >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 24 04:40:00 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Elliot Sschlegelmilch >Release: FreeBSD 7.0-PRERELEASE amd64 >Organization: >Environment: System: FreeBSD radon.periodic 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Wed Jan 9 23:15:42 PST 2008 elliot@phatty.r00t-servers.net:/usr/obj/usr/src/sys/PHATTY amd64 >Description: Handbrake on my amd64 system did not build. I suggest adding the -j option to jam, so if the build fails, it breaks in a more expected manner. >How-To-Repeat: cd /usr/ports/multimedia/handbrake; make >Fix: --- handbrake/files/patch-contrib-Jamfile 2007-12-13 08:50: 15.000000000 -0800 +++ handbrakeworks/files/patch-contrib-Jamfile 2008-01-23 13:32: 14.000000000 -0800 @@ -22,11 +22,11 @@ - cd `dirname $(>)` && CONTRIB=`pwd` && - rm -rf a52dec && tar xzf a52dec.tar.gz && cd a52dec && patch -p1 < ../patch-a52dec.patch && - ./configure --prefix=$CONTRIB --cache-file=$CONTRIB/config.cache && make && make install && + CONTRIB=%%CONTRIB%% && + cd $CONTRIB/a52dec && patch -p1 < ../patch-a52dec.patch && -+ ./configure --prefix=$CONTRIB && $(MAKE) && $(MAKE) install && ++ ./configure --enable-shared --prefix=$CONTRIB && $(MAKE) && $(MAKE) install && strip -S $CONTRIB/lib/liba52.a } Wget $(SUBDIR)/a52dec.tar.gz : $(SUBDIR)/version_a52dec.txt ; @@ -58,14 +58,13 @@ } --- handbrake/Makefile 2008-01-17 15:30:59.000000000 -0800 +++ handbrakeworks/Makefile 2008-01-23 13:31:42.000000000 -0800 @@ -57,17 +57,18 @@ ${WRKSRC}/contrib/libvorbis/configure WRKSRC= ${WRKDIR}/HandBrake PLIST_FILES= bin/handbrake -JAM?= ${LOCALBASE}/bin/jam +JAM?= ${LOCALBASE}/bin/jam -j APPLY?= /usr/bin/apply .include .if ${ARCH} == "amd64" -BROKEN= Does not compile +#BROKEN= Does not compile +CFLAGS+=-fPIC .endif # nasm/yasm needed by x264 .if ${ARCH}=="i386" BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm ------=_Part_23718_24596335.1201147580772 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline
>Submitter-Id:  current-users
>Originator:    Elliot Sschlegelmilch
>Organization:
>Confidential:  no
>Synopsis:      fix for multimedia/handbrake in amd64
>Severity:
>Priority:      low
>Category:      ports
>Class:         sw-bug
>Release:       FreeBSD 7.0-PRERELEASE amd64
>Environment:
System: FreeBSD radon.periodic 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Wed Jan 9 23:15:42 PST 2008 elliot@phatty.r00t-servers.net:/usr/obj/usr/src/sys/PHATTY amd64

>Description:
Handbrake on my amd64 system did not build. I suggest adding the -j
option to jam, so if the build fails, it breaks in a more expected
manner.

>How-To-Repeat:
cd /usr/ports/multimedia/handbrake; make

>Fix:



--- handbrake/files/patch-contrib-Jamfile       2007-12-13 08:50:15.000000000 -0800
+++ handbrakeworks/files/patch-contrib-Jamfile  2008-01-23 13:32: 14.000000000 -0800
@@ -22,11 +22,11 @@
 -    cd `dirname $(>)` && CONTRIB=`pwd` &&
 -    rm -rf a52dec && tar xzf a52dec.tar.gz && cd a52dec && patch -p1 < ../patch-a52dec.patch &&
 -    ./configure --prefix=$CONTRIB --cache-file=$CONTRIB/config.cache && make && make install &&
 +    CONTRIB=%%CONTRIB%% &&
 +    cd $CONTRIB/a52dec && patch -p1 < ../patch- a52dec.patch &&
-+    ./configure --prefix=$CONTRIB && $(MAKE) && $(MAKE) install &&
++    ./configure --enable-shared --prefix=$CONTRIB && $(MAKE) && $(MAKE) install &&
     strip -S $CONTRIB/lib/liba52.a
 }
 Wget   $(SUBDIR)/a52dec.tar.gz : $(SUBDIR)/version_a52dec.txt ;
 @@ -58,14 +58,13 @@
 }
--- handbrake/Makefile  2008-01-17 15:30:59.000000000 -0800
+++ handbrakeworks/Makefile     2008-01-23 13:31: 42.000000000 -0800
@@ -57,17 +57,18 @@
               ${WRKSRC}/contrib/libvorbis/configure

 WRKSRC=                ${WRKDIR}/HandBrake
 PLIST_FILES=   bin/handbrake

-JAM?=          ${LOCALBASE}/bin/jam
+JAM?=          ${LOCALBASE}/bin/jam -j
 APPLY?=                /usr/bin/apply

 .include <bsd.port.pre.mk>

 .if ${ARCH} == "amd64"
-BROKEN=                Does not compile
+#BROKEN=               Does not compile
+CFLAGS+=-fPIC
 .endif

 # nasm/yasm needed by x264
 .if ${ARCH}=="i386"
 BUILD_DEPENDS+=        nasm:${PORTSDIR}/devel/nasm




------=_Part_23718_24596335.1201147580772-- >Release-Note: >Audit-Trail: >Unformatted: ------=_Part_23718_24596335.1201147580772 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline