pkgsrc/pkgtools/libnbcompat/files
grant 495ab8cee9 update config.{sub,guess} for various bootstrap tools. fixes build on
newer platforms such as DragonFly.

fixes PR pkg/28579 from Todd Willey.
2004-12-12 00:46:28 +00:00
..
nbcompat Update pkgtools/libnbcompat to 20040911. Changes from version 20040822 2004-09-11 19:01:36 +00:00
private Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
__fts13.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
__glob13.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
__unsetenv13.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
aclocal.m4 s/seperate/separate/; s/independantly/independently/; 2004-02-01 00:07:56 +00:00
bits.c Allow libnbcompat to be used without being installed. Also remove the 2003-09-13 03:50:12 +00:00
config.guess update config.{sub,guess} for various bootstrap tools. fixes build on 2004-12-12 00:46:28 +00:00
config.sub update config.{sub,guess} for various bootstrap tools. fixes build on 2004-12-12 00:46:28 +00:00
configure fix detection of poll() for Darwin 7.x which has a poll() 2004-10-24 11:18:33 +00:00
configure.ac fix detection of poll() for Darwin 7.x which has a poll() 2004-10-24 11:18:33 +00:00
engine.c Update pkgtools/libnbcompat to 20040814. Changes from version 20040813 2004-08-16 17:24:42 +00:00
err.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
fgetln.c Update pkgtools/libnbcompat to 20040911. Changes from version 20040822 2004-09-11 19:01:36 +00:00
findenv.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
fnmatch.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
fparseln.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
fts.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
getenv.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
getopt_long.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
gettemp.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
glob.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
install-sh
isblank.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
lchflags.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
lchmod.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
lchown.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
lutimes.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
Makefile.in Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
malloc.c
md5c.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
md5hl.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
mdXhl.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
mkdtemp.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
mkstemp.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
nbcompat.awk Fix error in the use of "next"... it means to skip the line, not skip to 2004-08-21 18:21:47 +00:00
nbcompat.h Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
poll.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
pwcache.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
README Update pkgtools/libnbcompat to 20040911. Changes from version 20040822 2004-09-11 19:01:36 +00:00
regcomp.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
regerror.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
regexec.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
regfree.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
rmd160.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
rmd160hl.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
setenv.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
setgroupent.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
setmode.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
setpassent.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
setprogname.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
sha1.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
sha1hl.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
snprintf.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
src2nbcompat Deal with HAVE_NBTOOL_CONFIG_H in some sources on the HEAD. 2004-08-20 23:10:32 +00:00
statvfs.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
strdup.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
strerror.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
strlcat.c Change the way that we disable unwanted code regions... just #undef _LIBC. 2004-08-31 17:55:17 +00:00
strlcpy.c Change the way that we disable unwanted code regions... just #undef _LIBC. 2004-08-31 17:55:17 +00:00
strmode.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
strsep.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
strtoll.c Change the way that we disable unwanted code regions... just #undef _LIBC. 2004-08-31 17:55:17 +00:00
unsetenv.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
unvis.c re-work workaround for __unvis13 namespace clash by renaming it to 2004-12-04 23:31:40 +00:00
usleep.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
utimes.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
vis.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00
warn.c Update pkgtools/libnbcompat to 20040822. Changes from version 20040814 2004-08-23 03:32:12 +00:00

$NetBSD: README,v 1.11 2004/09/11 19:01:40 jlam Exp $

 0 Introduction
 ==============

libnbcompat builds and installs a portable NetBSD-compatibility library
that supplies routines missing on operating systems that are used by
the family of pkgsrc bootstrap tools.  Note that libnbcompat is very
much a work-in-progress.  Only the functions that are directly used
by the bootstrap tools are implemented in the library.  At the moment,
this includes the following packages:

	archivers/pax
	pkgtools/mtree
	pkgtools/pkg_install
	textproc/nbsed

A script, src2nbcompat, is also included in the sources that simplifies
importing software from the NetBSD src module into pkgsrc.


 1 Updating this package
 =======================

Please take care when updating this package.  Do *not* simply commit
changes to this package and ask for testers.  This package is too
fundamental to the proper bootstrapping of pkgsrc to let accidental
breakage seep in.  Proper methodology for updating this package is:

    (1) Post a tarball at a publicly accessible URL containing the
	pkgtools/libnbcompat directory.

    (2) Ask on the tech-pkg@NetBSD.org mailing list for testers.

    (3) Fix any breakage on non-NetBSD operating systems before
	committing.


 2 Tested operating systems
 ==========================

*NOTE*
*NOTE* This section should be kept up-to-date with the results for
*NOTE* the most recent libnbcompat.
*NOTE*

libnbcompat-20040911 has been tested to build and install correctly
on the following operating systems:

	FreeBSD-4.8/i386		<jlam@NetBSD.org>
	NetBSD-1.6.2/i386		<jlam@NetBSD.org>
	Solaris 9/sparc			<salo@NetBSD.org>


 3 Usage
 =======

This library is intended to simplify porting NetBSD software.  To that
end, the changes to NetBSD sources to use libnbcompat are minor.  The
procedure is:

    (1) Add #include <nbcompat.h> at the top of the source files that
	include system headers, but below the inclusion of any
	"config.h".

    (2) Surround each system header file included in the source file
	with #if HAVE_<header_name>_H ... #endif.

You may need to add additional headers present on other operating
systems that define any system-supplied functions, e.g. <sys/vfs.h>.

The src2nbcompat script included in the libncompat sources can be used
to automate this process to some extent.  It is intended to import
sources from a NetBSD src checkout into pkgsrc.  It will copy the
sources from a directory and automatically insert the proper lines
into the files.  For example, to import the pkg_install sources into
pkgsrc, run:

	src2nbcompat \
		/usr/src/usr.sbin/pkg_install \
		/usr/pkgsrc/pkgtools/pkg_install/files

You will need to run a "cvs diff" on the imported files to check that
any local changes are preserved across imports.