You are not logged in.

#1 2011-07-31 01:03:26

guini
Member
Registered: 2009-05-13
Posts: 3

gdb build without python support

Hi,

does someone know if there is a reason gdb in extra is build without python support?
python is listed as a dependency in the PKGBUILD but the "--with-python=/usr/bin/python2" flag is missing.
should i report a bug?

Offline

#2 2011-07-31 01:04:55

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: gdb build without python support

I am fairly sure that flag is not actually needed as python is autodetected...   I could be wrong though.

Offline

#3 2011-07-31 01:07:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: gdb build without python support

It says it did add python scripting: http://projects.archlinux.org/svntogit/ … 2a163fa8db and the bug report it links to https://bugs.archlinux.org/task/16525 says

just building it in a python aware environment lets gdb pick up the dependency automatically

Last edited by karol (2011-07-31 01:10:54)

Offline

#4 2011-07-31 02:17:32

guini
Member
Registered: 2009-05-13
Posts: 3

Re: gdb build without python support

when i use the gdb package from extra i get

$ gdb 
GNU gdb (GDB) 7.3
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
/home/anton/.gdbinit:8: Error in sourced command file:
Python scripting is not supported in this copy of GDB.
(gdb) python print "foo" 
Python scripting is not supported in this copy of GDB.
(gdb)

whit the flag set in the PKGBULD it works for me

$ gdb 
GNU gdb (GDB) 7.3
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) python print "foo" 
foo
(gdb)

Offline

#5 2011-07-31 02:21:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: gdb build without python support

I really have no idea, maybe the one from extra wasn't built in a "python aware environment"?
I think you should open a bug report.

Offline

#6 2011-07-31 04:25:22

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: gdb build without python support

Looks like with gdb-7.3 you have to explicitly enable it, unlike gdb-7.2....    Do not worry about the bug report.  A fixed package is on its way.

Offline

Board footer

Powered by FluxBB