Commit Graph

962 Commits

Author SHA1 Message Date
hans
f559331e26 include config.h 2011-06-01 15:52:48 +00:00
joerg
cd92498901 Update LLVM/Clang to r132395. This brings the usual set of improvements
and support for dependency tracking in tblgen. Use this to make updates
more robust.
2011-06-01 14:13:41 +00:00
joerg
9692a5355f Hacks for CMSG_SPACE() not being an ICE 2011-05-30 16:20:58 +00:00
spz
f93f010473 merge 9.8.0-P2:
- fixes CVE-2011-1910: Large RRSIG RRsets and Negative Caching can crash named
- fixes CVE-2011-0414: bind lockup during IXFR
- return a more correct error in case of policy violation

bump version of libdns and libisc
2011-05-29 15:17:08 +00:00
spz
fc67f3fcc1 Import bind 9.8.0-P2 2011-05-28 06:52:27 +00:00
joerg
a216da57a6 Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
joerg
fe030aa0ad Fix formatting of time_t 2011-05-24 16:03:15 +00:00
joerg
8d430e7070 Provide correct GCC_NORETURN 2011-05-24 13:48:16 +00:00
joerg
2f9aafde9d Use the static inline for the body as well. 2011-05-23 15:23:24 +00:00
plunky
1c3db706be provide endian information to libpcc
(shame this doesn't use the same TARGET_XXX_ENDIAN
definition as the rest of the sources)
2011-05-22 12:01:26 +00:00
plunky
e73fc4c682 let external.h be built as a side effect of external.c, as
listing it explicitly means that mkext is run concurrently
twice when MAKE_JOBS > 1
2011-05-22 11:53:46 +00:00
plunky
762c58f13a simplify PCC inclusion; MKPCCDMDS is not really required 2011-05-20 16:02:21 +00:00
joerg
7fb15e5d28 Update LLVM/Clang snapshot to create the correct relocation when memory
locations are used as immediates on AMD64.
2011-05-20 13:40:04 +00:00
joerg
7845a1c161 Update LLVM/clang snapshot for support of -Wa,--fatal-warnings in the
integrated assembler
2011-05-19 21:06:01 +00:00
joerg
d14e81e4ad Update to LLVM/Clang revision 131404. This includes the fix for asm labels
on builtins (broke longjmp usage) and a better cross-compiling support
in combination with -m32/-m64.

Update configuration to include /usr/include/clang-3.0 in the search
path.
2011-05-16 19:27:47 +00:00
christos
5717128087 - turn on maintainer mode
- disable rules on doc
- regen
2011-05-16 00:23:20 +00:00
christos
5d62bbf09c remove dup code. 2011-05-13 21:15:34 +00:00
christos
2344ff9853 resolve conflicts 2011-05-13 01:52:12 +00:00
christos
5ccaa8c050 from ftp.astron.com.
- many security related fixes
- no MAXPATHLEN limits
- fixed missing text specification on ascii magic
- new ``pascal'' style string formats
- whitespace comparison fix
- more magic
2011-05-12 20:46:28 +00:00
joerg
46f5119e40 Update LLVM and Clang snapshot 2011-05-12 14:56:22 +00:00
taca
0b00ab0979 Apply fix by BIND 9.8.0-P1: https://www.isc.org/CVE-2011-1907. 2011-05-06 15:28:19 +00:00
christos
da96ddd961 PR/44928: Henning Petersen: Remove missing include dirs in Makefile.inc 2011-05-02 19:04:54 +00:00
plunky
03a0366bc0 build mkext with the same flags as ccom (lack of -DGCC_COMPAT in
particular, but add -Dos_ and -Dmach_ just in case)
2011-04-29 08:33:02 +00:00
adam
6eea015c15 Added postgresql-license 2011-04-22 08:19:25 +00:00
martin
518b4814dd Hint from dsl: make sure to have the /etc/protocols file already open
before doing a chroot() if run as root. Easily done by a setprotoent(1)
call. This is a better (less intrusive) fix for PR bin/44721.
2011-04-17 11:45:40 +00:00
joerg
032ce801a7 Really apply roff.c 1.134 for the conditional stack fix 2011-04-15 22:05:51 +00:00
joerg
873b4d7d94 Install clang's MD headers into /usr/include/clang-3.0 similar to GCC. 2011-04-15 19:31:06 +00:00
joerg
a5447c9e30 Deal with two cases of name shadowing 2011-04-15 15:50:28 +00:00
joerg
78bc4f7461 Update build glue for mdocml 1.11.1. 2011-04-15 14:36:28 +00:00
joerg
9c655dd9de Merge for mdocml-1.11.1 2011-04-15 13:47:17 +00:00
joerg
48741257dd Import mdocml-1.11.1 with a few additional fixes from CVS:
Merge the libraries into a single frontend, libmandoc.
Iinitial support for eqn(1) functionality.

Additional changes:
Portability fixes (tbl_opts.c 1.11, tbl_layout.c 1.18, tbl.c 1.25)
HTML space fixe (mdocml_html.c 1.163)
ROFF conditional nesting bug (roff.c 1.131)
2011-04-15 13:45:25 +00:00
christos
1d62298ca7 Swap the command and the thread name in the thread view and let the command
be as long as it wants. (Vladimir Kirillov)
2011-04-15 02:05:53 +00:00
plunky
a97ff97089 use HOSTPROG to build the mkext program (which creates external.c and
external.h for ccom) rather than HOST_CC directly.

because PROG and HOSTPROG don't play nicely together, put mkext in its
own SUBDIR
2011-04-14 09:31:25 +00:00
roy
e21138bdbf Sync 2011-04-06 09:09:05 +00:00
roy
a2af890d85 Import dhcpcd-5.1.12 with the following changes:
* 20-resolv.conf now uses the correct variable for $IF_METRIC
* Exclude interface values when dumping the lease
* Parse static value subnet_mask when it exists instead of deriving from
  ip address
* logger calls now resemble dhcpcd calls to syslog(3)
* Reject offered IP address if INADDR_BROADCAST or INADDR_ANY
* Change the route if source address has changed
* Note the address we are requesting in the broadcast log entry
* When operating on one interface, respect the timeout for in dhcpcd.conf
* Escape | and & characters before passing the value to the shell
  Ensure we set a valid hostname, DNS domain and NIS domain.
  Document the need for input validation in dhcpcd-run-hooks(8).
  Fixes CVE-2011-996
  Based on a patch to dhcpcd-3 by Marius Tomaschewski <mt@suse.de>
2011-04-06 09:06:41 +00:00
jmmv
19180a785c Pull up revision b94e200f2a6ce3d47103339db1f3c8936b7238d3:
Unset TERM when running GDB

GDB inserts some funny control characters in its output when TERM is set to
e.g. xterm.  Workaround this by simply unsetting TERM.

Reported by martin@ and diagnosed by pooka@/martin@.
2011-04-05 17:17:35 +00:00
jmmv
8f2e7abf72 Set LIBISCXX=yes; from joerg@. 2011-04-05 16:37:06 +00:00
agc
13f6fd89a7 get rid of most (but not all) lint on amd64 2011-04-05 06:24:42 +00:00
agc
0b168fdfde remove function parameter names from function prototypes
make the lzf_compress() prototype match the function definition - the
prototype always added the state table argument, although it should be
conditionally compiled in.  use the same cpp magic as in the source
file to prototype the function in the header file.
2011-04-04 20:37:48 +00:00
jmmv
914575b7d1 Adjust reachover build files with the import of atf-0.13. 2011-03-31 16:45:44 +00:00
jmmv
e7183a7993 Fix import conflicts. 2011-03-31 16:44:17 +00:00
jmmv
eb215e31ca Import atf-0.13:
Experimental version released on March 31st, 2011.

This is the first release after the creation of the Kyua project, a more
modular and reliable replacement for ATF.  From now on, ATF will change to
accomodate the transition to this new codebase, but ATF will still continue
to see development in the short/medium term.  Check out the project page at
http://code.google.com/p/kyua/ for more details.

The changes in this release are:

* Added support to run the tests with the Kyua runtime engine (kyua-cli), a
  new package that aims to replace atf-run and atf-report.  The ATF tests
  can be run with the new system by issuing a 'make installcheck-kyua' from
  the top-level directory of the project (assuming the 'kyua' binary is
  available during the configuration stage of ATF).

* atf-run and atf-report are now in maintenance mode (but *not* deprecated
  yet!).  Kyua already implements a new, much more reliable runtime engine
  that provides similar features to these tools.  That said, it is not
  complete yet so all development efforts should go towards it.

* If GDB is installed, atf-run dumps the stack trace of crashing test
  programs in an attempt to aid debugging.  Contributed by Antti Kantee.

* Reverted default timeout change in previous release and reset its value
  to 5 minutes.  This was causing several issues, specially when running
  the existing NetBSD test suite in qemu.

* Fixed the 'match' output checker in atf-check to properly validate the
  last line of a file even if it does not have a newline.

* Added the ATF_REQUIRE_IN and ATF_REQUIRE_NOT_IN macros to atf-c++ to
  check for the presence (or lack thereof) of an element in a collection.

* PR bin/44176: Fixed a race condition in atf-run that would crash atf-run
  when the cleanup of a test case triggered asynchronous modifications to
  its work directory (e.g. killing a daemon process that cleans up a pid
  file in the work directory).

* PR bin/44301: Fixed the sample XSLT file to report bogus test programs
  instead of just listing them as having 0 test cases.
2011-03-31 16:41:07 +00:00
jmmv
7c248362c1 Pull up upstream revision 648ed6360b2b7cda81a6079b00dc436d09c745b8:
Retry calls that raise file system errors during cleanup

If a test case mounts user-space (puffs/fuse) file systems or spawns
server processes that create pid files, the termination of the
corresponding processes does not guarantee that the file system is
left in a consistent state immediately.  The cleanup routines of both
components (file systems and daemons) may still be running.

This situation causes a race condition between the termination of the
auxiliary processes and our own file system cleanup: the file system
calls performed from within the cleanup routine may raise errors
because the file system is still changing underneath.  (E.g. we first
enumerate the contents of a directory and get file X, but when we
attempt to delete file X, it may be gone.)

Deal with this by retrying failing file system calls a few times and
ignoring "expected" errors before giving up.
2011-03-30 11:10:56 +00:00
joerg
6b0a585bda Catch up with library roulette in lli. Allow LLVM_DEVELOPER to be set in
mk.conf. From Vladimir Kirillov.
2011-03-28 11:41:48 +00:00
jmmv
8d1a945c66 Enable the execution of pkg_config_test; it has been present for a while
and it is even being built and installed already.

Partial pull up of 0930d2c3f44a9c8fcaf0a960ab51c5e8f320684d.
2011-03-24 19:50:30 +00:00
joerg
6133b91485 Update LLVM/clang snapshot. This brings much improved support for
--sysroot and a cross-compiling toolchain.
2011-03-21 16:50:12 +00:00
joerg
73a4306de0 Update LLVM snapshot. This allows deriving the target from the binary
name, provides a proper CPP mode and fixes a number of compat issues
in the integrated assembler.

Build the toolchain compiler optimized and without assertions now.
2011-03-18 23:32:01 +00:00
jmmv
2dad8b2ada Pull up revision 3dd2481ec97b2fde76521939b6451d03ce989745 from upstream:
Really kill subprocesses of a test case before waiting for its completion

Before waiting for any leftover output of the test case after it terminates,
we must ensure that all of its subprocess are really, really dead.  Otherwise,
these subprocesses may be sharing the stdout of the test case, in which case
our wait will block (potentially indefinitely).

This finally (well, hopefully) fixes some random lockups exposed by the
NetBSD test suite.  Reported by Antti Kantee after
tests/fs/vfs/t_full:p2k_ffs_fillfs was exposing this problem in a pretty
reproducible manner.
2011-03-17 19:45:36 +00:00
tron
dcb81cebe2 Disable SSP warnings for a few files to make this build with "USE_SSP=yes". 2011-03-12 14:19:25 +00:00
christos
cad4076f90 - use our vis (maybe I'll implement strnvis soon, but not now)
- WARNS=4
2011-03-12 03:02:58 +00:00
wiz
71069b9636 It's tcpdump(8), not (1).
From Anon Ymous.
2011-03-10 17:11:17 +00:00
jmmv
a3fddfa529 Enable the build of tmux and add the necessary directory and file entries. 2011-03-10 13:16:57 +00:00
jmmv
eb9405a694 Add reachover Makefiles for the build of tmux. 2011-03-10 09:18:00 +00:00
jmmv
698d5317f6 Initial import of tmux-1.4:
tmux is a "terminal multiplexer".  It enables a number of terminals (or
windows) to be accessed and controlled from a single terminal.  tmux is
intended to be a simple, modern, BSD-licensed alternative to programs
such as GNU screen.

The import of tmux is intended to replace window(1) in the not-too-distant
future.  For reference, tmux is also present in the base system of FreeBSD
and OpenBSD.

Approved by core@.
2011-03-10 09:15:36 +00:00
jmmv
9e4aec07e1 Add instructions and a helper script to import tmux. 2011-03-10 09:10:41 +00:00
plunky
a7983e8a67 source files are scan.l and parse.y
in particular, parse.y was being processed twice.. with one
process leaving a y.tab.h file behind

no need to explicitly add scan.c, parse.c and parse.h to CLEANFILES,
the framework knows they are generated and will remove them
2011-03-08 19:25:32 +00:00
pooka
58ecd47e2f Apply "silence, please!" to '(no debugging symbols found)'
spammed by gdb.
2011-03-04 09:04:06 +00:00
nakayama
c09c2a7b34 Fix build on Solaris 10. 2011-03-03 14:53:01 +00:00
pooka
fa9fc06b7a In case we get a coredump from a test, autorun gdb to produce a
stacktrace (or whatever gdb can give us, which unfortunately is
usually not that much).
2011-03-02 16:47:04 +00:00
plunky
6f9d62f062 avoid preprocessor directives in macro arguments
has been committed upstream at

    http://hostap.epitest.fi/gitweb/gitweb.cgi?p=hostap.git;a=blobdiff;f=src/ap/wpa_auth.c;h=7ad60a23d999082a00e9be672d4b55a19c46a4bb;hp=13e8ec43895a67d6d825b5c2a199499232dbafcb;hb=8ce58ceb250f101ee66682a4149cc652a30a74da;hpb=73304dbf65c3da859b1c51e6be32457e9ec9932d
2011-02-27 18:07:42 +00:00
gdt
c93631d028 Don't copy ntpq.1 to ntpq.8 before overwriting it.
"foo > bar" fails when bar is mode 444, and files copied from the
source tree should be expected to perhaps be read only.  However, the
copy should have been removed when the sed was added.  And, it never
should have been "@"; suppressing it made debugging this harder than
it should have been.
2011-02-27 12:42:44 +00:00
plunky
f4ffd55a5b setting USE_FORT=yes means that memmove() becomes a macro, and the
#ifdef inside the macro arguments is undefined behaviour (pcc reports
a syntax error)

This was fixed upstream so change this to be the same as the 4.2.6p3
stable release of ntp (can't find an actual changelog entry that
describes this, so have included the memcpy change also - memmove
is not required here)
2011-02-27 12:10:18 +00:00
plunky
e9bb66e7cf clean up man files copied during build
also.. while we are putting the pages into different sections,
lets change the manpage contents to reflect that
2011-02-26 19:17:37 +00:00
joerg
213144e1de Update LLVM/Clang snapshot. This brings improvements for the integrated
assembler and support for -cxx-isystem in the driver.
2011-02-23 03:09:02 +00:00
sborrill
d66709fd74 Update HISTORY to show that iscsifs was in NetBSD 5.0 2011-02-22 17:15:55 +00:00
wiz
68b1a98bc8 Markup fix. 2011-02-22 14:23:37 +00:00
sborrill
75f0848d7d Note limitations of CHAP implementation in BUGS section. 2011-02-22 13:17:20 +00:00
sborrill
cbedc267b9 Skip target if TargetName is empty.
Use relevant TargetAddress, not just first one we happen to find.

Following improvement based on feedback from Daisuke Aoyama (author of istgt):
Handle NOP-OUT CmdSN and immediate bit.
Handle NOP-IN TransferTag=0xffffffff.
Interim solution for dealing with Underflow bit in iSCSI response.

iscsi-initiator now talks to istgt and other targets.

Remaining issues:
CHAP support will not work with most targets (maximum 16 octet challenge is
used, but other initiators use up to 1024). However, CHAP can now be
bypassed by not specifying a username.
2011-02-22 13:10:55 +00:00
sborrill
f7bc64b9db Retry read capacity. Device may not be ready on first access, so need to
wait and re-issue. From Daisuke Aoyama (author of istgt).
2011-02-22 13:04:31 +00:00
sborrill
c3d1c80eb5 Release 20110222 2011-02-22 13:00:05 +00:00
sborrill
83d439db6d Skip .orig files 2011-02-22 12:56:50 +00:00
sborrill
a96e357c94 Document -D option (discover LUNs).
iscsi-initiator was NOT in NetBSD 5.0.
2011-02-22 10:34:12 +00:00
sborrill
ff607cd15b man page claims that you can use auth type = none, but in reality this
didn't work (insisted on a username being given and then used, plus always
advertised CHAP to the target). Make initiator work as advertised (i.e.
defaults to auth type none and so don't require a username).

To use CHAP you should explicitly request CHAP:
iscsi-initiator -a chap -u user -h targetname /mountpoint

For backwards compatibility, if a username is given (-u) and no auth type
is specified (-a), it will default to CHAP, i.e. to use none, just give no
username:
iscsi-initiator -h targetname /mountpoint
2011-02-21 17:48:43 +00:00
sborrill
4fd58d7036 Remove hostname from pathname to storage in mount point.
This means /mnt/mytarget.domain.local/target0/storage is now
/mnt/target0/storage.

Rationale is as follows:
- The hostname used may vary (i.e. name vs FQDN vs IP) which can mess up
  mountpoints (especially across multiple hosts e.g. in a shared xen pool)
- Target name is given in the mount anyway so it is redundant

OK agc@
2011-02-21 17:24:19 +00:00
jmmv
a3b86068ff Fix the values of atf_arch and atf_machine: the former is supposed to be
the cpu name and the latter the port name.  They had been reversed until
now due to some "smart" stupidity^Wlogic in the upstream configure script,
which is now gone.

This is a pullup of revision f9329ca68da7e8557e0803b5747a12f8c10b1258
plus the corresponding reachover build changes.

Addresses PR bin/44305.
2011-02-20 20:56:34 +00:00
jmmv
4d916cb08c Set DPADD to point to the static versions of libatf-c and libatf-c++ as
appropriate.
2011-02-20 20:18:56 +00:00
ws
191e94cd7e Fix return values.
OK christos.
2011-02-20 19:05:32 +00:00
agc
78b8953550 manual page improvements, from enami tsugutomo, with thanks. 2011-02-20 03:56:36 +00:00
aymeric
be644fb029 merge pkg_install 20110215 2011-02-18 22:36:00 +00:00
aymeric
997253ffc3 Import pkg_install 20110215.
--- 20110215:
Fix audit-history subcommand to include patterns making use of [x-y] notation.

--- 20101212:
Don't warn about _ALPHA, _BETA, _PATCH, _RC, _STABLE mismatches when
pkg_add'ing on NetBSD.

--- 20101122:
Fix crash in pkg_info -X on hand-written packages.

--- 20100915:
Allow https URLs.

--- 20100914:
Add -D flag to pkg_install, to override the "pkg_add -U" check that
all depending packages have their dependencies satisfied by the new
package.  Essentially, split off this particular behavior as a special
case of -f, so that -f works as before, unforced works as before, and
one can give -D to override exactly this check, leaving all other
checks intact.

The -D flag is in support of make replace, as the workflow for make
replace is that inter-package dependencies are sometimes violated (but
then one must replace the depending packages, which is what
pkg_rolling-replace does via the unsafe_depends flags).

Add missing break statement in option parsing of "pkg_add -C", riding
the version bump.
2011-02-18 22:32:27 +00:00
christos
a913237f1e undo the thread and atomic lossage of the import. 2011-02-18 21:25:06 +00:00
jruoho
5f9b9b3433 Build this for NetBSD, not Linux. Thanks to Takahiro HAYASHI
for pointing this out.
2011-02-18 17:34:22 +00:00
joerg
daf6c4152f Update LLVM/clang snapshot. This brings in support for
.pushsection/.popsection and fixes clang -B to be incremental.
2011-02-17 18:35:35 +00:00
jruoho
b7ca446498 Fix iasl(8). 2011-02-17 18:26:20 +00:00
wiz
07445f37aa Add .An -nosplit to AUTHORS to avoid a new line for Jukka. 2011-02-17 17:07:55 +00:00
jruoho
1cfc85c6e4 Switch the build to use the new location of ACPICA. 2011-02-17 07:52:10 +00:00
jruoho
ed720dbb6b Add the userspace portion of ACPICA to a new location. 2011-02-17 07:48:16 +00:00
christos
7c272055e8 - merge conflicts
- Fix UNUSED macro to not have "NULL EFFECT"
- Add /*CONSTCOND*/ to while (0) loops
- Change do while (1) loops to for (;;)
- remove stray continue from do while (0) loop.
- remove "" in comments that confuse lint
- fix strict aliases
- fix non ansi prototypes
2011-02-16 03:46:43 +00:00
christos
8e6786bbdd from ftp.isc.org 2011-02-15 19:38:54 +00:00
christos
85662ea508 from ftp.isc.org 2011-02-15 19:28:53 +00:00
christos
13b2862bfd Tell the groff and friends about libsaslc(3).
Sort and fix whitespace on mdoc.local.
Add libisns to doc2html.
2011-02-11 23:47:49 +00:00
agc
ff0d414d6f Make sure we include <inttypes.h> if we have it. From Rumko. 2011-02-09 00:59:23 +00:00
plunky
6fea4fd6c5 newer pcc front end provides some definitions according to arch,
so provide the TARGMACH definition to the compiler here.

(makes no difference to the currently imported sources, but
will be easier for people wanting to try newer sources)
2011-02-08 18:26:25 +00:00
jmmv
773d35b30a Add missing DPADD on libatf-c.a. Spotted by Garrett Cooper. 2011-02-06 19:34:20 +00:00
joerg
48360965f3 Add LLVM and clang build system. It is enabled by MKLLVM=yes.
Upstream sources can be fetched by running "make checkout" in
src/external/bsd/llvm, they will be properly imported once the
integration and missing features are sorted out.
2011-02-06 01:13:42 +00:00
wiz
b7b9012e09 Fix typo, already reported to roy@ 2011-02-04 16:30:32 +00:00
roy
9bcc7aaf5d sync 2011-02-04 15:03:14 +00:00
roy
d70ff484b5 Import dhcpcd-5.2.11
Change from dhcpcd-5.2.10 is a fix for the new routing sockets.
2011-02-04 15:00:22 +00:00
plunky
74756ed73d pcc-current provides a DATESTAMP file, handle that rather than guessing 2011-02-01 20:28:10 +00:00
jakllsch
9d4594cbe9 Re-add LBL_ALIGN define we used to have pre-src/external.
Fixes a tcpdump SIGBUS on ARM.
2011-01-29 23:19:54 +00:00
wiz
c1f176e16d Move isns description from dist/groff to usr.bin/groff, where it belongs.
Add isns to mdocml libraries as well.
2011-01-18 09:28:42 +00:00
joerg
20d71a1344 Update build system for mdocml-1.10.9. 2011-01-12 23:02:21 +00:00
joerg
6e4753617c Use example.style.css in place of style.css.
Replace $Mdocdate$ with the content in correct order, so that groff
gives proper output.
2011-01-12 23:00:51 +00:00
joerg
f494eb95a3 Merge for mdocml-1.10.9 2011-01-12 22:58:42 +00:00
joerg
c0d9444af1 Import mdocml-1.10.9 and additional post-release bugfixes
(tbl_data.c 1.15, tbl_layout.c 1.13, tbl_opts.c 1.8).

This features many small improvements and the initial integration of
tbl(1) support on all output devices.
2011-01-12 22:57:08 +00:00
kardel
4ba751f5ad make ntp compile for MKINET6=no 2011-01-09 14:49:39 +00:00
jmmv
1b0a12b414 Cherry-pick upstream revision f791048924a1b68da070f17dfd5e5c2d825dd018:
Report bogus test programs in the HTML output

From Paul Goyette in private mail.  Fixes PR bin/44301.
2011-01-05 14:03:08 +00:00
roy
160a96b3e7 Don't build the getline shim anymore as the NetBSD libc getline(3) has
proven itself now.
2011-01-03 11:33:44 +00:00
roy
0524c4d0bb Import dhcpcd-5.2.10 with the following change:
* -r, --request <address> now works again
2011-01-03 11:28:23 +00:00
wiz
7487051d3d Prefix section headers for 1 to 9 with "NetBSD " to match output
for non-HTML pages (i.e. groff ones). Noted by njoly.
2011-01-02 22:03:24 +00:00
jmmv
15dbacd486 Pull up revision 869e092e4986eb5dce90331ca9a64e125d7796eb from mainstream:
Revision: 869e092e4986eb5dce90331ca9a64e125d7796eb
Parent:   cca40eb08e7469dfe9d6ca982613458f24c1de28
Author:   jmmv@NetBSD.org
Date:     12/27/10 21:19:19
Branch:   org.NetBSD.atf.src

Changelog:

Recognize sigabrt in the signal checker

Problem found by Paul Goyette.

Changes against parent cca40eb08e7469dfe9d6ca982613458f24c1de28

  patched  atf-sh/atf-check.cpp
2010-12-27 20:36:17 +00:00
christos
6f6878df03 defs.h already includes nbtool_config.h, so don't do it twice. 2010-12-25 23:43:30 +00:00
christos
5743e2a045 fix debugging:
- don't print junk for the interface name
- parse and print known rtm messages we get
2010-12-25 20:45:49 +00:00
joerg
570bc97f41 Include nbtool_config.h for the toolchain build as platforms like Linux
don't define __RCSID.
2010-12-25 19:24:28 +00:00
christos
9f5adb9583 fix type-punned warnings on gcc-3.3.3 2010-12-25 18:23:39 +00:00
christos
f2fd5dbad4 Fix non-threads compatibility code which was causing trouble even in the
threaded version.
2010-12-25 15:26:32 +00:00
christos
60b2c79645 remove typo. 2010-12-24 23:28:14 +00:00
christos
cf91bdd313 update for new yacc. 2010-12-24 23:27:14 +00:00
christos
379031a404 update yacc to the most recent. 2010-12-24 02:58:20 +00:00
christos
9cdaf1e6ed import latest byacc 2010-12-23 23:36:22 +00:00
wiz
1e9e3652c6 Bump date for chroot default. 2010-12-17 10:35:10 +00:00
jruoho
27cfff3b3e Make tcpdump(8) to drop root privileges and chroot(2) by default. 2010-12-17 09:54:27 +00:00
wiz
3d3c5d42cb Observe the following spelling:
- wide character (noun)
- wide-character (adjective)

Inspired by jmc@OpenBSD.
2010-12-16 17:42:25 +00:00
enami
83d9249c3a Fix typo. 2010-12-15 07:36:51 +00:00
christos
83c933dca1 Use the source dir atomic.h 2010-12-15 02:08:16 +00:00
christos
a9c38a6a96 Wrong rfc mentioned 2010-12-14 23:43:32 +00:00
christos
c2a9dfd59e handle lack of <sys/atomic.h> 2010-12-14 23:19:23 +00:00
christos
f4f6c00c90 silence gcc-3 uninitialized variable warning. 2010-12-14 23:18:31 +00:00
christos
30037bfd3f Handle NetBSD-5 and 4 lack of atomics by disabling threads. 2010-12-14 23:17:20 +00:00
christos
97caf9021f handle openssl versions less < 1. 2010-12-14 23:16:39 +00:00
joerg
b4eb5d9c57 Kill double .TP 2010-12-12 20:20:43 +00:00
joerg
1a85759af0 Kill double .TP 2010-12-12 20:19:41 +00:00
joerg
2e05e5b66d Reply 1.15, lost in the last update. 2010-12-12 18:40:01 +00:00
adam
5e6ed478ee bump minor version for 2.4.23 2010-12-12 16:19:54 +00:00
adam
303af6c5ec Update to OpenLDAP 2.4.23 2010-12-12 16:10:42 +00:00
adam
4ecae53ae6 Use conditional WORDS_BIGENDIAN 2010-12-12 16:10:18 +00:00
adam
a8c4d9a88a Merge 2.4.23 2010-12-12 15:46:27 +00:00
adam
ef2f90d39c Imported openldap-2.4.23 2010-12-12 15:17:36 +00:00
jmmv
42afccf436 Pull up revision c917871de7dd67ba57c17496ad68fe4e4aa8b239:
Fix atf-check match checker to validate lines without newline

Problem found by pooka@.
2010-12-06 18:04:02 +00:00
christos
efb1585e67 propagate the fixes from /usr/src/sys/net/bpf_filter.c here, so that
we don't merge backwards again.
2010-12-06 01:08:02 +00:00
mrg
a5ae13c90e - use SCRIPTS* for scripts instead of FILES*.
- add pcap-config to CLEANFILES.
2010-12-05 09:09:39 +00:00
mrg
9133e91956 netbsd needs net/bpf.h, too. 2010-12-05 08:43:23 +00:00
christos
dbe76af3b7 hook tcpdump and libpcap 2010-12-05 05:59:59 +00:00
christos
25abe6c390 tcpdump goes to /usr/sbin 2010-12-05 05:52:46 +00:00
christos
ef3545626b we don't have a 3PCAP section 2010-12-05 05:40:14 +00:00
christos
0a6931da37 we only have bin 2010-12-05 05:24:21 +00:00
christos
923cb98430 cleanup old stuff and install in the right place 2010-12-05 05:24:03 +00:00
christos
69e620e14c build and import glue. 2010-12-05 05:14:00 +00:00
christos
90faadda0b Makefile overrides 2010-12-05 05:13:45 +00:00
christos
11b3aaa125 apply our changes and add the pfsync stuff. 2010-12-05 05:11:30 +00:00
christos
0f74e101fa Import tcpdump-4.1.1 2010-12-05 03:14:48 +00:00
christos
ea56eea76f select IPv6 from the Makefile 2010-12-05 03:06:54 +00:00
christos
8bc69f3e6c add configure file. 2010-12-05 03:06:08 +00:00
christos
45a3afe368 we need some more files here. 2010-12-05 03:03:27 +00:00
christos
aac80989b6 more sign-compare fixes. 2010-12-05 03:02:41 +00:00
christos
c8eee57ad6 don't print -L/usr/lib and -I/usr/include for no reason. 2010-12-05 03:01:39 +00:00
christos
8d518122c2 install pcap-check. Someone might need it. 2010-12-05 03:00:44 +00:00
christos
74c505a81b - add our fixes
- make compile with WARNS=5
- add glue
2010-12-05 01:45:46 +00:00
christos
adf57bf528 add rcs keyword cleaner 2010-12-05 01:28:28 +00:00
christos
62ed3ef9cc try again fixing RCS keywords 2010-12-05 01:26:52 +00:00
christos
bf1df6d193 Import libpcap-1.1.1 2010-12-05 01:20:21 +00:00
christos
e19314b713 Pretending that %d can print size_t on __LP64__, by turning off warnings
is not really a good idea.  Turn on the warnings and fix them. Unfortunately
there are a bunch of const-castaways... Should be fed upstream.
2010-12-04 23:08:32 +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
dfcdd76889 merge changes 2010-12-02 14:52:17 +00:00
christos
c27878d85f Import bind 9.7.2-P3 2010-12-02 14:22:18 +00:00
christos
632ebb6b6e fix typo caused mdnstries not to work. 2010-11-30 15:00:10 +00:00
christos
960613872d Add a new config keyword "mdnstries" that can be set to 0 to disable mdns. 2010-11-29 00:39:40 +00:00
roy
04e42faa8e Install the 02-dump hook for dhcpcd. 2010-11-27 12:11:54 +00:00
roy
ff707c5c61 sync 2010-11-27 11:28:24 +00:00
roy
0632cf1e32 Import dhcpcd-5.2.9 with the following changes:
* syntax in 50-ypbind hook has been fixed
* man page corrections
* report hwaddr used by dhcpcd when debug is enabled
* Fix detecting inet address for INFORM support
* document reason RELEASE in dhcpcd-run-hooks
* Support RTM_CHGADDR in the upcoming NetBSD-6
  This is used to work out if the hwaddr has changed as the interface
  does not go down/up unlike other OSes
* ntp hook no longer attempts to restart ntpd if 1st attempt failed
2010-11-27 11:24:09 +00:00
pooka
7eb4ddcb5b Remove spammy (debug?) prints. took ages to figure out they were
not coming from my application...

XXX: the memcmp below looks suspicious
2010-11-26 12:04:36 +00:00
jmmv
9e95dfadb1 Pull up 702fa99a25c1b27e4c501e4a504f36b74106ea97 from upstream
This reverts the default timeout for test cases back to 300 seconds.
The change in the release was quite blind because it did not anticipate
many existing tests to be slow enough to overflow the modified timeout
(30 seconds), specially in anita.

My plan to really fix this is to let test cases specify their sizes in
a declarative way instead of specifying timeouts in seconds (the timeout
being defined by atf-run on a size basis), so I'm not going to bother to
go over all existing tests trying to figure out which ones need a higher
timeout for now.  It is just easier to revert.
2010-11-16 17:55:56 +00:00
pgoyette
603fd4b791 Calibrate the amount of time that a sleep() requires, and use that
interval instead of assuming that there are exactly 1000 real-time-clock
milliseconds per second!  On some ports when running under qemu, there
can be twice as many RTC milliseconds as expected.

This is part 2 of the changes required to make the libevent tests work
on port-amd64 under qemu.
2010-11-11 14:11:26 +00:00
pgoyette
21bfc7fd78 Adjust timers a bit so that the http timer can get a chance to expire,
even when running under qemu on platforms with a clock-skew problem.

The original 3-second timer was intended to be "longer than the http
timeout" (which is 2 seconds), and the updated 5-second value still meets
this requirement.  The updated value also meets the requirement even when
the http timeout stretches to 4-seconds under qemu.

This is part 1 of getting the libevent tests working on port-amd64 with
qemu.
2010-11-11 14:08:45 +00:00
roy
c1259c9577 Put correct init.d hooks into dhcpcd-run-hooks. 2010-11-10 14:12:28 +00:00
jmmv
91113eeff8 Pull in post-release fix 3d5597b0076ade841abf03fc274da72d17cb3ad6 to resolve
issues with the default NetBSD settings.  Tests were producing invalid results
because they were unexpectedly reading the system-wide settings.
2010-11-07 17:54:03 +00:00
jmmv
3b8333d3c0 Adjust reachover build files after import of atf-0.12. 2010-11-07 17:46:45 +00:00
jmmv
0b634f1420 Help merge of atf-0.12. 2010-11-07 17:45:21 +00:00
jmmv
0ebb519dda Import atf 0.12:
Experimental version released on November 7th, 2010.

* Added the ATF_REQUIRE_THROW_RE to atf-c++, which is the same as
  ATF_REQUIRE_THROW but allows checking for the validity of the exception's
  error message by means of a regular expression.

* Added the ATF_REQUIRE_MATCH to atf-c++, which allows checking for a
  regular expression match in a string.

* Changed the default timeout for test cases from 5 minutes to 30 seconds.
  30 seconds is long enough for virtually all tests to complete, and 5
  minutes is a way too long pause in a test suite where a single test case
  stalls.

* Deprecated the use.fs property.  While this seemed like a good idea in
  the first place to impose more control on what test cases can do, it
  turns out to be bad.  First, use.fs=false prevents bogus test cases
  from dumping core so after-the-fact debugging is harder.  Second,
  supporting use.fs adds a lot of unnecessary complexity.  atf-run will
  now ignore any value provided to use.fs and will allow test cases to
  freely access the file system if they wish to.

* Added the atf_tc_get_config_var_as_{bool,long}{,_wd} functions to the atf-c
  library.  The 'text' module became private in 0.11 but was being used
  externally to simplify the parsing of configuration variables.

* Made atf-run recognize the 'unprivileged-user' configuration variable
  and automatically drop root privileges when a test case sets
  require.user=unprivileged.  Note that this is, by no means, done for
  security purposes; this is just for user convenience; tests should, in
  general, not be blindly run as root in the first place.
2010-11-07 17:43:22 +00:00
mrg
634cf7a288 fix NAMED_USE_PTHREADS != yes usage. 2010-11-06 21:32:49 +00:00
christos
b155e612fc PR/44052: Takahiro HAYASHI: chrooted ntpd refers freed memory
As mentioned in the pr, process_routing_msgs can delete the current reader,
so cache the next element before calling it.
2010-11-06 20:40:12 +00:00
he
f5736be797 New pkg_install requires -llzma, so to support static linking, be
explicit about what libraries are required, and not only depend on
shared library inter-dependencies to pull that in.
Fixes the build for sun2.
2010-11-05 09:09:01 +00:00
joerg
5ca507b93d Enable direct XZ support 2010-11-02 19:14:53 +00:00
njoly
46b3723883 Do substitute __TESTSDIR__ when generating atf(7) man page. 2010-11-02 14:41:32 +00:00
yamt
d76c56428e fall back to malloc+pread when stat+malloc doesn't seem to work.
it allows libelf work on /dev/ksyms.

XXX the name of the flag is a bit confusing and i think it's better to rename
MALLOCED to DATA_MALLOCED or such.  but i don't think it's worth increasing
the diff against the upstream for it.
2010-10-31 05:03:12 +00:00
jmmv
6098e2d456 Per gson@'s request, make these tests less verbose so that the output of
atf-run is not twice as large as before.  This is a pull-up of
699284e5c0d0a375958293e578af4e02d68d1182.

(I don't think it's reasonable to intentionally cripple tests as I have
just done here.  In the future I would like to only report the output of
failed test cases, which would allow us to undo this, but not there yet.)
2010-10-20 16:25:01 +00:00
jmmv
41e4dfff04 Adjust reachover makefiles for atf 0.11. 2010-10-20 09:20:09 +00:00
jmmv
0bc037cb06 Resolve import conflicts. 2010-10-20 09:17:21 +00:00
jmmv
895f502b7b Import atf-0.11:
Experimental version released on October 20th, 2010.

* The ATF_CHECK* macros in atf-c++ were renamed to ATF_REQUIRE* to match
  their counterparts in atf-c.

* Clearly separated the modules in atf-c that are supposed to be public
  from those that are implementation details.  The header files for the
  internal modules are not installed any more.

* Made the atf-check tool private.  It is only required by atf-sh and being
  public has the danger of causing confusion.  Also, making it private
  simplifies the public API of atf.

* Changed atf-sh to enable per-command error checking (set -e) by default.
  This catches many cases in which a test case is broken but it is not
  reported as such because execution continues.

* Fixed the XSTL and CSS stylesheets to support expected failures.
2010-10-20 09:14:17 +00:00
jmmv
8d9c35f478 Sync list of files to ignore in preparation for the 0.11 import. 2010-10-20 08:56:16 +00:00
roy
2b71ad63d1 Sync 2010-10-07 14:38:10 +00:00
roy
ada0026e42 Import dhcpcd-5.2.8 with the following changes from 5.2.4
* Use dynamically sized buffers for reading kernel link events
* Use the active link address
* Added option to dump a lease to stdout
* TEST mode now works correctly if an old lease is NAKed
* routes with the gateway = leased ip are now treated as host routes
2010-10-07 14:35:56 +00:00
tron
c4f7aae542 Use setenv(3) instead of putenv(3) because the later doesn't accept
string constants anymore.
2010-10-02 12:22:20 +00:00
he
44b7889673 Don't depend on shared library dependencies; we also need -lpuffs here.
This allows us to link statically.
2010-09-23 09:40:23 +00:00
christos
3b2862d165 fix typo. From Anon Ymous 2010-09-22 14:37:08 +00:00
wiz
bb6867a3bf Add missing letter, from Ryo HAYASAKA in PR 43880. 2010-09-15 06:52:33 +00:00
pgoyette
a882490af5 Differentiate between the three types of expected failures 2010-09-11 03:10:57 +00:00
pgoyette
2e17bd5406 First cut at adding support for expected_failures.
Has also been reported/provided to up-stream.
2010-09-04 19:19:27 +00:00
kardel
3319d8f1fd fix MKINET6=no compile 2010-09-04 17:06:06 +00:00
ahoka
82e82fca50 Add libc glue for libtre.
tre will be compiled without approx and wchar/mulibyte support to
only match the minimum requirement to replace our spencer regex.

This needs a lot of testing.

Only enabled when USE_LIBTRE is set to `yes'.
2010-09-04 12:17:58 +00:00