Commit Graph

9631 Commits

Author SHA1 Message Date
christos
93bfe048a1 Make this compile without -DINET6 (Kurt Schreiner) 2021-01-11 21:45:22 +00:00
christos
ff6bad0242 remove more 2021-01-09 16:41:09 +00:00
christos
56f8a139b1 remove useless files 2021-01-09 16:40:01 +00:00
christos
d6fdd0108f merge conflicts 2021-01-09 16:39:28 +00:00
christos
fa6d9a5307 What's new in ppp-2.4.9.
************************

* Support for new EAP (Extensible Authentication Protocol) methods:
  - Support for EAP-TLS, from Jan Just Keijser and others
  - Support for EAP-MSCHAPv2, from Eivind Næss, Thomas Omerzu, Tijs
    Van Buggenhout and others

* New pppd options:
  - chap-timeout
  - chapms-strip-domain
  - replacedefaultroute
  - noreplacedefaultroute
  - ipv6cp-accept-remote
  - lcp-echo-adaptive
  - ip-up-script
  - ip-down-script
  - ca
  - capath
  - cert
  - key
  - crl-dir
  - crl
  - max-tls-version
  - need-peer-eap

* Fixes for CVE-2020-8597 and CVE-2015-3310.

* libpcap is now required when compiling on Linux (previously, if
  libpcap was not present, pppd would be compiled without packet
  filtering support).

* The rp-pppoe plugin has been renamed to pppoe, to distinguish it
  from the upstream rp-pppoe code.  Its options have changed names,
  but the old names are kept as aliases.

* The configure script now supports cross-compilation.

* Many bug fixes and cleanups.


What was new in ppp-2.4.8.
**************************

* New pppd options have been added:
  - ifname, to set the name for the PPP interface device
  - defaultroute-metric, to set the metric for the default route
  - defaultroute6, to add an IPv6 default route (with nodefaultroute6
    to prevent adding an IPv6 default route)
  - up_sdnotify, to have pppd notify systemd when the link is up.

* The rp-pppoe plugin has new options:
  - host-uniq, to set the Host-Uniq value to send
  - pppoe-padi-timeout, to set the timeout for discovery packets
  - pppoe-padi-attempts, to set the number of discovery attempts.

* Added the CLASS attribute in radius packets.

* Sundry bug fixes.

* Fixed warnings and issues found by static analysis.

* Added Submitting-patches.md.


What was new in ppp-2.4.7.
**************************

* Fixed a potential security issue in parsing option files (CVE-2014-3158).

* There is a new "stop-bits" option, which takes an argument of 1 or 2,
  indicating the number of stop bits to use for async serial ports.

* Various bug fixes.


What was new in ppp-2.4.6.
**************************

* Man page updates.

* Several bug fixes.

* Options files can now set and unset environment variables for
  scripts.

* The timeout for chat scripts can now be taken from an environment
  variable.

* There is a new option, master_detach, which allows pppd to detach
  from the controlling terminal when it is the multilink bundle master
  but its own link has terminated, even if the nodetach option has
  been given.
2021-01-09 16:37:35 +00:00
uwe
8069f9bdc8 bc(1): Consistently use "parentheses" in plural. 2021-01-08 01:17:55 +00:00
uwe
ed2762c7cc bc(1): Prettify PostScript output some more.
Don't set BNF in all bold .Ic, instead use .Ar for "expr" and "var" so
that only the literal stuff that is being defined is bold.  Arrange
for subscripts to actually be subscripted in PostScript.  Make sure
meta-syntactic [] are set differently than literal (). Etc...
2021-01-08 01:17:03 +00:00
uwe
21e98dc7f4 bc(1): Replace one last missed \f with semantic markup. 2021-01-07 23:57:25 +00:00
uwe
d36d23f262 bc(1): Use more .Ql, misc related fixes. 2021-01-07 21:21:35 +00:00
uwe
8659a71dd2 bc(1): Use .Fn and .Fa for functions and their arguments. 2021-01-07 20:37:33 +00:00
uwe
ac2e48a91d bc(1): Indent displays with code examples. 2021-01-07 20:22:34 +00:00
uwe
55e91dd140 bc(1): Misc fixes in the DIFFERENCES section.
Make "last" an item, as intended.
Make operators literal.
2021-01-07 20:12:59 +00:00
uwe
f308096576 bc(1): small mdoc fixes to improve PostScript output.
The length/scale example at the beginning is not all literal.
Fix remaining "quoted" words to use .Dq
Fix a few small inline code snippets to be literal.
2021-01-07 19:49:13 +00:00
simonb
76c08b0f65 Use the compat machinery to build "native" IPF binaries as ipfilter
doesn't use compat32 64-bit alignment/size safe structures.

Fixes IPF on at least mips64.
2021-01-05 11:07:59 +00:00
roy
a391b1d3f3 ntp: respect user's wishes to disable interface scanning
While here, disable periodic scanning by default on NetBSD as it's
no longer needed.
The user can still enable it though with a positive number to the -U
option.

kardel@ So far I see no other issues from the pitfalls I know of
2021-01-03 15:33:05 +00:00
roy
40ce895ed2 libunbound: Enforce that mini_event isn't used by include/config.h
As I tire of fixing it to use libevent.
2021-01-01 23:24:31 +00:00
roy
d362c81b92 Revert prior
With the correct #defines mini_event.c and winsock_event.c are
compiled but practically unused.

What is exposed is not part of the public API, but appease the
peanut gallery.
2021-01-01 23:17:15 +00:00
roy
5594672737 libunbound: Now we use libevent, don't build mini_event or winsock_event. 2021-01-01 20:38:36 +00:00
roy
45fc1a8d69 libunbound: actually use libevent as we link to it
Would appreciate if people modify this file to actually test what
polling mechanism unbound uses as select(2) is pretty poor.
2021-01-01 20:16:16 +00:00
roy
ddf02b2602 ntpd: In the event of route(4) overflow, update the interfaces 2021-01-01 17:21:47 +00:00
roy
ec176a5418 wpa: If route socket overflows, sync drivers to system interfaces
Messages such as RTM_IFNFO or RTM_IFANNOUNCE could have been lost.
As such, sync the state of our internal driver to the state of the
system interfaces as reported by getifaddrs(2).

This change requires the routing socket be placed in non-blocking
mode. While here, set the routing and inet sockets to close on exec.
2021-01-01 14:57:14 +00:00
kre
2c7a46fdfc Merge tzdata2020f 2020-12-31 07:50:43 +00:00
kre
2b92f7ae10 Import tzdata2020f from ftp://ftp.iana.org/tz/releases/tzdata2020f.tar.gz
Release 2020f - 2020-12-29 00:17:46 -0800

    No changes to tzdata, just to a part of the build procedure
    not used on NetBSD

Release 2020e - 2020-12-22 15:14:34 -0800

    Volgograd switched to Moscow time on 2020-12-27 at 02:00.

    Correct many pre-1986 transitions, fixing entries originally
    derived from Shanks.  The fixes include changes to:
      Australia, Bahamas, Bermuda, Belize, Ghana, Israel and Palestine,
      Kenya and adjacent, Nigeria and adjacent, Seychelles, Vanuatu

    Australia/Currie has been moved to the 'backward' file and its
    corrected data moved to the 'backzone' file.

    To better match legislation in Turks and Caicos, the 2015 shift to
    year-round observance of -04 is now modeled as AST throughout before
    returning to Eastern Time with US DST in 2018, rather than as
    maintaining EDT until 2015-11-01.
2020-12-31 07:49:54 +00:00
roy
5311ca77c4 Sync with dhcpcd-9.4.0 2020-12-28 13:57:40 +00:00
roy
f7c1f2f087 Update to dhcpcd-9.4.0 with the following changes:
* DHCP: For anonymous, just use a generic ClientID
 * link: Split hardware address randomisation out of anonymous option
 * link: Only report hardware changes for active interfaces
 * link: Report errors obtaining recv buffer size on overflow
 * hooks: Add NOCARRIER_ROAMING reason
 * hooks: interface_order now reflects priorities again
2020-12-28 13:56:25 +00:00
reinoud
ef6e52b452 Import Xterm's resize(1) for querying (x)terminal sizes in base for headless
clients
2020-12-27 21:13:17 +00:00
roy
0949b2eded Sync with openresolv-3.12.0 2020-12-27 18:26:50 +00:00
maya
3b87c75504 Merge pkg_install-20201218 2020-12-18 20:07:39 +00:00
maya
be7e67f290 Merge pkg-install-20201218 2020-12-18 17:32:41 +00:00
maya
b78f5c4f5d import pkg_install version 20201218 from pkgsrc
- Support continuing to install to /var/db/pkg if it exists and the
new pkgdb doesn't.
In the future, we can warn about this once we have tested advice that
we can give to users who want to move the location of pkgdb.

- Don't do anything about /var/db/pkg on non-NetBSD-base.
This creates conflicts with other package managers that also install to
/var/db/pkg.
2020-12-18 17:19:16 +00:00
rin
258e420cd1 For alpha, apply -O0 hack again to rtree.c for GCC9.
Otherwise, GDB11 crashes in strange ways.
2020-12-16 01:21:32 +00:00
rin
33bbc93266 Correct and extend comments on VA for alpha. No binary changes. 2020-12-16 01:20:19 +00:00
martin
95f08802a7 Initialize namelen 2020-12-14 12:34:07 +00:00
rin
c85c1127ef Add some precautions for platforms without PT_STEP support.
"nat/gdb_ptrace.h" defines PT_STEP as 9, if it is not defined. nat-ptrace.c
depends on this; inf_ptrace_target::resume() uses PT_STEP unconditionally
when its ``step'' argument is non-zero. Therefore,

- Add comment that nbsd-nat.c should include <sys/ptrace.h> directly,
  instead of "nat/gdb_ptrace.h".

- Add gdb_assert(step == 0) in nbsd_nat_target::resume() ifndef PT_STEP,
  before calling inf_ptrace_target::resume().
2020-12-14 02:05:07 +00:00
rin
9b9416d880 Revert previous as per request from kamil; now, arm/ptrace.h does not
expose unimplemented PT_STEP.
2020-12-14 02:01:03 +00:00
christos
ae9ebf6f0f Improve previous: generated names end with .[[:digits:]] so look for that
instead.
2020-12-13 16:50:47 +00:00
roy
3728077580 diffutils: execl requires a NULL sentinel 2020-12-13 00:04:40 +00:00
christos
b98337e278 Use the NetBSD-specific back-end. 2020-12-12 18:45:11 +00:00
christos
d95e80469e Add a NetBSD-specific back-end. (riastradh@) 2020-12-12 18:44:38 +00:00
christos
e84e9f5696 Don't try to memcpy (size_t)-1 bytes! 2020-12-12 18:19:34 +00:00
wiz
de1f604daa merge pkg_install-20201212 2020-12-12 11:00:57 +00:00
christos
cf7777a2e0 PR/55851: Martin Husemann: recognize <symbol>.part.<n> names
This is gross; perhaps we should hide them completely (not print them
in stack traces etc.)
2020-12-11 18:25:45 +00:00
christos
d8dceee84f fix aarch64 crossgdb 2020-12-11 18:23:25 +00:00
christos
22c0a8465b regen 2020-12-11 18:22:11 +00:00
martin
52d85f7124 Avoid an unused variable (breaking the build) 2020-12-10 16:07:26 +00:00
rin
93b94eb346 Fix armeb; CORE_ADDR is uint64_t but 2nd argument of raw_supply() is
expected to be the same size as PC. Therefore, PC was always read as
zero for big-endian.
2020-12-10 07:27:37 +00:00
rin
9e80800bb0 Fix arm, for which PT_STEP is defined but unimplemented.
XXX
Stop exposing PT_STEP to userland for arm?
2020-12-10 07:14:58 +00:00
christos
9d73d70e90 include gdbarch.h 2020-12-08 13:56:38 +00:00
christos
16f88d4a62 make function static (fixes crossgdb build, reported by martin@) 2020-12-07 20:28:53 +00:00
rin
393045b225 mknative for aarch64eb. 2020-12-07 08:31:05 +00:00
rin
db812a1d3b Add elf32-aarch64.c to DPSRCS and CLEANFILES. 2020-12-07 08:24:09 +00:00
christos
85d1299109 Don't descend to gdbserver for now 2020-12-06 15:00:25 +00:00
christos
2d450a0b24 fix powerpc 2020-12-06 14:26:40 +00:00
christos
9fd8799cb5 regen more mips and aarch64 2020-12-06 05:23:03 +00:00
christos
e5d758f832 fix sh3, regen some more 2020-12-06 04:08:51 +00:00
christos
20c7f62303 fix m68k, ppc, sparc, vax 2020-12-06 03:29:03 +00:00
christos
13f1e6e199 need -lpthread for sun2 2020-12-06 03:28:25 +00:00
christos
d52bc7250a fix hppa 2020-12-05 23:02:25 +00:00
christos
3909f68e34 fix arm build 2020-12-05 22:24:26 +00:00
christos
5275d28a1c fix alpha build. 2020-12-05 22:14:44 +00:00
nia
05b0f27ac9 Don't install header marked obsolete
pointed out by mrg
2020-12-05 21:36:21 +00:00
christos
992125b748 fix and rege aarch64 2020-12-05 21:27:06 +00:00
christos
417fcb580b add aarch64 bits 2020-12-05 21:26:43 +00:00
wiz
f5c2953af3 Merge pkg_install-20201205 2020-12-05 16:21:26 +00:00
christos
a0835e958e merge changes 2020-12-04 18:27:44 +00:00
christos
1fc1e710a8 Version 1.5.0 (2020-09-01)
hid_linux: return FIDO_OK if no devices are found.
    hid_osx:
        repair communication with U2F tokens, gh#166;
        reliability fixes.
    fido2-{assert,cred}: new options to explicitly toggle UP, UV.
    Support for configurable report lengths.
    New API calls:
        fido_cbor_info_maxcredcntlst;
        fido_cbor_info_maxcredidlen;
        fido_cred_aaguid_len;
        fido_cred_aaguid_ptr;
        fido_dev_get_touch_begin;
        fido_dev_get_touch_status.
    Use COSE_ECDH_ES256 with CTAP_CBOR_CLIENT_PIN; gh#154.
    Allow CTAP messages up to 2048 bytes; gh#171.
    Ensure we only list USB devices by default.
Version 1.4.0 (2020-04-15)
    hid_hidapi: hidapi backend; enable with -DUSE_HIDAPI=1.
    Fall back to U2F if the key claims to, but does not support FIDO2.
    FIDO2 credential protection (credprot) support.
    New API calls:
        fido_cbor_info_fwversion;
        fido_cred_prot;
        fido_cred_set_prot;
        fido_dev_set_transport_functions;
        fido_set_log_handler.
    Support for FreeBSD.
    Support for C++.
    Support for MSYS.
    Fixed EdDSA and RSA self-attestation.
Version 1.3.1 (2020-02-19)
    fix zero-ing of le1 and le2 when talking to a U2F device.
    dropping sk-libfido2 middleware, please find it in the openssh tree.
2020-12-04 18:09:13 +00:00
wiz
0a3564ede9 Define PREFIX for pkg_install build. 2020-12-02 13:54:25 +00:00
wiz
c42605055f merge pkg_install after import of 20201202 version 2020-12-02 13:53:50 +00:00
rin
a3e196b030 gcc.old: Switch earmv6{,hf}eb to BE8, ported from gcc. 2020-12-01 02:39:48 +00:00
rin
8f72a86eed Switch earmv6{,hf}eb from BE32 (deprecated) to BE8 (new), which enables
- binary compatibility with earmv7{,hf}eb and later, as well as
  COMPAT_NETBSD32 on aarch64eb
- unaligned memory access

whereas compatibility with earmv5{,hf}eb and prior is lost.

As we have never released kernel and userland for earmv6{,hf}eb yet,
this does not causes any compatibility problems.

Discussed on port-arm and tech-toolchain.
2020-12-01 02:39:08 +00:00
jkoshy
d1342fa268 Unbreak the lint build (sync to elftoolchain [r3912]). 2020-11-30 22:26:30 +00:00
yhardy
afb8d88625 Use vn_close to release the vnodes in the error handling blocks, since
the vnodes were opened for writing. Fix proposed on current-users
and improved by hannken@.
2020-11-28 22:53:06 +00:00
roy
5e88f5cfd3 Sync with dhcpcd-9.3.4 2020-11-28 14:27:20 +00:00
roy
5e29b77e59 Upate to dhcpcd-9.3.4 with the following changes:
With the following changes:
 * DHCP: If error adding the address in oneshot, exit with failure
 * DHCP: Only listen to the address if we successfully added it
 * DHCP6: Fix segfault introduced in dhcpcd-9.3.3
 * DHCP6: Abort in test mode when an error is returned by server
 * options: allow --ia_na=1 and --ia_pd=2 on the command line
 * options: Allow duid to take a value
2020-11-28 14:26:16 +00:00
jkoshy
604b08429e Sync libdwarf's manual pages with upstream. 2020-11-26 22:51:35 +00:00
jkoshy
ef39d52e3c Sync with elftoolchain upstream. 2020-11-26 21:52:00 +00:00
jkoshy
fd073023b0 Restore an overlooked 'Id' line. 2020-11-26 21:01:47 +00:00
jkoshy
b16194a2b0 Sync '_elftc.h' with the upstream elftoolchain project. 2020-11-21 21:04:25 +00:00
roy
86988fb56b Sync with dhcpcd-9.3.3 2020-11-20 13:24:58 +00:00
roy
d55488a43d Update to dhcpcd-9.3.3 with the following changes:
* dhcpcd: Don't create a launcher process if keeping in foreground
 * dhcpcd: Add --noconfigure option
 * control: Create an unpriv socket for non master mode
 * options: Don't log unknown ones when printing pidfile location
2020-11-20 13:23:38 +00:00
jkoshy
e40f8f8406 Update 'elfdefinitions.h' to elftoolchain revision [r3891]. 2020-11-19 20:58:30 +00:00
jkoshy
1b4a9ac54c Sync 'utarray.h' and 'uthash.h' with elftoolchain revision [r3891].
This change upgrades these files to UT{HASH,ARRAY}_VERSION 2.1.0.
2020-11-18 22:23:05 +00:00
rin
a8c74629f6 Support aarch64eb in */config.guess.
Cherry-picked from upstream:
https://git.savannah.gnu.org/gitweb/?p=config.git;a=commit;h=1c4398015583eb77bc043234f5734be055e64bea

Everything except external/apache2/llvm/dist/llvm/cmake/config.guess
is patched, which is under vendor tag and cannot be modified. I expect
that this file is not actually used as we use hand-crafted version of
configure script instead of cmake for building LLVM.

Note that external/apache2/llvm/autoconf/autoconf/config.guess has
already been committed on Oct. 20, but commit message disappeared as
cvs aborted due to "permission denied" when trying to modify the file
mentioned above. Sorry for confusing you.

Also note that GMP uses its own config.guess Patch for
external/lgpl3/gmp/dist/config.guess is provided by ryo@. Thanks!
2020-11-17 10:35:10 +00:00
chs
dfa4ab3ed8 Remove a pointless printf. 2020-11-17 03:20:33 +00:00
nia
d953e5e10c system.ctwmrc: Set Cursors to avoid strange default fallbacks 2020-11-16 14:12:46 +00:00
chs
55aacd0e65 Commit the ZFS file that I forgot in this previous commit:
Move the handling of PG_PAGEOUT from uvm_aio_aiodone_pages() to
uvm_page_unbusy() so that all callers of uvm_page_unbusy() don't need to
handle this flag separately.  Split out the pages part of uvm_aio_aiodone()
into uvm_aio_aiodone_pages() in rump just like in the real kernel.
In ZFS functions that can fail to copy data between the ARC and VM pages,
use uvm_aio_aiodone_pages() rather than uvm_page_unbusy() so that we can
handle these "I/O" errors.  Fixes PR 55702.
2020-11-15 00:54:13 +00:00
christos
a7b28dcb09 PR/55802: Andreas Gustafsson: Unbreak reproducible builds.
For reproducible builds to work we need to have a consistent command
line (because the command line gets recorded in dwarf). So we can't
do:

    -ffile-prefix-map=/joe/random/src=/usr/src

because then /joe/random/src gets recorded. We do instead:

    -ffile-prefix-map=\$NETBSDSRCDIR=/usr/src

The patch restores the environment variable parsing that got lost
in the last 2 gcc upgrades.
2020-11-14 21:24:03 +00:00
mrg
239922306a also check MKX11FONTS before installing fonts. 2020-11-14 04:32:44 +00:00
maya
e3ebb0d12b Needs bsd.own.mk for MKX11. 2020-11-13 09:56:53 +00:00
maya
6769572389 add rcsid, make font conditional on MKX11. 2020-11-13 08:33:07 +00:00
maya
b8e4133b8f Hook up font-liberation-ttf to the build.
license ok'd by board.
2020-11-12 22:28:02 +00:00
christos
a7e74f3dc5 Don't use static buffers to store format strings; this is a multi-threaded
program and if we print from multiple threads we can end up overwriting the
formats while printf is formating and that can end up in tears.
2020-11-12 22:11:03 +00:00
nia
a42fc114cd Revert addition of pthread dependency on sqlite.
It is less trivial than expected and introduced some surprising breakage.
2020-11-12 17:53:43 +00:00
rin
087e008143 One more catch up with ``aarch64 is not mips'' change.
Fix evbarm-aarch64 build.
2020-11-12 02:15:56 +00:00
chs
b02dfdd14a kmem_cache_create()'s "name" parameter can be on the stack,
so make a copy of it rather than keeping a pointer to it.
2020-11-11 03:31:04 +00:00
gson
7aeb9b3f9f Delete trailing whitespace 2020-11-10 11:00:02 +00:00
nia
70f54ff57b sqlite: do not build without multithreading support
at least a few pkgsrc packages avoid base sqlite because it fails
this check, and it's probably a surprising performance penalty for
unsuspecting users
2020-11-08 21:56:47 +00:00
nia
ab1f3176ac libepoxy: Only require egl on ports with egl support.
Reported by martin.
2020-11-07 18:12:16 +00:00
tsutsui
73d56d5b0b Cherry-pick Xorg version independent changes from xorg-server.
Reorganize CPPFLAGS.
2020-11-05 16:06:41 +00:00
nia
c9c9883d25 Also deny bitmap Lucida, Utopia from being selected through fontconfig. 2020-11-05 12:13:02 +00:00