Haiku specific Release Engineering/es

From Lazarus wiki
Revision as of 09:58, 17 August 2017 by Jma sp (talk | contribs) ()
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Obteniendo fpcbuild desde el repositorio

Obtener las fuentes, descargar fpcbuild desde el ftp y extraer el contenido o bien desde la línea de mandato:

 svn export http://svn.freepascal.org/svn/fpcbuild/tags/release_2_4_0 fpcbuild


Actualmente puede resultar algo difícil obtener el árbol completo en un shot bajo Haiku. La causa de base es que no se conoce aún (Haiku ? Subversion ? the network ?).

Una alternativa es chequear el repositorio fpcbuild. Esto consume mucho más espacio en disco, pero a cambio se puede actualizar el árbol en caso de descarga parcial.

Getting binaries for debugging support in the IDE

At the time of writing, a package containing the needed files is available here : http://olivier.coursiere.free.fr/download/libgdb-6.3-i386-haiku.zip

Extract this file in fpcbuild/fpcsrc/.

On recent versions of Haiku (aka with package management), it might be necessary to install some development package in order to link with above GDB libraries :

  • libncurses_devel
Instructions used to compile above gdb libraries for Freepascal (probably deprecated)

Keep for reference of required libraries under Haiku with package management.

While you can compile gdb on your own, the easiest way (by far) under Haiku is to build Haiku yourself. Instructions are available at http://www.haiku-os.org/development.

Then, you can collect all the needed files in the build tree :

  • libgdb.a in generated/objects/haiku/x86/release/bin/gdb/gdb
  • libbfd.a in generated/objects/haiku/x86/release/bin/gdb/bfd
  • libiberty.a in generated/objects/haiku/x86/release/bin/gdb/libiberty
  • libopcodes.a in generated/objects/haiku/x86/release/bin/gdb/opcodes
  • libreadline.a in generated/objects/haiku/x86/release/bin/gdb/readline
  • libintl.a in generated/objects/haiku/x86/release/bin/gawk/intl/
  • libgcc.a in /boot/develop/abi/x86/gcc2/tools/gcc-2.95.3-haiku-081024/lib/gcc-lib/i586-pc-haiku/2.95.3-haiku-081024 (you may have to adapt the path to the installed gcc version on your machine).

Put those files in a libgdb subfolder in fpcsrc (in the corresponding <system>/<architecture> folders) :

fpcbuild/fpcsrc/libgdb/haiku/i386

Getting documentation

Get the most recent docs package from the ftp site, it's called doc-pdf.tar.gz and copy it into the fpcbuild/ directory. You should put this file in the root directory of the source repository, aka in fpcbuild.

In case of an official release candidate or final version, you should ask the file to the release coordinator.

Building packages

Change into fpcbuild/, then execute

 install/makepack
Build under older version of Haiku (before hrev46213)

pre-2.4.0 specific : if haiku is not in the UNIXs variable at the begining of Makefile, you will have to regenerate them with fpcmake (at least from r14324). If not, the install script adapted for Haiku will not fully work. Here is the command line to do so :

 fpcmake -Tall -r

Haiku is unix like enough to use the Freepascal's unix scripts to generate a binary distribution. Unfortunately, there is no /usr/bin path under Haiku. So, the usual shebang will not work. A workaround is to execute the script with sh directly.

Change into fpcbuild/, then execute

 sh install/makepack