From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Aug 28 14:40:02 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org 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 7F664B87 for ; Wed, 28 Aug 2013 14:40:02 +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 5F0E52BFA for ; Wed, 28 Aug 2013 14:40:02 +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 r7SEe2Re019082 for ; Wed, 28 Aug 2013 14:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7SEe2CE019081; Wed, 28 Aug 2013 14:40:02 GMT (envelope-from gnats) Resent-Date: Wed, 28 Aug 2013 14:40:02 GMT Resent-Message-Id: <201308281440.r7SEe2CE019081@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, Boris Samorodov 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 A9E159C5 for ; Wed, 28 Aug 2013 14:37:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7E1AA2BA9 for ; Wed, 28 Aug 2013 14:37:00 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7SEb0AA020399 for ; Wed, 28 Aug 2013 14:37:00 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7SEb0th020396; Wed, 28 Aug 2013 14:37:00 GMT (envelope-from nobody) Message-Id: <201308281437.r7SEb0th020396@oldred.freebsd.org> Date: Wed, 28 Aug 2013 14:37:00 GMT From: Boris Samorodov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/181619: [patch] x11-wm/fluxconf: fix build with clang, add LICENSE and some more X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Aug 2013 14:40:02 -0000 >Number: 181619 >Category: ports >Synopsis: [patch] x11-wm/fluxconf: fix build with clang, add LICENSE and some more >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: Wed Aug 28 14:40:02 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Boris Samorodov >Release: FreeBSD 10.0-CURRENT >Organization: BSDprint >Environment: FreeBSD bsam.int.wart.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #36 r254961: Wed Aug 28 02:04:00 SAMT 2013 bsam@bsam.int.wart.ru:/usr/obj/usr/src/sys/BB64X amd64 >Description: The port does not build with clang: ----- fluxconf.c:244:13: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] _("Now you must restart fluxbox (using the root menu, not killing X). Don't forget to press \"Let fluxbox change the conf\" before exiting.")); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/defines.h:4:19: note: expanded from macro '_' #define _(String) g_locale_to_utf8(gettext (String),strlen(gettext(String)),0,0,0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. ----- >How-To-Repeat: >Fix: . fix build with clang (CFLAGS+=-Wno-error); . add LICENSE (GPLv2), bump PORTREVISION; . trim headers; . reword COMMENT; . NOPORTDOCS -> PORT_OPTIONS:MDOCS; . use one line install instead of an if loop. Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (revision 325431) +++ Makefile (working copy) @@ -1,21 +1,20 @@ -# Ports collection Makefile for: fluxconf -# Date created: 29/04/2002 -# Whom: hendrik@scholz.net -# +# Created by: hendrik@scholz.net # $FreeBSD$ -# PORTNAME= fluxconf PORTVERSION= 0.9.9 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= x11-wm MASTER_SITES= http://devaux.fabien.free.fr/flux/ MAINTAINER= alfredoj69@gmail.com -COMMENT= A configuration program for the fluxbox window manager +COMMENT= Fluxbox window manager configuration program +LICENSE= GPLv2 + USE_GNOME= gtk20 GNU_CONFIGURE= yes +CFLAGS+= -Wno-error PORTDOCS= fluxconf.png fluxkeys.png fluxmenu.png index.html PLIST_FILES= bin/fluxbare bin/fluxconf bin/fluxkeys bin/fluxmenu \ @@ -22,12 +21,14 @@ share/locale/fi/LC_MESSAGES/fluxconf.mo \ share/locale/fr/LC_MESSAGES/fluxconf.mo +OPTIONS_DEFINE= DOCS + +.include + post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} -.for file in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/docs/${file} ${DOCSDIR} -.endfor + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/docs/,} ${DOCSDIR} .endif .include >Release-Note: >Audit-Trail: >Unformatted: