Debian Codegraph @

/

0 files · 0 symbols
README (full)
$NetBSD: README,v 1.30 2024/03/19 00:59:00 nia 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 [email protected] 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-20240319 has been tested to build and install correctly
on the following operating systems:

	NetBSD/amd64 10.0		<[email protected]>
	Darwin/powerpc 8.11.0		<[email protected]>

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

	NetBSD/amd64 10.0 RC1		<[email protected]>
	Darwin/powerpc 8.11.0		<[email protected]>

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

	Darwin-22.6.0-aarch64		<[email protected]>
	SunOS-5.11-i386			<[email protected]>
	SunOS-5.11-x86_64		<[email protected]>

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

	NetBSD/amd64 9.2		<[email protected]>

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

	NetBSD/amd64 9.0		<[email protected]>
	Alpine Linux 3.11.6 x86_64	<[email protected]>
	IRIX 6.5.22, mipspro 7.4.3	<[email protected]>	

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

	NetBSD/amd64 8.99.49		<[email protected]>
	Darwin/powerpc 8.11.0		<[email protected]>
	FreeBSD/amd64 13-CURRENT	<[email protected]>

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

	NetBSD/i386 5.2.3		<[email protected]>
	HP-UX/hppa 11.11		<[email protected]>

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

	Ubuntu GNU/Linux/amd64 12.04	<[email protected]>
	CentOS Linux/amd64 6.5		<[email protected]>
	CentOS Linux/amd64 6.6		<[email protected]>
	CentOS Linux/amd64 7.0		<[email protected]>
	OpenBSD/sparc64 5.5		<[email protected]>
	OpenBSD/sparc64 5.6		<[email protected]>
	FreeBSD/amd64 10.1		<[email protected]>

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

	Debian GNU/kFreeBSD/amd64 7.1	<[email protected]>
	Sun Solaris/amd64 10u8		<[email protected]>
	NetBSD/amd64 6.99.23		<[email protected]>
	FreeBSD/amd64 9.1		<[email protected]>
	OpenBSD/amd64 5.3		<[email protected]>
	DragonFly/amd64 3.4.1		<[email protected]>
	Debian GNU/Linux/amd64 7.1	<[email protected]>
	CentOS Linux/amd64 6.5		<[email protected]>
	OpenBSD/sparc64 5.5		<[email protected]>

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

	HPUX-11.11-hppa			<[email protected]>
	Interix-3.5-i586		<[email protected]>

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

	SunOS-5.10-sparc		<[email protected]>
	NetBSD-3.0-i386			<[email protected]>
	IRIX-6.5-mips			<[email protected]>

libnbcompat-20070507 has been tested to build and install correctly.

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

	FreeBSD-4.11/i386		<[email protected]>
	FreeBSD-6.1/amd64		<[email protected]>
	Darwin-8.3/powerpc		<[email protected]>
	IRIX-5.3/mipseb			<[email protected]>
	IRIX-6.5/mipseb			<[email protected]>
	Linux/i386			<[email protected]>
	RHEL4 Linux 2.6/i386		<[email protected]>
	Tru64 UNIX 5.1B-2/alpha		<[email protected]>

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

	FreeBSD-4.8/i386		<[email protected]>
	NetBSD-1.6.2/i386		<[email protected]>
	Solaris 9/sparc			<[email protected]>

 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.
dir db/
dir debian/
dir nbcompat/
dir private/
file Makefile.in
file README
file __fts13.c
file __glob13.c
file __unsetenv13.c
file aclocal.m4
file asprintf.c
file config.guess
file config.sub
file configure
file configure.ac
file engine.c
file err.c
file fgetln.c
file findenv.c
file fnmatch.c
file fparseln.c
file fts.c
file getaddrinfo.c
file getdelim.c
file getenv.c
file getline.c
file getopt.c
file getopt_long.c
file gettemp.c
file glob.c
file install-sh
file isblank.c
file lchflags.c
file lchmod.c
file lchown.c
file lutimes.c
file md5c.c
file md5hl.c
file mdXhl.c
file memrchr.c
file mkdtemp.c
file mkstemp.c
file nbcompat.awk
file nbcompat.h
file poll.c
file pwcache.c
file regcomp.c
file regerror.c
file regexec.c
file regfree.c
file rmd160.c
file rmd160hl.c
file setenv.c
file setgroupent.c
file setmode.c
file setpassent.c
file setprogname.c
file sha1.c
file sha1hl.c
file sha2.c
file sha2hl.c
file shquote.c
file snprintf.c
file src2nbcompat
file statvfs.c
file strdup.c
file strerror.c
file strlcat.c
file strlcpy.c
file strmode.c
file strndup.c
file strnlen.c
file strsep.c
file strtoll.c
file timegm.c
file unsetenv.c
file unvis.c
file usleep.c
file utimes.c
file vis.c
file warn.c