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
Hardware: i586 => All
And to add libreadline-devel in BuildRequires for fpc, this package is needed also for building fp with gdb support.
Keywords: (none) => Junior_jobCC: (none) => mageia, olavSource RPM: (none) => fpc
Source RPM: fpc => fpc, gdb
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)
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
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.
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.
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.
(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
fp-ide was built without additional devel packages for .*a - fp and gdb were built together.
This bug was fixed in MRC repo: ftp://ftp.mageialinux.ru/mageia2/SRPMS/ for package fp-ide.
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
(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
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
There is 4th way: to rename *.a from gdb. For example, gdb_libgdb.a
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 => RESOLVEDResolution: (none) => WONTFIX