Commit Graph

10983 Commits (trunk)

Author SHA1 Message Date
roy 76a8def0a9 Sync with dhcpcd-10.0.8 2024-05-24 16:09:09 +00:00
roy ed7347c8ff Update to dhcpcd-10.0.8 with the following fixes:
* Fixed compile without ARP
 * Fixed spelling of ADVERTISEMENT
2024-05-24 16:07:42 +00:00
roy 31430cea00 Sync with dhcpcd-10.0.7 2024-05-24 11:30:29 +00:00
roy 4dcbd9d51d Update to dhcpcd-10.0.7 with the following changes:
* DHCP: use request_time, fallback_time and ipv4ll_time rather than reboot timeout
* DHCP6: Wait for IRT to elapse before requesting advertisments
* DHCPv6: Don't re-INFORM if the RA changes
* privsep: Reduce fd use
* dhcpcd: Add support for arp persist defence
* Move dhcp(v4) packet size check earlier
* Define the Azure Endpoint and other site-specific options
* add RFC4191 support by @goertzenator in #297
* dhcpcd: Respect IPV6_PREFERRED_ONLY flag regardless of state
* Fix time_offset to be int to match RFC-2132
* hooks/30-hostname: Exit with 0 if setting hostname is not needed
2024-05-24 11:28:00 +00:00
andvar cc8d93b4cd agrep(1): remove duplicated and obsolete imports.
dirent import is the only one which stays in the odd location.

Part of PR bin/53513.
2024-05-24 07:52:45 +00:00
andvar 45e3b02ce0 agrep(1): rewrite binary check introduced with recursive search on rev 1.3 to
match more closely grep(1) implementation. Instead of opening and scanning
full file every time, check for the \0 symbol once the file buffer is filled up
for the first time.

Patch fixes stdin, adds binary check for it as well, and works more efficiently
(at the cost of not scanning the full file).

Also original implementation forgot to add break if binary file is detected,
causing duplicate binary matches in the output result.

Due to full file scans on each match instead of once for the specific file,
scans may have been considerably slow.

Fixes PR bin/53513

Needs pullups to netbsd-9,-10.

Thanks for the help from mlelstv and dh in reviewing and finalizing the patch.
2024-05-23 22:07:16 +00:00
riastradh 721b426c77 libstdc++: Don't try to fflush stdin in gcc.old libstdc++ either.
PR lib/58206
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114879
2024-05-20 19:36:30 +00:00
riastradh c95d2b6372 libstdc++: Don't try to fflush stdin.
It doesn't work.  It's undefined behaviour.  On NetBSD, it will fail
with EBADF, if fd 0 isn't open for write, or if fd 0 is open for
write, it will write heap garbage to fd 0.

   If stream points to an output stream or an update stream in which
   the most recent operation was not input, the fflush function causes
   any unwritten data for that stream to be delivered to the host
   environment to be written to the file; otherwise, the behavior is
   undefined.

   (ISO C11 and ISO C17, Sec. 7.21.5.2 `The fflush function')

PR lib/58206
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114879
2024-05-20 11:20:53 +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
nia 6543f2f229 stop using and linking against libXxf86misc
support for this extension was removed from xorg in 2008,
our xorg-server and our xorg-server.old can't use it.
2024-05-09 06:34:50 +00:00
christos 1faf623fbf fix clang lint build (except for the programs that enables -T) 2024-05-08 16:53:34 +00:00
riastradh 633172aec9 makeinfo: Avoid ambiguous bracelessness.
/home/source/ab/HEAD-llvm/src/external/gpl2/texinfo/dist/makeinfo/index.c:526:5: error: add explicit braces to avoid dangling else [-Werror,-Wdangling-else]
    else if ((*elt1)->defining_line > (*elt2)->defining_line)
    ^
/home/source/ab/HEAD-llvm/src/external/gpl2/texinfo/dist/makeinfo/index.c:531:5: error: add explicit braces to avoid dangling else [-Werror,-Wdangling-else]
    else if ((*elt1)->entry_number > (*elt2)->entry_number)
    ^
2024-05-05 15:26:20 +00:00
riastradh 7dfe87249e mesa: Build with -Wno-error=typedef-redefinition.
While here, use CWARNFLAGS.clang instead of an explicit conditional.

In file included from 110_blorp_exec.c:33:
In file included from /home/source/ab/HEAD-llvm/xsrc/external/mit/MesaLib/dist/src/intel/blorp/blorp_genX_exec.h:27:
In file included from /home/source/ab/HEAD-llvm/xsrc/external/mit/MesaLib/dist/src/intel/blorp/blorp_priv.h:30:
/home/source/ab/HEAD-llvm/xsrc/external/mit/MesaLib/dist/src/compiler/nir/nir.h:3840:3: error: redefinition of typedef 'nir_shader' is a C11 feature [-Werror,-Wtypedef-redefinition]
} nir_shader;
  ^
/home/source/ab/HEAD-llvm/xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_compiler.h:41:27: note: previous definition is here
typedef struct nir_shader nir_shader;
                          ^
2024-05-05 15:25:31 +00:00
uwe 0e6468a0fd ctfmerge: obey CTFMERGE_TERMINATE_NO_UNLINK as a tool too 2024-05-04 18:22:59 +00:00
uwe 3af74e3469 ctfmerge(1): brush up markup 2024-05-04 18:20:44 +00:00
christos 8a0c0d837a Document environment variable use. 2024-05-04 13:11:41 +00:00
christos 9c1705ca7b add an environment variable to override the number ot threads. 2024-05-03 15:50:42 +00:00
christos 79cacd8776 Allow c99 array designators 2024-05-01 21:34:48 +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
maya acbe8419a2 Remove documentation for long removed -F option
Suggested by Robert Whitlock in PR bin/58177

I've sent this patch to the nvi maintainers but the response suggested
patching this downstream, as there would be no further releases of nvi.
2024-04-29 00:50:42 +00:00
rillig 3a6d2122c6 dri: disable lint 2024-04-26 17:22:26 +00:00
rillig 58b62ac6a6 gallium: disable lint 2024-04-26 16:34:17 +00:00
hgutch fa9aaa8d4e Fix gcc build on FreeBSD 14 (and possibly other systems using clang >= 16).
Pointed out by Eirik Øverby.

OK mrg@
2024-04-24 16:48:29 +00:00
nia 4707556686 it's netbsd-11, time for a slightly less eye-bleeding shade of orange 2024-04-24 10:35:13 +00:00
maya 5077947004 mesa21: link against libxcb-sync for missing symbols
Not super obvious in practice, but it does show if you run GL programs
with LD_BIND_NOW.
2024-04-22 03:38:49 +00:00
rillig d122acbd72 libntf: make MKREPRO timestamp compatible with NetBSD 10
In NetBSD 10, make(1) cannot handle :gmtime arguments that are
expressions, resulting in the error message "Unknown modifier '1'".
2024-04-21 17:19:52 +00:00
maya 102a662e07 Mesa 21: Add some intel files so we don't have missing symbols
seen as error messages when running "glxgears" on intel.

This also avoids graphical corruption (changed areas of terminal
emulator take a few seconds to gradually update) when the modesetting
driver is explicitly chosen.
2024-04-21 00:23:23 +00:00
rillig 7202b80324 libntp: clean up MKREPRO_TIMESTAMP handling
NetBSD's make has built-in support for formatting timestamps, so use
that instead of relying on an external tool.  The month name is still
always in the C locale, and possible errors are reported in the affected
line, due to the ':=' assignment operator.

Without the ':=' assignment operator, the intermediate variable would
not be necessary, but in that case, make's error handling is broken and
unspecific.
2024-04-20 08:03:08 +00:00
jakllsch 466d1a15ac fix copy/paste-o 2024-04-19 16:04:28 +00:00
jakllsch 7386dcbbb8 Increase MKREPRO robustness
- Use C locale to ensure month abbreviations are as expected
 - bail out if MKREPRO_TIMESTAMP is not defined
 - bail out if resulting __DATE__/__TIME__ replacement strings are empty
2024-04-19 14:58:18 +00:00
jakllsch 05916288da The substitute __DATE__ should be %b %e %Y per a C18 draft
Subtle change that won't make a functional difference in this case;
changed only for semantic correctness.
2024-04-19 13:34:15 +00:00
christos b844656e78 PR/58170: Yoshitaka Tokugawa: Remove blocking statement when the requestor
asks for for an address that is in the cache and that access is prevented
by a cache acl because the querier has no way to know that this access is
denied, so it is not an abuse.
2024-04-19 12:35:28 +00:00
jakllsch 1784c46724 Format MKREPRO_TIMESTAMP with "%b %d %Y" to correctly substitute __DATE__ 2024-04-18 19:23:53 +00:00
jakllsch 2c9c248e72 Install xsetwallpaper(1) manual page
Should fix PR 58172.
2024-04-18 19:17:14 +00:00
christos 0b7c760b94 Add comparison function so that it can be used to provide a stable sort
(Jan-Benedict Glaw)
2024-04-16 23:43:08 +00:00
christos 2f8da1f3f1 fix compat build of filter-aaaa.so.0 2024-04-16 19:15:36 +00:00
riastradh a5106e9076 opensolaris/sys/sys/elf.h: Omit needless __ELF_WORD_SIZE. 2024-04-16 14:29:33 +00:00
simonb 586f421948 Add a newline to a printf message. 2024-04-15 08:06:36 +00:00
kre d2a7bfe14b Revert previous until Christos has a chance to work out why it breaks
the builds.
2024-04-14 08:29:54 +00:00
christos f68fe2325c Don't build/install the compat plugin. 2024-04-13 17:22:33 +00:00
jakllsch 308afeb1b5 remove now-unused assignment 2024-04-12 19:06:45 +00:00
christos 72e5ca92c9 Now that the bug in bsd.lib.mk, MAKELINKLIB is not needed anymore (as it
should not be). Pointed out by kre@
2024-04-09 22:38:17 +00:00
christos 11b31797aa make qsort sorting deterministic 2024-04-07 12:30:38 +00:00
rillig c070e60d9e flex.1: fix single-bit error in contributor name 2024-04-05 22:21:40 +00:00
christos e84b33b8b9 break strength ties so that qsort is deterministic 2024-04-05 16:56:58 +00:00
kre 40580391fd Revert last, the .pic file is used elsewhere. 2024-04-05 12:03:24 +00:00
simonb dcc7d3f968 Apply FreeBSD svn r373278 fix for ZFS corruption. Fix for NetBSD
PR kern/58111 .

It would be extremely unlikely to trip this bug on NetBSD, as we don't
expose SEEK_DATA and SEEK_HOLE and you need to call ioctl(2) with
FIOSEEKDATA and FIOSEEKHOLE directly which no currently known code does,
and even then be unlucky enough to trip a race condition.

With a reproducer based on that in https://www.illumos.org/issues/16087,
I saw 11 groups of failures over 8 hours.  With this patch, no
failures in 10 hours.  The repro for NetBSD will be attached to
https://gnats.netbsd.org/58111 .

Original FreeBSD commit message:
--------------------------------
dnode_is_dirty: check dnode and its data for dirtiness

Over its history this the dirty dnode test has been changed between
checking for a dnodes being on `os_dirty_dnodes` (`dn_dirty_link`) and
`dn_dirty_record`.

It turns out both are actually required.

In the case of appending data to a newly created file, the dnode proper
is dirtied (at least to change the blocksize) and dirty records are
added.  Thus, a single logical operation is represented by separate
dirty indicators, and must not be separated.

The incorrect dirty check becomes a problem when the first block of a
file is being appended to while another process is calling lseek to skip
holes. There is a small window where the dnode part is undirtied while
there are still dirty records. In this case, `lseek(fd, 0, SEEK_DATA)`
would not know that the file is dirty, and would go to
`dnode_next_offset()`. Since the object has no data blocks yet, it
returns `ESRCH`, indicating no data found, which results in `ENXIO`
being returned to `lseek()`'s caller.

This change simply updates the dirty check to check both types of dirty.
If there's anything dirty at all, we immediately go to the "wait for
sync" stage, It doesn't really matter after that; both changes are on
disk, so the dirty fields should be correct.

Sponsored by:   Klara, Inc.
Sponsored by:   Wasabi Technology, Inc.
2024-04-05 11:20:34 +00:00
christos 510d1ca606 Just build the staticlib. 2024-04-05 11:04:37 +00:00
christos c998d55824 Fold long line 2024-04-05 11:04:19 +00:00
kre 390195052f Probable hack fix for current build breakage.
Make sure to build external/mit before external/mpl (as bind in mpl
needs libuv from mit) and in mit/libuv make sure to build the
static library with the new MAKESTATICLIB mechanism, as that is
what bind needs.
2024-04-05 08:51:27 +00:00