From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Nov 15 21:00:03 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.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 811FA12E for ; Fri, 15 Nov 2013 21:00:03 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 617BC24CC for ; Fri, 15 Nov 2013 21:00:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rAFL03mi065711 for ; Fri, 15 Nov 2013 21:00:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rAFL03CG065710; Fri, 15 Nov 2013 21:00:03 GMT (envelope-from gnats) Resent-Date: Fri, 15 Nov 2013 21:00:03 GMT Resent-Message-Id: <201311152100.rAFL03CG065710@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, Jean-Paul Calderone 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 80CDDFC for ; Fri, 15 Nov 2013 20:50:02 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7066A2432 for ; Fri, 15 Nov 2013 20:50:02 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rAFKo1bR060917 for ; Fri, 15 Nov 2013 20:50:01 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rAFKo1Xk060909; Fri, 15 Nov 2013 20:50:01 GMT (envelope-from nobody) Message-Id: <201311152050.rAFKo1Xk060909@oldred.freebsd.org> Date: Fri, 15 Nov 2013 20:50:01 GMT From: Jean-Paul Calderone To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/184008: gdb with the python option produces a package that uses bogus stagedir path X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Nov 2013 21:00:03 -0000 >Number: 184008 >Category: ports >Synopsis: gdb with the python option produces a package that uses bogus stagedir path >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Nov 15 21:00:02 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Jean-Paul Calderone >Release: 9.1 >Organization: HybridCluster >Environment: FreeBSD node011.hcdev1.com 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #0 r254707+5afe1ee: Mon Oct 21 17:59:04 UTC 2013 root@node003.testing.hybrid-cloud.com:/usr/obj/usr/src/sys/DTRACE amd64 >Description: Building gdb 7.6.1 from ports with this option: .if ${.CURDIR:N*/ports/devel/gdb} == "" OPTIONS_SET+= PYTHON .endif appears to properly enable gdb's Python integration but does so with a bogus default path for some of the support files. When running the resulting gdb, this output is included in the startup blob: Python Exception No module named gdb: warning: Could not load the Python gdb module from `/wrkdirs/usr/ports/devel/gdb/work/stage/usr/local/share/gdb761/python'. Limited Python support is available from the _gdb module. Suggest passing --data-directory=/path/to/gdb/data-directory. The correct path which should be used instead is /usr/local/share/gdb761/python. Launching gdb with --data-directory=/usr/local/share/gdb761/ suppresses this error and appears to make everything work fine. >How-To-Repeat: 1) Build gdb 7.6.1 from ports with PYTHON enabled 2) Install the resulting package 3) Run gdb from the resulting package 4) See a warning from gdb >Fix: >Release-Note: >Audit-Trail: >Unformatted: