wiki:Building_Instructions

Version 1 (modified by herwigb, 13 years ago) ( diff )

GnuPG: Fill building instructions page.

Building Instructions for GnuPG for eCS (OS/2)

As provided by Tobias Huerlimann

Compiling GnuPG shouldn't be a problem anymore because of the OS/2 specific handwritten makefiles (Makefile.os2). Software requirements

To compile GnuPG for OS/2 you need the following software:

  • Innotek GCC.
  • EMX GCC should also work (older releases were compiled with it), but you will have to adapt some things.
  • GNU Make The makefiles are not in nmake syntax
  • A unixish shell, for example: Bash
  • A LibINTL library that knows UNIXROOT (e.g. I used the gettext package from Innotek)
  • libbzip2, for example from Hobbes

Additional software is needed to create the man pages in INF format or the NLS files.

  • IPFC from the OS/2 Developer's Toolkit For the creation of the INF file
  • msgfmt.exe from the GNU gettext package For the creation of the NLS packages

If you also want to install GnuPG via the makefiles, the following tools should be in PATH:

  • cp
  • cmp
  • mkdir
  • test

Build process

  1. Makefile.os2 assumes that the shell is called sh.exe. If that is not the case, please change Makefile.os2.config accordingly.
  2. If you want to change the install destination (default: %UNIXROOT%/usr), please edit:
    • Makefile.os2.config
    • os2/os2init.c
  3. If you do not have IPFC or msgfmt.exe and therefore cannot create the INF documentation or the NLS packages, delete the directories "doc" and "po" from the variable "SUBDIRS" in Makefile.os2.
  4. Now "make -f Makefile.os2" should be enough to compile GnuPG.
  5. Optional: "make -f Makefile.os2 check" runs a small testsuite. You have to install rndos2.dll or RexxEGD before that.
  6. Optional: "make -f Makefile.os2 install-files" installs GnuPG in the %UNIXROOT% hierarchy.

Updating the source

You have to edit the following OS/2 specific files:

  • os2/PKGINFO : properly set the version number
  • config.h : properly set the version number (multiple places!)
  • Makefile.os2.config : properly set the version number

Note: running sh ./configure creates new makefile and new config.h, both are not usable right now!

Note: See TracWiki for help on using the wiki.