Commit Graph

17639 Commits

Author SHA1 Message Date
christos 5685bf84e6 Add the extra spec for the amd64 cdroms 2024-05-14 14:58:41 +00:00
christos aa283a51b7 Put back -xx (this will break some archs but we'll fix them) and automatically
generate the spec for the machine-specific portions of the cdrom.
2024-05-14 14:58:05 +00:00
christos cbec7da0ed more Xf86misc obsolete 2024-05-13 14:59:31 +00:00
christos 2b74ac1f4d mark more of libXxf86misc obsolete 2024-05-13 14:56:44 +00:00
rillig 9cfc443f88 lint: warn when comparing an integer to a floating point constant 2024-05-11 15:53:38 +00:00
mlelstv d965a38342 Fix aarch64 build 2024-05-11 07:34:33 +00:00
andvar 8fe9dcb1b3 s/timestemps/timestamps/ in comments. 2024-05-11 06:31:59 +00:00
riastradh 716bb5516e xdebug/shl.mi: Delete libXxf86misc.so.2.0.debug.
Loading existing applications that linked against this into a
debugger should continue to work, so it shouldn't be obsoleted, but
the file is no longer installed.
2024-05-10 12:24:08 +00:00
riastradh cd6bc63f92 xbase/shl.mi: Delete, rather than obsolete, libXxf86misc.so.M(.N).
Obsolete lines here will lead postinstall to delete the shlib, which
will break any existing applications linked against it.  Deleting the
lines has no effect on postinstall.

(We should maybe have a different way to mark them instead, as
suggested in PR 57581, but we don't, so this is what we do for now.)

However, keep the obsolete line for libXxf86misc.so, since the .so
symlink itself is only used when linking new applications.
2024-05-10 12:21:49 +00:00
riastradh d318e69575 xbase/shl.mi: Copy comment about delete vs obsolete from base/shl.mi. 2024-05-10 12:18:16 +00:00
christos d2d9aaf4f8 Remove the -xx, now we have the list of 20 platforms that have incomplete
fspecs. Instead of augmenting the platform spec with an autogenerated one,
we should understand why we have missing entries in the first place.
2024-05-09 16:09:03 +00:00
mrg 40a4e0d1da fix gcc 12 builds. 2024-05-09 15:54:58 +00:00
pho 3dc92541ec port-arm/58194: Resurrect vmt(4) from bitrot
On this architecture vmt(4) used to search for a node "/hypervisor" in the
FDT and probed the VMware hypervisor call only when the node was
found. However, things appear to have changed and VMware no longer provides
the FDT node.

Since vmt(4) doesn't actually need to read anything from FDT, and the
hypervisor call logically resides in virtual CPUs themselves, it would be
better to attach it directly to cpu, just like how it's probed on x86.
2024-05-09 12:09:58 +00:00
nia cbd7fd84d4 unhook libXxf86misc from the build and mark obsolete
library has no users in src or pkgsrc, it's primarily useful for
managing input devices on mid-2000s xfree86 servers
2024-05-09 06:38:27 +00:00
kre 966af04570 No point testing if the spec file is empty before running makespec,
the previous commands guarantee that cannot be the case, so makespec
was never being run.   Just run it unconditionally.

Seems to fix the build for me.
2024-05-09 03:41:05 +00:00
mrg 63829c3207 fix gcc 12 support. 2024-05-09 02:14:21 +00:00
christos 4967e4351f Fail on incomplete mtree specs 2024-05-08 16:08:08 +00:00
christos 27fb837206 PR/58196: Jan-Benedict Glaw: If there was no spec file specified, generate
one on the fly. Should fix reproducible builds where the mode and the
ownership/group is not fixed and picked up from the filesystem.
2024-05-07 20:33:20 +00:00
mrg 465b033192 mark more libpam* with pam. 2024-05-06 08:38:51 +00:00
macallan dfd1081321 sprinkle rump, gcc=12 etc.
Now sparc64 with HAVE_GCC=12 and MKRUMP=no builds again
2024-05-06 06:06:40 +00:00
mrg 59f75f88a6 mark libpam* as being part of pam. 2024-05-06 05:27:46 +00:00
riastradh b129f29edd tests/lib/libm: Test nextafter/nexttoward and variants.
The tests are fairly trivial but should work without any conditionals
about floating-point formats.
2024-05-05 02:53:01 +00:00
reed e5d2f1f842 add the catman pages to the set for mkcsmapper and mkesdb 2024-05-04 19:16:22 +00:00
reed b3ebb17e10 Install the mkcsmapper.1 and mkesdb.1 manpages. 2024-05-04 19:10:04 +00:00
dyoung 7c4812b990 Add a device tree for the Red Pitaya SDRlab 122-16.
To boot NetBSD on the 122-16, copy the .dtb built from
zynq-red-pitays-122-16.dts, the first-stage bootloader (called
boot.bin) and U-Boot that came with the 122-16 and a kernel image,
netbsd.ub, built for earmv7hf to an MS-DOS partition on an
MBR-partitioned SD card.  At the U-Boot prompt, "Zynq> ", type these
commands:

i2c dev 0
eeprom read 0 0x50 0 0x1804 0x400
env import -b 0 0x400 hw_rev serial ethaddr
setenv bootargs "root=ld0a"
fatload mmc 0 0x01f00000 device~1.dtb
fatload mmc 0 0x02000000 netbsd.ub
fdt addr 0x01f00000
fdt set /axi/ethernet@e000b000 local-mac-address $ethaddr
bootm 0x02000000 - 0x01f00000

Note that the ethernet PHY will not attach unless you have applied
the patches from Lloyd Parkes in kern/58083.
2024-05-04 02:21:48 +00:00
gutteridge 7db2523dea Add dhcpcd to riscv ramdisk, etc.
Be consistent with configs for pretty much every other (modern) arch
and provide dhcpcd, lest someone end up using this image and then be
surprised (as happened relatively recently with evbmips images). This
means of course we also need bpf.

While here, add a few wedge devices, too. This aligns us with the
device definitions evbmips uses (that appears to be where the riscv
Makefile was copied from back in 2015).
2024-05-04 00:41:06 +00:00
tsutsui 2c8ccd9ea5 Add 98542 and 98543 framebuffers to supported "Graphics Devices" section.
I hope someone will sync a list of supported devices in port wiki pages
with one in this installation notes.
2024-05-01 19:40:56 +00:00
andvar 4412324be5 viac7temp(4): rewrite temperature sensor to read value from MSR instead of using
documented cpuid instruction and eax register.

This approach is adapted from linux via-cputemp.c, no official documentation is
currently available. However, msr value seems to work on all tested CPUs while
documented cpuid instruction typically reports 0, even for my C7-D CPU.
msr value seems to have temperature in Celsius in lower 24-bits without fraction
(thus "msr & 0xffffff;" is used).

Tested on my personal systems based on CPUs below (i386 and amd64):
C7-D 1.6GHz (i386 only), Nano X2 L4350E, Nano X2 U4300, U2300 Nano, KX-U6580.
Also got one response via email which was based on Nano X2 L4050 (VE-900).
Nano reports independent values for each core.
KX-U6580 seems to show the same value for all cores but more testing is needed.

Since it works on amd64 capable CPUs, adding driver to GENERIC kernel config.
Also moving viac7temp man page to x86 instead of i386 (with updates).
In theory the change should add support for all VIA Nano CPUs and Zhaoxin CPUs
 at least up to KX-6000(G) series.

In the future I may need to introduce amd64 kernel module as well.

Plan to pullup to at least netbsd-10.

Patch mainly reviewed by riastradh.
2024-04-30 19:35:28 +00:00
martin 75b0c31044 Mark ctf libs as depending on MKCTF 2024-04-30 18:34:19 +00:00
macallan 544223b22d sprinkle gcc=12 and rump attributes 2024-04-30 01:18:40 +00:00
mrg d9076a8b46 xdm(1) was renamed xdm(8) a long while ago. catch up location.
add support for section 8 X manuals.  amusingly, we already knew
to convert __adminmansuffix__ into "8", but not how to create
.8 from X .man.
2024-04-29 22:09:10 +00:00
rillig 6677adf2a3 tests/cd9660: add debug info to the file list 2024-04-28 18:55:04 +00:00
rillig de973ec253 tests/cd9660: replace compressed blob with readable hexdump
This test is skipped in most circumstances because it creates a file
whose apparent size is 4.5 GB.  It's an ISO 9660 image though,
containing mostly null bytes.  Nevertheless, tmpfs doesn't allow such a
big file to be created, so this test is skipped in settings where /tmp
is on a tmpfs.

If the test is run, the ISO image is uncompressed, which takes several
minutes.  Replace bzip2 with direct file creation from a hex dump of
that disk image, which is easier to inspect manually and also faster by
about 3 magnitudes.
2024-04-28 14:39:22 +00:00
riastradh 2a7fd23976 libstdc++: Add test for PR lib/58206, sync_with_stdio busted. 2024-04-28 01:21:26 +00:00
nia df758d617b Remove modules set from the i386 install cd
It is not particularly useful to be able to load modules while
installing on i386, probably the most useful one is dtrace,
and this takes up about 20mb on a port that is already exceeding
CD limits. Most stuff you'd want to use while installing is already
in GENERIC.

The modules set is still available compressed for installing into
a target system, meaning modules are available after installation.

While here, add man set to the installation DVD, it's helpful to be able
to read e.g. the man page for fdisk when rescuing a system.
2024-04-26 17:36:32 +00:00
nia 0c706886a9 remove redundant kernels and floppies from the space-starved i386 ISO 2024-04-25 11:56:51 +00:00
nia a72de12762 sparc64 follows x86 and gets an installdvd image with all sets 2024-04-24 15:39:58 +00:00
nia 6c62cea2ba Add "DVD" ISOs for x86 that don't have to follow CD size limitations.
These include all available sets.
2024-04-24 11:29:34 +00:00
nia 9cbaeab3a8 Give lots of room for further expansion of the sparc64 CD image 2024-04-24 05:16:16 +00:00
christos 8d70431e8b VAX boot.fs: Fix owner/group/permissions for VAX's boot.fs (Jan-Benedict Glaw)
(Initial patch from Christos Zoulas.)  Don't create an archive based on local
permission bits and owner/group. Instead, feed a small manifest into `pax`
and let it to its work.

  NB: Don't also feed in an entry for the current directory ".", as `pax` will
then archive all files in the current directory, in `readdir()` order.
2024-04-23 22:00:37 +00:00
christos 1b36f85ce6 `nm`: Generate a stable symbol table (Jan-Benedict Glaw)
Release artifacts may contain symbol lists. Binutils's `nm` sorts them by
symbol name, locale based. Inserting a plain `sort` (with `LC_ALL=C`) here
sorts them by address, and (with several symbols pointing to the same address)
sorting by name is also stable (think of embedded '_'.)
2024-04-23 21:58:57 +00:00
nia 50dd28a100 Reduce the size of the i386 ISO to help it fit on a CD-ROM
Exclude tests and html man pages.
2024-04-23 20:37:07 +00:00
nia 9afa3b4167 Exclude compat sets from ISO images that struggle to fit on a CD-ROM
When debug is excluded, also exclude the compat debug sets.
2024-04-23 12:25:57 +00:00
martin 39f3caee78 Add new test program 2024-04-23 07:33:24 +00:00
nia f7dfb79875 Move MIPS N64 compat out of {base,debug}32 into {base,debug}64
martin requested separation by ABI and it doesn't make much sense
to have 64-bit binaries in a set called 32.
2024-04-22 14:41:24 +00:00
pho 76248f073a Add a test for kern/58149
aarch64: Cannot return from a signal handler if SP was misaligned when the signal arrived
2024-04-22 07:24:22 +00:00
jakllsch 2c9c248e72 Install xsetwallpaper(1) manual page
Should fix PR 58172.
2024-04-18 19:17:14 +00:00
christos 97246cf21d more plugin set fixes 2024-04-17 13:23:32 +00:00
christos 2ab201d46f Set LC_ALL=C before calling sort so that it works consistently. Unfortunately
ENVIRON["LC_ALL"] = "C"; does not work like in gawk (Jan-Benedict Glaw)
2024-04-16 23:40:36 +00:00
christos 2f8da1f3f1 fix compat build of filter-aaaa.so.0 2024-04-16 19:15:36 +00:00