From owner-freebsd-python@freebsd.org Fri May 26 14:17:19 2017 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DA3E3D829DD for ; Fri, 26 May 2017 14:17:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C363A1ED7 for ; Fri, 26 May 2017 14:17:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id BFD94D829DC; Fri, 26 May 2017 14:17:19 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BF82BD829DA for ; Fri, 26 May 2017 14:17:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A5BB01ED5 for ; Fri, 26 May 2017 14:17:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4QEHJnB061408 for ; Fri, 26 May 2017 14:17:19 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 203021] lang/python27: Should install GDB integration tool(s) Date: Fri, 26 May 2017 14:17:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: feature, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: cem@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: koobs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 May 2017 14:17:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D203021 --- Comment #12 from Conrad Meyer --- (In reply to Kubilay Kocak from comment #10) > @Conrad, during QA (with DEVELOPER=3Dyes in /etc/make.conf), I observe th= e following: >=20 > =3D=3D=3D=3D> Running Q/A tests (stage-qa) > readelf: Not an ELF file. > Warning: /wrkdirs/usr/ports/lang/python27/work/stage/usr/local/lib/libpyt= hon2.7.so.1-gdb.py > doesn't have a SONAME. > Warning: pkg(8) will not register it as being provided by the port. > Warning: If another port depend on it, pkg will not be able to know where= it comes from. > Warning: It is directly in /usr/local/lib, it is probably used by other p= orts. This is a spurious warning -- it isn't a shared object and obviously nothing can use it like one. > I'm not sure what this might mean for desired functionality out of the bo= x for the port > or binary package. This may not be an issue if no other ports depend (LIB= _DEPENDS) on it. I don't think it's an issue -- it's not a shared object, nothing can LIB_DEPENDS on it. > Have you tested whether GDB works as expected with libpython2.7.so.1-gdb.= py in that > location and confirmed it works without additional intervention once inst= alled? Yep, see comment #6. We use it pretty frequently at work. # ls /usr/local/lib/libpython2.7.so.1* /usr/local/lib/libpython2.7.so.1=20=20=20=20=20=20=20=20=20=20=20=20=20 /usr/local/lib/libpython2.7.so.1-gdb.py # echo -e "import os\nos.abort()" > a.py # gdb771 --args python a.py ... (gdb) r ... Program received signal SIGABRT, Aborted. [Switching to Thread 8006c1400 (LWP 100708)] 0x000000080129d84a in thr_kill () from /lib/libc.so.7 (gdb) py-bt Traceback (most recent call first): File "a.py", line 2, in os.abort() (gdb) py-list 1 import os >2 os.abort() (In reply to Kubilay Kocak from comment #11) > It just occurred to me that this may just be a *.so file name matching th= ing.=20 Yep. > If so, is it possible (from a 'it works out of the box') point of view to= either rename > the file and/or put it in a still-suitable location not inside LOCALBASE/= lib? The name can't be changed, I think. There are a few suitable locations.=20 Fedora uses a location associated with the separated shared object debuginf= o, which ports doesn't support: /usr/lib/debug/usr/lib64/libpython2.7.so.1.0.debug-gdb.py Note that this portion ^^^^^^^^^^^^^^^^^^^^^^^^^ has to match some file = GDB is loading already. I'm not sure what search paths GDB has by default. In= the differential review, someone mentioned: /usr/local/share/gdb/auto-load/usr/local/lib/libglib-2.0.so.0.5000.2-gdb.py This is discussed a little bit more in the first few comments of the review. --=20 You are receiving this mail because: You are on the CC list for the bug.=