From owner-freebsd-ports@FreeBSD.ORG Sun Nov 17 10:35:26 2013 Return-Path: Delivered-To: ports@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 ESMTPS id 245C8BA2 for ; Sun, 17 Nov 2013 10:35:26 +0000 (UTC) Received: from forward14.mail.yandex.net (forward14.mail.yandex.net [IPv6:2a02:6b8:0:801::4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CF99925E5 for ; Sun, 17 Nov 2013 10:35:25 +0000 (UTC) Received: from smtp13.mail.yandex.net (smtp13.mail.yandex.net [95.108.130.68]) by forward14.mail.yandex.net (Yandex) with ESMTP id 712E8198094D; Sun, 17 Nov 2013 14:35:12 +0400 (MSK) Received: from smtp13.mail.yandex.net (localhost [127.0.0.1]) by smtp13.mail.yandex.net (Yandex) with ESMTP id 246B9E403CD; Sun, 17 Nov 2013 14:35:12 +0400 (MSK) Received: from 46.38.32.182.tel.ru (46.38.32.182.tel.ru [46.38.32.182]) by smtp13.mail.yandex.net (nwsmtp/Yandex) with ESMTP id laNrDDmvdg-ZBeC3KnK; Sun, 17 Nov 2013 14:35:11 +0400 (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (Client certificate not present) Message-ID: <52889BDF.7010007@passap.ru> Date: Sun, 17 Nov 2013 14:35:11 +0400 From: Boris Samorodov Organization: =?UTF-8?B?0JfQkNCeICLQktCQ0KDQoiI=?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130806 Thunderbird/17.0.7 MIME-Version: 1.0 To: Eitan Adler Subject: Re: Adding WITH_DEBUG_PORTS to add WITH_DEBUG for specific ports. References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: FreeBSD Ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Nov 2013 10:35:26 -0000 17.11.2013 02:55, Eitan Adler пишет: > What do people think of something like the following? This would > allow users to compile specific ports with debugging capabilities. I vote for this change. thanks! > Index: Mk/bsd.port.mk > =================================================================== > --- Mk/bsd.port.mk (revision 333538) > +++ Mk/bsd.port.mk (working copy) > @@ -311,6 +311,8 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org > # passed to the compiler by setting DEBUG_FLAGS. It is > # set to "-g" at default. > # > +# WITH_DEBUG_PORTS - A list of origins for which > WITH_DEBUG will be set > +# > # WITH_SSP_PORTS > # - If set, SSP_FLAGS (defaults to > -fstack-protector) > # is added to CFLAGS and the necessary flags > @@ -1303,6 +1305,10 @@ MAKE_ENV+= TMPDIR="${TMPDIR}" > CONFIGURE_ENV+= TMPDIR="${TMPDIR}" > .endif # defined(TMPDIR) > > +.if defined(WITH_DEBUG_PORTS) && ${WITH_DEBUG_PORTS:M${PKGORIGIN}} > +WITH_DEBUG= yes > +.endif > + > # Reset value from bsd.own.mk. > .if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) > STRIP= #none -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve