Commit Graph

17661 Commits

Author SHA1 Message Date
riastradh 28b5680627 liblutok.so: Bump major for recent Lua update.
XXX pullup-10
2023-09-04 18:16:19 +00:00
riastradh 6847254d0f heimdal/libsl: Belatedly bump major.
This is to address the major bump of libterminfo.so.9 in:

Author: roy <roy@NetBSD.org>
Date:   Fri Mar 13 15:19:24 2020 +0000

    terminfo: promote numeric parameters from short to int

That commit caught all the other dependent libraries except libsl.

XXX pullup-10
2023-09-04 18:16:01 +00:00
riastradh ad69f62aa2 Recursively revbump all dependents of libcrypto.
Otherwise any existing software linked against the openssl11
libcrypto.so.14 and any of these libraries will suddenly start
pulling in libcrypto.so.15 at the same time, leading to mayhem in the
address space.

PR lib/57603

XXX pullup-10
2023-09-04 18:12:44 +00:00
christos 2809a4e9fe sqlite3 changes 2023-09-04 17:07:59 +00:00
riastradh 24bd4d73cb certctl(8): Install certs.conf in /usr/share/examples too.
This way postinstall(8) can refer to the default one when you've done
an upgrade without etcupdate or similar to pull in new config files
from etc.tgz.

Not great -- we should do this systematically for all config files in
/etc, but this one-off hack is less risky for 10.
2023-09-03 18:31:01 +00:00
mrg 6865a1c6a8 mark all previously gcc=9 files as obsolete.
also mark a bunch of obsolete gcc headers as "comp-obsolete" "set".

should fix a 'postinstall fix obsolete' issue reported by uwe@.
2023-08-29 04:35:26 +00:00
riastradh 6ddc4baa00 distrib/sets/lists: certs.conf belongs in etc, not in base.
Oops.
2023-08-28 23:57:17 +00:00
rin f3e013ccfe lists/comp/ad.riscv: Add new ldscripts for mknative to binutils 2023-08-28 02:45:24 +00:00
rillig 23ee83f7c0 c.7: mention that C11 and C17 have been published 2023-08-27 15:50:47 +00:00
kardel 670e774586 make owtemp a module 2023-08-27 13:20:09 +00:00
rillig 92925e854e tests/usr.bin/error: add basic tests for several error message styles 2023-08-26 10:06:16 +00:00
riastradh 427e5e62a8 mozilla-certdata: Connect it up to the build. 2023-08-26 05:58:48 +00:00
riastradh 50a8b41245 certctl(8): New tool for managing OpenSSL CA certificates.
Same command-line syntax as FreeBSD, clearer semantics about which
parts are config and which parts are cache.
2023-08-26 05:27:13 +00:00
christos 62f0fb475e remove compat linux debugging sets (again) 2023-08-22 11:56:49 +00:00
christos a183ba5d34 add inotify tests, sort 2023-08-21 22:37:17 +00:00
martin 9aeda966c7 Remove the compat linux (linux binaries) helpers *.debug files - they
are not installed (and probably would be useless if they were)
2023-08-21 09:54:07 +00:00
riastradh 1b6a62ea92 distrib/sets/lists/tests: Correction: h_inotify_* are MI.
Debug lists are probably still wrong, though -- looks like there's no
rule to change h_inotify_*.out.debug to h_inotify_*.debug.  Out of
energy to look into this further, though; please fix me!
2023-08-20 19:36:56 +00:00
riastradh 81ec9657b4 distrib/sets/lists: /usr/tests/compat/linux/h_* is amd64-only for now. 2023-08-20 12:29:16 +00:00
riastradh f34e29e918 distrib/sets/lists: compat/linux/h_*.debug is amd64-only for now. 2023-08-20 12:27:02 +00:00
riastradh 40998645f7 distrib/sets/lists: Add .debug files for new compat/linux tests. 2023-08-20 12:21:35 +00:00
christos d3de1600b5 Add inotify tests 2023-08-19 22:57:09 +00:00
rjs d7061538b0 More libpcap changes.
There were two entries for /usr/lib/libpcap.so.
2023-08-19 14:22:41 +00:00
christos 6e39f0c06c new libpcap 2023-08-17 15:19:26 +00:00
gdt e8830a70d1 amd64 installimage: Reduce non-xz size slightly to fit 4GB flash drives
The installimage sizes were bumped in 2022 because of some growth, and
the case for not-xz sets went to 4000 (MiB).  That's just over what a
lot of "4 GB" flash drives are, but seems obviously intended to fit.
The actual usage of the filesystem, from a current build from earlier
this year (with non-xz sets) is:

/dev/dk1           3.7G       833M       2.7G  23% /mnt

and similar for netbsd-10 built yesterday, so we can afford to shrink
slightly.  Drop to 3800, which is still huge, but will make 4 GB flash
drives work.
2023-08-14 13:54:05 +00:00
riastradh 96a51c208c base/shl.mi: Tag libasan.so and libubsan.so with gcc like before.
Not in clang builds.  This tag got dropped in the gcc12 update.
2023-08-12 16:44:15 +00:00
christos f2ba6f3161 off-by-one 2023-08-12 12:40:41 +00:00
christos 75fa30741f sets for libfido2-1.13.0 2023-08-11 23:04:29 +00:00
andvar 702a39f5de s/Partititon/Partition/ 2023-08-10 06:38:15 +00:00
pgoyette 910a1677fc at suggestion from phone@ (via irc/icb) make this file depend on
any version of gdb, not just gdb=1100

XXX I really don't know what I'm doing here, so if anyone has a
XXX better idea, go for it.
2023-08-10 04:55:13 +00:00
andvar 2c4d487849 viadrmums(4): build legacy VIA DRM UMS driver module for amd64.
This driver is not built-in by default, thus loadable module can help (un)lucky
owners of 64-bit capable VIA (Nano/Eden) systems or early AMD/Intel systems
with some VIA chipsets, which include VIA integrated graphics.
I also boldly added product IDs for few later models from VX8xx/VX9xx chipsets
without 3D support (DX9_0) to "expand" the driver support to more systems.
Tested successfully basic functionality on VX800, and partially successfully
on VX900 (on VX900 Xorg failed to initialize due to openchrome related issues,
viadrmums attaches and it is by used the driver).
Didn't test on VX855, I don't have one.

Pull up to netbsd-10 is needed.
2023-08-09 09:36:26 +00:00
rin 53d5bb9a8a lists: Fix build with MKGCCCMDS=no && MKDEBUGLIB=yes 2023-08-08 06:22:31 +00:00
rillig 26eb44f64d tests/lint: show that portable mode depends on PTRDIFF_TSPEC
Since 2023.07.08.12.45.43, lint warns in lib/libkvm on i386.
2023-08-07 22:30:38 +00:00
riastradh 7d4d0aa004 distrib/sets/lists: Fix libtsan entries.
- No obsolete .so.N or .so.N.M entries.
- libtsan.so for gcc.
- libtsan.so.1* for gcc=10.
- libtsan.so.2* for gcc=12.
- No libtsan.so.1* on aarch64, libtsan on aarch64 is new in gcc12.
2023-08-07 16:14:31 +00:00
rin 9aaa692e2a lists/m68k: Obsolete gcc-9 headers 2023-08-07 00:47:29 +00:00
rin d54c06a58c lists/aarch64: Obsolete gcc-9 headers 2023-08-07 00:45:47 +00:00
rillig dca1e8c791 tests/lint: document how much of C99 lint already implements 2023-08-06 19:31:06 +00:00
riastradh a6d7a67277 base/md.amd64, base/md.sparc64: Mark openssl compat directories.
Should fix MKCOMPAT=no build.

PR port-amd64/57567
2023-08-05 08:55:48 +00:00
riastradh 3946811d8d comp/mi: /usr/include/g++/bit is gcc-only, not for clang (or pcc) 2023-08-05 08:15:40 +00:00
pgoyette aca2523560 revert debug data for libtsan to previous version, too.
XXX Perhaps this should be done by obsoleting the 2.0 file?  For now
XXX this will require manual cleaning of the no-longer-used 2.0 file.
2023-08-05 03:13:57 +00:00
riastradh 2293c1ba38 t_ubsan, t_ubsanxx: Remove gcc=10, gcc=12 conditionals.
These are built unconditionally.  Should help fix the clang build.
2023-08-04 20:56:08 +00:00
mrg e010c02046 more updates for sets and GCC 12
- renable sanitizer, add new shlib versions, enable tsan for arm64,
  including moving some stuff into the per-cpu/arch dir from 'mi'.
- fix mips64, 68k, and ia64
- mark many any-gcc-version things just as "gcc" and remove dups
- mark many gcc=9 only things as obsolete
- mark many gcc=10 only things as obsolete with gcc=12 (more could
  be done here.)
2023-08-04 08:54:00 +00:00
rillig 0448d06008 lint: make '_Static_assert' only available in C11 or C23 mode 2023-08-03 18:48:42 +00:00
rin 4d0ce6b850 lists: Belatedly catch up with lib*san bump for GCC 12. 2023-08-03 15:07:06 +00:00
rin 72af11dfa3 base/shl.mi: Fix previous for GCC10... 2023-08-03 14:14:29 +00:00
rin 2a820cdb46 Fix lists for HAVE_GCC=12. 2023-08-03 13:13:04 +00:00
nia 5f926429a0 mark obsolete, don't remove from setlist 2023-08-03 12:30:25 +00:00
nia e6ea867424 Revert addition of epoll to libc until discussion concludes 2023-08-03 12:24:46 +00:00
martin c612895bbd Bump libc minor here too 2023-08-02 12:12:52 +00:00
christos b515b5959a Add companion mempcpy to wmempcpy, bump. 2023-08-01 17:51:24 +00:00
mrg 2a5ef6b72e various updates for GCC 12
- bump some shlibs
- add new header files
- add compiler-version header files
- disable sanitizer libraries for gcc12 for now
2023-08-01 06:35:55 +00:00
christos 6a8ddfc018 new gdb needs wmempcpy, give it to it. 2023-07-31 17:38:28 +00:00
riastradh 3b7c09b692 ld.elf_so: Add some known-answer tests for hash functions.
Make sure the testing mechanism detects the traditional overflow bug.
2023-07-30 09:22:02 +00:00
rin 9a6dacb422 ews4800mips/floppies: Fix ramdisk overflow by dropping IEEE 802.11
support from x_ifconfig
2023-07-29 17:33:50 +00:00
tsutsui 623aad5983 No need to ask whether to use the TCP option on NFS mount.
TCP mount has been default since NetBSD 9.0.
2023-07-29 15:46:45 +00:00
christos d3ba7ba3a2 Add tests for t_memfd_create and fix bug found by tests 2023-07-29 12:16:34 +00:00
christos d11110f473 Add epoll(2) from Theodore Preduta as part of GSoC 2023 2023-07-28 18:18:59 +00:00
christos b78139aa0b bump libssh 2023-07-26 17:59:35 +00:00
rin 13ae812dd5 x_fsck_ffs, x_newfs: XXX: Sprinkle -Wno-error=address-of-packed-member
for GCC/powerpc 10.5.0 with -Os.
2023-07-26 02:26:11 +00:00
gutteridge c4a005e031 Add dkctl(8) and gpt(8) to the evbmips ramdisk
The installer provided by octeon.img creates GPT wedges, which may
later need to be recovered via the standard sysinst installer provided
by netbsd-INSTALL_OCTEON.
2023-07-25 02:42:48 +00:00
gutteridge d9267cc47d Add dk[0-3] to the device nodes provided in the evbmips ramdisk
The installer provided by octeon.img creates wedges, which may later
need to be recovered via the standard sysinst installer provided by
netbsd-INSTALL_OCTEON.
2023-07-25 02:38:31 +00:00
rin 04016d3a36 macppc/floppies: Use x_ variants of disklabel, fsck_ffs, and newfs.
Fix ramdisk overflow with clang.

- For fsck_ffs(8) and newfs(8), Apple UFS is still supported.
- 2.88MB of ramdisk size can be bumped if really required.
2023-07-24 08:21:09 +00:00
andvar c553cce289 s/probaby/probably/ in comments. 2023-07-23 21:06:52 +00:00
mrg 3728dc83f3 mark gl_mangle.h and glx_mangle.h as mesa_ver=19. 2023-07-22 23:35:23 +00:00
rillig ef4646fea8 tests/lint: demonstrate use-after-free in GCC statement expression 2023-07-15 12:24:57 +00:00
rillig 5e96f60f79 tests/lint: add test for _Noreturn from C11 2023-07-12 18:13:39 +00:00
christos 7eace3da0c Add memfd_create(2) from GSoC 2023 by Theodore Preduta 2023-07-10 02:31:54 +00:00
christos d8d7258c92 fix typo 2023-07-08 17:43:13 +00:00
christos e706571b76 Document how system call versioning is done. From this summer's compat-linux
GSoC, by Theodore Preduta.
2023-07-08 16:14:11 +00:00
rillig a9b749ce7a tests/lint: merge duplicate tests for C11 _Atomic 2023-07-07 00:20:39 +00:00
riastradh d2876e0fc7 tests/libexec/ld.elf_so: Fix helper library makefiles.
1. Consolidate logic into a single helper.mk to reduce duplication.
2. Set NO* variables, not MK* variables which are reserved for user.
3. Avoid eager X!= in favour of lazy ${X:sh}.
4. Mark _g.a set list entries obsolete.  Never should've been built!

PR misc/57462
2023-07-05 22:42:46 +00:00
rillig 581fbf1bfe tests/lint: add platform-specific tests for troublesome pointer casts 2023-07-05 11:36:56 +00:00
gutteridge 00faf7a9a7 Install a copy of dhcpcd.conf under /usr/share/examples
Addresses PR bin/57487 from Taylor R Campbell.
2023-07-05 00:26:38 +00:00
riastradh 2daa8bfe20 libbsdmalloc: New man page.
XXX pullup-10
2023-07-04 16:23:15 +00:00
riastradh 77b23e4e0e libbsdmalloc: Bump shlib minor.
New symbols, new minor.

XXX pullup-10
2023-07-04 16:22:10 +00:00
rillig 2bb36c1110 tests/lint: move platform-specific query tests to separate files
This fixes the tests on 'unsigned char' platforms.

Thanks martin@ for the notification.
2023-07-03 15:29:42 +00:00
rillig 29b0195f9b lint: add initial support for C23
Required by xsrc/external/mit/MesaLib.old, brw_eu_validate.c, which
initializes a struct using empty braces: 'return (struct string){};'.
2023-07-02 23:40:23 +00:00
gutteridge 5388ce56e6 Add npflog.4 to sets 2023-06-30 00:48:03 +00:00
pgoyette 399bc09bd8 Looks like this debug library disappeared with the new heimdal. Mark
it obsolete to fix the MKDEBUGLIB build.
2023-06-21 02:48:49 +00:00
wiz c093f0b69f install pkg-config file for libedit
version number matches portable libedit
--cflags output matches portable libedit, since users probably want the
readline interface
2023-06-20 23:09:13 +00:00
martin 982f63aa62 Obsolete ati_drv.so.19 and add .22 in the other md.* files affected
by the recentish X update.
2023-06-20 11:00:29 +00:00
mrg 32f4e6acb7 update for fontconfig 2.14.2. 2023-06-20 02:25:19 +00:00
mrg 0bab990a32 updates for xf86-video-ati 22.0.0. 2023-06-19 08:32:39 +00:00
rillig abc3274d3a indent: merge lexer symbols for type in/outside parentheses 2023-06-16 23:51:31 +00:00
wiz 0fa172738f add missing 'obsolete' keyword 2023-06-16 22:18:02 +00:00
wiz b6deb17d6b mark some openssl 1.1 files as obsolete with openssl 3 2023-06-16 20:38:18 +00:00
rillig 13e8698351 tests/make: add test for multiple-inclusion guards 2023-06-16 09:25:13 +00:00
rillig 1d0b121ff3 tests/make: clean up tests for the ':M' and ':S' modifiers 2023-06-16 07:20:45 +00:00
gutteridge fed4c0527d Remove redundant variable assignment
(Someone may want to define MAKEDEVTARGETS differently than is done at
present, but that would be a different change.)
2023-06-14 23:03:19 +00:00
rillig b2fe5a24a1 indent: merge parser symbols for stmt and stmt_list
They were handled in exactly the same way.
2023-06-14 07:20:54 +00:00
gutteridge 87061830a7 Remove redundant variable assignment
It got clobbered by another assignment later, and this has been the
case since r. 1.1 of the file.
2023-06-12 23:29:32 +00:00
lukem 5b36091254 sets: enhance MAKEVERBOSE support
Add more messages for various sets operations.
Add ${_MKMSG_CREATE} to bsd.own.mk.

Enhance maketars to be a bit more verbose even with -q,
to make it more obvious why certain operations may be slow.
May help debugging PR 47562.
2023-06-10 16:08:41 +00:00
lukem 7e6b40ad41 maketars: add comments for skipped mtree keywords
Reorder skipkeys alphabetically and add comment explaining
the purpose and why sha256 is not part of the variable.
2023-06-10 14:11:08 +00:00
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
skrll 75b842b847 RISC-V support that works on QEMU with a single hart.
Thanks for Simon Burge for plic(4).
2023-05-07 12:41:45 +00:00
skrll f64a275a51 Add imx6sx dtb files for BE too 2023-05-06 08:43:20 +00:00
bouyer eacf400a5c Add imx6sx dtb files 2023-05-04 13:41:46 +00:00
phx 8d9149a73d Driver for the MNT ZZ9000 Zorro board. Submitted by Alain Runa.
It was formerly known as mntzz, which Alain released three years ago.
Since then, the ZZ9000 had several firmware updates which changed some
hardware interface details rendering the former driver non functional in some
aspects. Also the audio card plug-in ZZ9000AX became available from MNT
Research. Considering the major rewrite of the driver in some areas he
decided to rename it to zz9k(9). The driver consists of several sub-drivers
each addressing different functionality of the MNT ZZ9000 & ZZ9000AX combo
card.

zz9k* is the main card driver and need to be enabled if any of the sub-driver
is enabled. zz9k on its own is not very useful, it only provides a common
zz9kbus for the other sub-drivers to connect to, so only enable it if one of
the zz9k sub-drivers are enabled.
zzfb* represents the graphics driver for the boot console and the dumb
framebuffer for X11 based on WSCONS. ZZFB_CONSOLE option enables the ZZ9000
to become the boot console.
zz* represents the ethernet interface of the ZZ9000. It basically works but
is considered experimental.
zzax* represents the ZZ9000AX audio card driver, audio* attaches to it to
provide audio output and input functionality. The driver is not functional
yet.
zzusb* represents the ZZ9000AX usb driver. It was not implemented yet and
probably never will.
2023-05-03 13:49:29 +00:00
hgutch 6d7231e655 Unbreak creation of i386 PIEs on amd64.
Functional patch by RVP;  set lists updated accordingly.

This fixes PR toolchain/57380.
2023-04-27 20:55:27 +00:00
rillig 1d3cf26e0d tests/lint: test command line parsing for message and query IDs
The parsing methods differ but shouldn't.
2023-04-23 08:47:27 +00:00
gutteridge 04d453bc9d Add new test t_open_pr_57260
New test case that reflects the fix in PR kern/57260. The majority of
work for this case itself was by riastradh@, who'd supplied the basis
for it in the ticket, and provided further guidance.
2023-04-21 21:50:04 +00:00
brook 44b53cb84a Install /boot/boot.cfg with EFI bootloaders.
On ARM ports, the EFI boot loader handles a boot.cfg file if it
exists, but one is not installed by default.  In contrast, both the
i386 and amd64 ports do install boot.cfg by default.  Bring these
ports into agreement by installing boot.cfg on ARM ports with EFI boot
loaders.
2023-04-19 18:39:18 +00:00
nikita f0dad708b3 Resolve conflicts for lua 5.4.4 import.
Adjust various files for lua 5.4.4.
2023-04-16 20:46:16 +00:00
riastradh d5970c6d00 aarch64: Build drm modules. 2023-04-11 10:30:41 +00:00
rillig d0a5c1bc3c lint: warn about 'extern' declarations inside function bodies
https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html

The previous attempt (message 351 about 'extern' declarations outside
headers) did not cover the proposal from the tech-userlevel mailing list
but instead warns about a different usage pattern of the 'extern'
keyword.
2023-03-28 20:04:51 +00:00
rillig b2baa50111 lint: warn about extern declarations outside headers
https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html
2023-03-28 14:44:34 +00:00
andvar 6ab5321285 s/displyed/displayed/ 2023-03-26 15:08:24 +00:00
abs 703c4250b9 Update device-streams binaries from Roc Vallès
- Split device-streams.tar.gz.uue into seperate source and
  binaries device-streams-2.2.1-src.tar.gz and device-streams-2.2.1.lha
  to match upstream
- Add device-streams.README.md from upstream
- Add simple 'update' script to help updating next time
- Binaries now avoid 32 bit file offset issues (they use 64 bit
  offsets where supported, and otherwise avoid corrupting data due
  to 32 bit limits)
- Binaries now built with updated bebbo/amiga-gcc toolchain

Pullup: netbsd-10, netbsd-9 and possibly netbsd-8
2023-03-23 13:56:24 +00:00
riastradh 40028e8037 libm: Bump minor for new long double transcendental functions.
XXX Still missing: remquol, remainderl.
2023-03-23 12:38:13 +00:00
mrg cabac0c060 un-obsolete ./usr/lib/libisns.so*. it's normal for these to be
symlinks in this case, and they also exist in the case that
MKDYNAMICROOT is not set.

also fixes running "makefs" against a destdir and it's METALOG*.
2023-03-23 05:38:18 +00:00
mlelstv 5d501e0c8a Can't use disklabel to find the real size of a disk since a fake disklabel
read from disk is trusted. Revert to use drvctl again.
2023-03-18 11:36:23 +00:00
uwe 75fb75f5dc portfeatures(9): the man page for the __HAVE macros
The man page itself is a skeleton/template for now.  Please add short
descriptions and xrefs.  If the target man page doesn't yet document
relevant __HAVE macros (hi, mutex(9)), please add something there,
possibly in a .Sh IMPLEMENTATION NOTES section.
2023-03-06 00:49:31 +00:00
andvar e01ab26acb s/degub/debug/ in syspkgs definitions. 2023-03-05 18:03:35 +00:00
rillig eaf30a03e7 lint: split platform-specific test for loss of accuracy
Lint distinguishes between platforms where size_t is unsigned int and
platforms where size_t is unsigned long.
2023-02-27 23:07:53 +00:00
mrg 03646e0f95 bump amdgpu_drv version, obsolete old one. 2023-02-26 20:16:13 +00:00
martin b0d8bd80da Add mew file make/unit-tests/meta-ignore.inc 2023-02-24 12:47:23 +00:00
mlelstv 9921d00860 Handle arbitrary raw partitions.
Fetch geometry from disklabel to be consistent.
Use disktab format instead of the normal human-readable output for parsing
the disklabel.
Avoid overflows in size computation.
2023-02-18 07:58:34 +00:00
abs 62fe57d219 Enable basic command line editing in evbarm, sparc64 and vax installer shells
(Following the pattern in amd64)

When a user selects "exit installer" or hits ^Z in sysinst, the
calling install.sh runs a shell, plus shows a message indicating
they can type "exit" to return to the installer.

Add -E to the arguments to this shell, to enable command line editing,
(primarily for arrow keys, but basic emacs sequences will also work)

With the change of all the install.sh scripts in amd64, evbarm,
i386, sparc64 and vax are identical apart from NetBSD RCD tags and
the sysctl -nx kern.consdev check (some of the latter are definitely
either wrong, or have an incorrect comment attached. Will return
to later)
2023-02-12 19:27:20 +00:00
abs 1f318b35b6 Switch install.sh to use /usr/sbin/sysinst for sysinst rather than ./sysinst
Matches i386/cdroms/install.sh and amd64/installimage/install.sh

resultant install image verified to still run sysinst correctly
2023-02-12 19:18:41 +00:00
tsutsui 42aea38f3c Build a RAMDISK root kernel on NetBSD/next68k release build.
No sysinst(8) yet, but useful on bootstrap and rescue ops.
2023-02-11 19:12:31 +00:00
abs e1dce1bfa4 Enable basic command line editing in i386 installer shells
(Following the pattern in amd64)

When a user selects "exit installer" or hits ^Z in sysinst, the
calling install.sh runs a shell, plus shows a message indicating
they can type "exit" to return to the installer.

Add -E to the arguments to this shell, to enable command line editing,
(primarily for arrow keys, but basic emacs sequences will also work)
2023-02-11 17:52:19 +00:00
tsutsui 8c5fe5c1e4 Prepare MD distrib files to build next68k iso-image. 2023-02-11 07:22:30 +00:00
uki f527611a02 Fix annotation checksum in +CONTENTS of syspkg
- Fix bug that file in DESTDIR is not referenced correctly.
- Change checksum algorithm to SHA256 from MD5.
- Remove invalid option of cksum(1) in regpkg.
2023-02-11 04:16:57 +00:00
christos 3244fba725 bump libcrypto minor 2023-02-08 15:52:46 +00:00
rillig cd59f013cc tests/lint: merge tests for initialization 2023-02-05 13:01:28 +00:00
rillig 134e5c5e76 tests/lint: remove redundant tests
The names of the tests were misleading: 'recursive' should have been
'nested', and the interesting topic in the 'cast' tests was not the cast
but the pointer dereference.
2023-02-05 12:25:11 +00:00
wiz b17ce4f0d4 stop building and installing xfwp
As proposed on tech-x11
https://mail-index.netbsd.org/tech-x11/2022/12/29/msg002333.html
2023-02-04 16:34:36 +00:00
mlelstv b526349c2e Add start script to attach iscsi volumes at boot.
The default is to execute the script (iscsid_volumes=YES), so if you have
any volumes defined, you should also start iscsid (iscsid=YES) to avoid
error messages.
2023-02-03 13:53:40 +00:00
christos 28f2f55f42 add t_strchrnul 2023-01-30 19:51:33 +00:00
maya 11fbdb110b Make sure to mount /var/shm
Programs such as firefox seem to require it,
and this file is used by the live image as well.
2023-01-29 22:12:25 +00:00
rillig 6b8b6837b1 tests/lint: merge tests for '>>' 2023-01-29 17:02:09 +00:00
mrg 7474491c39 add missing ./etc/fonts/conf.avail/10-yes-antialias.conf, noted by wiz. 2023-01-28 05:25:17 +00:00
sjg ca0cc05370 make: .[NO]READONLY for control of read-only variables
Reviewed by: rillig
2023-01-23 23:01:52 +00:00
rillig f25c712f32 tests/lint: merge tests for declaration after statement 2023-01-22 17:17:24 +00:00
rillig e104b7676c lint: add support for the C11 type qualifier '_Atomic'
That keyword can be used as a type specifier as well, support for that
will be added later.
2023-01-21 13:07:21 +00:00
rillig 149d92727c tests/lint: test _Atomic, added in C11 2023-01-21 11:57:03 +00:00
mrg 438090b61f updates for fontconfig 2.14.1. 2023-01-21 04:04:30 +00:00
rillig d67dd6957e tests/make: rename files that are not test cases 2023-01-19 23:26:14 +00:00
mrg 7cfe05bb83 updates for fontconfig 2.14. 2023-01-19 06:29:10 +00:00
abs aab51fcd54 Enable basic command line editing in amd64 installer shells
When a user selects "exist installer" or hits ^Z in sysinst, the
calling install.sh runs a shell, plus shows a message indicating
they can type "exit" to return to the installer.

Add -E to the arguments to this shell, to enable command line editing,
(primarily for arrow keys, but basic emacs sequences will also work)

At this point this is only on amd64, as this is the port which is
least likely to be installing on particularly esoteric terminal
hardware, and is also likely to have the highest proportion of less
experienced users
2023-01-16 15:00:03 +00:00
skrll 99938ff141 Switch RISC-V to new binutils (2.39) 2023-01-16 10:28:09 +00:00
rillig 68eada2d32 distrib/sets: add missing directory for xlint tests 2023-01-16 00:23:55 +00:00
rillig 66827794fe tests/lint: add basic tests for lint (not lint1 or lint2) 2023-01-15 23:18:05 +00:00
rillig 7997ddce85 tests/lint: add test for parsing sizeof expressions 2023-01-15 00:53:19 +00:00
rillig 84d60f5dbf distrib/sets: sort list of test files
In ASCII, '_' comes before lowercase letters.
2023-01-15 00:34:10 +00:00
christos 812b7abba7 Add the .xsce scripts 2023-01-09 14:37:50 +00:00
wiz 56342e0eba add some files that are obsolete with binutils 2.39 2023-01-08 21:11:45 +00:00
wiz 8ef7fe6e07 sort 2023-01-08 21:11:07 +00:00
christos be0a5d5087 Turn on -z separate-code for x86, like linux has done. This splits the text
and data segment load sections into two pieces, for at total of 4 PT_LOAD
sections: two for text (r--, r-x) and two for data (r--, rw-). For x86_64
this changes the default max page size from 2M to 4K.
2023-01-06 15:47:38 +00:00
rillig 7c0153f0bf tests/lint: merge tests for ':?' with null pointer constant 2023-01-04 05:25:08 +00:00
andvar 3b26fa5cee s/succes/success/ in comments. 2022-12-30 09:08:47 +00:00
christos 7d5c4b1825 annotate the 234 linker scripts 2022-12-28 22:04:05 +00:00
wiz bb716201ab Fix debug set list for old (default) binutils 2022-12-27 08:38:37 +00:00
christos e61e3b5147 make gnu ctf needed for all new binutils. 2022-12-26 16:42:50 +00:00
jakllsch bc07e571e3 fix libopcodes.so.11.0 binutils condition 2022-12-25 15:02:29 +00:00
christos 2632356c13 fix sets for binutils 2.39 2022-12-24 23:01:34 +00:00
nat 111c077e20 Driver for DaynaPORT SCSI/Link (dse.4).
Written by Hiroshi Noguchi, of which an updated version was posted to
port-mac68k in 2001.

Attachments were added to kernel configs for platforms that already had
the Cabletron (se.4) driver added, although other platorms may benefit.

Reviewed on tech-net by Izumi Tsutsui.
2022-12-22 11:05:54 +00:00
pgoyette 4999202e65 Missed the compat_netbsd32_100 stuff in previous commit 2022-12-20 04:10:11 +00:00
jakllsch 89823b19df add compat_100 module setlist entries 2022-12-20 00:31:55 +00:00
martin 1b142bcf55 Add notes about FFS and extended attributes. 2022-12-16 16:58:14 +00:00
kre d942351a30 tzdata update to 2022g
Added zoneinfo files:
	America/Ciudad_Juarez
2022-12-11 06:59:36 +00:00
kre f03d0da556 Sort (NFCI) 2022-12-11 06:50:31 +00:00
brad 50bb9ed19f Split the BMP280 / BME280 driver into common code and create I2C and
SPI attachments.
2022-12-03 01:04:42 +00:00
ozaki-r 9ac30c6562 tests: fix Makefile and lists for MKRUMP=no
Pointed out by Michael Scholz, thanks.
2022-12-01 04:24:37 +00:00
ozaki-r efcd8443e2 tests: build and install t_ip_reass.c 2022-11-30 06:07:51 +00:00
knakahara d432a9d987 Add ATF for unnumbered interfaces. 2022-11-25 08:43:15 +00:00
jakllsch 53080d75ac Fix h_lualibm debug set lists. 2022-11-22 17:35:45 +00:00
christos ae082add65 lua libm API from Phil Rulon 2022-11-21 22:01:32 +00:00
brad 068b504f95 A driver for the Bosch BMP280 / BME280 temperature, humidity and
atmospheric pressure sensor.  This is an inexpensive to moderately
expensive chip available from a large number of places.  The driver
supports all aspects of the two chips, except for the repeating read
mode which would allow for sub-second queries, such as fall detection
or perhaps even as an altimeter.  This driver also only supports the
I2C interface and not the SPI interface.

The BME280, the one with humidity, is not fully tested at this point,
awaiting upon a breakout board and may not show proper humidity.
2022-11-21 21:24:00 +00:00
yamt 0c679c37c9 Update a few www.raspberrypi.com URLs 2022-11-19 09:19:27 +00:00
brad 50bf6d2dfd A driver for the Aosong AHT20 temperature and humidity sensor. While
slow for an I2C sensor it is inexpensive and should work well enough
in most indoor conditions.  All features of the chip are supported.
2022-11-17 19:20:05 +00:00
ozaki-r 1e993fdc4c distrib: add missing ./usr/libdata/debug/usr/tests/net/inpcb 2022-11-17 09:58:42 +00:00
ozaki-r a97d0b3002 tests: build and install added test files 2022-11-17 08:45:35 +00:00
chs 87ba0e2a31 Restore backward compatibility of UFS2 with previous NetBSD releases by
disabling support in UFS2 for extended attributes (including ACLs).
Add a new variant of UFS2 called "UFS2ea" that does support extended attributes.
Add new	fsck_ffs operations "-c	ea" and	"-c no-ea" to convert file systems
from UFS2 to UFS2ea and	vice-versa (both of which delete all existing extended
attributes in the process).
2022-11-17 06:40:38 +00:00
mrg 4d9ba19d12 updates for pixman 0.42.2.
this enables NEON for arm64.  maybe firefox will be faster on pbp...
2022-11-12 04:00:57 +00:00
mrg 0cb9ef9131 updates for libdrm 2.4.114.
unfortunately, the i915 ioctls are no longer handled by kdump/ktruss
as the new one conflicts with base.  this needs a clean build in these
dirs (and rescue).  the radeon ioctls have been enabled instead.
2022-11-12 02:20:15 +00:00
mrg 734e66fe1b updates for libpciaccess 0.17. 2022-11-12 02:03:08 +00:00
blymn f6bac76c05 Added new libcurses test checkfile. 2022-11-10 06:13:58 +00:00
knakahara 9d1cf4af54 Add test for sys/netipsec/ipsec.c:r1.176. 2022-11-09 08:21:20 +00:00
blymn d52c24fb19 Added a new check file for libcurses test slk 2022-11-08 06:08:33 +00:00
ozaki-r 3df6c9b812 tests: add tests for invalid extra operations on a shutdown socket
The tests cover some error paths that normally happen.
2022-11-04 08:01:42 +00:00
ozaki-r e4b0921362 sets: fix wrong keywords for tests/net/tcp 2022-11-04 07:54:27 +00:00
ozaki-r c3619612ae tests: add tests for TCP with nc 2022-11-02 09:37:56 +00:00
jmcneill 155e7aa0de Silence a warning when machdep.dmi.chassis-asset-tag is not present 2022-10-30 15:08:50 +00:00
mrg bb9b328495 add new libXpresent manuals. 2022-10-29 21:06:48 +00:00
ozaki-r 2fd9c36db0 Remove in_pcb_hdr.h 2022-10-28 05:23:09 +00:00
andvar a5139dfcb4 fix RCSID. 2022-10-26 22:13:09 +00:00
mrg 9daf42ae15 updates for xkeyboard-config 2.37. 2022-10-17 07:40:22 +00:00
jmcneill c99ed817c0 ec2_init: Add support for Oracle Cloud 2022-10-15 18:32:30 +00:00
ryo 5e1953a459 add new files 2022-10-14 19:43:35 +00:00
knakahara ae6e8d4c4e Add test for sadb_x_policy->sadb_x_policy_flags. 2022-10-11 09:55:21 +00:00
andvar fcd4015a32 s/immediatedly/immediately/ 2022-10-06 20:42:13 +00:00
christos 34f3a6ce05 bump libssh for OpenSSH-9.1 2022-10-05 22:40:12 +00:00
charlotte 647f8d1674 Avoid dead link to the NVRAM FAQ in docs for sparc, too 2022-09-28 06:09:14 +00:00
charlotte b35ff126c8 Avoid dead link to the NVRAM/Hostid FAQ 2022-09-28 06:06:59 +00:00
christos f4f2f74084 bump libmagic 2022-09-24 20:36:49 +00:00
christos 9b4d9e4e15 bump bind libraries 2022-09-23 12:19:18 +00:00
ozaki-r 3761620b42 tcp: separate syn cache stuffs into tcp_syncache.[ch] files
No functional change.
2022-09-20 07:19:14 +00:00
mrg 8c9c14a2c1 add missing showfont(1). remove obsolete comment. 2022-09-11 05:54:00 +00:00
rillig 6c89b5e2d3 distrib/sets: remove more extra keywords from obsolete entries
Found by fmt-list.
2022-09-10 16:03:43 +00:00
rillig d267a17955 distrib/sets: remove duplicate entries 2022-09-10 15:54:11 +00:00
rillig c5d7b85fc8 distrib/sets: remove duplicate lines in comp package 2022-09-10 15:50:57 +00:00