From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Mar 10 11:00:20 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 53914106578E for ; Wed, 10 Mar 2010 11:00:20 +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 881DD8FC37 for ; Wed, 10 Mar 2010 11:00:16 +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 o2AB0GTA014464 for ; Wed, 10 Mar 2010 11:00:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2AB0GqK014460; Wed, 10 Mar 2010 11:00:16 GMT (envelope-from gnats) Resent-Date: Wed, 10 Mar 2010 11:00:16 GMT Resent-Message-Id: <201003101100.o2AB0GqK014460@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, "Dmitry S. Luhtionov" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FBA91065670 for ; Wed, 10 Mar 2010 10:58:31 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 3E4C78FC0A for ; Wed, 10 Mar 2010 10:58:31 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o2AAwURW021130 for ; Wed, 10 Mar 2010 10:58:30 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o2AAwUaZ021129; Wed, 10 Mar 2010 10:58:30 GMT (envelope-from nobody) Message-Id: <201003101058.o2AAwUaZ021129@www.freebsd.org> Date: Wed, 10 Mar 2010 10:58:30 GMT From: "Dmitry S. Luhtionov" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/144617: [PATCH] net-mgmt/docsis: Fix build on systems where GCC stack protection was enabled for userland 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, 10 Mar 2010 11:00:20 -0000 >Number: 144617 >Category: ports >Synopsis: [PATCH] net-mgmt/docsis: Fix build on systems where GCC stack protection was enabled for userland >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 Mar 10 11:00:16 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Dmitry S. Luhtionov >Release: 8.0-STABLE i386 >Organization: >Environment: FreeBSD m18.cabletv.dp.ua 8.0-STABLE FreeBSD 8.0-STABLE #0: Mon Mar 1 15:40:45 EET 2010 mitya@m18.cabletv.dp.ua:/usr/src/sys/i386/compile/m18 i386 >Description: - Fix build on systems (FreeBSD 8+) where GCC stack protection (aka Propolice) was enabled for userland on src/share/mk/bsd.sys.mk (SVN rev 180012 on 2008-06-25 21:33:28Z by ru) - For OSVERSION >= 800040, add -fstack-protector to LDFLAGS >How-To-Repeat: >Fix: Patch attached with submission follows: --- Makefile 2009-08-23 17:33:57.000000000 +0300 +++ Makefile 2010-03-10 12:52:49.000000000 +0200 @@ -27,4 +27,13 @@ @${REINPLACE_CMD} -e 's|^htmldocdir =.*|htmldocdir = ${DOCSDIR}|' ${WRKSRC}/doc/Makefile.in @${REINPLACE_CMD} -e 's|^examplesdir =.*|examplesdir = ${EXAMPLESDIR}|' ${WRKSRC}/examples/Makefile.in -.include +.include + +# Around the time GCC stack protection (aka Propolice) for userland +# was enabled on src/share/mk/bsd.sys.mk +# SVN rev 180012 on 2008-06-25 21:33:28Z by ru +.if ${OSVERSION} >= 800040 +LDFLAGS+= -fstack-protector +.endif + +.include >Release-Note: >Audit-Trail: >Unformatted: