From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Apr 18 09:40:02 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 56E9A106566B for ; Wed, 18 Apr 2012 09: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 2A7708FC0A for ; Wed, 18 Apr 2012 09:40:02 +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 q3I9e29P029223 for ; Wed, 18 Apr 2012 09:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q3I9e1eA029222; Wed, 18 Apr 2012 09:40:01 GMT (envelope-from gnats) Resent-Date: Wed, 18 Apr 2012 09:40:01 GMT Resent-Message-Id: <201204180940.q3I9e1eA029222@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, Tijl Coosemans Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B33F7106564A for ; Wed, 18 Apr 2012 09:37:54 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay004.isp.belgacom.be (mailrelay004.isp.belgacom.be [195.238.6.170]) by mx1.freebsd.org (Postfix) with ESMTP id 45E298FC08 for ; Wed, 18 Apr 2012 09:37:54 +0000 (UTC) Received: from 84.90-177-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.177.90.84]) by relay.skynet.be with ESMTP; 18 Apr 2012 11:36:44 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.5/8.14.5) with ESMTP id q3I9ahup023824 for ; Wed, 18 Apr 2012 11:36:43 +0200 (CEST) (envelope-from tijl@kalimero.tijl.coosemans.org) Received: (from tijl@localhost) by kalimero.tijl.coosemans.org (8.14.5/8.14.5/Submit) id q3I9ahaj023823; Wed, 18 Apr 2012 11:36:43 +0200 (CEST) (envelope-from tijl) Message-Id: <201204180936.q3I9ahaj023823@kalimero.tijl.coosemans.org> Date: Wed, 18 Apr 2012 11:36:43 +0200 (CEST) From: Tijl Coosemans To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/167049: [patch] devel/gdb: fix GDB_LINK option X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Tijl Coosemans List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Apr 2012 09:40:02 -0000 >Number: 167049 >Category: ports >Synopsis: [patch] devel/gdb: fix GDB_LINK option >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 Apr 18 09:40:01 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Tijl Coosemans >Release: FreeBSD 10.0-CURRENT i386 >Organization: >Environment: >Description: devel/gdb does not create a symbolic link when installed from ports, only when installed as a package. >How-To-Repeat: >Fix: --- gdb.patch begins here --- diff -ur /usr/ports/devel/gdb/Makefile ./Makefile --- /usr/ports/devel/gdb/Makefile 2012-04-01 18:13:10.000000000 +0200 +++ ./Makefile 2012-04-18 11:29:09.000000000 +0200 @@ -55,9 +55,9 @@ .include .if defined(WITH_GDB_LINK) -PLIST_SUB+= GDB_LINK=true +PLIST_SUB+= GDB_LINK="" .else -PLIST_SUB+= GDB_LINK=false +PLIST_SUB+= GDB_LINK="@comment " .endif .if defined(WITH_PYTHON) @@ -101,6 +101,9 @@ ${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb ${PREFIX}/bin/gdb${VER} ${LN} ${PREFIX}/bin/gdb${VER} ${PREFIX}/bin/gdbtui${VER} ${INSTALL_MAN} ${WRKSRC}/gdb/gdb.1 ${MAN1PREFIX}/man/man1/gdb${VER}.1 +.if defined(WITH_GDB_LINK) + ${LN} -sf gdb${VER} ${PREFIX}/bin/gdb +.endif .if defined(WITH_PYTHON) (cd ${WRKSRC}/gdb; ${GMAKE} install-python ) (cd ${WRKSRC}/gdb/data-directory; ${GMAKE} install-python ) diff -ur /usr/ports/devel/gdb/pkg-plist ./pkg-plist --- /usr/ports/devel/gdb/pkg-plist 2012-04-01 18:13:10.000000000 +0200 +++ ./pkg-plist 2012-04-18 11:14:31.000000000 +0200 @@ -1,3 +1,4 @@ +%%GDB_LINK%%bin/gdb bin/gdb%%VER%% bin/gdbtui%%VER%% %%PYTHON%%share/gdb%%VER%%/python/gdb/__init__.py @@ -11,5 +12,3 @@ %%PYTHON%%@dirrm share/gdb%%VER%%/python/gdb %%PYTHON%%@dirrm share/gdb%%VER%%/python %%PYTHON%%@dirrm share/gdb%%VER%% -@exec if $( %%GDB_LINK%% ) ; then ln -fs %%PREFIX%%/bin/gdb%%VER%% %%PREFIX%%/bin/gdb; fi -@unexec if $( %%GDB_LINK%% ) ; then rm -f %%PREFIX%%/bin/gdb; fi --- gdb.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: