From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jan 29 18:50:13 2012 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 D657D1065672 for ; Sun, 29 Jan 2012 18:50:13 +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 B35D68FC12 for ; Sun, 29 Jan 2012 18:50:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0TIoD4r065359 for ; Sun, 29 Jan 2012 18:50:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0TIoDk2065357; Sun, 29 Jan 2012 18:50:13 GMT (envelope-from gnats) Resent-Date: Sun, 29 Jan 2012 18:50:13 GMT Resent-Message-Id: <201201291850.q0TIoDk2065357@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, Ryan Steinmetz Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D85C1106564A for ; Sun, 29 Jan 2012 18:48:27 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id C7B888FC0A for ; Sun, 29 Jan 2012 18:48:27 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q0TImRHW000435 for ; Sun, 29 Jan 2012 18:48:27 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q0TImRon000434; Sun, 29 Jan 2012 18:48:27 GMT (envelope-from nobody) Message-Id: <201201291848.q0TImRon000434@red.freebsd.org> Date: Sun, 29 Jan 2012 18:48:27 GMT From: Ryan Steinmetz To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/164606: [patch] Add option to devel/ccache to statically build ccache 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: Sun, 29 Jan 2012 18:50:13 -0000 >Number: 164606 >Category: ports >Synopsis: [patch] Add option to devel/ccache to statically build ccache >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Jan 29 18:50:13 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Ryan Steinmetz >Release: 9.0-RELEASE >Organization: Rochester Institute of Technology >Environment: >Description: When using tinderbox, having a statically built copy of ccache is ideal as the same shared libraries do not exist under FreeBSD 7, 8, 9 and 10. Most users of tinderbox build ccache under each jail, which is time consuming. This will allow one copy of ccache to be usable regardless of which jail is used. >How-To-Repeat: >Fix: Patch attached with submission follows: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/devel/ccache/Makefile,v retrieving revision 1.67 diff -u -r1.67 Makefile --- Makefile 8 Jan 2012 21:16:53 -0000 1.67 +++ Makefile 29 Jan 2012 18:45:07 -0000 @@ -26,7 +26,8 @@ PORTDOCS= ccache-howto-freebsd.txt MANUAL.html OPTIONS= CLANGLINK "Create clang compiler links if clang is installed" off \ - LLVMLINK "Create llvm compiler links if llvm is installed" off + LLVMLINK "Create llvm compiler links if llvm is installed" off \ + STATIC "Statically build ccache" off .include @@ -47,6 +48,10 @@ CCACHE_COMPILERS+= llvm-gcc llvm-c++ llvm-g++ .endif +.if defined(WITH_STATIC) +LDFLAGS+= "--static" +.endif + CCACHE_COMPILERS+= ${EXTRA_COMPILERS} SUB_LIST+= CCACHE_COMPILERS="${CCACHE_COMPILERS}" \ CCLINKDIR="${CCLINKDIR}" \ >Release-Note: >Audit-Trail: >Unformatted: