Commit Graph

17369 Commits

Author SHA1 Message Date
gutteridge 373751d8bd Add bpf to the device nodes provided in the evbmips ramdisk
Intended to address an issue noted by Denis Ovsienko on port-mips,
where dhcpcd doesn't work with the netbsd-INSTALL_OCTEON kernel. (I am
not able to test this directly, but verified by mounting the ramdisk
images generated before and after this change.)
2023-06-09 21:41:52 +00:00
simonb 6a879404f5 Alignment nit. 2023-06-09 03:43:02 +00:00
kre 3ab9b3b3e3 Revert previous, I missed an update... 2023-06-08 22:56:14 +00:00
kre e7ca993906 lua is currently building liblua.so.6.0 not ...6.1 2023-06-08 22:54:04 +00:00
nikita 4514e46e6b distrib: lua minor version bump 2023-06-08 21:14:09 +00:00
martin 743f390d28 Fix markup of libh_ MKDEBUGLIB=yes only files 2023-06-06 08:27:44 +00:00
pgoyette ded2c960bc Fix MKDEBUGLIB build by adding these installed files to the debug
set list.

XXX
One could argue that these files are not of any use, so why install
them?  I don't have a good argument either way, and this is (for
now) a simple work-around for PR bin/57455   Please feel free to
commit a different fix to avoid installing these files at all.
2023-06-06 06:51:00 +00:00
lukem 7615e96ba2 mkvars.mk: sort MKEXTRAVARS and remove dupes
Sort MKEXTRAVARS.
Remove obsolete MKBFD.
Remove entries already in <bsd.own.mk> _MKVARS.no or _MKVARS.yes:
	MKCOMPATTESTS MKDTC MKDYNAMICROOT MKFIRMWARE MKMANZ
	MKRADEONFIRMWARE MKSLJIT MKSOFTFLOAT MKXORG_SERVER

Sorted output of comparing "before" and "after" is identical
besides those variables listed above.
2023-06-03 21:20:53 +00:00
andvar 4ce1b76da5 fix typo xbase-obsolet -> xbase-obsolete. 2023-06-03 19:57:33 +00:00
riastradh aa47a9a159 ld.elf_so: Fix missing tab in debug/shl.mi in last change.
XXX pullup-10
2023-06-03 13:20:42 +00:00
lukem c4b7a9e794 bsd.own.mk: rename GCC_NO_* to CC_WNO_*
Rename compiler-warning-disable variables from
	GCC_NO_warning
to
	CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
2023-06-03 09:09:01 +00:00
riastradh 067c5136b3 ld.elf_so: Test dynamic-then-static abuse via ctor.
XXX pullup-10
2023-06-02 19:09:11 +00:00
riastradh f4e534dd53 ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

XXX pullup-10
2023-06-02 19:08:48 +00:00
riastradh e0bd56e642 ld.elf_so: Add new files to debug/shl.mi.
XXX pullup-10
2023-06-02 12:08:26 +00:00
martin eba8370ebe Add recent ld.elf_so test helpers debug info 2023-06-02 11:09:39 +00:00
riastradh 6b7ae3bea1 ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.
XXX pullup-10
2023-06-01 22:26:40 +00:00
riastradh 05e97b5a42 ld.elf_so: Test extern dynamic TLS too.
XXX pullup-10
2023-06-01 20:50:18 +00:00
rillig 9458670356 tests/make: clean up comments, extend a few tests 2023-06-01 07:27:30 +00:00
christos 64d14f900e new openssl man pages 2023-05-31 19:44:42 +00:00
riastradh 3e86fda22b ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.
XXX pullup-10
2023-05-31 13:02:10 +00:00
riastradh 12037d6a69 ld.elf_so: New test for extern initial-exec TLS, PR toolchain/50277.
XXX pullup-10
2023-05-31 00:18:44 +00:00
riastradh 4448c6469d openssl: Add missing sparc compat openssl engines to set list. 2023-05-27 10:12:11 +00:00
riastradh aae5207d1c openssl: Nix capi.so engine -- it's for the Windows crypto API.
Not likely to work in NetBSD base!
2023-05-27 02:28:45 +00:00
riastradh 6c7ceb7a1b openssl: Fix typo in mips set list. 2023-05-27 00:09:06 +00:00
riastradh 3cfc95ce12 openssl: padlock.so engine for VIA CPUs makes sense only on x86. 2023-05-27 00:08:30 +00:00
riastradh 717caf24ae openssl: Wire up dynamic engine build goo.
This restores the devcrypto engine, which was converted from static
to dynamic since the previous OpenSSL update.

XXX Pretty sure I got some of the set list package names wrong, but
it's not clear what the right ones are or what consequences any of
this has.

XXX Needs testing.
2023-05-26 22:27:50 +00:00
riastradh 93c12d2bae openssl: Add /usr/lib/${ARCHDIR}/openssl/engines to aarch64 build. 2023-05-26 22:26:25 +00:00
riastradh 1bca1b82cb Revert "openssl: Nix build goo for dynamically loaded engines."
Turns out there is a regression lurking here: the devcrypto engine
was made dynamic-only (https://github.com/openssl/openssl/pull/7859),
so to maintain that functionality, we need to build dynamic engines.
Will fix the aarch64 build issue and wire things up separately.
2023-05-26 22:26:10 +00:00
riastradh 6377aad786 openssl: Nix build goo for dynamically loaded engines.
- Engines are deprecated in openssl 3.

- We never actually had the .so engines wired up to be built in
  openssl 1.1, and judging by the lack of obsolete entries in the set
  lists, I don't think we ever had them wired up to be built at all.
2023-05-26 13:21:51 +00:00
lukem 8e5c6bed5f obsolete mkstr(1) and xstr(1)
These were only used on PDP-11 for two programs we don't ship,
and have been obsolete since the VAX days.

xstr never worked in the build.sh cross-build environment (22 years), or
parallel make environment (nearly 28 years), didn't work in the orignal 386bsd
import, and has never been needed in NetBSD as we don't have the older BSD
programs (pascal, pre-nvi ex) that needed mkstr/xstr on PDP-11.

PR toolchain/35964
2023-05-24 13:00:14 +00:00
rillig a9183f83be tests/indent: migrate test driver from AWK to Lua
Lua reports more details when os.execute fails, which is useful when
running old versions of indent for comparison.  The new test driver also
supports multiple test files in the same run.
2023-05-20 21:32:05 +00:00
hauke 1958a15c49 Creating Type&Creator mappings for .bin (macbinary encoded) files,
mkisofs changes files, then turns around and complains they have been
changed.

This is a self-inflicted wound, so demote the error to a warning.

Reported upstream as <https://codeberg.org/schilytools/schilytools/issues/58>.

Arguably fixes PR toolchain/42166

Request pull-ups to netbsd-{8,9,10}.

XXX What about macppc?
2023-05-19 14:47:16 +00:00
christos e44743be40 we should only need this one 2023-05-19 11:43:20 +00:00
christos 4dce0d564d add compat OpenSSL 2023-05-18 00:28:37 +00:00
christos f5345a0b77 mark things compat 2023-05-18 00:24:22 +00:00
christos 7b56c6d54e fix mips OpenSSL-3.x compat 2023-05-17 15:01:17 +00:00
christos c78b7b8064 try to fix powerpc compat 2023-05-16 19:25:06 +00:00
christos 62bc4070d8 add compat files 2023-05-15 21:12:11 +00:00
phx 34815acdf9 Update loadbsd source and distribution binary to version 3.3.
- Loading the kernel to the highest priority memory segment is default now.
- New option -l to revert the to the previous behaviour of largest segment.
- New option -M to define a minimum size for the memory segment.
- Fixed some warnings and typos.
- Put assembler inline source into its own source text startit.s.
- Can be built with Bebbo's gcc6 Amiga port or with vbcc.
2023-05-14 16:13:05 +00:00
riastradh 283c6b4be3 openssl compat: Try this again!
compatdir appears to be for things like /usr/lib that have
/usr/lib/eabi as a subdirectory, so for /usr/lib/openssl it would
mean we have /usr/lib/openssl/eabi as a subdirectory.  But that's not
what we have; we have /usr/lib/eabi/openssl.

Let's try using NetBSD.dist.compat.in instead, which appears to be
intended for this purpose, from what I can gather.
2023-05-14 11:04:56 +00:00
mrg 877aec1b8e mark /usr/lib/openssl and /usr/lib/openssl/modules as "compatdir".
remove them as explicit part of all arm64 builds when they're only
(currently) used and consumed by llvm builds.

this fixes gcc builds and i don't think it breaks llvm ones though
i'm still waiting for that test.
2023-05-14 07:07:23 +00:00
riastradh 8f8672b0ba openssl: More set list fixes. 2023-05-13 20:13:05 +00:00
rillig 9db90c6e6b tests/indent: add test for lexing of numbers 2023-05-13 13:24:01 +00:00
rillig af5234764a distrib/sets: format tests list 2023-05-13 13:21:35 +00:00
riastradh bf2355496c aarch64: New directories for compat openssl on aarch64.
Hope I got the setlist tags right, not really sure how this works.
2023-05-13 13:04:14 +00:00
riastradh 15effa6c57 distrib/sets/lists: Nix trailing whitespace.
No functional change intended.
2023-05-12 11:13:09 +00:00
christos 147b6c818d switch sparc64/aarch64 to OpenSSL-3.x 2023-05-11 17:57:14 +00:00
christos 1c3e8d3916 update the sets for OpenSSL-3.x 2023-05-10 15:52:07 +00:00
rillig de72ac4409 tests/make: clean up tests for .for loops
Most of the tests from forloop.mk were already in directive-for.mk.
2023-05-10 13:03:06 +00:00
sjg ff8067fc6f make: add :mtime to provide mtime of file
The value of the variable is passed to stat(2)
and st_mtime is new value.
An optional arg can be used if stat(2) fails, otherwise
the current time is used.

See varmod-mtime.mk for usage examples.
2023-05-09 20:14:27 +00:00