Commit Graph

9827 Commits

Author SHA1 Message Date
christos
407a19b76a restore -iremap functionality which was omitted by a merge botch, and then
remove as unused later.
2021-05-18 21:34:03 +00:00
rin
5b02012073 Fix search for collating symbols in form of [[.foo.]], as in a similar
manner as already done for POSIX character classes by upstream:

fd5795cc98 (diff-42d58222b328681b9923634991312932089876a0242f78cf488157aa24969c1a)

(We already have this change since initial import to external/bsd/nvi.)

Found by tnozaki. Thanks!
2021-05-17 04:01:57 +00:00
rillig
ca8378a5d8 wpa: fix Clang build
src/external/bsd/wpa/bin/hostapd/../../dist/src/common/dpp.c:5377:7:
error: format specifies type 'unsigned long' but the argument has type
'os_time_t' (aka 'long long') [-Werror,-Wformat]
2021-05-15 19:19:55 +00:00
nia
b4dc6216b2 this is not FreeBSD 2021-05-13 09:05:19 +00:00
nia
a7a8521793 zfs: this is not FreeBSD 2021-05-13 09:03:35 +00:00
rin
86042b19c0 Cherry-pick upstream fix for GCC10 regression to -misel option.
Assembler codes generated by GCC are identical with that of our local
fix in rev 1.26 for 32-bit processors, and no significant changes for
64-bit processors also.

master: https://gcc.gnu.org/g:6156df483fa50a08f561b6c248819f2992aa380d
gcc-10: https://gcc.gnu.org/g:5f665c1ca452673e9812cd92b07bd31441c0ac5b
(diffs are same)

commit r12-9-g6156df483fa50a08f561b6c248819f2992aa380d
Author: Segher Boessenkool <segher@kernel.crashing.org>
Date:   Tue Apr 20 12:00:50 2021 +0000

    rs6000: Fix cpu selection w/ isel (PR100108)

    There are various non-IBM CPUs with isel as well, so it is easiest if we
    just don't consider that flag here (it is not needed).

    2021-04-20  Segher Boessenkool  <segher@kernel.crashing.org>

            PR target/100108
            * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
            OPTION_MASK_ISEL.
2021-05-11 01:47:20 +00:00
rin
5811b9203b In preparation to import upstream fix, revert our local fix in rev 1.26:
http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c#rev1.26

> Fix regression introduced to GCC10, where it wrongly recognizes 32-bit
> processors as POWER9 if -misel flag is specified.
2021-05-11 01:39:09 +00:00
christos
2d56ebfab5 PR/56153: Rin Okuyama: alpha miscompiles malloca() macro. 2021-05-08 12:23:47 +00:00
rin
893bd8c6b1 For GCC10, add -Wno-unused-result for alloca(0) here and there. 2021-05-07 12:19:48 +00:00
christos
bcc4e02eb3 Don't free things twice (Kengo Nakahara) 2021-05-07 11:11:11 +00:00
mrg
f119d7e9a4 avoid GCC-10 warnings. 2021-05-06 06:52:18 +00:00
rillig
77a04ba4f7 libXaw: fix Clang build
--- Pixmap.pico ---
error: unknown warning option '-Wno-discarded-qualifiers'; did you mean
'-Wno-ignored-qualifiers'? [-Werror,-Wunknown-warning-option]
2021-05-04 17:47:05 +00:00
rillig
9b7284c255 compiler_rt: build .a.syms files as part of dependall
The previous target 'all' is a top-level target intended to be specified
by the user.  During the regular build, 'dependall' is used instead of
'all'.  The target 'realall' is common to those two.
2021-05-04 17:23:53 +00:00
rillig
2ef2b36bb5 bind: remove unnecessary CONSTCOND
Lint does not need this anymore, since 2021-01-31.
2021-05-04 13:40:34 +00:00
rillig
b640b0e245 bind: fix Clang build
I had already fixed this on 2021-03-27, but the fix was accidentally
reverted on 2021-04-29 when updating to bind 9.16.15.
2021-05-04 13:16:06 +00:00
nakayama
ed748a1dd8 Remove duplicate lines. 2021-05-03 08:44:05 +00:00
rillig
deeb39e782 compiler_rt: generate symbol table early
These libraries have the special feature that they install both the .a
library as well as the .a.syms that is generated from them.  To avoid
the transformation rule .a.a.syms to apply to the files in ${DESTDIR},
that rule has to be disabled during the installation phase.

If the transformation rule were active during installation, the .a.syms
file in ${DESTDIR} would have more than one possible source file, which
eventually leads to an error during installation since in the command
"install a b c", the last argument must be a directory, not a file.

The installation phase should be as minimal as possible anyway,
therefore move the generation of the .syms files to the build phase.

This hopefully fixes the build for HAVE_LLVM=yes, which has been broken
for several weeks now, at least for the official builds.
2021-04-30 22:48:37 +00:00
nia
a0412fee12 zfs: Fix up references to FreeBSD 2021-04-30 18:59:30 +00:00
jkoshy
d72e1298d9 Sync with Elftoolchain upstream r3948. 2021-04-29 17:40:42 +00:00
jkoshy
44afc40030 Add a version control system marker. 2021-04-29 17:38:08 +00:00
christos
99a1c29847 Merge our changes between bind 9.16.12 and 9.16.15 2021-04-29 17:26:09 +00:00
christos
0c407023b5 Import bind-9.16.15
Changes since bind-9.16.12:

	--- 9.16.15 released ---

5621.	[bug]		Due to a backporting mistake in change 5609, named
			binaries built against a Kerberos/GSSAPI library whose
			header files did not define the GSS_SPNEGO_MECHANISM
			preprocessor macro were not able to start if their
			configuration included the "tkey-gssapi-credential"
			option. This has been fixed. [GL #2634]

5620.	[bug]		If zone journal files written by BIND 9.16.11 or earlier
			were present when BIND was upgraded, the zone file for
			that zone could have been inadvertently rewritten with
			the current zone contents. This caused the original zone
			file structure (e.g. comments, $INCLUDE directives) to
			be lost, although the zone data itself was preserved.
			This has been fixed. [GL #2623]

	--- 9.16.14 released ---

5617.	[security]	A specially crafted GSS-TSIG query could cause a buffer
			overflow in the ISC implementation of SPNEGO.
			(CVE-2021-25216) [GL #2604]

5616.	[security]	named crashed when a DNAME record placed in the ANSWER
			section during DNAME chasing turned out to be the final
			answer to a client query. (CVE-2021-25215) [GL #2540]

5615.	[security]	Insufficient IXFR checks could result in named serving a
			zone without an SOA record at the apex, leading to a
			RUNTIME_CHECK assertion failure when the zone was
			subsequently refreshed. This has been fixed by adding an
			owner name check for all SOA records which are included
			in a zone transfer. (CVE-2021-25214) [GL #2467]

5614.	[bug]		Ensure all resources are properly cleaned up when a call
			to gss_accept_sec_context() fails. [GL #2620]

5613.	[bug]		It was possible to write an invalid transaction header
			in the journal file for a managed-keys database after
			upgrading. This has been fixed. Invalid headers in
			existing journal files are detected and named is able
			to recover from them. [GL #2600]

5611.	[func]		Set "stale-answer-client-timeout" to "off" by default.
			[GL #2608]

5610.	[bug]		Prevent a crash which could happen when a lookup
			triggered by "stale-answer-client-timeout" was attempted
			right after recursion for a client query finished.
			[GL #2594]

5609.	[func]		The ISC implementation of SPNEGO was removed from BIND 9
			source code. It was no longer necessary as all major
			contemporary Kerberos/GSSAPI libraries include support
			for SPNEGO. [GL #2607]

5608.	[bug]		When sending queries over TCP, dig now properly handles
			"+tries=1 +retry=0" by not retrying the connection when
			the remote server closes the connection prematurely.
			[GL #2490]

5607.	[bug]		As "rndc dnssec -checkds" and "rndc dnssec -rollover"
			commands may affect the next scheduled key event,
			reconfiguration of zone keys is now triggered after
			receiving either of these commands to prevent
			unnecessary key rollover delays. [GL #2488]

5606.	[bug]		CDS/CDNSKEY DELETE records are now removed when a zone
			transitions from a secure to an insecure state.
			named-checkzone also no longer reports an error when
			such records are found in an unsigned zone. [GL #2517]

5605.	[bug]		"dig -u" now uses the CLOCK_REALTIME clock source for
			more accurate time reporting. [GL #2592]

5603.	[bug]		Fix a memory leak that occurred when named failed to
			bind a UDP socket to a network interface. [GL #2575]

5602.	[bug]		Fix TCPDNS and TLSDNS timers in Network Manager. This
			makes the "tcp-initial-timeout" and "tcp-idle-timeout"
			options work correctly again. [GL #2583]

5601.	[bug]		Zones using KASP could not be thawed after they were
			frozen using "rndc freeze". This has been fixed.
			[GL #2523]

	--- 9.16.13 released ---

5597.	[bug]		When serve-stale was enabled and starting the recursive
			resolution process for a query failed, a named instance
			could crash if it was configured as both a recursive and
			authoritative server. This problem was introduced by
			change 5573 and has now been fixed. [GL #2565]

5595.	[cleanup]	Public header files for BIND 9 libraries no longer
			directly include third-party library headers. This
			prevents the need to include paths to third-party header
			files in CFLAGS whenever BIND 9 public header files are
			used, which could cause build-time issues on hosts with
			older versions of BIND 9 installed. [GL #2357]

5594.	[bug]		Building with --enable-dnsrps --enable-dnsrps-dl failed.
			[GL #2298]

5593.	[bug]		Journal files written by older versions of named can now
			be read when loading zones, so that journal
			incompatibility does not cause problems on upgrade.
			Outdated journals are updated to the new format after
			loading. [GL #2505]

5592.	[bug]		Prevent hazard pointer table overflows on machines with
			many cores, by allowing the thread IDs (serving as
			indices into hazard pointer tables) of finished threads
			to be reused by those created later. [GL #2396]

5591.	[bug]		Fix a crash that occurred when
			"stale-answer-client-timeout" was triggered without any
			(stale) data available in the cache to answer the query.
			[GL #2503]

5590.	[bug]		NSEC3 records were not immediately created for dynamic
			zones using NSEC3 with "dnssec-policy", resulting in
			such zones going bogus. Add code to process the
			NSEC3PARAM queue at zone load time so that NSEC3 records
			for such zones are created immediately. [GL #2498]

5588.	[func]		Add a new "purge-keys" option for "dnssec-policy". This
			option determines the period of time for which key files
			are retained after they become obsolete. [GL #2408]

5586.	[bug]		An invalid direction field in a LOC record resulted in
			an INSIST failure when a zone file containing such a
			record was loaded. [GL #2499]

5584.	[bug]		No longer set the IP_DONTFRAG option on UDP sockets, to
			prevent dropping outgoing packets exceeding
			"max-udp-size". [GL #2466]

5582.	[bug]		BIND 9 failed to build when static OpenSSL libraries
			were used and the pkg-config files for libssl and/or
			libcrypto were unavailable. This has been fixed by
			ensuring that the correct linking order for libssl and
			libcrypto is always used. [GL #2402]

5581.	[bug]		Fix a memory leak that occurred when inline-signed zones
			were added to the configuration, followed by a
			reconfiguration of named. [GL #2041]

5580.	[test]		The system test framework no longer differentiates
			between SKIPPED and UNTESTED system test results. Any
			system test which is not run is now marked as SKIPPED.
			[GL !4517]

5573.	[func]		When serve-stale is enabled and stale data is available,
			named now returns stale answers upon encountering any
			unexpected error in the query resolution process.
			However, the "stale-refresh-time" window is still only
			started upon a timeout. [GL #2434]

5564.	[cleanup]	Network manager's TLSDNS module was refactored to use
			libuv and libssl directly instead of a stack of TCP/TLS
			sockets. [GL #2335]
2021-04-29 16:46:17 +00:00
mrg
d946536fcb netbsd-eabi.h was never merged from the now present upstream version.
reduce diffs to upstream here and in other files in this subdir.

remove unused ARM_EABI_UNWIND_TABLES and __UNWIND_TABLES__.

clang defines __UNWIND_TABLES__, but doing this in GCC triggers the
need for more libgcc / libc unwind functionality to be added, and this
code has never been enabled for netbsd/earm.  (could potentially clean
up unused code in libc now, or, revive this once the full support has
been implemented..)
2021-04-29 01:51:39 +00:00
christos
a6b5619189 Revert the change for the c-common.c hack. It is meant to be only for 32
bit mips. (Thanks Rin)
2021-04-27 14:18:25 +00:00
mrg
69931024b9 various updates for libX11. bump the shlib major, install new nls. 2021-04-27 06:50:26 +00:00
mrg
8659f446c2 updates for xkeyboard-config 2.32. 2021-04-27 03:58:55 +00:00
mrg
501142fe70 bump libdrm and libdrm_amdgpu shlib minor for new symbols. 2021-04-27 03:09:15 +00:00
mrg
29df5fb150 disable attribute warnings. new libXt triggers them for now.. 2021-04-27 02:11:55 +00:00
rin
3704a40269 Remove accidentally committed autogen file.
Should fix periodic snapshot builds with RO mounted /usr/src.
2021-04-26 23:51:08 +00:00
mrg
94803ffca4 make build with new libXt. 2021-04-26 22:04:51 +00:00
mrg
92009ced47 make libXaw6 build with the new libXt as well. consolidate common code. 2021-04-26 21:53:53 +00:00
mrg
69bda3eb5f define _CONST_X_STRING. avoid remaining const issues new libXt. 2021-04-26 21:43:19 +00:00
christos
27d3824d91 Don't try to override an existing -march 2021-04-26 21:32:49 +00:00
christos
475b3abc9b regen for mipsn64el 2021-04-26 17:24:04 +00:00
christos
933e8e6935 fix typos 2021-04-26 15:38:11 +00:00
christos
885f4c70a1 Copied from mips64el 2021-04-25 23:58:23 +00:00
christos
6b942a58a1 copied from mips64eb 2021-04-25 23:57:47 +00:00
christos
ef96cd7f1c Handle mipsn64 2021-04-25 23:52:59 +00:00
christos
2beb407a26 regen for mipsn64eb 2021-04-25 23:38:40 +00:00
christos
f6c4e00751 Add a mipsn64 target 2021-04-25 23:35:52 +00:00
christos
9caec56aae handle mipsn64el 2021-04-25 23:23:19 +00:00
christos
b5bf390898 regen for mipsn64eb 2021-04-25 23:21:08 +00:00
christos
4d74c4e283 add mipsn64 targets 2021-04-25 23:18:42 +00:00
christos
fc046893c7 regen for mipsn64eb 2021-04-25 23:16:26 +00:00
christos
cfe96b2e15 Add support for mipsn64 targets which build 64 bit binaries by default
on instead of n32
2021-04-25 23:12:53 +00:00
christos
bb13676ffd Limit no-error to stack-protector 2021-04-25 22:25:55 +00:00
christos
e751f111c8 - Disable stack-protector errors like we did for cc1plus
- use ${MACHINE_MIPS64}
2021-04-25 22:25:00 +00:00
rin
7b81801bbc Update as(1) failure on armv6; it occurs also for earmv6hfeb, whereas it
does not for earmv6{,eb}.
2021-04-25 15:32:24 +00:00
christos
2b59ea2015 fix cargo-cult 2021-04-25 15:09:08 +00:00
christos
ff47a56302 - include <bsd.init.mk>
- use MACHINE_MIPS64
2021-04-25 15:08:28 +00:00