History log of /netbsd-current/lib/Makefile
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.299 26-Feb-2024 mrg

revert previous - it doesn't mean what i thought and some builds broke.


# 1.298 25-Feb-2024 mrg

skip sanitizers if MKSANITIZER "no".


# 1.297 06-Sep-2023 riastradh

lib: Handle various external lib directories with build_install.

This way, update builds track shlib major bumps correctly.

For example, suppose you had built Heimdal's libkrb5.so.27 and
libgssapi.so.11 linked against it, and then you updated past the recent
shlib major bump raising them to libkrb5.so.28 and libgssapi.so.12.

Without this change, the build will make the following sequence of
targets (interleaved with some others):

1. make dependall in libkrb5
2. make dependall in libgssapi
3. make install in libkrb5
4. make install in libgssapi

The existing .WAIT tags in SUBDIR ensure that (1) happens before (2)
and (3) happens before (4). Unfortunately, this sequence is wrong,
because it will produce the following effect:

1. make dependall in libkrb5 builds libkrb5.so.28
2. make dependall in libgssapi builds libgssapi.so.12, linked against
libkrb5.so.27
3. make install in libkrb5 installs libkrb5.so.28
4. make install in libgssapi installs libgssapi.so.12

Why the out-of-date libkrb5.so.27 in step (2)? Because we just pass
-L${DESTDIR}/usr/lib -lkrb5 to the linker (or the equivalent with
--sysroot and implied -L/usr/lib), and ${DESTDIR}/usr/lib still has
only libkrb5.so.27 by the time of step (2), not libkrb5.so.28.

Now any applications that link against libkrb5.so _and_ libgssapi.so
will get libkrb5.so.28 and libgssapi.so.12 -- but transitively, via
libgssapi.so.12, they will also get libkrb5.so.27, which is a recipe
for disaster.

Splicing the Heimdal library subdirectories into lib/Makefile, as
this does, ensures that we run make dependall _and_ make install in
libkrb5 _before_ make dependall in libgssapi, giving the following
correct sequence:

1. make dependall in libkrb5 builds libkrb5.so.28
2. make install in libkrb5 installs libkrb5.so.28
3. make dependall in libgssapi builds libgssapi.so.12, linked against
libkrb5.so.28
4. make install in libgssapi installs libgssapi.so.12

Note that LIBDPLIBS isn't enough here, as implemented. LIBDPLIBS
ensures that the incremental build will remake libgssapi.so. But it
doesn't ensure that the new libkrb5.so.28 is available before then,
so it doesn't prevent this problem.

We use the same mechanism for crypto/external/bsd/openssl/lib
already; this just extends it to other external library collections.

As an alternative, in principle perhaps we could teach LIBDPLIBS to
ensure that libkrb5.so comes out of the libkrb5 objdir, and not out
of ${DESTDIR}/usr/lib. But that requires some work to make happen,
and make it reliable, whereas this approach we've already confirmed
works without other adverse consequences (besides leaving
grody-looking mechanism lying around) for the libcrypto major bump
already. We need to get this pulled up to the branch so all the
other major bumps it required are handled correctly by update builds.

XXX pullup-10


# 1.296 20-Aug-2023 rin

lib/Makefile: Hook libgmp also for MKGDB=yes build

Now, gdb 13 can be built by clang, at least on amd64.


# 1.295 17-Jun-2023 christos

Include the OpenSSL Makefile fragment so that build_install works on each
OpenSSL subdirectory.


Revision tags: netbsd-10-base
# 1.294 30-May-2022 rin

branches: 1.294.2;
Introduce libc_aligned.so for evbppc-powerpc32, which provides
strictly-aligned versions of memcmp(3), bcopy(3), memcpy(3), and
memmove(3).

This is used for 403 by ld.so.conf with machdep.no_unaligned variable.

With this library, unaligned memory accesses are significantly reduced
for 403 (from several hundreds to few tens per sec under heavy load);
only ld.elf_so (typically few times per fork) and statically-linked
binaries do such access.


# 1.293 22-Nov-2021 nia

cgdconfig(8): Add an argon2id password-based key generation method

This provides an extra level of side-channel and cracking resistance
compared to the pre-existing pkcs5_pbkdf2/sha1 method used for
password-based disk encryption.

Several new keygen parameters are supported:

memory (integer, in kilobytes)
parallelism (integer, usually the number of CPU cores)
version (integer, usually 19...)

We do our best to calibrate these automatically when the paramsfile
is initially generated.

lgtm riastradh@


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.292 25-Apr-2021 christos

Use ${MACHINE_MIPS64}


# 1.291 09-Apr-2021 jkoshy

Avoid duplicate directory traversals when building Elftoolchain sources.


# 1.290 08-Apr-2021 jkoshy

Redo r1.288: traverse the complete imported Elftoolchain tree during a build.


# 1.289 06-Apr-2021 jkoshy

Attempt to unbreak the build by reverting r1.288.


# 1.288 06-Apr-2021 jkoshy

Traverse the complete imported Elftoolchain tree during a build.


# 1.287 07-Mar-2021 christos

Add blocklist support to libwrap which enables all programs using libwrap
to block access from hosts we deny. (libwrap support from Greg A. Woods)


# 1.286 29-Oct-2020 nia

lib: Move sqlite, since it depends on libm


# 1.285 26-Sep-2020 jmcneill

Add HAVE_NVMM and use it to control the build of NVMM related components.
Defined to "yes" on amd64, "no" everywhere else.


# 1.284 15-Jun-2020 christos

Rename blacklist -> blocklist


# 1.283 24-May-2020 christos

Add libuv


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.282 04-Apr-2020 christos

remove smbfs


# 1.281 18-Mar-2020 tnn

libp2k still needs to be under MKRUMP


# 1.280 17-Mar-2020 christos

pam and tpm have nothing to do with rump, so limit them to the libraries that
need MKRUMP. (from Tobias Nygren)


# 1.279 03-Mar-2020 christos

move the pam module after the trench where pam is being build


# 1.278 03-Mar-2020 rin

Comment that libpam depends on libssh.


# 1.277 03-Mar-2020 christos

Move libpam to the next trench since it depends on ssh


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


Revision tags: is-mlppp-base
# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

branches: 1.271.2;
Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

branches: 1.251.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.299 26-Feb-2024 mrg

revert previous - it doesn't mean what i thought and some builds broke.


# 1.298 25-Feb-2024 mrg

skip sanitizers if MKSANITIZER "no".


# 1.297 06-Sep-2023 riastradh

lib: Handle various external lib directories with build_install.

This way, update builds track shlib major bumps correctly.

For example, suppose you had built Heimdal's libkrb5.so.27 and
libgssapi.so.11 linked against it, and then you updated past the recent
shlib major bump raising them to libkrb5.so.28 and libgssapi.so.12.

Without this change, the build will make the following sequence of
targets (interleaved with some others):

1. make dependall in libkrb5
2. make dependall in libgssapi
3. make install in libkrb5
4. make install in libgssapi

The existing .WAIT tags in SUBDIR ensure that (1) happens before (2)
and (3) happens before (4). Unfortunately, this sequence is wrong,
because it will produce the following effect:

1. make dependall in libkrb5 builds libkrb5.so.28
2. make dependall in libgssapi builds libgssapi.so.12, linked against
libkrb5.so.27
3. make install in libkrb5 installs libkrb5.so.28
4. make install in libgssapi installs libgssapi.so.12

Why the out-of-date libkrb5.so.27 in step (2)? Because we just pass
-L${DESTDIR}/usr/lib -lkrb5 to the linker (or the equivalent with
--sysroot and implied -L/usr/lib), and ${DESTDIR}/usr/lib still has
only libkrb5.so.27 by the time of step (2), not libkrb5.so.28.

Now any applications that link against libkrb5.so _and_ libgssapi.so
will get libkrb5.so.28 and libgssapi.so.12 -- but transitively, via
libgssapi.so.12, they will also get libkrb5.so.27, which is a recipe
for disaster.

Splicing the Heimdal library subdirectories into lib/Makefile, as
this does, ensures that we run make dependall _and_ make install in
libkrb5 _before_ make dependall in libgssapi, giving the following
correct sequence:

1. make dependall in libkrb5 builds libkrb5.so.28
2. make install in libkrb5 installs libkrb5.so.28
3. make dependall in libgssapi builds libgssapi.so.12, linked against
libkrb5.so.28
4. make install in libgssapi installs libgssapi.so.12

Note that LIBDPLIBS isn't enough here, as implemented. LIBDPLIBS
ensures that the incremental build will remake libgssapi.so. But it
doesn't ensure that the new libkrb5.so.28 is available before then,
so it doesn't prevent this problem.

We use the same mechanism for crypto/external/bsd/openssl/lib
already; this just extends it to other external library collections.

As an alternative, in principle perhaps we could teach LIBDPLIBS to
ensure that libkrb5.so comes out of the libkrb5 objdir, and not out
of ${DESTDIR}/usr/lib. But that requires some work to make happen,
and make it reliable, whereas this approach we've already confirmed
works without other adverse consequences (besides leaving
grody-looking mechanism lying around) for the libcrypto major bump
already. We need to get this pulled up to the branch so all the
other major bumps it required are handled correctly by update builds.

XXX pullup-10


# 1.296 20-Aug-2023 rin

lib/Makefile: Hook libgmp also for MKGDB=yes build

Now, gdb 13 can be built by clang, at least on amd64.


# 1.295 17-Jun-2023 christos

Include the OpenSSL Makefile fragment so that build_install works on each
OpenSSL subdirectory.


Revision tags: netbsd-10-base
# 1.294 30-May-2022 rin

branches: 1.294.2;
Introduce libc_aligned.so for evbppc-powerpc32, which provides
strictly-aligned versions of memcmp(3), bcopy(3), memcpy(3), and
memmove(3).

This is used for 403 by ld.so.conf with machdep.no_unaligned variable.

With this library, unaligned memory accesses are significantly reduced
for 403 (from several hundreds to few tens per sec under heavy load);
only ld.elf_so (typically few times per fork) and statically-linked
binaries do such access.


# 1.293 22-Nov-2021 nia

cgdconfig(8): Add an argon2id password-based key generation method

This provides an extra level of side-channel and cracking resistance
compared to the pre-existing pkcs5_pbkdf2/sha1 method used for
password-based disk encryption.

Several new keygen parameters are supported:

memory (integer, in kilobytes)
parallelism (integer, usually the number of CPU cores)
version (integer, usually 19...)

We do our best to calibrate these automatically when the paramsfile
is initially generated.

lgtm riastradh@


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.292 25-Apr-2021 christos

Use ${MACHINE_MIPS64}


# 1.291 09-Apr-2021 jkoshy

Avoid duplicate directory traversals when building Elftoolchain sources.


# 1.290 08-Apr-2021 jkoshy

Redo r1.288: traverse the complete imported Elftoolchain tree during a build.


# 1.289 06-Apr-2021 jkoshy

Attempt to unbreak the build by reverting r1.288.


# 1.288 06-Apr-2021 jkoshy

Traverse the complete imported Elftoolchain tree during a build.


# 1.287 07-Mar-2021 christos

Add blocklist support to libwrap which enables all programs using libwrap
to block access from hosts we deny. (libwrap support from Greg A. Woods)


# 1.286 29-Oct-2020 nia

lib: Move sqlite, since it depends on libm


# 1.285 26-Sep-2020 jmcneill

Add HAVE_NVMM and use it to control the build of NVMM related components.
Defined to "yes" on amd64, "no" everywhere else.


# 1.284 15-Jun-2020 christos

Rename blacklist -> blocklist


# 1.283 24-May-2020 christos

Add libuv


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.282 04-Apr-2020 christos

remove smbfs


# 1.281 18-Mar-2020 tnn

libp2k still needs to be under MKRUMP


# 1.280 17-Mar-2020 christos

pam and tpm have nothing to do with rump, so limit them to the libraries that
need MKRUMP. (from Tobias Nygren)


# 1.279 03-Mar-2020 christos

move the pam module after the trench where pam is being build


# 1.278 03-Mar-2020 rin

Comment that libpam depends on libssh.


# 1.277 03-Mar-2020 christos

Move libpam to the next trench since it depends on ssh


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


Revision tags: is-mlppp-base
# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

branches: 1.271.2;
Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

branches: 1.251.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.297 06-Sep-2023 riastradh

lib: Handle various external lib directories with build_install.

This way, update builds track shlib major bumps correctly.

For example, suppose you had built Heimdal's libkrb5.so.27 and
libgssapi.so.11 linked against it, and then you updated past the recent
shlib major bump raising them to libkrb5.so.28 and libgssapi.so.12.

Without this change, the build will make the following sequence of
targets (interleaved with some others):

1. make dependall in libkrb5
2. make dependall in libgssapi
3. make install in libkrb5
4. make install in libgssapi

The existing .WAIT tags in SUBDIR ensure that (1) happens before (2)
and (3) happens before (4). Unfortunately, this sequence is wrong,
because it will produce the following effect:

1. make dependall in libkrb5 builds libkrb5.so.28
2. make dependall in libgssapi builds libgssapi.so.12, linked against
libkrb5.so.27
3. make install in libkrb5 installs libkrb5.so.28
4. make install in libgssapi installs libgssapi.so.12

Why the out-of-date libkrb5.so.27 in step (2)? Because we just pass
-L${DESTDIR}/usr/lib -lkrb5 to the linker (or the equivalent with
--sysroot and implied -L/usr/lib), and ${DESTDIR}/usr/lib still has
only libkrb5.so.27 by the time of step (2), not libkrb5.so.28.

Now any applications that link against libkrb5.so _and_ libgssapi.so
will get libkrb5.so.28 and libgssapi.so.12 -- but transitively, via
libgssapi.so.12, they will also get libkrb5.so.27, which is a recipe
for disaster.

Splicing the Heimdal library subdirectories into lib/Makefile, as
this does, ensures that we run make dependall _and_ make install in
libkrb5 _before_ make dependall in libgssapi, giving the following
correct sequence:

1. make dependall in libkrb5 builds libkrb5.so.28
2. make install in libkrb5 installs libkrb5.so.28
3. make dependall in libgssapi builds libgssapi.so.12, linked against
libkrb5.so.28
4. make install in libgssapi installs libgssapi.so.12

Note that LIBDPLIBS isn't enough here, as implemented. LIBDPLIBS
ensures that the incremental build will remake libgssapi.so. But it
doesn't ensure that the new libkrb5.so.28 is available before then,
so it doesn't prevent this problem.

We use the same mechanism for crypto/external/bsd/openssl/lib
already; this just extends it to other external library collections.

As an alternative, in principle perhaps we could teach LIBDPLIBS to
ensure that libkrb5.so comes out of the libkrb5 objdir, and not out
of ${DESTDIR}/usr/lib. But that requires some work to make happen,
and make it reliable, whereas this approach we've already confirmed
works without other adverse consequences (besides leaving
grody-looking mechanism lying around) for the libcrypto major bump
already. We need to get this pulled up to the branch so all the
other major bumps it required are handled correctly by update builds.

XXX pullup-10


# 1.296 20-Aug-2023 rin

lib/Makefile: Hook libgmp also for MKGDB=yes build

Now, gdb 13 can be built by clang, at least on amd64.


# 1.295 17-Jun-2023 christos

Include the OpenSSL Makefile fragment so that build_install works on each
OpenSSL subdirectory.


Revision tags: netbsd-10-base
# 1.294 30-May-2022 rin

branches: 1.294.2;
Introduce libc_aligned.so for evbppc-powerpc32, which provides
strictly-aligned versions of memcmp(3), bcopy(3), memcpy(3), and
memmove(3).

This is used for 403 by ld.so.conf with machdep.no_unaligned variable.

With this library, unaligned memory accesses are significantly reduced
for 403 (from several hundreds to few tens per sec under heavy load);
only ld.elf_so (typically few times per fork) and statically-linked
binaries do such access.


# 1.293 22-Nov-2021 nia

cgdconfig(8): Add an argon2id password-based key generation method

This provides an extra level of side-channel and cracking resistance
compared to the pre-existing pkcs5_pbkdf2/sha1 method used for
password-based disk encryption.

Several new keygen parameters are supported:

memory (integer, in kilobytes)
parallelism (integer, usually the number of CPU cores)
version (integer, usually 19...)

We do our best to calibrate these automatically when the paramsfile
is initially generated.

lgtm riastradh@


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.292 25-Apr-2021 christos

Use ${MACHINE_MIPS64}


# 1.291 09-Apr-2021 jkoshy

Avoid duplicate directory traversals when building Elftoolchain sources.


# 1.290 08-Apr-2021 jkoshy

Redo r1.288: traverse the complete imported Elftoolchain tree during a build.


# 1.289 06-Apr-2021 jkoshy

Attempt to unbreak the build by reverting r1.288.


# 1.288 06-Apr-2021 jkoshy

Traverse the complete imported Elftoolchain tree during a build.


# 1.287 07-Mar-2021 christos

Add blocklist support to libwrap which enables all programs using libwrap
to block access from hosts we deny. (libwrap support from Greg A. Woods)


# 1.286 29-Oct-2020 nia

lib: Move sqlite, since it depends on libm


# 1.285 26-Sep-2020 jmcneill

Add HAVE_NVMM and use it to control the build of NVMM related components.
Defined to "yes" on amd64, "no" everywhere else.


# 1.284 15-Jun-2020 christos

Rename blacklist -> blocklist


# 1.283 24-May-2020 christos

Add libuv


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.282 04-Apr-2020 christos

remove smbfs


# 1.281 18-Mar-2020 tnn

libp2k still needs to be under MKRUMP


# 1.280 17-Mar-2020 christos

pam and tpm have nothing to do with rump, so limit them to the libraries that
need MKRUMP. (from Tobias Nygren)


# 1.279 03-Mar-2020 christos

move the pam module after the trench where pam is being build


# 1.278 03-Mar-2020 rin

Comment that libpam depends on libssh.


# 1.277 03-Mar-2020 christos

Move libpam to the next trench since it depends on ssh


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


Revision tags: is-mlppp-base
# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

branches: 1.271.2;
Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

branches: 1.251.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.296 20-Aug-2023 rin

lib/Makefile: Hook libgmp also for MKGDB=yes build

Now, gdb 13 can be built by clang, at least on amd64.


# 1.295 17-Jun-2023 christos

Include the OpenSSL Makefile fragment so that build_install works on each
OpenSSL subdirectory.


Revision tags: netbsd-10-base
# 1.294 30-May-2022 rin

branches: 1.294.2;
Introduce libc_aligned.so for evbppc-powerpc32, which provides
strictly-aligned versions of memcmp(3), bcopy(3), memcpy(3), and
memmove(3).

This is used for 403 by ld.so.conf with machdep.no_unaligned variable.

With this library, unaligned memory accesses are significantly reduced
for 403 (from several hundreds to few tens per sec under heavy load);
only ld.elf_so (typically few times per fork) and statically-linked
binaries do such access.


# 1.293 22-Nov-2021 nia

cgdconfig(8): Add an argon2id password-based key generation method

This provides an extra level of side-channel and cracking resistance
compared to the pre-existing pkcs5_pbkdf2/sha1 method used for
password-based disk encryption.

Several new keygen parameters are supported:

memory (integer, in kilobytes)
parallelism (integer, usually the number of CPU cores)
version (integer, usually 19...)

We do our best to calibrate these automatically when the paramsfile
is initially generated.

lgtm riastradh@


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.292 25-Apr-2021 christos

Use ${MACHINE_MIPS64}


# 1.291 09-Apr-2021 jkoshy

Avoid duplicate directory traversals when building Elftoolchain sources.


# 1.290 08-Apr-2021 jkoshy

Redo r1.288: traverse the complete imported Elftoolchain tree during a build.


# 1.289 06-Apr-2021 jkoshy

Attempt to unbreak the build by reverting r1.288.


# 1.288 06-Apr-2021 jkoshy

Traverse the complete imported Elftoolchain tree during a build.


# 1.287 07-Mar-2021 christos

Add blocklist support to libwrap which enables all programs using libwrap
to block access from hosts we deny. (libwrap support from Greg A. Woods)


# 1.286 29-Oct-2020 nia

lib: Move sqlite, since it depends on libm


# 1.285 26-Sep-2020 jmcneill

Add HAVE_NVMM and use it to control the build of NVMM related components.
Defined to "yes" on amd64, "no" everywhere else.


# 1.284 15-Jun-2020 christos

Rename blacklist -> blocklist


# 1.283 24-May-2020 christos

Add libuv


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.282 04-Apr-2020 christos

remove smbfs


# 1.281 18-Mar-2020 tnn

libp2k still needs to be under MKRUMP


# 1.280 17-Mar-2020 christos

pam and tpm have nothing to do with rump, so limit them to the libraries that
need MKRUMP. (from Tobias Nygren)


# 1.279 03-Mar-2020 christos

move the pam module after the trench where pam is being build


# 1.278 03-Mar-2020 rin

Comment that libpam depends on libssh.


# 1.277 03-Mar-2020 christos

Move libpam to the next trench since it depends on ssh


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


Revision tags: is-mlppp-base
# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

branches: 1.271.2;
Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

branches: 1.251.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.295 17-Jun-2023 christos

Include the OpenSSL Makefile fragment so that build_install works on each
OpenSSL subdirectory.


Revision tags: netbsd-10-base
# 1.294 30-May-2022 rin

Introduce libc_aligned.so for evbppc-powerpc32, which provides
strictly-aligned versions of memcmp(3), bcopy(3), memcpy(3), and
memmove(3).

This is used for 403 by ld.so.conf with machdep.no_unaligned variable.

With this library, unaligned memory accesses are significantly reduced
for 403 (from several hundreds to few tens per sec under heavy load);
only ld.elf_so (typically few times per fork) and statically-linked
binaries do such access.


# 1.293 22-Nov-2021 nia

cgdconfig(8): Add an argon2id password-based key generation method

This provides an extra level of side-channel and cracking resistance
compared to the pre-existing pkcs5_pbkdf2/sha1 method used for
password-based disk encryption.

Several new keygen parameters are supported:

memory (integer, in kilobytes)
parallelism (integer, usually the number of CPU cores)
version (integer, usually 19...)

We do our best to calibrate these automatically when the paramsfile
is initially generated.

lgtm riastradh@


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.292 25-Apr-2021 christos

Use ${MACHINE_MIPS64}


# 1.291 09-Apr-2021 jkoshy

Avoid duplicate directory traversals when building Elftoolchain sources.


# 1.290 08-Apr-2021 jkoshy

Redo r1.288: traverse the complete imported Elftoolchain tree during a build.


# 1.289 06-Apr-2021 jkoshy

Attempt to unbreak the build by reverting r1.288.


# 1.288 06-Apr-2021 jkoshy

Traverse the complete imported Elftoolchain tree during a build.


# 1.287 07-Mar-2021 christos

Add blocklist support to libwrap which enables all programs using libwrap
to block access from hosts we deny. (libwrap support from Greg A. Woods)


# 1.286 29-Oct-2020 nia

lib: Move sqlite, since it depends on libm


# 1.285 26-Sep-2020 jmcneill

Add HAVE_NVMM and use it to control the build of NVMM related components.
Defined to "yes" on amd64, "no" everywhere else.


# 1.284 15-Jun-2020 christos

Rename blacklist -> blocklist


# 1.283 24-May-2020 christos

Add libuv


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.282 04-Apr-2020 christos

remove smbfs


# 1.281 18-Mar-2020 tnn

libp2k still needs to be under MKRUMP


# 1.280 17-Mar-2020 christos

pam and tpm have nothing to do with rump, so limit them to the libraries that
need MKRUMP. (from Tobias Nygren)


# 1.279 03-Mar-2020 christos

move the pam module after the trench where pam is being build


# 1.278 03-Mar-2020 rin

Comment that libpam depends on libssh.


# 1.277 03-Mar-2020 christos

Move libpam to the next trench since it depends on ssh


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


Revision tags: is-mlppp-base
# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

branches: 1.271.2;
Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

branches: 1.251.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.294 30-May-2022 rin

Introduce libc_aligned.so for evbppc-powerpc32, which provides
strictly-aligned versions of memcmp(3), bcopy(3), memcpy(3), and
memmove(3).

This is used for 403 by ld.so.conf with machdep.no_unaligned variable.

With this library, unaligned memory accesses are significantly reduced
for 403 (from several hundreds to few tens per sec under heavy load);
only ld.elf_so (typically few times per fork) and statically-linked
binaries do such access.


# 1.293 22-Nov-2021 nia

cgdconfig(8): Add an argon2id password-based key generation method

This provides an extra level of side-channel and cracking resistance
compared to the pre-existing pkcs5_pbkdf2/sha1 method used for
password-based disk encryption.

Several new keygen parameters are supported:

memory (integer, in kilobytes)
parallelism (integer, usually the number of CPU cores)
version (integer, usually 19...)

We do our best to calibrate these automatically when the paramsfile
is initially generated.

lgtm riastradh@


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.292 25-Apr-2021 christos

Use ${MACHINE_MIPS64}


# 1.291 09-Apr-2021 jkoshy

Avoid duplicate directory traversals when building Elftoolchain sources.


# 1.290 08-Apr-2021 jkoshy

Redo r1.288: traverse the complete imported Elftoolchain tree during a build.


# 1.289 06-Apr-2021 jkoshy

Attempt to unbreak the build by reverting r1.288.


# 1.288 06-Apr-2021 jkoshy

Traverse the complete imported Elftoolchain tree during a build.


# 1.287 07-Mar-2021 christos

Add blocklist support to libwrap which enables all programs using libwrap
to block access from hosts we deny. (libwrap support from Greg A. Woods)


# 1.286 29-Oct-2020 nia

lib: Move sqlite, since it depends on libm


# 1.285 26-Sep-2020 jmcneill

Add HAVE_NVMM and use it to control the build of NVMM related components.
Defined to "yes" on amd64, "no" everywhere else.


# 1.284 15-Jun-2020 christos

Rename blacklist -> blocklist


# 1.283 24-May-2020 christos

Add libuv


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.282 04-Apr-2020 christos

remove smbfs


# 1.281 18-Mar-2020 tnn

libp2k still needs to be under MKRUMP


# 1.280 17-Mar-2020 christos

pam and tpm have nothing to do with rump, so limit them to the libraries that
need MKRUMP. (from Tobias Nygren)


# 1.279 03-Mar-2020 christos

move the pam module after the trench where pam is being build


# 1.278 03-Mar-2020 rin

Comment that libpam depends on libssh.


# 1.277 03-Mar-2020 christos

Move libpam to the next trench since it depends on ssh


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


Revision tags: is-mlppp-base
# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

branches: 1.271.2;
Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

branches: 1.251.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.293 22-Nov-2021 nia

cgdconfig(8): Add an argon2id password-based key generation method

This provides an extra level of side-channel and cracking resistance
compared to the pre-existing pkcs5_pbkdf2/sha1 method used for
password-based disk encryption.

Several new keygen parameters are supported:

memory (integer, in kilobytes)
parallelism (integer, usually the number of CPU cores)
version (integer, usually 19...)

We do our best to calibrate these automatically when the paramsfile
is initially generated.

lgtm riastradh@


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.292 25-Apr-2021 christos

Use ${MACHINE_MIPS64}


# 1.291 09-Apr-2021 jkoshy

Avoid duplicate directory traversals when building Elftoolchain sources.


# 1.290 08-Apr-2021 jkoshy

Redo r1.288: traverse the complete imported Elftoolchain tree during a build.


# 1.289 06-Apr-2021 jkoshy

Attempt to unbreak the build by reverting r1.288.


# 1.288 06-Apr-2021 jkoshy

Traverse the complete imported Elftoolchain tree during a build.


# 1.287 07-Mar-2021 christos

Add blocklist support to libwrap which enables all programs using libwrap
to block access from hosts we deny. (libwrap support from Greg A. Woods)


# 1.286 29-Oct-2020 nia

lib: Move sqlite, since it depends on libm


# 1.285 26-Sep-2020 jmcneill

Add HAVE_NVMM and use it to control the build of NVMM related components.
Defined to "yes" on amd64, "no" everywhere else.


# 1.284 15-Jun-2020 christos

Rename blacklist -> blocklist


# 1.283 24-May-2020 christos

Add libuv


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.282 04-Apr-2020 christos

remove smbfs


# 1.281 18-Mar-2020 tnn

libp2k still needs to be under MKRUMP


# 1.280 17-Mar-2020 christos

pam and tpm have nothing to do with rump, so limit them to the libraries that
need MKRUMP. (from Tobias Nygren)


# 1.279 03-Mar-2020 christos

move the pam module after the trench where pam is being build


# 1.278 03-Mar-2020 rin

Comment that libpam depends on libssh.


# 1.277 03-Mar-2020 christos

Move libpam to the next trench since it depends on ssh


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


Revision tags: is-mlppp-base
# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

branches: 1.271.2;
Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

branches: 1.251.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.292 25-Apr-2021 christos

Use ${MACHINE_MIPS64}


# 1.291 09-Apr-2021 jkoshy

Avoid duplicate directory traversals when building Elftoolchain sources.


# 1.290 08-Apr-2021 jkoshy

Redo r1.288: traverse the complete imported Elftoolchain tree during a build.


# 1.289 06-Apr-2021 jkoshy

Attempt to unbreak the build by reverting r1.288.


# 1.288 06-Apr-2021 jkoshy

Traverse the complete imported Elftoolchain tree during a build.


# 1.287 07-Mar-2021 christos

Add blocklist support to libwrap which enables all programs using libwrap
to block access from hosts we deny. (libwrap support from Greg A. Woods)


# 1.286 29-Oct-2020 nia

lib: Move sqlite, since it depends on libm


# 1.285 26-Sep-2020 jmcneill

Add HAVE_NVMM and use it to control the build of NVMM related components.
Defined to "yes" on amd64, "no" everywhere else.


# 1.284 15-Jun-2020 christos

Rename blacklist -> blocklist


# 1.283 24-May-2020 christos

Add libuv


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.282 04-Apr-2020 christos

remove smbfs


# 1.281 18-Mar-2020 tnn

libp2k still needs to be under MKRUMP


# 1.280 17-Mar-2020 christos

pam and tpm have nothing to do with rump, so limit them to the libraries that
need MKRUMP. (from Tobias Nygren)


# 1.279 03-Mar-2020 christos

move the pam module after the trench where pam is being build


# 1.278 03-Mar-2020 rin

Comment that libpam depends on libssh.


# 1.277 03-Mar-2020 christos

Move libpam to the next trench since it depends on ssh


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


Revision tags: is-mlppp-base
# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

branches: 1.271.2;
Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

branches: 1.251.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.291 09-Apr-2021 jkoshy

Avoid duplicate directory traversals when building Elftoolchain sources.


# 1.290 08-Apr-2021 jkoshy

Redo r1.288: traverse the complete imported Elftoolchain tree during a build.


# 1.289 06-Apr-2021 jkoshy

Attempt to unbreak the build by reverting r1.288.


# 1.288 06-Apr-2021 jkoshy

Traverse the complete imported Elftoolchain tree during a build.


# 1.287 07-Mar-2021 christos

Add blocklist support to libwrap which enables all programs using libwrap
to block access from hosts we deny. (libwrap support from Greg A. Woods)


# 1.286 29-Oct-2020 nia

lib: Move sqlite, since it depends on libm


# 1.285 26-Sep-2020 jmcneill

Add HAVE_NVMM and use it to control the build of NVMM related components.
Defined to "yes" on amd64, "no" everywhere else.


# 1.284 15-Jun-2020 christos

Rename blacklist -> blocklist


# 1.283 24-May-2020 christos

Add libuv


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.282 04-Apr-2020 christos

remove smbfs


# 1.281 18-Mar-2020 tnn

libp2k still needs to be under MKRUMP


# 1.280 17-Mar-2020 christos

pam and tpm have nothing to do with rump, so limit them to the libraries that
need MKRUMP. (from Tobias Nygren)


# 1.279 03-Mar-2020 christos

move the pam module after the trench where pam is being build


# 1.278 03-Mar-2020 rin

Comment that libpam depends on libssh.


# 1.277 03-Mar-2020 christos

Move libpam to the next trench since it depends on ssh


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


Revision tags: is-mlppp-base
# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

branches: 1.271.2;
Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

branches: 1.251.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.290 08-Apr-2021 jkoshy

Redo r1.288: traverse the complete imported Elftoolchain tree during a build.


# 1.289 06-Apr-2021 jkoshy

Attempt to unbreak the build by reverting r1.288.


# 1.288 06-Apr-2021 jkoshy

Traverse the complete imported Elftoolchain tree during a build.


# 1.287 07-Mar-2021 christos

Add blocklist support to libwrap which enables all programs using libwrap
to block access from hosts we deny. (libwrap support from Greg A. Woods)


# 1.286 29-Oct-2020 nia

lib: Move sqlite, since it depends on libm


# 1.285 26-Sep-2020 jmcneill

Add HAVE_NVMM and use it to control the build of NVMM related components.
Defined to "yes" on amd64, "no" everywhere else.


# 1.284 15-Jun-2020 christos

Rename blacklist -> blocklist


# 1.283 24-May-2020 christos

Add libuv


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.282 04-Apr-2020 christos

remove smbfs


# 1.281 18-Mar-2020 tnn

libp2k still needs to be under MKRUMP


# 1.280 17-Mar-2020 christos

pam and tpm have nothing to do with rump, so limit them to the libraries that
need MKRUMP. (from Tobias Nygren)


# 1.279 03-Mar-2020 christos

move the pam module after the trench where pam is being build


# 1.278 03-Mar-2020 rin

Comment that libpam depends on libssh.


# 1.277 03-Mar-2020 christos

Move libpam to the next trench since it depends on ssh


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


Revision tags: is-mlppp-base
# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

branches: 1.271.2;
Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

branches: 1.251.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.289 06-Apr-2021 jkoshy

Attempt to unbreak the build by reverting r1.288.


# 1.288 06-Apr-2021 jkoshy

Traverse the complete imported Elftoolchain tree during a build.


# 1.287 07-Mar-2021 christos

Add blocklist support to libwrap which enables all programs using libwrap
to block access from hosts we deny. (libwrap support from Greg A. Woods)


# 1.286 29-Oct-2020 nia

lib: Move sqlite, since it depends on libm


# 1.285 26-Sep-2020 jmcneill

Add HAVE_NVMM and use it to control the build of NVMM related components.
Defined to "yes" on amd64, "no" everywhere else.


# 1.284 15-Jun-2020 christos

Rename blacklist -> blocklist


# 1.283 24-May-2020 christos

Add libuv


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.282 04-Apr-2020 christos

remove smbfs


# 1.281 18-Mar-2020 tnn

libp2k still needs to be under MKRUMP


# 1.280 17-Mar-2020 christos

pam and tpm have nothing to do with rump, so limit them to the libraries that
need MKRUMP. (from Tobias Nygren)


# 1.279 03-Mar-2020 christos

move the pam module after the trench where pam is being build


# 1.278 03-Mar-2020 rin

Comment that libpam depends on libssh.


# 1.277 03-Mar-2020 christos

Move libpam to the next trench since it depends on ssh


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


Revision tags: is-mlppp-base
# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

branches: 1.271.2;
Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

branches: 1.251.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.287 07-Mar-2021 christos

Add blocklist support to libwrap which enables all programs using libwrap
to block access from hosts we deny. (libwrap support from Greg A. Woods)


# 1.286 29-Oct-2020 nia

lib: Move sqlite, since it depends on libm


# 1.285 26-Sep-2020 jmcneill

Add HAVE_NVMM and use it to control the build of NVMM related components.
Defined to "yes" on amd64, "no" everywhere else.


# 1.284 15-Jun-2020 christos

Rename blacklist -> blocklist


# 1.283 24-May-2020 christos

Add libuv


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.282 04-Apr-2020 christos

remove smbfs


# 1.281 18-Mar-2020 tnn

libp2k still needs to be under MKRUMP


# 1.280 17-Mar-2020 christos

pam and tpm have nothing to do with rump, so limit them to the libraries that
need MKRUMP. (from Tobias Nygren)


# 1.279 03-Mar-2020 christos

move the pam module after the trench where pam is being build


# 1.278 03-Mar-2020 rin

Comment that libpam depends on libssh.


# 1.277 03-Mar-2020 christos

Move libpam to the next trench since it depends on ssh


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


Revision tags: is-mlppp-base
# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

branches: 1.271.2;
Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

branches: 1.251.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.286 29-Oct-2020 nia

lib: Move sqlite, since it depends on libm


# 1.285 26-Sep-2020 jmcneill

Add HAVE_NVMM and use it to control the build of NVMM related components.
Defined to "yes" on amd64, "no" everywhere else.


# 1.284 15-Jun-2020 christos

Rename blacklist -> blocklist


# 1.283 24-May-2020 christos

Add libuv


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.282 04-Apr-2020 christos

remove smbfs


# 1.281 18-Mar-2020 tnn

libp2k still needs to be under MKRUMP


# 1.280 17-Mar-2020 christos

pam and tpm have nothing to do with rump, so limit them to the libraries that
need MKRUMP. (from Tobias Nygren)


# 1.279 03-Mar-2020 christos

move the pam module after the trench where pam is being build


# 1.278 03-Mar-2020 rin

Comment that libpam depends on libssh.


# 1.277 03-Mar-2020 christos

Move libpam to the next trench since it depends on ssh


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


Revision tags: is-mlppp-base
# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

branches: 1.271.2;
Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

branches: 1.251.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.285 26-Sep-2020 jmcneill

Add HAVE_NVMM and use it to control the build of NVMM related components.
Defined to "yes" on amd64, "no" everywhere else.


# 1.284 15-Jun-2020 christos

Rename blacklist -> blocklist


# 1.283 24-May-2020 christos

Add libuv


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.282 04-Apr-2020 christos

remove smbfs


# 1.281 18-Mar-2020 tnn

libp2k still needs to be under MKRUMP


# 1.280 17-Mar-2020 christos

pam and tpm have nothing to do with rump, so limit them to the libraries that
need MKRUMP. (from Tobias Nygren)


# 1.279 03-Mar-2020 christos

move the pam module after the trench where pam is being build


# 1.278 03-Mar-2020 rin

Comment that libpam depends on libssh.


# 1.277 03-Mar-2020 christos

Move libpam to the next trench since it depends on ssh


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


Revision tags: is-mlppp-base
# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

branches: 1.271.2;
Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

branches: 1.251.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.284 15-Jun-2020 christos

Rename blacklist -> blocklist


# 1.283 24-May-2020 christos

Add libuv


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.282 04-Apr-2020 christos

remove smbfs


# 1.281 18-Mar-2020 tnn

libp2k still needs to be under MKRUMP


# 1.280 17-Mar-2020 christos

pam and tpm have nothing to do with rump, so limit them to the libraries that
need MKRUMP. (from Tobias Nygren)


# 1.279 03-Mar-2020 christos

move the pam module after the trench where pam is being build


# 1.278 03-Mar-2020 rin

Comment that libpam depends on libssh.


# 1.277 03-Mar-2020 christos

Move libpam to the next trench since it depends on ssh


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


Revision tags: is-mlppp-base
# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

branches: 1.271.2;
Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

branches: 1.251.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.283 24-May-2020 christos

Add libuv


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.282 04-Apr-2020 christos

remove smbfs


# 1.281 18-Mar-2020 tnn

libp2k still needs to be under MKRUMP


# 1.280 17-Mar-2020 christos

pam and tpm have nothing to do with rump, so limit them to the libraries that
need MKRUMP. (from Tobias Nygren)


# 1.279 03-Mar-2020 christos

move the pam module after the trench where pam is being build


# 1.278 03-Mar-2020 rin

Comment that libpam depends on libssh.


# 1.277 03-Mar-2020 christos

Move libpam to the next trench since it depends on ssh


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


Revision tags: is-mlppp-base
# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

branches: 1.271.2;
Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

branches: 1.251.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.282 04-Apr-2020 christos

remove smbfs


# 1.281 18-Mar-2020 tnn

libp2k still needs to be under MKRUMP


# 1.280 17-Mar-2020 christos

pam and tpm have nothing to do with rump, so limit them to the libraries that
need MKRUMP. (from Tobias Nygren)


# 1.279 03-Mar-2020 christos

move the pam module after the trench where pam is being build


# 1.278 03-Mar-2020 rin

Comment that libpam depends on libssh.


# 1.277 03-Mar-2020 christos

Move libpam to the next trench since it depends on ssh


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

branches: 1.271.2;
Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

branches: 1.251.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.281 18-Mar-2020 tnn

libp2k still needs to be under MKRUMP


# 1.280 17-Mar-2020 christos

pam and tpm have nothing to do with rump, so limit them to the libraries that
need MKRUMP. (from Tobias Nygren)


# 1.279 03-Mar-2020 christos

move the pam module after the trench where pam is being build


# 1.278 03-Mar-2020 rin

Comment that libpam depends on libssh.


# 1.277 03-Mar-2020 christos

Move libpam to the next trench since it depends on ssh


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

branches: 1.271.2;
Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

branches: 1.251.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.279 03-Mar-2020 christos

move the pam module after the trench where pam is being build


# 1.278 03-Mar-2020 rin

Comment that libpam depends on libssh.


# 1.277 03-Mar-2020 christos

Move libpam to the next trench since it depends on ssh


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

branches: 1.271.2;
Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

branches: 1.251.2;
Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.276 03-Mar-2020 riastradh

Remove unfinished hack I accidentally committed in 2017.

This caused make to unconditionally take ages running useless
submakes in every subdirectory. Accidentally committed during the
MKCRYPTO option removal when I was presumably experimenting with
automating library dependency generation in lib.

Should shave a few seconds at least off every build!


# 1.275 03-Mar-2020 christos

Add libcbor, libfido2


# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.274 18-Dec-2019 christos

move file/lib after xz


Revision tags: phil-wifi-20191119
# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.273 11-Nov-2019 joerg

Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.272 23-Aug-2019 mrg

fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists


Revision tags: netbsd-9-base phil-wifi-20190609
# 1.271 10-May-2019 nakayama

Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

branches: 1.258.2;
put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.271 10-May-2019 nakayama

Don't build compat LLVM PIC libraries since it is unused if MKCOMPATX11 == "no".


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.270 03-Apr-2019 joerg

Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.


# 1.269 12-Mar-2019 christos

add libjemalloc for the non-standard jemalloc symbols.


# 1.268 04-Mar-2019 maya

revert previous.

This breaks 64bit builds, it attempts to build a compat library too
and it fails to find headers for it.


# 1.267 03-Mar-2019 maya

Traverse into external/bsd/llvm/lib when building libraries.

This allows things that occur after lib (like do-x11) to depend on llvm
libraries already existing.

We need libexecinfo, so adding llvm after the 2nd library barrier.


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
# 1.266 24-Dec-2018 mrg

move sqlite earlier in its section. my build often sits with only 3
processes active here for quite some time otherwise.


Revision tags: pgoyette-compat-1126
# 1.265 13-Nov-2018 martin

Too much magic involved - revert previous.


# 1.264 13-Nov-2018 martin

Move conditionals for libnvmm to subdir makefile, requested boy mrg.


# 1.263 12-Nov-2018 martin

Do not build a compat i386 version of libnvmm.


# 1.262 10-Nov-2018 maxv

Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930
# 1.261 08-Sep-2018 christos

Add libnv


Revision tags: pgoyette-compat-0906
# 1.260 12-Aug-2018 christos

switch to the new bind.


Revision tags: pgoyette-compat-0728
# 1.259 12-Jul-2018 maxv

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.


Revision tags: phil-wifi-base
# 1.258 28-Jun-2018 christos

put back lsan


Revision tags: pgoyette-compat-0625
# 1.257 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: pgoyette-compat-0521
# 1.256 03-May-2018 sevan

Hello libbozohttpd(3)
Enabling as it is a dependency for bozohttpd(3lua).


Revision tags: pgoyette-compat-0502
# 1.255 01-May-2018 christos

Add the netpgp lua bindings so that the compat build can build them.


Revision tags: pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.254 04-Feb-2018 christos

branches: 1.254.2;
switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.254 04-Feb-2018 christos

switch everyone to openssl.old


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.253 10-Oct-2017 christos

Add a library for the rump resolver interception code so that it will become
easier to hide resolver internals later.


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.252 22-Aug-2017 mrg

don't build gmp/mpfr/mpc if we're not building GCC commands (MKGCCCMDS==no.)


Revision tags: perseant-stdc-iso10646-base netbsd-8-base
# 1.251 21-May-2017 riastradh

Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.251 21-May-2017 riastradh

Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export. The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated. I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S. Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet... That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.


Revision tags: prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

branches: 1.248.2;
build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.250 22-Feb-2017 maya

GC deprecated logic. GCC 4.8 is not in tree any more.


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


# 1.249 08-Feb-2017 kamil

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision


Revision tags: pgoyette-localcount-20161104
# 1.248 14-Oct-2016 macallan

build libc_fp only on mips64*


# 1.247 11-Oct-2016 macallan

build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat


Revision tags: localcount-20160914
# 1.246 20-Aug-2016 christos

unbound additions


Revision tags: pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.245 05-Jun-2016 christos

branches: 1.245.2;
conditionalize


# 1.244 05-Jun-2016 christos

add ubsan


# 1.243 04-Jun-2016 christos

sanitizer for all.


# 1.242 04-Jun-2016 christos

Asan is back


# 1.241 17-Mar-2016 mrg

don't build libmudflap* for GCC 5.3.

also, disable libasan here as well (for now).


# 1.240 29-Feb-2016 riastradh

Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.

Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile. Is the latter even used?


# 1.239 26-Jan-2016 christos

use EXTERNAL_BINUTILS_SUBDIR


# 1.238 13-Jan-2016 christos

switch to the external version of libmalloc


# 1.237 31-Dec-2015 christos

Move blacklistd later now that it depends on libpthread (From Rin Okuyama)


# 1.236 22-Nov-2015 kamil

Plug-in libpanel(3): Z-order for curses windows


# 1.235 28-Sep-2015 christos

Neither libproc or librtld_db require CTF


# 1.234 25-Sep-2015 christos

Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.


# 1.233 25-Sep-2015 christos

we always build librtld_db and libproc.


# 1.232 25-Sep-2015 martin

librtld_db depends on libproc, so conditionalize it as well


# 1.231 25-Sep-2015 martin

libproc depends on libctf, so conditionalize it with the same condition


# 1.230 24-Sep-2015 christos

make dtrace follow libproc.


# 1.229 24-Sep-2015 christos

Hook up libproc and librtld_db into the build


# 1.228 22-Sep-2015 joerg

Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64.


# 1.227 17-Sep-2015 christos

move libctf after the barrier since it depends on libz


# 1.226 08-Jul-2015 matt

Possibly build libc_vfp if MACHINE_CPU is aarch64 too.
Use AFLAGS to pass -mfpu=vfp


# 1.225 23-Jun-2015 matt

Add DTRACE and CTF libraries


# 1.224 22-Jun-2015 matt

Add libraries created by MKZFS != "no"


# 1.223 22-Jun-2015 matt

Build external/gpl3/lib/libmudpath{,th} so that MKCOMPAT picks it up


# 1.222 12-May-2015 christos

libasan depends on libstdc++ so move it under the wait barrier.


# 1.221 17-Apr-2015 mrg

xz/lib depends upon pthread so move it to the 1st dependancy point.
libarchive/lib depends upon xz, so move to the 2nd.


# 1.220 25-Jan-2015 christos

hook into blacklist


# 1.219 25-Oct-2014 christos

Try to future-proof this. Can libasan be built by clang?


# 1.218 24-Oct-2014 joerg

HAVE_GCC might not be defined at all...


# 1.217 23-Oct-2014 martin

Only visit libasan if ${HAVE_GCC} == "48"


# 1.216 22-Oct-2014 christos

add asan to the libraries we build.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.215 13-Jun-2014 mrg

branches: 1.215.2;
remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)


Revision tags: yamt-pagecache-base9
# 1.214 09-May-2014 plunky

Move libsjjit and libbpfjit to the pre-dependency section and remove
the unnecessary .WAIT. They are both marked LIBISPRIVATE, which does
mean no link is performed, and there are no dependencies.


# 1.213 22-Apr-2014 joerg

Retire USE_COMPILERCRTSTUFF=yes.


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.212 09-Mar-2014 christos

branches: 1.212.2;
switch to the elftoolchain code.


# 1.211 26-Feb-2014 mrg

prepare for moving GCC 4.5 into gcc.old:

- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
because it arranges for ../Makefile.inc to be included earlier, and
don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
is kind of sketchy, it would be great if this was fixed.


# 1.210 26-Dec-2013 christos

add smbfs library


# 1.209 28-Nov-2013 mrg

update to MPC 1.0.1.


# 1.208 03-Oct-2013 mrg

move netpgp, lua and npf libraries to depenancy points after the
libraries they depend upon. netpgp wants libz, lua wants libm,
and npf wants libnpf.


# 1.207 11-Sep-2013 joerg

If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.


# 1.206 21-Aug-2013 matt

Don't build compat versions libkern.a


# 1.205 20-Aug-2013 matt

Build libkern


# 1.204 29-Jul-2013 joerg

libbind now depends on heimdal, so push it after the third barrier.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.203 28-Apr-2013 joerg

Introduce MKLIBSTDCXX, defaulting to yes.


# 1.202 27-Apr-2013 joerg

Add build glue for libc++.


# 1.201 27-Apr-2013 matt

Detect earm*hf* in a cleaner manner


# 1.200 12-Apr-2013 skrll

Build libc_vfp on earm as well. Fix the sets.


# 1.199 11-Apr-2013 christos

build libevent later.


Revision tags: agc-symver-base
# 1.198 16-Feb-2013 jmmv

Hook Lutok into the build. This is all protected by the MKKYUA guard.


# 1.197 28-Jan-2013 matt

Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.196 20-Nov-2012 agc

descend into libnetpgpverify so that the compat entries are picked up


# 1.195 15-Nov-2012 joerg

Move the build_install logic from lib/Makefile into share/mk and re-use
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.


# 1.194 11-Nov-2012 alnsn

Add libbpfjit library.


# 1.193 05-Nov-2012 alnsn

Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386.


# 1.192 04-Nov-2012 christos

put a wait barrier between trousers and tpm-tools


# 1.191 04-Nov-2012 christos

fix typo


# 1.190 04-Nov-2012 christos

hook in TPM


Revision tags: yamt-pagecache-base6
# 1.189 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.188 17-Aug-2012 joerg

branches: 1.188.2;
Implement build_install in src/lib/Makefile, which traverses the
subdirectories and invokes dependall/install. Do this in groups
delimited by .WAIT to ensure that depending libraries can use the
installed versions and don't need to know the locations in the source
tree.

Use this new target in src/Makefile to replace most of the adhoc library
logic with two special cases, src/lib and src/compat. Adjust
sys/Makefile to include the module directory when building them. Add
some necessary .WAITs in src/lib/Makefile to reflect the dependencies
from src/Makefile and also add the rump libraries here.


# 1.187 08-Aug-2012 christos

exclude rump libraries if MKRUMP = no


# 1.186 12-Jul-2012 christos

don't mention the indirect libm dependency.


# 1.185 12-Jul-2012 christos

move atf down to fix the build


# 1.184 27-May-2012 matt

Place SUBDIR+= libexecinfo properly based on its dependency on libelf.


# 1.183 26-May-2012 christos

hook in libexecinfo


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.182 29-Feb-2012 tron

Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.


Revision tags: netbsd-6-base
# 1.181 07-Feb-2012 joerg

branches: 1.181.2;
Import the new apropos/whatis.

This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2
# 1.180 05-Nov-2011 christos

hook in tre


Revision tags: yamt-pagecache-base
# 1.179 13-Oct-2011 joerg

branches: 1.179.2;
Hook up SQLite into the build


# 1.178 07-Oct-2011 mbalmer

Descent into lua.


# 1.177 23-Sep-2011 mrg

add libgomp to this list of libs; so compat finds it properly.


# 1.176 26-Aug-2011 dyoung

Build and install ppath(3), property-list paths library.


# 1.175 20-Aug-2011 plunky

sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.


# 1.174 20-Aug-2011 plunky

only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies


# 1.173 21-Jul-2011 mrg

build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.


# 1.172 07-Jul-2011 matt

Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.


# 1.171 07-Jul-2011 mrg

add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc.


# 1.170 29-Jun-2011 mrg

re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.


# 1.169 22-Jun-2011 mrg

fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working. XXX.


# 1.168 21-Jun-2011 mrg

add HAVE_GCC=45 support.


Revision tags: cherry-xenmp-base
# 1.167 09-May-2011 manu

branches: 1.167.2;
Enable the build of perfused and libperfuse


# 1.166 15-Apr-2011 elric

Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal. The latter was just imported as the head
of the Heimdal tree as of a few days ago.


# 1.165 24-Mar-2011 bouyer

Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.164 12-Feb-2011 matt

Need to build libsaslc


# 1.163 10-Feb-2011 matt

Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.


# 1.162 08-Feb-2011 haad

Initial import of libdm and dmctl to tree. libdm library can be used
to access, manage and manipulate device-mapper driver. Which opens us bunch
of new possibilities like

dm-multipath device target
dm-crypt device target
dm-ccd compatibility layer

With this import I'm bringing in dmctl tool for working with dm driver ,too.
I plan to replace gpl2 licensed dmsetup command with our dmctl tool in near
feature. It can also by placed to /rescue where we was not able to put
dmsetup because of licensing problems.

With libdm in tree we can now write RUMP atf test suite for dm driver to
ensure LVM subsystem stability as time goes.

Reviewed by: blymn@ and rmind@
Oked: by no objections on tech-userlevel@


# 1.161 02-Feb-2011 rmind

NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.


# 1.160 18-Jan-2011 pooka

branches: 1.160.2;
hook librumphijack to the build


# 1.159 17-Jan-2011 agc

Hook libisns into the build, and modify the set lists accordingly.

Note the addition of iSNS protocol support in doc/CHANGES

With thanks to Wasabi Systems for contributing the code.


Revision tags: matt-mips64-premerge-20101231
# 1.158 12-Dec-2010 plunky

rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents


# 1.157 05-Dec-2010 pooka

rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.


# 1.156 05-Dec-2010 christos

hook new libpcap


# 1.155 03-Dec-2010 plunky

Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.


# 1.154 21-Nov-2010 christos

build the ldap libraries; am-utils needs them.


# 1.153 04-Nov-2010 pooka

Add library for rump syscall client stubs.


# 1.152 31-Oct-2010 mbalmer

Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.


# 1.151 01-Sep-2010 agc

Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.


# 1.150 07-Aug-2010 christos

fix the build; we need libmj installed before compiling netpgp binaries.


# 1.149 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 1.148 29-Dec-2009 mrg

avoid some subdirs that need -lcrypto, for MKCRYPTO=no.


Revision tags: matt-premerge-20091211
# 1.147 02-Nov-2009 plunky

switch build to use libevent-1.4.12-stable from external


# 1.146 26-Oct-2009 christos

hook the new flex.


# 1.145 26-Oct-2009 christos

back to old lex


# 1.144 26-Oct-2009 christos

hook the new flex library


# 1.143 03-Sep-2009 pooka

Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.


# 1.142 03-Sep-2009 pooka

install librumpcrypto component: kernel crypto routines


# 1.141 19-Jul-2009 christos

OpenSSL moved to crypto/external


# 1.140 25-Jun-2009 agc

Switch over to building iscsi library, target and initiator from the
external framework.


# 1.139 09-Jun-2009 mrg

build libnetpgp and libssh earlier.
look for libssh in the right place.


# 1.138 07-Jun-2009 christos

Disconnect ssh


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.137 12-May-2009 plunky

remove libsdp as improved functionality has been enabled in libbluetooth.


# 1.136 08-May-2009 christos

unhook libmagic


# 1.135 14-Apr-2009 christos

External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.


# 1.134 12-Apr-2009 christos

unhook bind libraries


# 1.133 26-Jan-2009 mrg

branches: 1.133.2;
put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.


# 1.132 19-Jan-2009 jmmv

Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it. 0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.


# 1.131 27-Nov-2008 pooka

LIBDPLIBS on librumpvfs


# 1.130 19-Nov-2008 pooka

Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code. File system rumps explicitly need
to include rumpvfs from now on.


# 1.129 12-Nov-2008 pooka

Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.


Revision tags: netbsd-5-base matt-mips64-base2
# 1.128 16-Oct-2008 pooka

branches: 1.128.2;
build librumpnet


# 1.127 21-Sep-2008 joerg

Switch to libarchive in src/external/bsd.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
# 1.126 29-Jul-2008 pooka

Install rump libraries and utilities to the base system and remove the
private non-installed build infrastructure from sys/rump.

breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly


# 1.125 12-Jul-2008 gmcgarry

Test MKATF variable to compile ATF libs.


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.124 22-May-2008 lukem

Tie in ../external/lib after the "2nd" dependency barrier.
Move libpam to after a "3rd" dependency barrier, since PAM modules
may depend upon external/lib libraries such as libldap.


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.123 01-May-2008 jmmv

branches: 1.123.2;
Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.122 22-Mar-2008 mlelstv

branches: 1.122.2;
Import Heimdal-1.1


Revision tags: keiichi-mipv6-base matt-armv6-nbase
# 1.121 12-Mar-2008 joerg

libform and libmenu need libcurses.


Revision tags: cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.120 12-Nov-2007 jmmv

branches: 1.120.4;
Add the libatf library

This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile? It theoretically needs
libstdc++, but the resulting binary library is not linked against it.


# 1.119 05-Nov-2007 tls

Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.


# 1.118 04-Nov-2007 tls

Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.


Revision tags: matt-mips64-base
# 1.117 29-Jul-2007 joerg

branches: 1.117.4; 1.117.6;
Add build glue for libarchive and update the various sets.


# 1.116 30-May-2007 tls

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do. Goodbye, libssp
dependency in libraries and executables. Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.


# 1.115 28-May-2007 tls

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.


# 1.114 01-Mar-2007 mrg

insert .WAIT between libcom_err and libasn1.


# 1.113 11-Feb-2007 pooka

descend into librefuse if building with MKPUFFS


# 1.112 06-Jan-2007 bouyer

libpam also depends on libkafs now, so .WAIT before building it.


Revision tags: netbsd-4-base
# 1.111 08-Nov-2006 christos

branches: 1.111.2;
fix typo.


# 1.110 08-Nov-2006 christos

Add libssp.


# 1.109 22-Oct-2006 pooka

add libpuffs - the userspace programming interface for puffs

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks. While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace. Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.


# 1.108 08-Oct-2006 tron

Make sure "libmagic" gets built after "libz".


# 1.107 30-Aug-2006 christos

.WAIT before libroken.


Revision tags: abandoned-netbsd-4-base
# 1.106 24-Jun-2006 mrg

add support for MKISCSI=no.


# 1.105 19-Jun-2006 gdamore

Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.


# 1.104 27-Apr-2006 thorpej

Support for building proplib in userspace.


# 1.103 30-Mar-2006 rtr

do not build or install libcdk as a part of base anymore
cdk source still lives in dist however

approved by core@


# 1.102 20-Mar-2006 christos

Goodbye KerberosIV


# 1.101 19-Mar-2006 bouyer

libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT.


# 1.100 17-Mar-2006 christos

Add proper DT_NEEDED dependencies. From Jukka Salmi


# 1.99 08-Feb-2006 agc

Reachover support for the library version of the iSCSI target.


# 1.98 26-Nov-2005 christos

move libradius to build after libcrypto.


# 1.97 03-Jun-2005 christos

Provide the minimum set of .WAIT barriers, adding explanatory comments.
From Patrick Welche, many thanks.


# 1.96 18-May-2005 christos

Libedit depends on libterm. From Patrick Welche


Revision tags: netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.95 20-Feb-2005 manu

branches: 1.95.2; 1.95.4; 1.95.6;
Build libradius, imported from FreeBSD


# 1.94 10-Jan-2005 he

Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no. Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.


# 1.93 03-Jan-2005 lukem

Implement libssh as a public library, as pam_ssh needs it.


# 1.92 29-Dec-2004 lukem

Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.


# 1.91 29-Dec-2004 christos

Build libpam last because the modules need to access other libraries.


# 1.90 29-Dec-2004 thorpej

Descend into libpam.


# 1.89 30-Jul-2004 lukem

Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.88 11-Dec-2003 dyoung

Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)


# 1.87 23-Jul-2003 itojun

libkafs is needed for both krb4 and krb5. lha


# 1.86 23-Jul-2003 itojun

go down to libdes


# 1.85 12-Jun-2003 provos

enable building the library and the regression test


# 1.84 22-Apr-2003 elric

Turn on the building and installing of libbsdmalloc.


# 1.83 25-Mar-2003 pooka

descend into libmagic


# 1.82 24-Jan-2003 thorpej

Add librt, which provides POSIX 1003.1b Real-time extensions not
present in libc. Currently includes 1003.1b semaphores.


# 1.81 19-Jan-2003 christos

put libpthread back. I don't think that it will cause ABI issues.


# 1.80 19-Jan-2003 christos

disable pthread support for now, as there will be abi changes.


# 1.79 18-Jan-2003 thorpej

Descend into libpthread and libpthread_dbg.


Revision tags: fvdl_fs64_base
# 1.78 26-Sep-2002 itojun

visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined


# 1.77 09-Aug-2002 thorpej

Build libpmc.


Revision tags: netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.76 22-Mar-2002 thorpej

branches: 1.76.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.


# 1.75 17-Mar-2002 tshiozak

refine i18n stuffs.
- add libc/citrus directory.
this directory contains the common stuffs not only for locale
but also other facilities relating to i18n (e.g. iconv).
- To keep the binary compatibility for the ctype modules easily,
the interface between libc and the modules is simplified.
- For the future integrated extension, module pool is renamed
from "/usr/lib/runemodule" to "/usr/lib/i18n".
In the future, this directory will contain the modules for "iconv",
"collation", etc.
- some cosmetic changes.
- Bug fix for runetype.h; __attribute__((__packed__)) is placed at
the wrong position and it is invalid unintentionally.
But, the all members of the structures seem well-aligned. Thus,
this bug causes no problem, hopefully.

HEADS UP:
- /usr/lib/rumemodule is obsoleted. If you use the multibyte locales,
you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
- The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
Perhaps, the bug fix about __packed__ mentioned above breaks the
compatibility... Be careful especially on 64bit platforms.


# 1.74 28-Dec-2001 augustss

s/usb/usbhid/


# 1.73 22-Sep-2001 tv

Build libc (and its lint libraries) before all other libs, as llib-lc.ln
is needed in order to build useful lint libraries for the rest.


# 1.72 13-Sep-2001 thorpej

Build libpci.


# 1.71 04-Mar-2001 assar

remove libkadm5 - it is not being used for anything useful


# 1.70 25-Jan-2001 itojun

build multibyte locale modules. installed into /usr/lib/runemodule and
dynamically loaded at runtime.


# 1.69 05-Jan-2001 blymn

Added libform.


# 1.68 04-Jan-2001 garbled

Enable the build of libcdk


# 1.67 04-Nov-2000 itojun

always build libintl (don't check MKNLS).
MKSHARE=no turns off MKNLS (sets it into "no") and /usr/src/Makefile builds
src/lib with MKSHARE=no.
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>


# 1.66 01-Nov-2000 itojun

do not build libintl if MKNLS=no


# 1.65 31-Oct-2000 itojun

enable lib/libintl.


# 1.64 30-Sep-2000 itojun

repair openssl (libcrypto) for non-32bit architecture.
don't use unsigned long where 32bit unsigned variable is asked for.
use u_int32_t. (not sure if uint32_t is better or not, but anyway,
u_int32_t <-> uint32_t should not raise binary compatibility issue)
PR10921.

TODO: have arch-dependent Makefiles where we supply -DFOO for optimization.
(do not change size of variable though)

XXX: we should actually nuke all other #ifdef in /usr/include/openssl/*.h,
however, that needs a lot of work and will make future openssl upgrade harder.

remove RC5 and IDEA by default. build them separately as
libcrypto_{rc5,idea}.a. put dummy function, which is "warning to stderr
and exit(1)". NOCRYPTO_{RC5,IDEA} are obsoleted.
PR10883.


# 1.63 03-Aug-2000 assar

update build infrastructure for heimdal 0.3a, including new shlib versions


# 1.62 23-Jun-2000 thorpej

Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.


Revision tags: netbsd-1-5-base
# 1.61 20-Jun-2000 thorpej

branches: 1.61.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.


# 1.60 16-Jun-2000 thorpej

Build libcrypto and libssl.


Revision tags: minoura-xpg4dl-base
# 1.59 02-May-2000 simonb

branches: 1.59.2;
Don't build libntp anymore.


# 1.58 07-Mar-2000 veego

Remove unused libahdi.
It will be replaced in the future with a more generic libdisklabel.


# 1.57 05-Feb-2000 jdc

Add libahdi entry.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.56 23-Nov-1999 blymn

Added the libmenu library.


Revision tags: comdex-fall-1999-base
# 1.55 20-Jul-1999 mrg

branches: 1.55.4;
optionally include CRYPTOPATH Makefile.frag files.


# 1.54 12-Jul-1999 thorpej

Use bsd.crypto.mk.


# 1.53 01-Jul-1999 itojun

ipsec support library.
mainly for debugging, and policy text->binary conversion. NO crypto code
is included so it is export safe.


# 1.52 07-Jun-1999 thorpej

Treat crypto-us like domestic.


# 1.51 11-May-1999 augustss

Don't forget to build libusb.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.50 03-Jan-1999 cjs

Always descend on `make obj', too, to allow developers to switch between
defined and undefined EXPORTABLE_SYSTEM without rerunning `make obj'.


# 1.49 14-Sep-1998 ross

Descend into libbz2.


# 1.48 05-Sep-1998 lukem

distclean is a synonym for cleandir


# 1.47 19-Feb-1998 thorpej

libkvm.old is dead.


# 1.46 19-Feb-1998 thorpej

Simplify libkvm.old test ... MACHINE_ARCH == "mips"


# 1.45 18-Feb-1998 thorpej

The i386 port uses libkvm, not libkvm.old now.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.44 19-Oct-1997 oki

NetBSD/x68k now use libkvm instead of libkvm.old


# 1.43 16-Oct-1997 augustss

Add libossaudio.


# 1.42 05-Oct-1997 mark

Switch from libkvm.old to libkvm for the arm32 port.


# 1.41 23-Jun-1997 veego

Please update your repository before you do a commit.


# 1.40 23-Jun-1997 veego

s/else/endif/ and remove the endif line for make(clean) || make(cleandir).


# 1.39 23-Jun-1997 mrg

move man pages into share/man.


# 1.38 12-Jun-1997 veego

Fix a spelling error in a comment.


# 1.37 08-Jun-1997 veego

Exchange the test for libkvm and libkvm.old. This makes it easier to see
which port still use the old libkvm.


# 1.36 07-Jun-1997 ragge

Vax now uses new libkvm.


# 1.35 18-May-1997 kleink

Add libposix.


# 1.34 25-Apr-1997 thorpej

mvme68k uses new crash dump format now.


# 1.33 23-Apr-1997 scottr

mac68k uses new libkvm, now.


# 1.32 18-Apr-1997 christos

Add libntp


# 1.31 09-Apr-1997 thorpej

hp300 uses new libkvm now


# 1.30 09-Apr-1997 mikel

descend unconditionally for clean and cleandir targets


# 1.29 29-Mar-1997 thorpej

Build libkvm on the PowerPC.


# 1.28 21-Mar-1997 gwr

Add sun3x to the list of those using the (new) libkvm.


# 1.27 08-Feb-1997 matthias

The pc532 port now uses the new libkvm.


# 1.26 26-Nov-1996 mrg

add libwrap.


# 1.25 09-Nov-1996 pk

sparc: libkvm.old => libkvm


# 1.24 01-Oct-1996 cgd

Fix spelling error, add alpha to list of ports that use new libkvm


# 1.23 12-Sep-1996 cgd

add libz


# 1.22 13-Aug-1996 thorpej

Build librmt.


# 1.21 14-Jun-1996 cgd

include bsd.own.mk at the top, so checks of EXPORTABLE_SYSTEM work as
intended.


Revision tags: netbsd-1-2-base
# 1.20 12-May-1996 mhitch

branches: 1.20.4;
The amiga now does kernel crash dumps using the new libkvm and savecore.


# 1.19 05-May-1996 gwr

The sun3 now does kernel crash dumps using the new libkvm and savecore.


# 1.18 16-Mar-1996 leo

New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
will always use the kvm-functions. Allowing it to work on kernels
that don't have a 1-1 PA-VA mapping.
2) the kvm-lib has some additional functions to accomplish 1
- kvm_dump_mkheader()
- kvm_dump_wrtheader()
- kvm_dump_inval()
3) the file formats of the dump generated by the kernel and the dump
generated by savecore have been changed. The file format now looks
like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.


# 1.17 10-Mar-1996 thorpej

Only build exportable telnet/libtelnet if the domestic version doesn't
exist in the source tree or defined(EXPORTABLE_SYSTEM). This works around
the fact that telnet(1) will break during a "make build" because the
exportable libtelnet will get installed while the domestic telnet(1) binary
is still in place. (XXX)


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.16 12-Mar-1995 mycroft

Make libpcap.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.15 12-Jun-1994 cgd

alphabetize


# 1.14 25-May-1994 deraadt

add libskey


# 1.13 06-May-1994 cgd

add libedit


# 1.12 04-Feb-1994 jtc

add libl


# 1.11 28-Jan-1994 cgd

add libkvm


# 1.10 07-Oct-1993 cgd

"There will be NO librpc tomorrow!"


# 1.9 19-Sep-1993 brezak

Build libarch


# 1.8 01-Aug-1993 mycroft

Add RCS identifiers.


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.7 02-Jun-1993 brezak

Build librpcsvc


# 1.6 18-May-1993 cgd

move csu.${MACHINE} into a "csu" subdirectory.


# 1.5 29-Apr-1993 cgd

moved libg++ into /usr/gnulib


# 1.4 26-Apr-1993 cgd

added "libcrypt" to list of subdirs.


Revision tags: netbsd-0-8 netbsd-alpha-1
# 1.3 10-Apr-1993 cgd

subdir is librpc; somebody was a moron...


# 1.2 23-Mar-1993 cgd

added libcompat for compatibility routines, like ftime, etc.


# 1.1 21-Mar-1993 cgd

branches: 1.1.1;
Initial revision