DragonFlyBSD/src c3195b5share/man/man4 lagg.4

lagg.4: Clean up the description of interface creation/cloning
DeltaFile
+5-14share/man/man4/lagg.4
+5-141 files

DragonFlyBSD/src 08f6d2ausr.bin/tail forward.c reverse.c

tail(1): Almost sync with FreeBSD

The most important change is that the '-F' flag now supports files that
are not yet exist; it will persist in trying to open the files instead
of giving up.  This behavior is the same as GNU tail.

Another major fix is that "tail -f" now works on non-local filesystems.

Things excluded from the sync:
- long options
- style changes
- capability/capsicum support
- expand_number(3) support (our libutil(3) doesn't have it)

In addition, improve the BOOTSTRAPPING handling a bit.  The program
simply exits when -f/-F is specified.
DeltaFile
+158-119usr.bin/tail/forward.c
+96-95usr.bin/tail/reverse.c
+70-55usr.bin/tail/tail.c
+34-30usr.bin/tail/read.c
+26-22usr.bin/tail/tail.1
+19-16usr.bin/tail/extern.h
+403-3371 files not shown
+426-3467 files

DragonFlyBSD/src 7817903share/man/man4 Makefile

carp.4: Install an if_carp.4 link
DeltaFile
+1-0share/man/man4/Makefile
+1-01 files

DragonFlyBSD/src 388588cusr.bin/tail reverse.c

tail(1): Fix '-r' (reverse) to work on pseudo filesystems

Pseudo filesystems (e.g., procfs) advertize a zero file size.  Fix
reverse() to handle such a case so that '-r' works on pseudo
filesystems.
DeltaFile
+1-1usr.bin/tail/reverse.c
+1-11 files

DragonFlyBSD/src 5c50cc4share/man/man4 lagg.4

lagg.4: Improve the wired-wireless failover example

Adjust the failover example to change the MAC address of the *wired*
device instead of the *wireless* device, because some common wireless
devices do not support to change the MAC address.

Obtained-from: FreeBSD
DeltaFile
+7-5share/man/man4/lagg.4
+7-51 files

DragonFlyBSD/src 2383042nrelease Makefile

nrelease - Preliminary Makefile adjustment to use dsynth (3)

* Add dummy "curses" target to avoid make complaint
DeltaFile
+1-1nrelease/Makefile
+1-11 files

DragonFlyBSD/src 734c0fbnrelease Makefile

nrelease - Preliminary Makefile adjustment to use dsynth (2)

* Add "binpkgs" option back in

* Add www/chromium to the gui build

* Use the -t option to du (calculate apparent size) so it does not
  undercount the size of the root on a compressed H2 volume in order
  to size a USB stick that is currently formatting UFS.

  (we really need to adjust that whole mess to a dual-partition scheme
  and use hammer2, but for now its still all in one UFS partition).

* Improve console output
DeltaFile
+112-11nrelease/Makefile
+112-111 files

DragonFlyBSD/src 9a2c191usr.bin/dsynth dsynth.c build.c

dsynth - Don't auto-upgrade on basic directives, exit code on FAILUREs

* Don't auto-upgrade with the "build" and "force" directives.  The
  "install" and "upgrade-system" directives will will issue the
  upgrade.

* Exit with code 1 if any builds fail with "FAILURE".  Skipped packages
  alone do not cause an exit code of 1.
DeltaFile
+4-3usr.bin/dsynth/dsynth.c
+1-0usr.bin/dsynth/build.c
+1-0usr.bin/dsynth/dsynth.h
+6-33 files

DragonFlyBSD/src f2e741enrelease Makefile

nrelease - Preliminary Makefile adjustment to use dsynth

* Use dsynth to build packages.  Note that we still have to bootstrap
  "pkg" (chicken-and-egg issue).

* dsynth environment is placed in /usr/obj/release/build and is null-mounted
  into the chroot.

* dsynth is run from the chroot to build and install packages.

* Output from buildworld/buildkernel/installworld/installkernel now written
  to log files in /usr/obj/release instead of spewing to the console
  to reduce clutter.
DeltaFile
+75-66nrelease/Makefile
+75-661 files

DragonFlyBSD/src 4ea7a86usr.bin/dsynth repo.c

dsynth - Implement "install" directive

* Implement the install directive by fleshing out DoUpgradePkgs()

* Also needed for the new nrelease Makefile
DeltaFile
+57-1usr.bin/dsynth/repo.c
+57-11 files

DragonFlyBSD/src 51591afsys/bus/pci pcivar.h pci.c, sys/dev/acpica acpi_powerres.c acpivar.h

Add functions that translate an acpi/pci power state to a string.

Use it whereever we previously printed "D%d". This is in preparation
for the upcoming ACPICA upgrade that will break the assumption that
it is always "D<value>".

Inspired by similar changes in FreeBSD.
DeltaFile
+13-9sys/dev/acpica/acpi_powerres.c
+12-2sys/bus/pci/pcivar.h
+11-3sys/sys/power.h
+9-0sys/dev/acpica/acpivar.h
+5-4sys/bus/pci/pci.c
+3-5sys/dev/acpica/acpi_pci.c
+53-2332 files not shown
+149-8738 files

DragonFlyBSD/src b73d6e4sys/dev/disk/vn vn.c, sys/kern subr_diskmbr.c

kernel: Assume s0 (compatibility slice) for any unformatted disk

In commit 8cf8601ebae6a54f01fe9a7aed045832fc6a903b I changed the kernel
to ignore a disk without MBR or GPT, instead of assuming there is the
compatibility slice (s0) covering the whole disk.  A later commit
f687b277b90809ae7df59f012ba2c7312b608545 only made a special case
for vn(4) disk because our nrelease procedure uses such a behavior.

This behavior change might cause real trouble for those users that
actually use the compatibility slice.  A filesystem previously created
directly on an unformatted disk would disappear and unusable on the new
kernel.  What's worse, there is no empty space at the disk beginning to
create a MBR for migration.

This partially reverts commit f687b277b90809ae7df59f012ba2c7312b608545
and brings back the s0 compatibility slice for any disk that doesn't
have a MBR/GPT header (i.e., unformatted disks).

While there, adjust the kernel message to be more descriptive.

    [2 lines not shown]
DeltaFile
+2-7sys/kern/subr_diskmbr.c
+1-5sys/sys/disk.h
+2-2sys/dev/disk/vn/vn.c
+2-1sys/sys/param.h
+7-154 files

DragonFlyBSD/src ab499a6. Makefile.inc1

Makefile.inc1: Abort building if MAKEOBJDIRPREFIX not set as an env var

As described in <bsd.obj.mk>, MAKEOBJDIRPREFIX works properly only if
set as an *environment* variable, not as a global or command-line
variable.  This change adds a check for MAKEOBJDIRPREFIX and aborts the
building if it's specified as a make variable on the command line.

Although build(7) lists quite a few environment variables, but most of
them (e.g., KERNCONF, DESTDIR) just work as well when specified as a
make variable.  However, MAKEOBJDIRPREFIX is special and doesn't work
in the same way.

We decided to simply abort the building if MAKEOBJDIRPREFIX is
mis-specified, being simple and following build(7) as well, although we
can also convert it to an environment variable by using:

        .MAKEOVERRIDES:= ${.MAKEOVERRIDES:NMAKEOBJDIRPREFIX}
        .export MAKEOBJDIRPREFIX

Discussed-with: swildner
DeltaFile
+8-0Makefile.inc1
+8-01 files

DragonFlyBSD/src 52ef6d3. Makefile.inc1

Makefile.inc1: Abort building if MAKEOBJDIRPREFIX not set as an env var

As described in <bsd.obj.mk>, MAKEOBJDIRPREFIX works properly only if
set as an *environment* variable, not as a global or command-line
variable.  This change adds a check for MAKEOBJDIRPREFIX and aborts the
building if it's specified as a make variable on the command line.

Although build(7) lists quite a few environment variables, but most of
them (e.g., KERNCONF, DESTDIR) just work as well when specified as a
make variable.  However, MAKEOBJDIRPREFIX is special and doesn't work
in the same way.

We decided to simply abort the building if MAKEOBJDIRPREFIX is
mis-specified, being simple and following build(7) as well, although we
can also convert it to an environment variable by using:

        .MAKEOVERRIDES:= ${.MAKEOVERRIDES:NMAKEOBJDIRPREFIX}
        .export MAKEOBJDIRPREFIX

Discussed-with: swildner
DeltaFile
+8-0Makefile.inc1
+8-01 files

DragonFlyBSD/src 27a697fshare/mk bsd.obj.mk

<bsd.obj.mk>: Whitespace cleanups
DeltaFile
+4-4share/mk/bsd.obj.mk
+4-41 files

DragonFlyBSD/src 24a81dd. Makefile.inc1

Makefile.inc1: Adjust _bwcleanup to create ${DESTDIRBASE} for build-all

The 'build-all' target requires ${DESTDIRBASE} exist for writing the
log, so adjust the '_bwcleanup' target to recreate ${DESTDIRBASE} after
cleanup.

This is a follow-up fix to my previous commit
b931e3c28f1501a705efe03cc2a8a6ea4792099d.
DeltaFile
+2-2Makefile.inc1
+2-21 files

DragonFlyBSD/src ad858cbinitrd Makefile

initrd: Use '&&' to chain shell commands to avoid partial failures
DeltaFile
+2-2initrd/Makefile
+2-21 files

DragonFlyBSD/src 2298f74sbin/dhclient bpf.c

Revert "dhclient(8): Fix send_packet() to not convert ip_len/ip_off byteorder"

This reverts commit 683751a6ca60d9dd39c7c6b8c5fd88b8c2d4b5c3.

The commit 2ba12c9ccce24e5186e60a8be059faf55cd27e21 mentioned in the
reverted commit was in the master/6.5 branch and didn't affect the 6.4
stable branch.
DeltaFile
+9-0sbin/dhclient/bpf.c
+9-01 files

DragonFlyBSD/src 683751asbin/dhclient bpf.c

dhclient(8): Fix send_packet() to not convert ip_len/ip_off byteorder

After commit 2ba12c9ccce24e5186e60a8be059faf55cd27e21, kernel requires
the 'ip_len' and 'ip_off' fields in the network byte order.

This fixes the 'send_packet: Invalid argument' error appeared upon lease
renewal.

This reverts commit c02c89a76ecc16d518c56d610e571018048a43dd .
DeltaFile
+0-9sbin/dhclient/bpf.c
+0-91 files

DragonFlyBSD/src 500b5a7sbin/dhclient bpf.c

dhclient(8): Fix send_packet() to not convert ip_len/ip_off byteorder

After commit 2ba12c9ccce24e5186e60a8be059faf55cd27e21, kernel requires
the 'ip_len' and 'ip_off' fields in the network byte order.

This fixes the 'send_packet: Invalid argument' error appeared upon lease
renewal.

This reverts commit c02c89a76ecc16d518c56d610e571018048a43dd .
DeltaFile
+0-9sbin/dhclient/bpf.c
+0-91 files

DragonFlyBSD/src 0969469sbin/ping ping.c

ping(8): Fix pr_iph() to use ntohs() for ip_off field

The ip_off (flags + fragment offset) is a 16-bit field, so we should use
ntohs() instead of ntohl() to read it.

See also: https://reviews.freebsd.org/D38479
DeltaFile
+3-3sbin/ping/ping.c
+3-31 files

DragonFlyBSD/src 52d6fee. Makefile.inc1

Makefile.inc1: Remove obsolete comment about '.makeenv'
DeltaFile
+0-3Makefile.inc1
+0-31 files

DragonFlyBSD/src b931e3c. Makefile.inc1

Makefile.inc1: Fix build-all/install-all/buildportschroot log directory

The log directory was ${GENLOGDIR} which hardcoded the "/usr/obj"
top-level directory.  If user defines a custom MAKEOBJDIRPREFIX, the
GENLOGDIR would become wrong.  Fix the issue by replacing GENLOGDIR with
DESTDIRBASE.  In addition, remove the unnecessary 'mkdir ${GENLOGDIR}'.

While there, change the 'ldconfig' command in chroot to be
'/bin/sh -c "rcrestart ldconfig"', aligning with the one used in
nrelease/Makefile.
DeltaFile
+20-23Makefile.inc1
+20-231 files

DragonFlyBSD/src 6062496. Makefile.inc1

Makefile.inc1: Remove obsolete build-tools remnants

The build-tools was disabled and marked obsolete by zrj in commit
ce2989fe1212f664d615268edc64a57801fc7404, and then was removed by dillon
in commit 2a89766ae0591bf31ec51e6298cf4e4d050f4a1a, leaving only the
undefined BTOOLSDIRS.

This commit removes the remnants.
DeltaFile
+12-57Makefile.inc1
+12-571 files

DragonFlyBSD/src 52c924blib/libc/secure stack_protector.c

libc: Remove unused <sys/sysctl.h> header from stack_protector.c
DeltaFile
+0-1lib/libc/secure/stack_protector.c
+0-11 files

DragonFlyBSD/src bc10b6egnu/usr.bin/cc47/cc_prep auto-host.h, gnu/usr.bin/cc47/libcpp config.h

gnu: Fix libcpp/config.h and cc_prep/auto-host.h for unlocked stdio

This change was missed in commit 794d56434eb286a928220fda3d0eec22f5c8b9a2.
DeltaFile
+5-5gnu/usr.bin/cc47/cc_prep/auto-host.h
+5-5gnu/usr.bin/cc47/libcpp/config.h
+5-5gnu/usr.bin/cc80/cc_prep/auto-host.h
+5-5gnu/usr.bin/cc80/support-libs/libcpp/config.h
+20-204 files

DragonFlyBSD/src 8dd5dbcsys/dev/virtual/virtio/virtio virtqueue.c

virtio: Fix cpu_lfence() wrong placement in virtqueue_dequeue()

The cpu_lfence() should be placed just after reading the 'used->idx',
before the 'vq_used_cons_idx' equality check and 'used->ring[]' access.
This is the correct use pattern of lfence.

More importantly, this fix an infinite loop in virtqueue_poll() that
happened when GCC 12.5 inlined the whole virtqueue_dequeue().  GCC
thought 'vq->vq_ring.used->idx' wouldn't change during the loop, so
hoisted the 'if (vq->vq_used_cons_idx == vq->vq_ring.used->idx)' into
its own loop and thus an infinite loop.

Maybe it's better to use atomic ops to read the 'vq_ring.used->idx' and
'vq_ring.used->flags' fields, which are updated by the host side.  Need
to investigate this later.
DeltaFile
+4-2sys/dev/virtual/virtio/virtio/virtqueue.c
+4-21 files

DragonFlyBSD/src 6e99b78sbin/ping ping.c

ping(8): Fix pr_iph() to use ntohs() for ip_off field

The ip_off (flags + fragment offset) is a 16-bit field, so we should use
ntohs() instead of ntohl() to read it.

See also: https://reviews.freebsd.org/D38479
DeltaFile
+3-3sbin/ping/ping.c
+3-31 files

DragonFlyBSD/src 9ef3d71sys/sys serialize2.h serialize.h

<sys/serialize.h>, <sys/serialize2.h>: Add missing license header
DeltaFile
+34-0sys/sys/serialize2.h
+33-0sys/sys/serialize.h
+67-02 files

DragonFlyBSD/src 467c5b0usr.sbin/traceroute traceroute.c

traceroute(8): Fix ip_len byteorder to network order

Commit 2ba12c9ccce24e5186e60a8be059faf55cd27e21 changed the kernel to
accept 'ip_len' in the network byte order.  That commit adjusted ping(8)
but missed traceroute(8).

Without this fix, traceroute(8) simply failed with sendto() returning
the EINVAL errno.

While there, simply assign 0 instead of htons(0) to ip_off field.
DeltaFile
+2-2usr.sbin/traceroute/traceroute.c
+2-21 files