NetBSD/tools/compat
lukem 64d97711a2 remove btodb() hack now that makefs doesn't need it anymore.
the #define was wrong anyway; it was x<<9 instead of x>>9
2002-02-06 15:39:01 +00:00
..
scripts Roll in fixes to permit cross-compiling from non-NetBSD hosts. This 2002-01-31 22:43:33 +00:00
sys Make many host tools compile on non-NetBSD hosts. Not complete, but 2002-01-21 20:04:36 +00:00
Makefile Roll in fixes to permit cross-compiling from non-NetBSD hosts. This 2002-01-31 22:43:33 +00:00
README Cross-hosting notes for foreign OS's. (Currently Linux, Solaris, and older 2002-02-01 04:43:39 +00:00
compat_defs.h remove btodb() hack now that makefs doesn't need it anymore. 2002-02-06 15:39:01 +00:00
compat_pwd.h Make almost all tools compile and run properly on non-NetBSD hosts. (In 2002-01-29 10:20:28 +00:00
config.h.in Roll in fixes to permit cross-compiling from non-NetBSD hosts. This 2002-01-31 22:43:33 +00:00
configure Roll in fixes to permit cross-compiling from non-NetBSD hosts. This 2002-01-31 22:43:33 +00:00
configure.ac Roll in fixes to permit cross-compiling from non-NetBSD hosts. This 2002-01-31 22:43:33 +00:00
db.h Make almost all tools compile and run properly on non-NetBSD hosts. (In 2002-01-29 10:20:28 +00:00
defs.mk.in Roll in fixes to permit cross-compiling from non-NetBSD hosts. This 2002-01-31 22:43:33 +00:00
fgetln.c Include config.h unconditionally; clean up. 2002-01-31 19:23:14 +00:00
flock.c Include config.h unconditionally; clean up. 2002-01-31 19:23:14 +00:00
getmode.c Include config.h unconditionally; clean up. 2002-01-31 19:23:14 +00:00
mpool.h Make many host tools compile on non-NetBSD hosts. Not complete, but 2002-01-21 20:04:36 +00:00
namespace.h Make sure there are no weak references in libnbcompat (avoids linker 2002-01-31 19:20:14 +00:00
nl_types.h Make almost all tools compile and run properly on non-NetBSD hosts. (In 2002-01-29 10:20:28 +00:00
pread.c Include config.h unconditionally; clean up. 2002-01-31 19:23:14 +00:00
pwrite.c Include config.h unconditionally; clean up. 2002-01-31 19:23:14 +00:00
setenv.c Include config.h unconditionally; clean up. 2002-01-31 19:23:14 +00:00
setgroupent.c Include config.h unconditionally; clean up. 2002-01-31 19:23:14 +00:00
setpassent.c Include config.h unconditionally; clean up. 2002-01-31 19:23:14 +00:00
setprogname.c Provide a default string so host tools that forget to call setprogname() 2002-01-31 19:21:58 +00:00
snprintf.c Include config.h unconditionally; clean up. 2002-01-31 19:23:14 +00:00
tzfile.h Roll in fixes to permit cross-compiling from non-NetBSD hosts. This 2002-01-31 22:43:33 +00:00

README

$NetBSD: README,v 1.1 2002/02/01 04:43:39 tv Exp $

Special notes for cross-hosting a NetBSD build on certain platforms.  
Only those platforms which have been tested to complete a "build.sh" run
are listed.

=====

LINUX:

* Tested on RedHat Linux 7.1 (i386).

* The gcc (and libstdc++, if needed) package must be installed, along
  with the typical system development packages (glibc-devel, etc.).

* The ncurses-devel package must be installed (for nbinfo).

* The zlib and zlib-devel packages must be installed.  This will be
  fixed in the future to include zlib in libnbcompat.

* src/tools/dbsym will not build on this platform yet.  NO_DBSYM=1 may be set in
  mk.conf or the environment to cause this to be skipped during the build
  (harmless to non-embedded platforms).

=====

NETBSD (earlier releases):

* Tested on NetBSD 1.5.2 (machine-independently).

* Should need no special setup.

=====

SOLARIS:

* Tested on Solaris/x86 8 (5.8) with gcc 2.95.2 (not yet tested with
  SUNWspro).

* $HOST_CC needs to be set properly (for gcc, it should be set to "gcc",
  otherwise the improper /usr/ucb/cc may be invoked by accident).

* The SUNWxcu4 package (containing /usr/xpg4/bin/*) must be installed.

* The SUNWzlib package (or a built version of zlib visible to $HOST_CC)
  must be installed.  This will be fixed in the future to include zlib
  in libnbcompat.

* Needs the following paths, in this order, in $PATH:

      /usr/xpg4/bin:/usr/ccs/bin:/usr/bin

  (/usr/ucb may optionally be placed before /usr/bin per your preference,
  but /usr/ucb *MUST NOT* be before /usr/ccs/bin or /usr/xpg4/bin!)

* /bin/sh *MUST* be replaced with a copy of, or symlink to, either
  /bin/ksh or /usr/xpg4/bin/sh.  This will be fixed in the future to use
  /usr/xpg4/bin/sh in nbmake by default.  (Solaris's /bin/sh is broken
  in some fantastic and amazing ways.)

* Needs the "mktemp" script from src/tools/compat/scripts, made
  executable, available somewhere in $PATH.  (Solaris has no
  command-line mktemp(1).)  This may be worked around in the future.

* src/tools/dbsym will not build on this platform yet.  NO_DBSYM=1 may be set in
  mk.conf or the environment to cause this to be skipped during the build
  (harmless to non-embedded platforms).