Bug 8583 - No gdb support in fp (IDE from package fpc), there is no libgdb-devel package in repo
Summary: No gdb support in fp (IDE from package fpc), there is no libgdb-devel package...
Status: RESOLVED WONTFIX
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: Junior_job
Depends on:
Blocks:
 
Reported: 2013-01-03 01:30 CET by Alex Loginov
Modified: 2014-01-19 17:51 CET (History)
5 users (show)

See Also:
Source RPM: fpc, gdb
CVE:
Status comment:


Attachments

Description Alex Loginov 2013-01-03 01:30:33 CET
Description of problem:

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. to install fpc
2. fp
3. to run debug
No debug support.

Solution:
1. to build libgdb-devel
2. to rebuild fpc and to add libgdb-devel in BuildRequires (fp wants *.a files).

Spec from Alt Linux for gdb: http://sisyphus.ru/en/srpm/Sisyphus/gdb/spec
Alex Loginov 2013-01-03 01:31:38 CET

Hardware: i586 => All

Comment 1 Alex Loginov 2013-01-03 01:40:29 CET
And to add libreadline-devel in BuildRequires for fpc, this package is needed also for building fp with gdb support.
Manuel Hiebel 2013-01-03 11:22:09 CET

Keywords: (none) => Junior_job
CC: (none) => mageia, olav
Source RPM: (none) => fpc

Alex Loginov 2013-01-03 13:02:09 CET

Source RPM: fpc => fpc, gdb

Comment 2 Alex Loginov 2013-01-03 17:32:05 CET
It's needed also:
- rebuild libpython-devel: to add /usr/lib/libpython.so
- build new rpm package hercules (for example, from Fedora) and to add /usr/lib/libdecnumber.so (link for /usr/lib/libdecNumber.so)
Comment 3 Thierry Vignaud 2013-01-05 14:28:20 CET
For security reason, there won't be any .a.
What you want is BR binutils-devel, not gdb-devel.
There won't be any libpython.so

CC: (none) => thierry.vignaud

Comment 4 Alex Loginov 2013-01-05 18:20:40 CET
ftp://ftp.freepascal.org/pub/fpc/contrib/libgdb/
- this libgdb*.tar.gz contants *.a, what are needed for building fp with gdb support. But it's not enough. It's not difficult to compile with gdb support, it's to difficult to get to work gdb with fp.
Comment 5 Alex Loginov 2013-01-05 18:29:45 CET
Don't rebuild libpython-devel, solution:

sed -i -e "s|LINKLIB python|LINKLIB python2.7|g" ./packages/gdbint/src/gdbint.pp

But binutils-devel is not contants all *.a for this bug.
Only building libgdb-devel can help to decide this bug.
Comment 6 Alex Loginov 2013-04-30 18:31:50 CEST
fp was built with gdb support, see package fp-ide: ftp://ftp.mageialinux.ru/mageia2/SRPMS/ version fp-ide-2.6.0-20 and later.
fpc in Mageia repo wants to be rebuilt with patches from fp-ide.
Comment 7 Nicolas Lécureuil 2013-05-13 22:23:02 CEST
(In reply to Alex Loginov from comment #4)
> ftp://ftp.freepascal.org/pub/fpc/contrib/libgdb/
> - this libgdb*.tar.gz contants *.a, what are needed for building fp with gdb
> support. But it's not enough. It's not difficult to compile with gdb
> support, it's to difficult to get to work gdb with fp.

(In reply to Alex Loginov from comment #5)
> Don't rebuild libpython-devel, solution:
> 
> sed -i -e "s|LINKLIB python|LINKLIB python2.7|g"
> ./packages/gdbint/src/gdbint.pp
> 
> But binutils-devel is not contants all *.a for this bug.
> Only building libgdb-devel can help to decide this bug.



See comment #3

CC: (none) => nicolas.lecureuil

Comment 8 Alex Loginov 2013-05-13 23:54:43 CEST
fp-ide was built without additional devel packages for .*a - fp and gdb were built together.
Comment 9 Alex Loginov 2013-06-07 21:30:52 CEST
This bug was fixed in MRC repo: ftp://ftp.mageialinux.ru/mageia2/SRPMS/ for package fp-ide.
Comment 10 Alex Loginov 2013-07-08 09:22:24 CEST
Please, rebuild gdb and create libgdb-devel package with files:
libbfd.a
libdecnumber.a
libgdb.a
libgnu.a
libhistory.a
libiberty.a
libopcodes.a
libreadline.a
Comment 11 Oleg Bosis 2013-07-08 10:46:19 CEST
(In reply to Alex Loginov from comment #10)
> Please, rebuild gdb and create libgdb-devel package with files:
> libbfd.a
> libdecnumber.a
> libgdb.a
> libgnu.a
> libhistory.a
> libiberty.a
> libopcodes.a
> libreadline.a

I don't think it's technically possible to provide this package as it would conflict with binutils (libbfd.a, libiberty.a, libopcodes.a) and readline (libreadline.a) devel packages.

The only correct solutions here are:
a) include the sources of all required versions of this libraries in fp package and build them as an fp prerequisites (probably the easies way is to include the whole gdb sources and build only libraries needed for fp)

or

b) patch fp so it would work with standard binutils and readline libs.

CC: (none) => olegbosis

Comment 12 Alex Loginov 2013-07-08 21:05:20 CEST
There is 3rd way: to build libgdb-devel, but to use any directory for *.a.
No problems for fp building to use any directory with *.a (I use this algorithm).
For example, no problems to use /usr/lib{64}/gdb/*.a
Comment 13 Alex Loginov 2013-07-09 12:08:11 CEST
There is 4th way: to rename *.a from gdb.
For example, gdb_libgdb.a
Comment 14 Alex Loginov 2014-01-19 17:51:53 CET
I don't need package libgdb-devel. I have better solution:
http://code.google.com/p/fp-ide-en
http://code.google.com/p/fp-ide-ru
fp uses own gdb without gdb from system and works fine.

Status: NEW => RESOLVED
Resolution: (none) => WONTFIX


Note You need to log in before you can comment on or make changes to this bug.