From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Sep 22 08:40:02 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13DA91065675 for ; Wed, 22 Sep 2010 08:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E42188FC18 for ; Wed, 22 Sep 2010 08:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o8M8e1Di023537 for ; Wed, 22 Sep 2010 08:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o8M8e1c5023536; Wed, 22 Sep 2010 08:40:01 GMT (envelope-from gnats) Resent-Date: Wed, 22 Sep 2010 08:40:01 GMT Resent-Message-Id: <201009220840.o8M8e1c5023536@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, Anonymous Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF69B1065674 for ; Wed, 22 Sep 2010 08:33:35 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 76FF38FC0C for ; Wed, 22 Sep 2010 08:33:35 +0000 (UTC) Received: by iwn34 with SMTP id 34so422312iwn.13 for ; Wed, 22 Sep 2010 01:33:34 -0700 (PDT) Received: by 10.231.11.66 with SMTP id s2mr2846510ibs.167.1285144414809; Wed, 22 Sep 2010 01:33:34 -0700 (PDT) Received: from localhost (tor-exit-proxy7-readme.formlessnetworking.net [208.53.142.43]) by mx.google.com with ESMTPS id n20sm10222889ibe.11.2010.09.22.01.33.32 (version=SSLv3 cipher=RC4-MD5); Wed, 22 Sep 2010 01:33:34 -0700 (PDT) Message-Id: <86hbhimbdp.fsf@gmail.com> Date: Wed, 22 Sep 2010 12:27:14 +0400 From: Anonymous To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/150854: [patch] ftp/curl: respect -g[0-3] and -O[0-4] in CFLAGS X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2010 08:40:02 -0000 >Number: 150854 >Category: ports >Synopsis: [patch] ftp/curl: respect -g[0-3] and -O[0-4] in CFLAGS >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: Wed Sep 22 08:40:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Anonymous >Release: FreeBSD 9.0-CURRENT amd64 >Organization: >Environment: >Description: Don't override DEBUG_FLAGS either added via WITH_DEBUG or manually, i.e. remove -g0 for WITHOUT_CURL_DEBUG and -g for WITH_CURL_DEBUG. And erase -O2 from flags_opt_yes in case CFLAGS doesn't have -O2. >How-To-Repeat: $ export WITH_DEBUG= DEBUG_FLAGS=-g3 $ make -V CFLAGS -pipe -g3 $ make ... libtool: compile: cc -DHAVE_CONFIG_H -I../include/curl -I../include -I../include -I../lib -I../lib -I/usr/local/include -I/usr/include/openssl -I/usr/local/include -pipe -g0 -O2 -Wno-system-headers -Werror -MT http.lo -MD -MP -MF .deps/http.Tpo -c http.c -fPIC -DPIC -o http.o >/dev/null 2>&1 Neither -g0 nor -O2 is present in CFLAGS. >Fix: --- a.diff begins here --- Index: ftp/curl/Makefile =================================================================== RCS file: /a/.cvsup/ports/ftp/curl/Makefile,v retrieving revision 1.110 diff -u -p -r1.110 Makefile --- ftp/curl/Makefile 12 Sep 2010 21:05:47 -0000 1.110 +++ ftp/curl/Makefile 22 Sep 2010 05:35:52 -0000 @@ -221,6 +221,10 @@ DOCS= BINDINGS BUGS CONTRIBUTE DISTRO-D curl-config.html curl-config.pdf curl.html curl.pdf \ index.html +post-patch: .SILENT + ${REINPLACE_CMD} -Ee 's/(flags_(dbg|opt)_[^=]*)=".*"/\1=""/' \ + ${WRKSRC}/configure + post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} --- a.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: