From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Aug 10 11: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 EC9107F6 for ; Sat, 10 Aug 2013 11: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 CC310264B for ; Sat, 10 Aug 2013 11: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 r7ABK0uI075398 for ; Sat, 10 Aug 2013 11: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 r7ABK067075387; Sat, 10 Aug 2013 11:20:00 GMT (envelope-from gnats) Resent-Date: Sat, 10 Aug 2013 11:20:00 GMT Resent-Message-Id: <201308101120.r7ABK067075387@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, Guido Falsi 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 C26C97D5 for ; Sat, 10 Aug 2013 11:19:05 +0000 (UTC) (envelope-from mad@micro.madpilot.net) Received: from micro.madpilot.net (micro.madpilot.net [88.149.173.206]) by mx1.freebsd.org (Postfix) with ESMTP id 2B2E82637 for ; Sat, 10 Aug 2013 11:19:04 +0000 (UTC) Received: from micro.madpilot.net (localhost [127.0.0.1]) by micro.madpilot.net (Postfix) with ESMTP id 3cC0xd58y3z2hT for ; Sat, 10 Aug 2013 13:11:17 +0200 (CEST) Received: from micro.madpilot.net ([127.0.0.1]) by micro.madpilot.net (micro.madpilot.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id tgO8joB6zOtZ for ; Sat, 10 Aug 2013 13:11:14 +0200 (CEST) Received: by micro.madpilot.net (Postfix, from userid 1000) id 3cC0xZ5KKtz2hS; Sat, 10 Aug 2013 13:11:14 +0200 (CEST) Message-Id: <3cC0xZ5KKtz2hS@micro.madpilot.net> Date: Sat, 10 Aug 2013 13:11:14 +0200 (CEST) From: Guido Falsi To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/181211: [patch] audio/easytag: Fix build with latest clang in base X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Guido Falsi List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Aug 2013 11:20:01 -0000 >Number: 181211 >Category: ports >Synopsis: [patch] audio/easytag: Fix build with latest clang in base >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Aug 10 11:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Guido Falsi >Release: FreeBSD 9.1-STABLE amd64 >Organization: none >Environment: System: FreeBSD micro.madpilot.net 9.1-STABLE FreeBSD 9.1-STABLE #21 r252026: Thu Jun 20 16:27:06 CEST 2013 root@micro.madpilot.net:/usr/obj/usr/src/sys/MICRO amd64 >Description: Easytag fails to build on recent current with clang: http://beefy1.isc.freebsd.org/bulk/head-default/2013-08-07_18h21m15s/logs/easytag-2.1.8_1.log Attached patch makes it compile. Disabling the check for format strings in that source file should be safe here, since all format strings coming into the wrapper function Log_Print() are generated oor hardcoded in the other sourcefiles anyway. While here I also added options support, update LIB_DEPENDS to the new format and converted to USES=gmake. >How-To-Repeat: >Fix: Index: Makefile =================================================================== --- Makefile (revision 324471) +++ Makefile (working copy) @@ -10,18 +10,17 @@ MAINTAINER= novel@FreeBSD.org COMMENT= GTK2 Tag editor for MP3 and OGG files -LIB_DEPENDS= id3:${PORTSDIR}/audio/id3lib \ - id3tag:${PORTSDIR}/audio/libid3tag \ - vorbis:${PORTSDIR}/audio/libvorbis \ - FLAC:${PORTSDIR}/audio/flac \ - mp4v2:${PORTSDIR}/multimedia/mp4v2 +LIB_DEPENDS= libid3.so:${PORTSDIR}/audio/id3lib \ + libid3tag.so:${PORTSDIR}/audio/libid3tag \ + libvorbis.so:${PORTSDIR}/audio/libvorbis \ + libFLAC.so:${PORTSDIR}/audio/flac \ + libmp4v2.so:${PORTSDIR}/multimedia/mp4v2 MAN1= easytag.1 CONFLICTS= easytag-devel-[0-9]* USE_XZ= yes -USES= gettext -USE_GMAKE= yes +USES= gettext gmake USE_GNOME= gnomehack gnomeprefix gtk20 desktopfileutils INSTALLS_ICONS= yes GNU_CONFIGURE= yes @@ -28,7 +27,11 @@ CPPFLAGS+= -I${LOCALBASE}/include -DHAVE_GTK LDFLAGS+= -L${LOCALBASE}/lib -.if defined(WITH_WAVPACK) +OPTIONS_DEFINE= WAVPACK + +.include + +.if ${PORT_OPTIONS:MWAVPACK} LIB_DEPENDS+= wavpack:${PORTSDIR}/audio/wavpack CONFIGURE_ARGS+= --enable-wavpack .else Index: files/patch-src-log.c =================================================================== --- files/patch-src-log.c (revision 0) +++ files/patch-src-log.c (working copy) @@ -0,0 +1,14 @@ +--- src/log.c.orig 2013-02-05 23:42:37.000000000 +0100 ++++ src/log.c 2013-08-07 10:52:19.934047139 +0200 +@@ -39,6 +39,11 @@ + #include "win32/win32dep.h" + #endif /* G_OS_WIN32 */ + ++/* Disable -Wformat-nonliteral warning for this source file, since ++** all calls have safe format strings coming. */ ++#ifdef __clang__ ++#pragma clang diagnostic ignored "-Wformat-nonliteral" ++#endif + + /**************** + * Declarations * Property changes on: files/patch-src-log.c ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property >Release-Note: >Audit-Trail: >Unformatted: