From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Feb 25 19:32:17 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AEEDAF2B; Tue, 25 Feb 2014 19:32:17 +0000 (UTC) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 64B491089; Tue, 25 Feb 2014 19:32:16 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 39F6F1E007BB; Tue, 25 Feb 2014 20:25:11 +0100 (CET) Received: from enceladus10.kn-bremen.de (noident@localhost [127.0.0.1]) by enceladus10.kn-bremen.de (8.14.5/8.14.5) with ESMTP id s1PJNSKL086008; Tue, 25 Feb 2014 20:23:28 +0100 (CET) (envelope-from nox@enceladus10.kn-bremen.de) Received: (from nox@localhost) by enceladus10.kn-bremen.de (8.14.5/8.14.5/Submit) id s1PJNS7v086007; Tue, 25 Feb 2014 20:23:28 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Tue, 25 Feb 2014 20:23:28 +0100 To: truckman@FreeBSD.org Subject: Re: ports/187017: [patch] multimedia/libxine port fails during configure with clang 3.4 Message-ID: <20140225192328.GA85985@enceladus10.kn-bremen.de> References: <201402250540.s1P5e8VH094020@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: <201402250540.s1P5e8VH094020@freefall.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-ports-bugs@FreeBSD.org, bug-followup@FreeBSD.org X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Feb 2014 19:32:17 -0000 --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Can you try the attached patch? I don't have a head box to test it... Thanx! :) Juergen --YiEDa0DAkWCtVeE4 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="libxine-clang34.patch" Index: multimedia/libxine/Makefile =================================================================== --- multimedia/libxine/Makefile (revision 346054) +++ multimedia/libxine/Makefile (working copy) @@ -37,7 +37,7 @@ BUILD_DEPENDS+= v4l_compat>=1.0.20100321:${PORTSDI LIB_DEPENDS+= libdvdcss.so.${DVDCSS_LIBVERSION}:${PORTSDIR}/multimedia/libdvdcss .endif -USES= gmake iconv pathfix perl5 pkgconfig +USES= gmake iconv pathfix perl5 pkgconfig compiler:features USE_XZ= yes GNU_CONFIGURE= yes WANT_GNOME= yes @@ -51,7 +51,7 @@ CONFIGURE_ENV= THREAD_CFLAGS="${PTHREAD_CFLAGS}" \ EXTRA_X_LIBS="-lGL -lGLU -lXext -lX11 -lm" CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/ffmpeg LDFLAGS+= -L${LOCALBASE}/lib -CFLAGS+= -fno-force-addr -I${LOCALBASE}/include -I${LOCALBASE}/include/dvdread -I${LOCALBASE}/include/ffmeg +CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/dvdread -I${LOCALBASE}/include/ffmeg CONFIGURE_ARGS= --with-w32-path=${LOCALBASE}/lib/win32 \ --enable-ipv6 \ --with-external-libmad \ @@ -79,8 +79,12 @@ DVDCSS_LIBVERSION= 3 PATCH_DIST_ARGS= -d ${WRKSRC} -p1 --forward --quiet -.include +.include +.if ${COMPILER_TYPE} != "clang" +CFLAGS+= -fno-force-addr +.endif + .if ${ARCH} == "i386" CFLAGS+= -fomit-frame-pointer .endif @@ -222,6 +226,10 @@ CONFIGURE_ARGS+= --disable-vidix .endif post-patch: +.if ${COMPILER_TYPE} == "clang" + @${REINPLACE_CMD} -e 's|-fno-rename-registers||' \ + ${WRKSRC}/src/libw32dll/wine/Makefile.in +.endif .if ${PORT_OPTIONS:MVAAPI} @${REINPLACE_CMD} -e 's|-ldl||' \ ${WRKSRC}/src/video_out/Makefile.in @@ -258,4 +266,4 @@ pre-configure: s|{libdir}/pkgconfig|{prefix}/libdata/pkgconfig|g' \ ${WRKSRC}/configure -.include +.include --YiEDa0DAkWCtVeE4--