Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Apr 2013 17:06:32 +0100 (BST)
From:      Chris Rees <crees@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/178198: Fix port: ports-mgmt/pkg build fails with Werror
Message-ID:  <20130427160632.256CC1EA61@pegasus.bayofrum.net>
Resent-Message-ID: <201304271610.r3RGA088008280@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         178198
>Category:       ports
>Synopsis:       Fix port: ports-mgmt/pkg build fails with Werror
>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 Apr 27 16:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Chris Rees
>Release:        FreeBSD 9.1-STABLE amd64
>Organization:
>Environment:
System: FreeBSD pegasus.bayofrum.net 9.1-STABLE FreeBSD 9.1-STABLE #0 r247189: Sat Feb 23 15:20:18 GMT 2013 root@pegasus.bayofrum.net:/usr/obj/usr/home/crees/workspace/src/stable/9/sys/PEGASUS amd64


	
>Description:
	On head with clang 3.2, pkg fails on style warnings;

	http://www.bayofrum.net/~crees/scratch/pkg-1.0.11.log
>How-To-Repeat:
	
>Fix:

	I tracked it down to bsd.sys.mk, which accepts NO_WERROR as a makevar.

--- pkg-Werror.diff begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 316666)
+++ Makefile	(working copy)
@@ -22,7 +22,7 @@
 MANCOMPRESSED=	yes
 
 MAKE_ENV+=	WITHOUT_PROFILE=yes __MAKE_CONF=/dev/null SRCCONF=/dev/null \
-		PORTREVISION=${PORTREVISION}
+		NO_WERROR=yes PORTREVISION=${PORTREVISION}
 USE_STAGE=	yes
 # Use a submake as 'deinstall install' needs to reevaluate PKG_CMD
 # so that pkg-static is used from the wrkdir
--- pkg-Werror.diff ends here ---



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130427160632.256CC1EA61>