Commit Graph

124 Commits

Author SHA1 Message Date
ad 0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
mrg e5bc8e2c94 fix a couple of minor errors picked up by he@. thanks! 2008-11-09 23:07:22 +00:00
mrg 9c8df5ee67 - retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
  for the X11 to build if MKX11=yes is set.  it takes the values
  of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful
2008-11-09 23:02:28 +00:00
mrg 72f26e4440 support MKCRYPTO. 2008-10-26 07:31:00 +00:00
lukem e95c8a6849 Remove set lists for the non-cross-compiled ("vendor provided") build of
XFree86; we've used our src/x11 framework for four years.
2008-08-31 00:19:33 +00:00
lukem 77e36d9955 add debuglib keyword. per rtr 2008-08-28 07:22:41 +00:00
lukem 1373597cb4 Add support for MKHTML and MKXORG enabling "html" and "xorg" keywords
(respectively).

MKXORG also sets x11_version as per MKX11.
(Eventually we'll deprecate the non cross-build X11 sets and remove
the need for the x11_version variable here)
2008-08-28 07:17:13 +00:00
lukem 909a499e2a Support dynamicroot keyword, keyed off MKDYNAMICROOT!=no.
Sort some entries.
Document some keywords.
2008-08-25 07:27:27 +00:00
dyoung 6c06f2593a Per discussion on tech-userlevel@, do not compile and install nvi
if MKNVI=no.

The default is MKNVI=yes, so that this amounts to no change for
most users, but the default may change.
2008-07-22 21:07:58 +00:00
he 3b5e9e1519 When MAKEVERBOSE >= 2 (or if unset, by default), let list_set_files()
echo all the set list component file names to stderr, so they end
up in the build log.  This is to make it slightly easier to find
a suitable file to fix when the set lists need fixing.

Discussed with lukem.
2008-05-22 22:56:40 +00:00
he 6ac0267475 Export NETBSDSRCDIR from make, and use it to point at
sys/conf/osrelease.sh, so that the script is found when building
with -O is given to build.sh.

Discussed with lukem.
2008-05-22 14:48:42 +00:00
lukem 3ece9bfe0a OpenLDAP client libraries, utilities, and relevant manual pages. 2008-05-22 14:24:42 +00:00
ad 14cd43625f Install kernel modules into the proper locations, taking machine and
kernel version into account.
2008-05-20 19:01:10 +00:00
ad e7660f2353 Use HOST_SH. 2008-05-20 15:18:29 +00:00
ad 85a077252f Recognise @MODULEDIR@ as a keyword in setlists. 2008-05-20 15:17:22 +00:00
jmmv b0152a99f8 Support negated build-time options in the lists. I need this to disable
some files when the modular option (not yet committed) is enabled.
2008-02-09 19:30:11 +00:00
minskim 9e5ba8057c Remove MKUUCP from MKVARS; uucp is not in src any longer. 2007-12-01 03:20:33 +00:00
jmmv 4d9b8b6a50 Add the tests.tgz set
This adds a new tests.tgz set to releases which includes all the tests
for the system.  It is important to note that this set does not rely on
comp.tgz: a user of the system can run the tests without having the
development tools installed, which can be useful in a production machine.
2007-11-12 15:06:45 +00:00
apb f7004b0cbc Whenever we try to parse the output from make, run make with the -B
flag.  This ensures that -j<N> isn't accidentally inherited from the
environment, because the "--- foo ---" headers printed with -j<N> would
interfere with parsing the output.
2007-02-05 18:26:01 +00:00
pooka 81b905fdbb if MKPUFFS=yes is given, build & install mount_psshfs (default: no) 2006-12-29 15:52:20 +00:00
christos ab6d6d1244 more uucp removal 2006-11-12 02:43:39 +00:00
lukem cacf5bfacc Implement MKDEBUG:
If "no", don't build and install separate debugging symbols
	into /usr/libdata/debug.
	Default: no
2006-07-23 11:41:24 +00:00
lukem 5666bd9aa8 * Provide new keywords:
gcc=<n>			<n> = value of ${HAVE_GCC}
	gdb=<n>			<n> = value of ${HAVE_GDB}

* Support extra keywords on lines with "obsolete" keywords to allow
  keyword-specific obsolete files.
  (Primarily intended for use with gcc=<n> and gdb=<n>, although
  it could be use for other items).

* Use the above features to collapse the gcc.* and gcc4.* lists into
  the appropriate set lists.

* Deprecate the tc.* lists as all platforms are either HAVE_GCC=3 or HAVE_GCC=4.

* Update set lists for HAVE_GDB=6.
2006-07-12 13:39:04 +00:00
mrg e8ffedc44b add support for MKISCSI=no. 2006-06-24 05:11:40 +00:00
dogcow 82f4871f70 As pointed out by Izumi and Tsutsui and Valeriy Ushakov, these should
properly be .ad. files, not .md. files.
2006-06-09 03:14:54 +00:00
dogcow b943d36d28 Use the gcc4 md list. 2006-05-19 01:49:05 +00:00
mrg 0db1500b43 retire HAVE_GCC3/HAVE_GCC4 and introduce HAVE_GCC that is set to 2, 3 or 4. 2006-04-07 19:38:58 +00:00
christos 85e611dd01 Goodbye KerberosIV 2006-03-20 04:03:10 +00:00
apb 6942b0e739 Use TARGET_ENDIANNESS (from bsd.endian.mk) to decide whether
to add "-E B" or "-E L" options to ${db_opts}.

Approved by christos.
2006-01-08 10:25:33 +00:00
apb 6d714d9691 Add cheap implementations of basename and dirname,
using builtin printf, or using echo if printf is not a
shell builtin.

Reviewed by agc
2006-01-04 14:35:03 +00:00
apb 4d96f88bcb Add shell variables for several additional host tools,
required by the new versions of regpkgset and regpkg.
2006-01-04 14:23:22 +00:00
apb 3a0b541193 Add shell variables defined in sets.subr for almost all commands used
by scripts in distrib/sets/*.  This is intended to be useful when cross
building.  Only trivial commands like echo, cat, and rm are excluded
from this treatment.

While I am here, make ${MTREE} and ${DB} follow the pattern used by most
other such variables.

Reviewed by agc.
2006-01-03 16:40:16 +00:00
apb 26d8593b50 Move default values for several shell variables into sets.subr.
Reviewed by agc
2006-01-03 15:42:42 +00:00
lukem 22b0f5dfc0 Add support for following keywords in sets lists, based on mk.conf(5) vars:
use_inet6		${USE_INET6} != no
	use_kerberos		${USE_KERBEROS} != no
	use_yp			${USE_YP} != no
2005-05-01 07:06:09 +00:00
tron a9f1e3563a Add "MKX11" flag. We need it for the X11 obsolete lists in the "base" set. 2005-03-22 09:28:24 +00:00
peter 1c9b56c830 Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.
2005-02-22 14:39:58 +00:00
lukem 3af1db4def Support ${MKINET6} == "no". 2005-01-10 03:13:04 +00:00
he 67d66c86bb 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.
2005-01-10 00:20:21 +00:00
matt f26774eaee Add MKGCCCMDS/gcccmds 2005-01-09 22:24:04 +00:00
tron 71d6312747 EOL of XFree86 3.3.6, approved by core@NetBSD.org 2005-01-07 18:56:40 +00:00
erh 10d0173282 Make all the sets scripts work even when not run from the directory that
they reside in.
Change any uses of dirname to use shell variable substitution instead.
2004-07-23 15:11:26 +00:00
jmc 944c6c8bad Add support for building/install just cat pages (via MANINSTALL=catpages) in
the sets. Originally from PR#24949. Tested w. all combinations of MANINSTALL
2004-06-13 22:35:02 +00:00
scw c7f9b71508 Allow MKGDB=no to override inclusion of records with the 'gdb' keyword. 2004-03-17 20:32:02 +00:00
jmc 7c8480de0f Restructure MKPIC tests so that stlib always gets set first based on
OBJECT_FMT and then MKPIC/arch tests can set shlib=no if they need to.
2004-03-05 04:52:50 +00:00
matt e8f9e7f005 Recognize when MKPIC=no and then set shlib=no 2004-02-28 01:02:05 +00:00
uwe 39b999ccdb sh3 ports have shlibs now in the gcc3 world. 2004-02-22 01:43:02 +00:00
lukem b7b8fd2efe Implement `xetc' set to contain configuration that may be changed by
the end-user that we don't want to overwrite when extracting the
other X sets.
2004-01-23 14:38:09 +00:00
lukem 54aa6389e9 Merge xmisc into xbase; xmisc only contained "ssh-askpass", and the other
stuff from xsrc/local/programs was already in xbase.
2004-01-17 05:19:46 +00:00
lukem 3851e8f02f Merge "xcontrib" into "xbase".
It was already merged in the XFree86 4.x source anyway, and it doesn't
make senses to keep some programs in a separate set just because they
used to be built from a separate directory in XFree86 3.x.
2004-01-17 05:07:09 +00:00
lukem a77e611113 Support MKUUCP=no.
Fix the syspkgs for cu (now in uucp) and tip (now in util)
2004-01-12 09:42:07 +00:00
lukem 6c4f688946 Support MKSHARE=no 2004-01-12 03:08:06 +00:00
lukem 15f7d00565 Support MKDOC=no MKINFO=no MKNLS=no 2004-01-11 23:42:27 +00:00
lukem 27f289e307 Add support for:
MKCATPAGES=no
	MKMAN=no
	MKMANZ=yes

Add ".man" (from "man") and ".cat" (from "catpages") to indicate files
that will automatically be treated as having a ".gz" extension if
MKMANZ != no.  (This simplifies the MKMANZ!=no support...)
2004-01-11 15:09:51 +00:00
lukem 7184a827aa support MKBFD=no 2004-01-11 08:55:55 +00:00
lukem b309c0fe8a If MKX11 != no, set x11_version="" and ignore USE_XF86_4. 2004-01-08 01:39:26 +00:00
lukem 23bd6e4a23 support MKCVS=no 2004-01-04 13:20:49 +00:00
lukem 2becb6af9a Support MKCRYPTO=no 2004-01-04 00:54:18 +00:00
lukem 3e894ed427 Support MKPROFILE=no 2004-01-03 15:43:50 +00:00
lukem 26c228007f Support MKSKEY=no. 2004-01-03 15:21:30 +00:00
lukem 9bdabb5f9b support MKYP=no 2004-01-03 14:17:06 +00:00
lukem df3e8e91a2 support MKHESIOD=no 2004-01-03 13:50:26 +00:00
lukem 0c6b3e795d Support MKCRYPTO_IDEA=yes, MKCRYPTO_MDC2=yes, MKCRYPTO_RC5=yes.
Resolves [install/18136].
2004-01-03 13:31:38 +00:00
lukem 9bd28e238c support postfix keyword (${MKPOSTFIX} != no).
tweak code to make it easier to add new keywords based on MKxxx vars.
2004-01-03 12:23:11 +00:00
lukem 6f9a1982b5 rename all the <bsd.own.mk> derived variables to uppercase, and export
them to the environment.
2004-01-03 02:38:58 +00:00
jmc 9c51e79187 Add support for rescue.ad.<cpu>.shl which appears to have been missed 2003-12-29 20:54:58 +00:00
lukem b852db83fb Significant overhaul of how the sets are used:
* Add an optional third field to the sets file which is a list of
  comma separated keywords that control if the line is printed.
  Currently supported keywords
	kerberos4	${MKKERBEROS4} != no
	kerberos	${MKKERBEROS} != no
	lint		${MKLINT} != no
	obsolete	${obsolete} != 0.
			In this case, non obsolete files are not printed.
  (This will allow future support for builds with variables such as
  MKHESIOD and MKYP set to "no".)

* Use sh(1)'s getopts where appropriate, and otherwise cleanup the
  various scripts.

* Move defaults for sets.subr from sets.defaults into sets.subr.
  Move replicated code for determining stuff such as shlibs type
  from various scripts into sets.subr.

* Merge the obsolete.*, krb.*, krb4.* and lint.* into the appropriate
  main lists with the relevant third field keyword(s).
2003-12-29 03:13:25 +00:00
lukem 1f6b42b329 minor sh KNF 2003-12-26 06:05:27 +00:00
dyoung 4758291178 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?)
2003-12-11 09:46:26 +00:00
tsutsui fddb523c90 Use $have_gcc3 rather than $use_tools_toolchain,
which isn't set by sets.defaults.
2003-12-09 15:42:31 +00:00
dyoung 17b5668ccd Factor duplicated code for setting variables such as machine_cpu
and machine_arch to their defaults into sets.defaults, and source
it at the top of each script.

Also, to be consistent with variable naming, s/arch/machine_arch/.

sets.defaults introduces two new variables, krb and krb4, which
will affect whether Kerberos- or Kerberos IV-only files are put
into the set lists.
2003-11-25 07:19:46 +00:00
dyoung 0c6a0c0ee1 Alphabetize environment, again. 2003-10-29 23:05:55 +00:00
dyoung bc624da622 Alphabetize environment docs. 2003-10-29 23:04:27 +00:00
mrg 9347d6de64 add initial support for gcc3 2003-08-04 05:53:20 +00:00
dyoung 4d23e6d82c For System Packages, two new utilities, a subroutine library, and
a new list:

sets.subr -- The set-listing code that is common to makeplist,
	     makeflist, and regpkg has moved here.

syspkgdeps -- Compute naive dependencies for system packages based
	      on directory containment. I.e., if package A contains
	      path /p/q, and package B contains path /p, then B is
	      considered a dependency of A. As Jim Wise remarks,
	      this is not quite right: system-package dependencies
	      should indicate a functional dependency. Nevertheless,
	      these naive dependencies protect us from orphaning
	      files when pkg_delete'ing system packages.

culldeps -- Helper for syspkgdeps. Removes redundant dependencies
	    from a dependencies table.  Essentially does the opposite
	    of a transitive closure on a dependencies table: if
	    the table contains A depends-on B, B depends-on C, and
	    A depends-on C, then A depends-on C is removed because
	    it can be derived from the prior two dependencies.

deps -- Dependencies computed by syspkgdeps.
2003-06-23 09:02:31 +00:00