Commit Graph

253 Commits

Author SHA1 Message Date
joerg 2fa1d2471b Introduce MKLIBSTDCXX, defaulting to yes. 2013-04-28 04:05:37 +00:00
joerg ecb06a3b09 Add build glue for libc++. 2013-04-27 23:02:17 +00:00
matt 36e3b717c5 Detect earm*hf* in a cleaner manner 2013-04-27 08:43:19 +00:00
skrll e62494976f Build libc_vfp on earm as well. Fix the sets. 2013-04-12 16:32:37 +00:00
christos 493b20031a build libevent later. 2013-04-11 19:06:04 +00:00
jmmv 7d3a48f1d2 Hook Lutok into the build. This is all protected by the MKKYUA guard. 2013-02-16 21:40:05 +00:00
matt 3c35239543 Enable building/installing libc_vfp for MACHINE_ARCH arm/armeb 2013-01-28 18:57:09 +00:00
agc 453e1b8f76 descend into libnetpgpverify so that the compat entries are picked up 2012-11-20 16:33:06 +00:00
joerg 54f191bfce 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.
2012-11-15 23:51:53 +00:00
alnsn 292a31115c Add libbpfjit library. 2012-11-11 17:34:06 +00:00
alnsn ffd8736098 Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386. 2012-11-05 00:57:39 +00:00
christos c168a88323 put a wait barrier between trousers and tpm-tools 2012-11-04 19:48:08 +00:00
christos 043b6f2ca6 fix typo 2012-11-04 19:18:03 +00:00
christos 94c130b258 hook in TPM 2012-11-04 16:28:11 +00:00
rmind 8c6e21bf5e 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.
2012-09-16 13:47:41 +00:00
joerg 933525b99b 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.
2012-08-17 16:22:27 +00:00
christos b559c1ff19 exclude rump libraries if MKRUMP = no 2012-08-08 14:01:16 +00:00
christos 30afd8c6c5 don't mention the indirect libm dependency. 2012-07-12 20:14:44 +00:00
christos 1520387754 move atf down to fix the build 2012-07-12 19:11:06 +00:00
matt 237bc1530c Place SUBDIR+= libexecinfo properly based on its dependency on libelf. 2012-05-27 02:19:50 +00:00
christos c106aea649 hook in libexecinfo 2012-05-26 22:03:04 +00:00
tron df92d05dec Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.
2012-02-29 20:07:51 +00:00
joerg 410d0f4380 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.
2012-02-07 19:13:24 +00:00
christos 3f75ab312f hook in tre 2011-11-05 22:40:01 +00:00
joerg ac86ba952c Hook up SQLite into the build 2011-10-13 22:08:16 +00:00
mbalmer 540bd6bd87 Descent into lua. 2011-10-07 21:33:56 +00:00
mrg f5aeae98ef add libgomp to this list of libs; so compat finds it properly. 2011-09-23 07:12:10 +00:00
dyoung 9943264696 Build and install ppath(3), property-list paths library. 2011-08-26 21:22:07 +00:00
plunky 342305c4af sort, and move some things up the list after heimdal was moved
to its own directory. removes one dependency barrier.
2011-08-20 22:23:47 +00:00
plunky 89e4ea6a69 only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies
2011-08-20 22:16:56 +00:00
mrg 3f11e25c49 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.
2011-07-21 03:13:30 +00:00
matt da43c56109 Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.
2011-07-07 07:37:17 +00:00
mrg d28869abd7 add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc. 2011-07-07 07:33:40 +00:00
mrg f7fea21d51 re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.
2011-06-29 02:05:24 +00:00
mrg 4791aafc2d 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.
2011-06-22 05:16:37 +00:00
mrg 3a3b951b93 add HAVE_GCC=45 support. 2011-06-21 04:04:13 +00:00
manu 73963ae9de Enable the build of perfused and libperfuse 2011-05-09 08:51:08 +00:00
elric 98fbe74f8c 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.
2011-04-15 18:05:42 +00:00
bouyer d9210c2405 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 ...)
2011-03-24 17:05:39 +00:00
matt 12923fd008 Need to build libsaslc 2011-02-12 22:24:40 +00:00
matt 5f8868401d Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.
2011-02-10 20:57:22 +00:00
haad 83425a0f36 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@
2011-02-08 03:20:13 +00:00
rmind 07ac07d35f 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.
2011-02-02 02:20:24 +00:00
pooka d36a58c27d hook librumphijack to the build 2011-01-18 20:09:37 +00:00
agc f9dd05cc12 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.
2011-01-17 20:39:03 +00:00
plunky 90c70dd232 rearrange libraries to reduce the number of .WAITs (14 -> 6)
during that, fix some outdated comments & list dependents
2010-12-12 12:09:51 +00:00
pooka fee25d6c52 rumpcrypto should never have been its own faction, so finally make
it a component under kern, i.e. rumpcrypto -> rumpkern_crypto.
2010-12-05 20:11:21 +00:00
christos 3542a25b9b hook new libpcap 2010-12-05 05:58:12 +00:00
plunky f33b316b63 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.
2010-12-03 21:38:46 +00:00
christos cd56d093b1 build the ldap libraries; am-utils needs them. 2010-11-21 03:43:39 +00:00
pooka 6b1f3dc0a5 Add library for rump syscall client stubs. 2010-11-04 21:01:28 +00:00
mbalmer aa94cc597c 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.
2010-10-31 11:52:50 +00:00
agc b0615b5bcb Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.
2010-09-01 16:01:27 +00:00
christos b584c39e1d fix the build; we need libmj installed before compiling netpgp binaries. 2010-08-07 21:32:28 +00:00
roy 98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
mrg 35ea637d2b avoid some subdirs that need -lcrypto, for MKCRYPTO=no. 2009-12-29 23:01:09 +00:00
plunky c75313ecdf switch build to use libevent-1.4.12-stable from external 2009-11-02 10:13:19 +00:00
christos fb86afc52f hook the new flex. 2009-10-26 21:36:46 +00:00
christos 4958d088d0 back to old lex 2009-10-26 04:08:25 +00:00
christos d4aeae3f68 hook the new flex library 2009-10-26 01:18:46 +00:00
pooka de4fa6c51a Build & install rumpdev, a device component for rump. It currently
supports autoconf and is required for example by pseudo-device rump
components.
2009-09-03 15:35:58 +00:00
pooka fd46b5b66c install librumpcrypto component: kernel crypto routines 2009-09-03 12:33:54 +00:00
christos 92baa9892f OpenSSL moved to crypto/external 2009-07-19 23:35:02 +00:00
agc 474f9d04b2 Switch over to building iscsi library, target and initiator from the
external framework.
2009-06-25 13:58:59 +00:00
mrg 7e7627c1df build libnetpgp and libssh earlier.
look for libssh in the right place.
2009-06-09 05:20:15 +00:00
christos d4fda9c2d5 Disconnect ssh 2009-06-07 22:43:02 +00:00
plunky 39aa7ec964 remove libsdp as improved functionality has been enabled in libbluetooth. 2009-05-12 18:07:54 +00:00
christos c0990c9457 unhook libmagic 2009-05-08 17:47:22 +00:00
christos 185e0d409f 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.
2009-04-14 17:49:45 +00:00
christos 62b7074a71 unhook bind libraries 2009-04-12 17:09:46 +00:00
mrg d1ab7d6b0d 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.
2009-01-26 06:27:33 +00:00
jmmv 0cdcf7cea6 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.
2009-01-19 07:08:14 +00:00
pooka 0b7df1d2e2 LIBDPLIBS on librumpvfs 2008-11-27 16:14:46 +00:00
pooka e10fef6cd2 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.
2008-11-19 14:10:48 +00:00
pooka b2fa04c6b2 Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.
2008-11-12 13:17:27 +00:00
pooka 46b5f75de9 build librumpnet 2008-10-16 09:44:12 +00:00
joerg af4f585309 Switch to libarchive in src/external/bsd. 2008-09-21 19:45:59 +00:00
pooka bdf6e0b034 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
2008-07-29 13:17:40 +00:00
gmcgarry 495a069c8d Test MKATF variable to compile ATF libs. 2008-07-12 12:20:08 +00:00
lukem 8f975a405a 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.
2008-05-22 14:16:11 +00:00
jmmv 2a6dead6fc Remove the libatf library and add libatf-c and libatf-c++; per import of
atf-0.5.
2008-05-01 15:33:33 +00:00
mlelstv b0f88a0388 Import Heimdal-1.1 2008-03-22 08:36:48 +00:00
joerg d134e844b3 libform and libmenu need libcurses. 2008-03-12 00:21:29 +00:00
jmmv 096ebe7672 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.
2007-11-12 14:56:24 +00:00
tls 6c2ee7b76e 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.
2007-11-05 04:58:52 +00:00
tls b21c402a7b 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.
2007-11-04 23:28:16 +00:00
joerg 577a8c7029 Add build glue for libarchive and update the various sets. 2007-07-29 17:06:00 +00:00
tls 2368dc663d 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.
2007-05-30 01:13:14 +00:00
tls 4147a3c54a 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.
2007-05-28 12:06:17 +00:00
mrg 81d87b60e3 insert .WAIT between libcom_err and libasn1. 2007-03-01 02:54:51 +00:00
pooka b4747228a7 descend into librefuse if building with MKPUFFS 2007-02-11 18:36:26 +00:00
bouyer 6401b32154 libpam also depends on libkafs now, so .WAIT before building it. 2007-01-06 20:54:37 +00:00
christos b9692a922e fix typo. 2006-11-08 22:07:23 +00:00
christos dc0c2709da Add libssp. 2006-11-08 20:52:39 +00:00
pooka 1635cf06bc 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.
2006-10-22 22:52:21 +00:00
tron 77e4af1adc Make sure "libmagic" gets built after "libz". 2006-10-08 13:43:01 +00:00
christos 95db8cb009 .WAIT before libroken. 2006-08-30 17:23:36 +00:00
mrg 2ed89a9707 add support for MKISCSI=no. 2006-06-24 05:14:01 +00:00
gdamore a5c89047c0 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.
2006-06-19 15:44:33 +00:00
thorpej 144348e766 Support for building proplib in userspace. 2006-04-27 20:41:57 +00:00