Commit Graph

664 Commits

Author SHA1 Message Date
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