Commit Graph

142463 Commits

Author SHA1 Message Date
apb 52ec81299e * Add a check for consistency between DESTDIR and METALOG, in addition
to the existing check for consistency between DESTDIR and the output
  from makeflist.
* Use egrep instead of awk to ignore differences that are expected.
  This should be easier to maintain, and should also make it easier
  for users to add their own custom exceptions by editing the
  regexp.

Reviewed by agc
2006-01-04 15:08:42 +00:00
apb 29e51821aa Remove the code that used "${MTREE} -C ..." to sanitise the plist. We
can now assume that it's already been sanitised before maketars was
invoked.

Reviewed by agc
2006-01-04 15:03:39 +00:00
apb 5b62001b7b * Add new user-visible "syspkgs" target, and internal "makesyspkgs" and
"makesyspkgsums" targets for it to use internally.
* Add internal "sanitize_METALOG" target that uses "${TOOL_MTREE} -C ..."
  to sanitise the METALOG file before invoking anything that will
  want to parse the METALOG (checkflist, regpkgset, maketars, or
  installsets).  Previously, maketars used to do this itself, but its
  better to do it only once.
* Add internal "checkflist_if_DESTDIR" target, which invokes checkflist iff
  DESTDIR is set and not empty.  Use it where appropriate.
* Add a few more host tools to SETSENV.
* A few minor related changes.

Reviewed by agc
2006-01-04 14:58:58 +00:00
apb 2f132c6998 * Add a special case for sets="all".
* Use dirname, don't try to use a shortcut that doesn't always work.
  This uses the cheap implementation of dirname from sets.subr.
* Fix error in getopts string ("-p" option takes an arg).
* Explicitly use ${HOST_SH} to run culldeps script, because we might
  be on a host where /bin/sh is not a POSIX shell.

Reviewed by agc
2006-01-04 14:44:41 +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 afb2b54a87 * Make regpkgset accept all the new args that regpkg takes.
* Sort the pkgs into dependency order before invoking regpkg.
* Better cleanup.

Reviewed by agc
2006-01-04 14:18:00 +00:00
apb 3df0642b27 * Give regpkg the ability to create binary syspkg packages (*.tgz files).
The new "-t binpkgdir" option requests this action.
* Make it pay attention to DESTDIR.
* Make it work for unprivileged builds using METALOG.
* Add "force" and "update" modes.
* Add "quiet" mode.  There was already a "verbose" mode.
* Add several new command line args in support of the above.
* Make much more use of shell functions.
* Replace the old way of choosing syspkg version numbers.
  The new way gives numbers derived from concatenating the OS
  version [from osrelease.sh or $(uname -r)], a "tiny" version [from
  distrib/sets/versions, default 0], and a date [from RCS time stamps or
  file system time stamps].
* Add @blddep lines to the PLIST (in addition to the @pkgdep lines
  that were previously added).
* Use host tools such as pax, cksum, and db, to do more or less the
  same work that was previously done by pkg_create (which is not a host
  tool).  No longer attempt to use pkg_create.

Reviewed by agc
2006-01-04 14:14:35 +00:00
apb faa76ace30 Add a new "-I realprefix" arg. When making syspkgs, we need to use
"-P ${DESTDIR} -I /". ("-I" chosen for similarity to pkg_create.)

XXX: makeplist seems to be quite broken, in that it looks at the files
and directories that are actually present in DESTDIR, whereas I
thought its job was to provide an list of what *should* be there,
regardless of what is *actually* there.  Fixing this seems to require
a change to the format of the "lists" files, so that they can
unambiguously identify directories.

Reviewed by agc
2006-01-04 13:57:04 +00:00
apb 1983ec7bd3 Instead of printing "./foo/bar optional" for implicitly required
directories, print "./foo/bar optional type=dir".

Reviewed by agc
2006-01-04 13:46:13 +00:00
apb 267577ae49 Use "$*", not "$@", where we want a space-separated list of words. 2006-01-04 13:40:23 +00:00
apb 0eb2a59a6d . "${rundir}/sets.subr", overlooked in previous commit. 2006-01-04 13:38:18 +00:00
apb a879495374 Add quotes to some shell variables overlooked in previous commit. 2006-01-04 13:35:55 +00:00
skrll 73b7bdcee7 A couple of fixes to make libpthread really shared, i.e. not have text re-
locations:

	- Don't declare pthread__switch_away global
	- Do the PIC dance for pthread__switch_return_point and
	  pthread__locked_switch. Ideally these (and other) symbols would
	  be hidden.

Thanks to uwe@, dyoung@ and elad@ for help.

XXX sh3 is still to be done.
XXX vax does strange things.
2006-01-04 12:43:43 +00:00
tsutsui 42f41cb707 Add spllpt() macro for lpt at puc. Requrested by Florian Stoehr.
XXX: IMHO, MI lpt(4) should not use such its own priority level...
2006-01-04 12:29:21 +00:00
yamt 3ff2a40ab7 add a missing putiobuf in the previous. pointed by Thomas Klausner. 2006-01-04 10:30:26 +00:00
yamt 690d424f28 - add simple functions to allocate/free a buffer for i/o.
- make bufpool static.
2006-01-04 10:13:05 +00:00
oster 35f400bfd9 We need to mark used spares as failed if they encounter IO errors!
Commit fixes problem reported (privately) by Jeff Rizzo.


XXX: Note that we are still are unable to allow a reconstruct of
a failed spare -- it's easy enough to attempt to do it, but the
code in rf_ContinueReconstructFailedDisk() isn't anywhere close to
ready to allow it.  Yet another reason why the whole disk/spare thing
needs to be re-worked. *sigh*
2006-01-04 04:56:41 +00:00
dogcow cbb55b0a6f comment out ACPI_ACTIVATE_DEV; it seems to cause more problem than it's worth
(e.g. multiple PRs and the general symptom of cd0 losing interrupts.)
2006-01-04 04:33:14 +00:00
perry c9e98eabc1 de-__P, ANSIfy prototypes 2006-01-04 01:58:05 +00:00
perry 10e955c2f8 de-__P, ANSIfy prototypes 2006-01-04 01:44:06 +00:00
perry d310ebb16a de-__P, ANSIfy prototypes 2006-01-04 01:30:21 +00:00
perry ee5c979c9f de-__P, ANSIfy prototypes, and kill register 2006-01-04 01:17:54 +00:00
perry c2e350ed82 de-__P, add ANSI prototypes, and a teeny bit of KNF. 2006-01-04 01:05:19 +00:00
rpaulo ef64dcf615 Kill __P. 2006-01-04 00:15:50 +00:00
peter cd07804bde Remove unnecessary #ifdef hpcarm + includes. 2006-01-03 23:14:23 +00:00
peter 631bbf5e0c * Improve description header.
* Fix a typo.
* Remove unneeded includes.
2006-01-03 23:11:00 +00:00
peter d68b0fc147 Add (commented out) options for color customization.
Enable customized output by default.
2006-01-03 23:01:51 +00:00
peter 95c56a8f9f Remove sl, it's already defined in IPAQ. 2006-01-03 22:59:49 +00:00
yamt 789fa21531 fix a deadlock due to a spl problem. 2006-01-03 22:25:48 +00:00
apb d09e15652b Add apb 2006-01-03 21:34:05 +00:00
bouyer 4f02289d67 Make stts a no-op as clts already is
Always call HYPERVISOR_fpu_taskswitch() at the end of npxsave_lwp().

This fixes the FPU problems detected by paranoia on a NetBSD/Xen guest.
Based on patch sent by Paul Ripke on port-xen, but reworked by me.
Should fix port-xen/30977.
2006-01-03 20:18:51 +00:00
apb 0bee96eab7 Ensure that (almost) all shell variables in distrib/sets/* scripts are
used with curly braces and quotes, as in "${var}".

Also ensure that command substitution is quoted, as in "$(command)", and
convert `command` to $(command).

Reviewed by agc
2006-01-03 18:31:09 +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
kent de8198c18c support for 8ch playback with STAC9221D codec.
Thanks to Tomokatsu HAYAKAWA.
2006-01-03 15:43:04 +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
kent ce56ff707e ALC260: improve readability of mixer item names. 2006-01-03 15:31:15 +00:00
kent a2e0795bf5 - make this compile with AZALIA_DEBUG
Thanks to Tomokatsu HAYAKAWA.
- introduce WIDGET_CHANNELS macro
2006-01-03 14:16:28 +00:00
yamt 463bed6af1 de-__P. 2006-01-03 12:59:49 +00:00
yamt 6fce056253 mark /usr/include/nfs/nfs_var.h obsolete. 2006-01-03 12:49:36 +00:00
yamt dbf3dbe4b0 don't install nfs_var.h. 2006-01-03 12:47:51 +00:00
yamt 27dc8f3f48 move function prototypes from nfs.h to nfs_var.h. 2006-01-03 12:30:46 +00:00
yamt 7416ebb551 nfssvc_nfsd: reduce a chance for a slow peer to capture all our threads.
instead of sleeping to wait for the socket to send our reply,
just hand-off our reply to the thread which is holding the socket.
2006-01-03 12:30:01 +00:00
yamt a5da6cae5b remove a few unnecessary caddr_t casts. 2006-01-03 11:41:50 +00:00
yamt acff143090 improve nfsd locking.
- don't bother to take nfs_sndlock when doing nfsrv_rcv.
  unlike client, we never reconnect.
- nfsrv_getstream: fix the case that m_split sleeps.
- free socket in nfsrv_slpderef rather than nfsrv_zapsock.
  fix race with nfssvc_nfsd.
- while i'm here, remove NFSD_WAITING and NFSD_REQINPROG
  as they are redundant.
- some comments and assertions.
2006-01-03 11:41:03 +00:00
rumble b4ad7ed6ec Typo: add a missing article. 2006-01-03 02:17:22 +00:00
rumble a2cdb58340 Mention that some IBM Etherjet cards are X3201-3's. 2006-01-03 02:15:15 +00:00
rumble fffc3b7bd8 Fix a little comment typo. 2006-01-03 02:11:57 +00:00
rumble 809e7519ba Fix the comment. It is perfectly valid to have a kernel that supports
MIPS1 and MIPS3. However, we need a separate config due to different
start addresses.
2006-01-03 02:09:02 +00:00
rumble a8a473f44e As noted in sys/dev/pci/cs4280.c, the cs461x chips are not fully supported
and the wss(4) or sb(4) drivers should be used instead. The man page
previously implied full support.
2006-01-03 01:59:25 +00:00