wiki:PortingTips

Version 3 (modified by dmik, 9 years ago) (diff)

--

This page explains some common code changes often necessary to make Unix software work properly on OS/2. These changes are mainly related to various components shared among Unix programs. These changes are tracked here since we don't normally push upstream and hence we should apply them in each new project that we port and that uses these components.

Common tasks

Fix POTFILES generation

The fix is applied to po.m4 that creates rules for POTFILES generation. Unfortunately, the upstream version doesn't take DOS drive letters into account and hence creates incorrect relative paths in the generated POTFILES file (like ../D:/Coding/myproject/trunk/...). Here is a typical fix: r1009. When applied, configure and friends need to be regenerated in the source tree and then configure needs to be re-run to generate proper Makefiles.

Fix HAVE_ICONV detection

The fix is applied to iconv.m4 that detects if the HAVE_ICONV config.h macro should be set or not. Here is a typical fix: r1023 (originally this: r934). When applied, configure and friends need to be regenerated in the source tree and then configure needs to be re-run to generate a proper config.h.