From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Oct 11 04:20:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.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 ESMTP id C8BEAD52 for ; Fri, 11 Oct 2013 04:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A76CA2473 for ; Fri, 11 Oct 2013 04:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9B4K0Kv074377 for ; Fri, 11 Oct 2013 04:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9B4K0RK074376; Fri, 11 Oct 2013 04:20:00 GMT (envelope-from gnats) Resent-Date: Fri, 11 Oct 2013 04:20:00 GMT Resent-Message-Id: <201310110420.r9B4K0RK074376@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, Phil Oleson Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2DBF5C8A for ; Fri, 11 Oct 2013 04:12:23 +0000 (UTC) (envelope-from oz@nixil.net) Received: from nixil.net (nixil.net [161.58.222.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CC6A4243B for ; Fri, 11 Oct 2013 04:12:22 +0000 (UTC) Received: from nixil.net (localhost [127.0.0.1]) by localhost (8.14.5/8.14.5) with ESMTP id r9B3uOeb074006 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 10 Oct 2013 21:56:24 -0600 (MDT) (envelope-from oz@nixil.net) Received: (from oz@localhost) by nixil.net (8.14.5/8.14.5/Submit) id r9B3uOqA074005; Thu, 10 Oct 2013 21:56:24 -0600 (MDT) (envelope-from oz) Message-Id: <201310110356.r9B3uOqA074005@nixil.net> Date: Thu, 10 Oct 2013 21:56:24 -0600 (MDT) From: Phil Oleson To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/182893: multimedia/dv2sub - fix brokenness of package build when clang is CC X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Phil Oleson List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Oct 2013 04:20:00 -0000 >Number: 182893 >Category: ports >Synopsis: multimedia/dv2sub - fix brokenness of package build when clang is CC >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Oct 11 04:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Phil Oleson >Release: FreeBSD 6.4-RELEASE-p8 i386 >Organization: N/A >Environment: System: FreeBSD nixil.net 6.4-RELEASE-p8 FreeBSD 6.4-RELEASE-p8 #1 r101746: Mon Aug 30 10:34:40 MDT 2010 root@fc:/usr/src/sys/i386/compile/VKERN i386 >Description: The packages autoconf script can't handle clang.. >How-To-Repeat: comment out the offending autoconf code.. clang handles the build fine. >Fix: Patch attached. --- dv2sub-clang-fixit-patch begins here --- diff -ruN dv2sub.orig/Makefile dv2sub/Makefile --- dv2sub.orig/Makefile 2013-10-02 23:58:12.000000000 -0600 +++ dv2sub/Makefile 2013-10-10 21:48:44.000000000 -0600 @@ -1,9 +1,9 @@ # Created by: Phil Oleson -# $FreeBSD: head/multimedia/dv2sub/Makefile 327747 2013-09-20 20:57:48Z bapt $ +# $FreeBSD: multimedia/dv2sub/Makefile 327747 2013-09-20 20:57:48Z bapt $ PORTNAME= dv2sub PORTVERSION= 0.3 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= multimedia MASTER_SITES= SF @@ -12,6 +12,10 @@ LIB_DEPENDS= dv.4:${PORTSDIR}/multimedia/libdv + +USE_AUTOTOOLS= aclocal autoconf automake +AUTOMAKE_ARGS= -a + GNU_CONFIGURE= yes USES= pkgconfig diff -ruN dv2sub.orig/files/patch-configure.ac dv2sub/files/patch-configure.ac --- dv2sub.orig/files/patch-configure.ac 1969-12-31 17:00:00.000000000 -0700 +++ dv2sub/files/patch-configure.ac 2013-10-10 15:36:49.000000000 -0600 @@ -0,0 +1,35 @@ +--- configure.ac.orig 2007-03-05 06:26:54.000000000 -0700 ++++ configure.ac 2013-10-10 15:19:53.000000000 -0600 +@@ -30,19 +30,19 @@ + ) + + dnl Checks for typedefs, structures, and compiler characteristics. +-AC_MSG_CHECKING([whether compiler accepts some C99 extensions]) +-save_CFLAGS="$CFLAGS" +-CFLAGS="$C99MODE_FLAG" +-AC_TRY_COMPILE(, +- [void foo(void) { for(int i=0; i<10; i++) {} }], +- [AC_MSG_RESULT(yes)], +- [c99_fail=1 +- AC_MSG_RESULT(no)]) +-if test "x$c99_fail" = "x1" +-then +- AC_MSG_ERROR(ANSI/ISO C99 compiler not found or not in this mode!) +-fi +-CFLAGS="$save_CFLAGS" ++dnl AC_MSG_CHECKING([whether compiler accepts some C99 extensions]) ++dnl save_CFLAGS="$CFLAGS" ++dnl CFLAGS="$C99MODE_FLAG" ++dnl AC_TRY_COMPILE(, ++dnl [void foo(void) { for(int i=0; i<10; i++) {} }], ++dnl [AC_MSG_RESULT(yes)], ++dnl [c99_fail=1 ++dnl AC_MSG_RESULT(no)]) ++dnl if test "x$c99_fail" = "x1" ++dnl then ++dnl AC_MSG_ERROR(ANSI/ISO C99 compiler not found or not in this mode!) ++dnl fi ++dnl CFLAGS="$save_CFLAGS" + + dnl Arrange for large-file support + AC_SYS_LARGEFILE --- dv2sub-clang-fixit-patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: