NetBSD Problem Report #45320

From osa@nbsd5.FreeBSD.ORG.ru  Thu Sep  1 09:09:35 2011
Return-Path: <osa@nbsd5.FreeBSD.ORG.ru>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 16C9F63BBA1
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  1 Sep 2011 09:09:35 +0000 (UTC)
Message-Id: <20110901085050.18133CAB82@nbsd5.FreeBSD.ORG.ru>
Date: Thu,  1 Sep 2011 12:50:50 +0400 (MSD)
From: osa@FreeBSD.ORG
Reply-To: osa@FreeBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: [PATCH] remove needless code for google perftools
X-Send-Pr-Version: 3.95

>Number:         45320
>Category:       pkg
>Synopsis:       [PATCH] remove needless code for google perftools
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    joerg
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 01 09:10:00 +0000 2011
>Last-Modified:  Thu Sep 01 09:35:11 +0000 2011
>Originator:     Sergey A. Osokin
>Release:        NetBSD 5.1
>Organization:
n/a
>Environment:


System: NetBSD nbsd5.FreeBSD.ORG.ru 5.1 NetBSD 5.1 (GENERIC) #0: Sun Nov 7 14:39:56 UTC 2010 builds@b6.netbsd.org:/home/builds/ab/netbsd-5-1-RELEASE/i386/201011061943Z-obj/home/builds/ab/netbsd-5-1-RELEASE/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
	Remove needless code for google perftools.  Otherwise depends on port of
	google-perftools (http://code.google.com/p/google-perftools/) require.

>How-To-Repeat:

$ make PKG_OPTIONS.nginx="inet6 pcre ssl gtools" configure
...
checking for PCRE library ... found
checking for OpenSSL library ... found
checking for zlib library ... found
checking for Google perftools ... not found
checking for Google perftools in /usr/local/ ... not found

./configure: error: the Google perftool module requires the Google perftools
library. You can either do not enable the module or install the library.

*** Error code 1

Stop.

>Fix:

Index: pkgsrc/www/nginx/options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/www/nginx/options.mk,v
retrieving revision 1.10
diff -u -r1.10 options.mk
--- pkgsrc/www/nginx/options.mk	27 Jun 2010 18:00:24 -0000	1.10
+++ pkgsrc/www/nginx/options.mk	1 Sep 2011 08:43:37 -0000
@@ -1,7 +1,7 @@
 # $NetBSD: options.mk,v 1.10 2010/06/27 18:00:24 joerg Exp $

 PKG_OPTIONS_VAR=	PKG_OPTIONS.nginx
-PKG_SUPPORTED_OPTIONS=	dav flv gtools inet6 mail-proxy memcache pcre \
+PKG_SUPPORTED_OPTIONS=	dav flv inet6 mail-proxy memcache pcre \
 			push realip ssl sub uwsgi
 PKG_SUGGESTED_OPTIONS=	pcre ssl

@@ -34,10 +34,6 @@
 CONFIGURE_ARGS+=	--with-http_sub_module
 .endif

-.if !empty(PKG_OPTIONS:Mgtools)
-CONFIGURE_ARGS+=	--with-google_perftools_module
-.endif
-
 .if !empty(PKG_OPTIONS:Mmail-proxy)
 CONFIGURE_ARGS+=	--with-mail
 .endif

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Thu, 01 Sep 2011 09:35:11 +0000
Responsible-Changed-Why:
Over to maintainer.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.