CVS: cvs.openbsd.org: src

2023-10-23 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2023/10/23 16:57:51

Modified files:
share/man/man7 : man.7 

Log message:
Remove the statement that .TQ was "rarely used even in GNU manual pages".

It appears the Linux Manual Pages project started to quite aggressively
use .TQ ever for cases where it not only provides no value, but makes
formatting worse even when it formats as intended.  It's also a bad idea
to use it that aggressively because .TQ has particularly catastrophic
formatting behaviour on formatters (other than groff and mandoc) that do
not support it: It essentially has the effect of omitting the topic of
the discussion from the formatted version of the manual page, but in
such a way that it does not become apparent to the reader that anything
is missing.

But whether this is wise or stupid is their problem and none of our
business.  Either way, we should not call a thing "rarely used"
after that is no longer true.

Thanks to Alejandro Colomar 
for making me aware that the statement is no longer true.



CVS: cvs.openbsd.org: src

2023-10-23 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2023/10/23 15:59:00

Modified files:
gnu/usr.bin/cvs/src: rcscmds.c 

Log message:
Do not print "retrieving revision 1.13" while doing cvs diff.

Provide shorter diffs without unnecessary debugging output.
Note that this affects cvs installed on the server side.

OK deraadt@



Re: CVS: cvs.openbsd.org: src

2023-10-23 Thread Marc Espie
On Mon, Oct 23, 2023 at 01:12:09PM -0400, Daniel Jakots wrote:
> On Mon, 23 Oct 2023 02:38:14 -0600 (MDT), Marc Espie
>  wrote:
> 
> > CVSROOT:/cvs
> > Module name:src
> > Changes by: es...@cvs.openbsd.org   2023/10/23 02:38:14
> > 
> > Modified files:
> > usr.sbin/pkg_add/OpenBSD: AddCreateDelete.pm 
> > 
> > Log message:
> > split on spaces as well, to take advantage of +=
> > 
> 
> I just updated a machine and now pkg_add fails:
> 
> # pkg_add -u
> syntax error at /usr/libdata/perl5/OpenBSD/Subst.pm line 54, near "" $v")"
> Compilation failed in require at /usr/libdata/perl5/OpenBSD/State.pm line 73.
> BEGIN failed--compilation aborted at /usr/libdata/perl5/OpenBSD/State.pm line 
> 73.

Yeah, not sure how I managed to fuck that one. Fixed for real



CVS: cvs.openbsd.org: src

2023-10-23 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/10/23 15:53:54

Modified files:
usr.sbin/pkg_add/OpenBSD: Subst.pm 

Log message:
sorry, somehow I did redo this line badly and didn't retest



CVS: cvs.openbsd.org: src

2023-10-23 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2023/10/23 14:40:24

Modified files:
gnu/llvm/libcxxabi/src: cxa_guard_impl.h 

Log message:
create __OpenBSD__ versions that use futex() with the correct number
of arguments and without using syscall().  the glibc people should be
ashamed of the mess they created.
ok miod



CVS: cvs.openbsd.org: src

2023-10-23 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2023/10/23 14:15:36

Modified files:
regress/usr.bin/mandoc/roff/esc: w.out_ascii 

Log message:
once again, i forgot to update the date in the footer



CVS: cvs.openbsd.org: src

2023-10-23 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2023/10/23 14:07:19

Modified files:
usr.bin/mandoc : roff.c 
share/man/man7 : roff.7 
regress/usr.bin/mandoc/roff/esc: w.in w.out_ascii w.out_lint 

Log message:
Support some escape sequences, in particular character escape sequences,
inside \w arguments, and skip most other escape sequences when measuring
the output length in this way because most escape sequences contribute
little or nothing to text width: for example, consider font escapes in
terminal output.

This implementation is very rudimentary.  In particular, it assumes that
every character has the same width.  No attempt is made to detect
double-width or zero-width Unicode characters or to take dependencies on
output devices or fonts into account.  These limitations are hard to
avoid because mandoc has to interpolate \w at the parsing stage when the
output device is not yet known.  I really do not want the content of the
syntax tree to depend on the output device.

Feature requested by Paul , who also
submitted a patch, but i chose to commit this very different patch
with almost the same functionality.
His input was still very valuable because complete support for \w is
out of the question, and consequently, the main task is identifying
subsets of the feature that are needed for real-world manual pages
and can be supported without uprooting the whole forest.



CVS: cvs.openbsd.org: src

2023-10-23 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/10/23 13:45:28

Modified files:
usr.sbin/pkg_add/OpenBSD: Subst.pm 

Log message:
Revert Subst.pm r1.22. It broke ordinary pkg_add usage



Re: CVS: cvs.openbsd.org: src

2023-10-23 Thread Solène Rapenne

On 23/10/2023 19:12, Daniel Jakots wrote:

On Mon, 23 Oct 2023 02:38:14 -0600 (MDT), Marc Espie
 wrote:


CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/10/23 02:38:14

Modified files:
usr.sbin/pkg_add/OpenBSD: AddCreateDelete.pm

Log message:
split on spaces as well, to take advantage of +=



I just updated a machine and now pkg_add fails:

# pkg_add -u
syntax error at /usr/libdata/perl5/OpenBSD/Subst.pm line 54, near "" $v")"
Compilation failed in require at /usr/libdata/perl5/OpenBSD/State.pm line 73.
BEGIN failed--compilation aborted at /usr/libdata/perl5/OpenBSD/State.pm line 
73.
Compilation failed in require at /usr/libdata/perl5/OpenBSD/AddCreateDelete.pm 
line 26.
BEGIN failed--compilation aborted at 
/usr/libdata/perl5/OpenBSD/AddCreateDelete.pm line 26.
Compilation failed in require at /usr/libdata/perl5/OpenBSD/AddDelete.pm line 
60.
BEGIN failed--compilation aborted at /usr/libdata/perl5/OpenBSD/AddDelete.pm 
line 60.
Compilation failed in require at /usr/libdata/perl5/OpenBSD/PkgAdd.pm line 22.
BEGIN failed--compilation aborted at /usr/libdata/perl5/OpenBSD/PkgAdd.pm line 
22.
Compilation failed in require at (eval 1) line 1.

could it be related?

Cheers,
Daniel



I don't think so, if I revert the following commit pkg_add works again 
on my machine


CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/10/23 02:37:45

Modified files:
usr.sbin/pkg_add/OpenBSD: Subst.pm

Log message:
add some limited capability to -DVAR+=value
to be used with REGRESSION_TESTING, where it's somewhat inconvenient to
know the full list in advance.



Re: CVS: cvs.openbsd.org: src

2023-10-23 Thread Daniel Jakots
On Mon, 23 Oct 2023 02:38:14 -0600 (MDT), Marc Espie
 wrote:

> CVSROOT:  /cvs
> Module name:  src
> Changes by:   es...@cvs.openbsd.org   2023/10/23 02:38:14
> 
> Modified files:
>   usr.sbin/pkg_add/OpenBSD: AddCreateDelete.pm 
> 
> Log message:
> split on spaces as well, to take advantage of +=
> 

I just updated a machine and now pkg_add fails:

# pkg_add -u
syntax error at /usr/libdata/perl5/OpenBSD/Subst.pm line 54, near "" $v")"
Compilation failed in require at /usr/libdata/perl5/OpenBSD/State.pm line 73.
BEGIN failed--compilation aborted at /usr/libdata/perl5/OpenBSD/State.pm line 
73.
Compilation failed in require at /usr/libdata/perl5/OpenBSD/AddCreateDelete.pm 
line 26.
BEGIN failed--compilation aborted at 
/usr/libdata/perl5/OpenBSD/AddCreateDelete.pm line 26.
Compilation failed in require at /usr/libdata/perl5/OpenBSD/AddDelete.pm line 
60.
BEGIN failed--compilation aborted at /usr/libdata/perl5/OpenBSD/AddDelete.pm 
line 60.
Compilation failed in require at /usr/libdata/perl5/OpenBSD/PkgAdd.pm line 22.
BEGIN failed--compilation aborted at /usr/libdata/perl5/OpenBSD/PkgAdd.pm line 
22.
Compilation failed in require at (eval 1) line 1.

could it be related?

Cheers,
Daniel



CVS: cvs.openbsd.org: www

2023-10-23 Thread Theo de Raadt
CVSROOT:/cvs
Module name:www
Changes by: dera...@cvs.openbsd.org 2023/10/23 09:58:58

Modified files:
.  : donations.html 

Log message:
delete a donation which apparently was a not a donation, but
xsupported a belief that I can be ordered around to do things.



CVS: cvs.openbsd.org: www

2023-10-23 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:www
Changes by: schwa...@cvs.openbsd.org2023/10/23 08:58:57

Modified files:
build  : support.dat 
.  : support.html 

Log message:
Drop the dead link to mpi@'s former website; requested by mpi@.
The mail domain is still active.



CVS: cvs.openbsd.org: src

2023-10-23 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2023/10/23 07:07:44

Modified files:
usr.sbin/bgpd  : flowspec.c 

Log message:
Use xoff instead of *olen in the shift_right() call. xoff is the right
value here since *olen is (conditionally) set a few lines later to the
same value as xoff.

Should fix the CodeQL warnings because *olen is dereferenced without
proper NULL check.

OK tb@



CVS: cvs.openbsd.org: www

2023-10-23 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:www
Changes by: schwa...@cvs.openbsd.org2023/10/23 06:17:18

Modified files:
.  : support.html 

Log message:
sync



CVS: cvs.openbsd.org: www

2023-10-23 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:www
Changes by: schwa...@cvs.openbsd.org2023/10/23 06:16:01

Modified files:
build  : support.dat 

Log message:
new entry: solene@



CVS: cvs.openbsd.org: www

2023-10-23 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:www
Changes by: schwa...@cvs.openbsd.org2023/10/23 06:11:11

Modified files:
build  : support.dat 

Log message:
French entries: sort by departement, break long lines;
drop obsolete HTML syntax "" from one other entry



CVS: cvs.openbsd.org: src

2023-10-23 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2023/10/23 05:30:49

Modified files:
regress/usr.bin/ssh: conch-ciphers.sh 

Log message:
Use private key that is allowed by sshd defaults in conch interop tests.

ok dtucker@



CVS: cvs.openbsd.org: src

2023-10-23 Thread Vitaliy Makkoveev
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2023/10/23 04:22:06

Modified files:
sys/net: if_wg.c 

Log message:
Prevent wg(4) stuck on peer destruction.

While interface going down and output stopped, packets could rest in
`if_snd' queue. So the (!ifq_empty(>sc_if.if_snd)) condition will
always be true and wg_peer_destroy() will sleep until interface became
up and stuck packets transmitted.

Check IFF_RUNNING flag within (!ifq_empty(>sc_if.if_snd)) loop in
wg_peer_destroy(). If the flag is not set that means interface is down,
so drain the `if_snd' queue manually to prevent wg_peer_destroy() stuck.

Problem reported and fix tested by Kirill Miazine.

ok bluhm@



CVS: cvs.openbsd.org: src

2023-10-23 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/10/23 02:38:58

Modified files:
regress/usr.sbin/pkg_add: Makefile 

Log message:
use more natural (and new) += with REGRESSION_TESTING



CVS: cvs.openbsd.org: src

2023-10-23 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/10/23 02:38:14

Modified files:
usr.sbin/pkg_add/OpenBSD: AddCreateDelete.pm 

Log message:
split on spaces as well, to take advantage of +=



CVS: cvs.openbsd.org: src

2023-10-23 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2023/10/23 02:37:45

Modified files:
usr.sbin/pkg_add/OpenBSD: Subst.pm 

Log message:
add some limited capability to -DVAR+=value
to be used with REGRESSION_TESTING, where it's somewhat inconvenient to
know the full list in advance.



CVS: cvs.openbsd.org: src

2023-10-23 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2023/10/23 02:12:00

Modified files:
usr.bin/tmux   : screen-write.c window.c 

Log message:
Unzoom window at start of destroy so it doesn't happen later (when
destroying panes) after the layout has been freed, GitHub issue 3717.



CVS: cvs.openbsd.org: www

2023-10-23 Thread David Gwynne
CVSROOT:/cvs
Module name:www
Changes by: d...@cvs.openbsd.org2023/10/23 00:25:49

Modified files:
.  : want.html 

Log message:
i have a RB450Gx4 now.