NetBSD/external
kamil 463be44101 Do not use index out of bounds in nawk
$ awk '{w=$1}' < /dev/null
/public/src.git/external/historical/nawk/bin/../dist/lex.c:476:16: runtime error: index -1 out of bounds for type 'const Keyword [46]'

There used to be documented a bug in the code that index ouf of bounds
can in theory fault (by daniel barrett).

Before assigning the pointer, first check for the index whether it's not
not -1. This was a suggested solution in the comment in the code.

The sanitizer is overcautious as this pointer wasn't dereferenced, but
fix is nonetheless.

Sponsored by <The NetBSD Foundation>
2018-06-12 13:24:28 +00:00
..
apache2 initialize addr to 0. 2018-05-02 12:12:13 +00:00
atheros introduce MKFIRMWARE that controls where (most) of the contents 2018-05-31 05:27:45 +00:00
broadcom introduce MKFIRMWARE that controls where (most) of the contents 2018-05-31 05:27:45 +00:00
bsd use SUBDIR.roff suggested by uwe@ 2018-06-10 17:55:11 +00:00
cddl Replace HAVE_GCC with ACTIVE_CC == gcc checks 2018-06-07 13:21:44 +00:00
gpl2 make 'clean' and/or 'cleandir' actually clean all the things. 2018-05-31 09:08:25 +00:00
gpl3 use LIBISCXX = yes, instead of hard-coding the c++ library. Suggested by joerg 2018-06-11 15:29:33 +00:00
historical Do not use index out of bounds in nawk 2018-06-12 13:24:28 +00:00
ibm-public give one more reply to the client before we potentially block it. 2018-02-01 03:32:00 +00:00
intel-fw-eula introduce MKFIRMWARE that controls where (most) of the contents 2018-05-31 05:27:45 +00:00
intel-fw-public introduce MKFIRMWARE that controls where (most) of the contents 2018-05-31 05:27:45 +00:00
lgpl3 commit some note updates i wrote last august. 2018-06-01 21:46:18 +00:00
mit Add missing xcb files to build. 2018-06-07 18:16:55 +00:00
mpl PR/50893: Bruce Lilly: Handle carp interfaces. 2018-06-01 00:42:49 +00:00
nvidia-firmware use FIRMWAREDIR instead of hard coded /libdata/firmware. 2018-05-30 20:54:06 +00:00
public-domain Don't warn about undefined symbols when we sanitize, since we are not linking 2018-06-02 01:40:52 +00:00
realtek introduce MKFIRMWARE that controls where (most) of the contents 2018-05-31 05:27:45 +00:00
zlib/pigz
Makefile add mpl 2018-04-07 22:39:31 +00:00
README add nvidia-firmware license 2018-04-08 16:57:07 +00:00

$NetBSD: README,v 1.17 2018/04/08 16:57:07 jmcneill Exp $

Organization of Sources:

This directory hierarchy is using an organization that separates
source for programs that we have obtained from external third
parties (where NetBSD is not the primary maintainer) from the
system source.

The hierarchy is grouped by license, and then package per license,
and is organized as follows:

	external/

	    Makefile
			Descend into the license sub-directories.

	    <license>/
			Per-license sub-directories.

		Makefile
			Descend into the package sub-directories.

		<package>/
			Per-package sub-directories.

		    Makefile
			Build the package.
			
		    dist/
			The third-party source for a given package.

		    bin/
		    lib/
		    sbin/
			BSD makefiles "reach over" from these into
			"../dist/".

This arrangement allows for packages to be easily disabled or
excised as necessary, either on a per-license or per-package basis.

The licenses currently used are:

	apache2		Apache 2.0 license.
			http://www.opensource.org/licenses/apache2.0.php

	atheros		Atheros License.

	bsd		BSD (or equivalent) licensed software, possibly with
			the "advertising clause".
			http://www.opensource.org/licenses/bsd-license.php

	cddl		Common Development and Distribution License (the sun
			license which is based on the Mozilla Public License
			version 1.1).
			http://www.opensource.org/licenses/cddl1.php

	gpl2		GNU Public License, version 2 (or earlier).
			http://www.opensource.org/licenses/gpl-2.0.php

	gpl3		GNU Public License, version 3.
			http://www.opensource.org/licenses/gpl-3.0.html

	historical	Lucent's old license:
			http://www.opensource.org/licenses/historical.php
			
	ibm-public	IBM's public license:
			http://www.opensource.org/licenses/ibmpl.php

	intel-fw-eula	Intel firmware license with redistribution
			restricted to OEM.

	intel-fw-public	Intel firmware license permitting redistribution with
			terms similar to BSD licensed software.

	intel-public	Intel license permitting redistribution with
			terms similar to BSD licensed software.

	mit		MIT (X11) style license.
			http://www.opensource.org/licenses/mit-license.php

	mpl		Mozilla Public license.
			https://opensource.org/licenses/MPL-2.0

	nvidia-firmware	NVIDIA firmware license permitting redistribution for
			use on operating systems distributed under the terms
			of an OSI-approved open source license.

	public-domain	Non-license for code that has been explicitly put
			into the Public Domain.

	realtek		RealTek license.

	zlib		Zlib (BSD-like) license.
			http://www.zlib.net/zlib_license.html

If a package has components covered by different licenses
(for example, GPL2 and the LGPL), use the <license> subdirectory
for the more restrictive license.

If a package allows the choice of a license to use, we'll
generally use the less restrictive license.

If in doubt about where a package should be located, please
contact <core@NetBSD.org> for advice.


Migration Strategy:


Eventually src/dist (and associated framework in other base source
directories) and src/gnu will be migrated to this hierarchy.


Maintenance Strategy:

The sources under src/external/<license>/<package>/dist/ are
generally a combination of a published distribution plus changes
that we submit to the maintainers and that are not yet published
by them.

Make sure all changes made to the external sources are submitted
to the appropriate maintainer, but only after coordinating with
the NetBSD maintainers.