Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (4h)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 07:33:45 UTC Now

2023-06-06 06:59:39 UTC MAIN commitmail json YAML

indent: simplify handling of comments

No functional change.

(rillig)

2023-06-06 06:51:44 UTC MAIN commitmail json YAML

indent: split printing of comments into smaller functions

No functional change.

(rillig)

2023-06-06 06:51:00 UTC MAIN commitmail json YAML

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.

(pgoyette)

2023-06-06 05:39:49 UTC MAIN commitmail json YAML

tests/indent: comments with trailing whitespace may fit in a single line

(rillig)

2023-06-06 05:27:56 UTC MAIN commitmail json YAML

indent: condense code for writing tabs

No functional change.

(rillig)

2023-06-06 05:11:11 UTC MAIN commitmail json YAML

2023-06-06 04:37:27 UTC MAIN commitmail json YAML

2023-06-05 22:36:59 UTC MAIN commitmail json YAML

bsd.README: update to reality, sync from mk.conf(5)

Sync user variables from mk.conf(5), sorted.
(Arguably this could just refer to mk.conf(5)
or share/man/man5/mk.conf.5 and remove the copypasta.)

Document NOxxx overrides in own subsection.

Unexpand tabs, tweak after.

(lukem)

2023-06-05 22:36:17 UTC MAIN commitmail json YAML

BUILDING: editorial

MKX11=yes wants MKINET6=yes

Change the width of the variable lists to 14n (from 15n)
so that when the lists are rendered and then left aligned,
the column is 16 characters (aka 2 tabs) which makes
copypasta to bsd.README easier.

(lukem)

2023-06-05 22:35:20 UTC MAIN commitmail json YAML

mk.conf(5): editorial

MKDTB and MKPIE are .YorN.
MKX11=yes wants MKINET6=yes.
MKLINKLIB deserves a dash list (like bsd.README).

Expand per bsd.README: MKSTATICPIC, MKUNPRIVED,
MKX11, MKZFS, USE_LIBCSANITIZER, USE_SSP

Change the width of the variable lists to 14n (from 15n)
so that when the lists are rendered and then left aligned,
the column is 16 characters (aka 2 tabs) which makes
copypasta to bsd.README easier.

(lukem)

2023-06-05 20:56:18 UTC MAIN commitmail json YAML

indent: in 'if (expr)', the parentheses do not form a cast expression

No functional change.  When stepping through the code in debug mode, it
was just too confusing that indent would log an 'unknown cast' in this
situation.

(rillig)

2023-06-05 18:16:07 UTC MAIN commitmail json YAML

Fix previous comment fix, which broke a comment.

(martin)

2023-06-05 16:26:05 UTC MAIN commitmail json YAML

We cannot handle input with precision != stride yet.
Drain input buffer for unhandled input.

(mlelstv)

2023-06-05 15:02:54 UTC MAIN commitmail json YAML

tests/indent: add test for left-justifying declarations

(rillig)

2023-06-05 14:40:14 UTC MAIN commitmail json YAML

indent: improve layout of debug output

(rillig)

2023-06-05 14:22:26 UTC MAIN commitmail json YAML

indent: sync debug output with parser state

(rillig)

2023-06-05 13:59:55 UTC MAIN commitmail json YAML

Un-comment the ident line

(pgoyette)

2023-06-05 12:06:51 UTC MAIN commitmail json YAML

indent: clean up comments

(rillig)

2023-06-05 12:05:01 UTC MAIN commitmail json YAML

2023-06-05 12:01:34 UTC MAIN commitmail json YAML

2023-06-05 11:59:13 UTC MAIN commitmail json YAML

/etc/rc.d/sshd: Use default curve for ECDSA keygen, not NIST P-521.

The default is NIST P-256, which:

(a) has plenty of cryptanalytic security,
(b) performs better on essentially all platforms (smaller enough that
    even the advantage of the Mersenne prime structure of P-521 can't
    compete), and
(c) likely gets more scrutiny on implementations than P-521 since it's
    more widespread.

(riastradh)

2023-06-05 11:51:20 UTC MAIN commitmail json YAML

/etc/rc.d/sshd: Stop generating DSA host keys by default.

If you want them you can generate them yourself, but in this day and
age (Monday and 2023, specifically) there's no reason to be using DSA
except for compatibility with ancient legacy software.

(riastradh)

2023-06-05 10:12:21 UTC MAIN commitmail json YAML

2023-06-05 09:41:40 UTC MAIN commitmail json YAML

2023-06-05 09:10:31 UTC MAIN commitmail json YAML

indent: make heuristics for '*' pointer types simpler

Previously, a '}' token did not reset the state machine, but it should.

(rillig)

2023-06-05 08:22:01 UTC MAIN commitmail json YAML

2023-06-05 08:10:25 UTC MAIN commitmail json YAML

tests/indent: add tests for 'do-while' loops

(rillig)

2023-06-05 07:35:05 UTC MAIN commitmail json YAML

2023-06-05 07:23:03 UTC MAIN commitmail json YAML

2023-06-05 06:43:14 UTC MAIN commitmail json YAML

indent: let the output routines keep track of the indentation

No functional change.

(rillig)

2023-06-05 04:59:46 UTC MAIN commitmail json YAML

Make DEBUG_FFS_MOUNT compile again (with 64-bit ino_t).

(rin)

2023-06-05 03:51:45 UTC MAIN commitmail json YAML

route: run workqueue kthreads with KERNEL_LOCK unless NET_MPSAFE

Without KERNEL_LOCK, rt_timer_work and rt_free_work can run in parallel
with other LWPs running in the network stack, which eventually results
in say use-after-free of a deleted route.

(ozaki-r)

2023-06-05 03:44:48 UTC MAIN commitmail json YAML

- Fix clearing of EINT and other transient flags.

Patches from sc.dying in kern/56115:
- Set proper Max ESIT Payload value for interrupt/isoc endpoint context.
- Set proper Average TRB Length value.
- Not tested on superspeed/superspeedplus isochronous device.

- Add handling of some error paths for isochronous transfers.

(mlelstv)

2023-06-04 23:42:38 UTC MAIN commitmail json YAML

ld.elf_so: Sprinkle more debug messages on dlopen and error.

PR pkg/57445

(riastradh)

2023-06-04 22:57:18 UTC MAIN commitmail json YAML

indent: do not parse '&&&&&&&' as a single binary operator

(rillig)

2023-06-04 22:36:11 UTC MAIN commitmail json YAML

indent: fix '*=' to be a binary operator, not a unary one

(rillig)

2023-06-04 22:20:04 UTC MAIN commitmail json YAML

2023-06-04 22:18:47 UTC MAIN commitmail json YAML

The ATF design is O(N^2) in the number of TCs in one TP, which on some
slower platforms causes the net/ipsec tests to take as much as 30% of
the total time to run all of the ATF tests.  Reduce the number of TCs
in various net/ipsec TPs by iterating over *_ALGORITHMS_MINIMUM rather
than *_ALGORITHMS.  Various of the net/ipsec tests already use the
smaller lists, so change the rest of them to do so as well.

(chs)

2023-06-04 20:51:19 UTC MAIN commitmail json YAML

indent: remove read pointer from buffers that don't need it

The only buffer that needs a read pointer is the current input line in
'inp'.

No functional change.

(rillig)

2023-06-04 20:23:13 UTC MAIN commitmail json YAML

indent: fix out-of-bounds read when reading a comment

(rillig)

2023-06-04 20:08:22 UTC MAIN commitmail json YAML

BUILDING: update from canonical mk.conf(5)

Incorporate content and styles updates for mk.conf entries
from share/man/man5/mk.conf.5, which is the canonical
reference for mk.conf.

Add: BSDOBJDIR, BSDSRCDIR, EXTERNAL_TOOLCHAIN, MKDEBUGKERNEL,
MKDEBUGTOOLS, MKHTML, MKLINKLIB, MKOBJDIRS, TOOLCHAIN_MISSING,
NETBSDSRCDIR

It's for further study as to whether we just replace the
most of subsection "make" variables with a link to mk.conf(5).

Style:
- Add more .de macros per mk.conf.5.
- Order list items alphabetically. When multiple items are present
  in a list item, sort within the item first.
- More cross-references.

(lukem)

2023-06-04 20:04:52 UTC MAIN commitmail json YAML

mk.conf(5): add more from BUILDING and bsd.README

Add from BUILDING or bsd.README:
BUILDINFO, BUILDSEED, EXTERNAL_TOOLCHAIN, MKCROSSGDB,
MKREPRO_TIMESTAMP, TOOLCHAIN_MISSING, X11SRCDIR

Clarify BUILDID.
Improve MKDEBUG, MKOBJ, MKX11, NETBSDSRCDIR, USETOOLS,
Consistent Note: formatting.

(lukem)

2023-06-04 20:02:29 UTC MAIN commitmail json YAML

Avoid using uninitialized variable "symnum" when building with DEBUG
enabled by borrowing the rdbg_symname() macro from arch/x86_64.

(martin)

2023-06-04 19:28:54 UTC MAIN commitmail json YAML

2023-06-04 19:08:49 UTC MAIN commitmail json YAML

indent: remove trailing whitespace from README

(rillig)

2023-06-04 18:58:30 UTC MAIN commitmail json YAML

2023-06-04 17:54:11 UTC MAIN commitmail json YAML

2023-06-04 17:48:05 UTC MAIN commitmail json YAML

llvm tool build: fix warning

-std=c++14 is for HOST_CXXFLAGS not HOST_CPPFLAGS.

Fixes: cc1: warning: command-line option '-std=c++14' is valid for C++/ObjC++ but not for C

(lukem)

2023-06-04 17:02:06 UTC MAIN commitmail json YAML

indent: fix debug output of the parser symbol stack

Even though the stack always contains a stmt_list as first element,
print it nevertheless to avoid confusion about starting at index 1, and
to provide the full picture.

(rillig)

2023-06-04 16:54:00 UTC MAIN commitmail json YAML

tools: revert use of <bsd.hostinit.mk>

tools/Makefile.host revision 1.35 changed from
  setting various NOxxx variables and .include <bsd.own.mk>
to
  .include <bsd.hostinit.mk>
which sets the same NOxxx variables, .include <bsd.init.mk>
which optionally .include ../Makefile.inc before .include <bsd.own.mk>.

This chnage caused build failures with HAVE_LLVM=yes, so revert rev 1.35.
(Maybe to do with the .include ../Makefile.inc. The tools/llvm* build is
tricky, and it's easier to revert this change than debug.)

(lukem)

2023-06-04 16:14:59 UTC MAIN commitmail json YAML

Note kernel build lossage in an unsupported build configuration

(martin)

2023-06-04 14:38:16 UTC MAIN commitmail json YAML

indent: ensure that the 'block init level' never goes negative

No functional change.

(rillig)

2023-06-04 14:20:01 UTC MAIN commitmail json YAML

2023-06-04 13:49:00 UTC MAIN commitmail json YAML

2023-06-04 13:26:07 UTC MAIN commitmail json YAML

2023-06-04 12:46:57 UTC MAIN commitmail json YAML

lint: use separate lexer symbols for 'case' and 'default'

It's not strictly necessary since these tokens behave in the same way,
still, the code is more straight-forward when there are separate tokens.

(rillig)

2023-06-04 11:45:00 UTC MAIN commitmail json YAML

2023-06-04 11:36:50 UTC MAIN commitmail json YAML

mesa: Remove massive kludge that worked around PR toolchain/50277.

Now that the underlying bug in ld.elf_so is fixed, the workaround is
causing harm.

XXX pullup-10

(riastradh)

2023-06-04 11:33:36 UTC MAIN commitmail json YAML

2023-06-04 11:09:18 UTC MAIN commitmail json YAML

2023-06-04 10:23:36 UTC MAIN commitmail json YAML

indent: separate code for handling parentheses and brackets

Handling parentheses is more complicated than for brackets.

(rillig)

2023-06-04 10:00:20 UTC MAIN commitmail json YAML

tools: use <bsd.hostinit.mk> where appropriate

bsd.hostinit.mk sets a bunch of NOxxx variables before
including bsd.init.mk (which includes bsd.own.mk),
so simplify instead of replicating the NOxxx setup
for host tools.

(lukem)

2023-06-04 01:24:58 UTC MAIN commitmail json YAML

Fix interactions of initial-exec TLS model and dlopen

(1) If an initial-exec relocation was used for a non-local symbol
(i.e. the definition of the symbol is in a different DSO), the
computation of the static TLS offset used the wrong DSO.
This would effectively mean the wrong address was computed
(PR toolchain/50277, PR pkg/57445).

Fix this by forcing the computation of the correct DSO (the one defining
the symbol).

This code uses __UNCONST to avoid the vast interface changes for this
special case.

(2) If symbols from a DSO loaded via dlopen are used with both
global-dynamic/local-dynamic and initial-exec relocations AND
a initial-exec relocation was resolved first in a thread, a split brain
situation could exist where the dynamic relocations would use one memory
block (separate allocation) and the initial-exec relocations the static
per-thread TLS space.

(3) If the initial-exec relocation in (2) is seen after any thread has
already used a GD/LD allocation, bail out. Since IE relocations are used
only in the GOT, this will prevent the dlopen. This is a bit more
aggressive than necessary, but a full blown reference counting doesn't
seem to be justified.

(joerg)

2023-06-03 21:44:08 UTC MAIN commitmail json YAML

2023-06-03 21:33:25 UTC MAIN commitmail json YAML

adapt to ${CC_WNO_STRINGOP_TRUNCATION}

(lukem)

2023-06-03 21:33:02 UTC MAIN commitmail json YAML

2023-06-03 21:31:47 UTC MAIN commitmail json YAML

2023-06-03 21:30:25 UTC MAIN commitmail json YAML

2023-06-03 21:28:53 UTC MAIN commitmail json YAML

2023-06-03 21:27:11 UTC MAIN commitmail json YAML

dhcp: remove gcc 8 workaround

(if it's needed, add it back using ${CC_WNO_FORMAT_OVERFLOW})

(lukem)

2023-06-03 21:26:53 UTC MAIN commitmail json YAML

ipmon: remove duplicate warning suppression

(lukem)

2023-06-03 21:26:29 UTC MAIN commitmail json YAML

2023-06-03 21:24:58 UTC MAIN commitmail json YAML

bsd.*.mk: move MKSTRIPSYM default to bsd.own.mk

Add default for MKSTRIPSYM=yes to to bsd.own.mk _MKVARS.no.
Test ${MKSTRIPSYM} != "no".

(lukem)

2023-06-03 21:24:26 UTC MAIN commitmail json YAML

indent: clean up handling of brace indentation

No functional change.

(rillig)

2023-06-03 21:23:50 UTC MAIN commitmail json YAML

bsd.obj.mk: move MKHOSTOBJ to bsd.own.mk

Add default for MKHOSTOBJ=no to to bsd.own.mk _MKVARS.no.
Simplify bsd.obj.mk check.

(lukem)

2023-06-03 21:23:07 UTC MAIN commitmail json YAML

bsd.dep.mk: move MKDEPINCLUDES to bsd.own.mk

Add default for MKDEPINCLUDES=no to to bsd.own.mk _MKVARS.no.
Simplify bsd.dep.mk check.

(lukem)

2023-06-03 21:21:32 UTC MAIN commitmail json YAML

bsd.*.mk: move MKCLEAN* to bsd.own.mk

Move the defaults for MKCLEANSRC and MKCLEANVERIFY
from bsd.clean.mk to bsd.own.mk _MKVARS.yes.

(lukem)

2023-06-03 21:20:53 UTC MAIN commitmail json YAML

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.

(lukem)

2023-06-03 21:08:06 UTC MAIN commitmail json YAML

lint: add query for static variables in functions

This query allows finding hidden global variables, as an easier-to-read
alternative to 'objdump -t'.

(rillig)

2023-06-03 20:58:00 UTC MAIN commitmail json YAML

lint: loosen assertion that unary operators have only a single operand

(rillig)

2023-06-03 20:41:45 UTC MAIN commitmail json YAML

2023-06-03 20:40:28 UTC MAIN commitmail json YAML

lint: use consistent and configurable stream for debug output

(rillig)

2023-06-03 20:28:54 UTC MAIN commitmail json YAML

2023-06-03 19:57:33 UTC MAIN commitmail json YAML

fix typo xbase-obsolet -> xbase-obsolete.

(andvar)

2023-06-03 15:36:22 UTC netbsd-9 commitmail json YAML

2023-06-03 15:34:30 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by andvar in ticket #1641):

external/apache2/mDNSResponder/dist/mDNSShared/PlatformCommon.c: revision 1.7
external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c: revision 1.16

mdnsd(8): restore fixes for PR bin/46758, lost on resolving merge conflicts.

Original commit message from Roy Marples:
"Derive our primary interface and address by trying to connect to an
address in the TEST-NET-2 network as noted in RFC5737 instead of using
the 1.1.1.1 address. Also, use port 7 (echo) for better style.
Fixes PR bin/46758 thanks to Lloyd Parkes."

(martin)

2023-06-03 15:33:41 UTC netbsd-10 commitmail json YAML

2023-06-03 15:32:01 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by andvar in ticket #193):

external/apache2/mDNSResponder/dist/mDNSShared/PlatformCommon.c: revision 1.7
external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c: revision 1.16

mdnsd(8): restore fixes for PR bin/46758, lost on resolving merge conflicts.

Original commit message from Roy Marples:
"Derive our primary interface and address by trying to connect to an
address in the TEST-NET-2 network as noted in RFC5737 instead of using
the 1.1.1.1 address. Also, use port 7 (echo) for better style.
Fixes PR bin/46758 thanks to Lloyd Parkes."

(martin)

2023-06-03 15:27:13 UTC netbsd-9 commitmail json YAML

Pull up the following revisions, requested by kim in ticket #1640:

bin/date/Makefile                              up to 1.16
bin/date/date.1                                up to 1.54
bin/date/date.c                                up to 1.65

Add -R option for displaying time in RFC 5322 format, similar to GNU date.
Add -f option to set the time. From FreeBSD.

(martin)

2023-06-03 15:23:42 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by kim in ticket #192):

bin/date/date.1: revision 1.52
bin/date/date.1: revision 1.53
bin/date/date.1: revision 1.54
bin/date/date.c: revision 1.64
bin/date/date.c: revision 1.65

Add -R option for displaying time in RFC 5322 format, similar to GNU date.

date(1): minor markup fixes

Add -R to usage

date(1): sync two [[[[[CC]yy]mm]dd]HH]MM[.SS] instances
The markup was the same (modulo Li vs Cm for the dot before the
seconds), but use the same source markup grouping/layout in both to
make this fact more obvious.

(martin)

2023-06-03 15:17:31 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by sborrill in ticket #1639):

sys/dev/ipmi.c: revision 1.10

Ignore non-recoverable and critical limits smaller than the warning limits.
These are usually invalid.

Name the limit flags to make code more readable.

(martin)

2023-06-03 15:16:08 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by sborrill in ticket #191):

sys/dev/ipmi.c: revision 1.10

Ignore non-recoverable and critical limits smaller than the warning limits.
These are usually invalid.

Name the limit flags to make code more readable.

(martin)

2023-06-03 15:13:48 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by nat in ticket #190):

sys/external/bsd/drm2/i915drm/intelfb.c: revision 1.25

Use the offset in mmap calculations.
It fixes wsfb(4) when used with intelfb(4).

Ok riastradh@

(martin)

2023-06-03 15:10:56 UTC netbsd-8 commitmail json YAML

2023-06-03 15:09:01 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by abs in ticket #1823):

sys/arch/amiga/stand/loadbsd/loadbsd.c: revision 1.38
distrib/amiga/stand/loadbsd.uue: revision 1.4
sys/arch/amiga/stand/loadbsd/startit.s: revision 1.1
sys/arch/amiga/stand/loadbsd/Makefile: revision 1.5
sys/arch/amiga/stand/loadbsd/vmakefile: revision 1.1
sys/arch/amiga/stand/loadbsd/README: revision 1.6

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.

(martin)

2023-06-03 15:07:53 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by abs in ticket #1638):

sys/arch/amiga/stand/loadbsd/loadbsd.c: revision 1.38
distrib/amiga/stand/loadbsd.uue: revision 1.4
sys/arch/amiga/stand/loadbsd/startit.s: revision 1.1
sys/arch/amiga/stand/loadbsd/Makefile: revision 1.5
sys/arch/amiga/stand/loadbsd/vmakefile: revision 1.1
sys/arch/amiga/stand/loadbsd/README: revision 1.6

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.

(martin)

2023-06-03 15:04:06 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by abs in ticket #189):

sys/arch/amiga/stand/loadbsd/loadbsd.c: revision 1.38
distrib/amiga/stand/loadbsd.uue: revision 1.4
sys/arch/amiga/stand/loadbsd/startit.s: revision 1.1
sys/arch/amiga/stand/loadbsd/Makefile: revision 1.5
sys/arch/amiga/stand/loadbsd/vmakefile: revision 1.1
sys/arch/amiga/stand/loadbsd/README: revision 1.6

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.

(martin)

2023-06-03 14:47:52 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by uwe in ticket #188):

sys/ddb/db_command.c: revision 1.182

ddb: PR kern/57435 - fix duplicate "show mount"

Bolivar cannot carry double.  One of these commands should have been
"show mounts", cf. page/pages and a few others.  While here fix the
function name to be db_show_all_mounts to conform to the pattern.

(martin)

2023-06-03 14:46:08 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by rin in ticket #1637):

sys/dev/pci/if_aq.c: revision 1.45

aq(4): if_transmit: Invoke softint_schedule(9) with kpreempt disabled.

(martin)

2023-06-03 14:44:34 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by rin in ticket #187):

sys/dev/pci/if_aq.c: revision 1.45

aq(4): if_transmit: Invoke softint_schedule(9) with kpreempt disabled.

(martin)

2023-06-03 14:40:25 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by yamaguchi in ticket #186):

sys/dev/pci/virtio_pci.c: revision 1.41
sys/dev/pci/virtio_pci.c: revision 1.42
sys/dev/virtio/virtio_mmio.c: revision 1.10
sys/dev/pci/virtiovar.h: revision 1.29
sys/dev/pci/virtio.c: revision 1.75
sys/dev/pci/virtio.c: revision 1.76
sys/dev/pci/virtio.c: revision 1.77
sys/dev/pci/virtio.c: revision 1.78

virtio@pci: Fix assertion on detach.

If the child never attached in the first place, it's OK for it to not
have detached.

XXX This should not be a set of flags; this should be a state
enumeration, because some flags make no sense, like FINISHED|FAILED.

XXX This should not be asserted separately in each bus; there should
be a single place in virtio.c to assert this, uniformly in all buses.

PR kern/57357

Use enumeration for state of a child driver instead of flags
and check its detaching by using sc->sc_child in virtio_softc
pointed out by riastradh, thanks.
fixes PR/57357

Fix not to allocate unnecessary descriptor
fixes PR/57358

virtio(4): change variable name, nfc

virtio(4): change members of struct vring_desc_extra before free a slot

This prevents the following race condition.
1. Thread-A: calls virtio_dequeue_commit() and
            puts a slot into free descriptor chain in vq_free_slot()
2. Thread-B: calls virtio_enqueue_prep() and get the slot stored by Thread-A
3. Thread-B: calls virtio_enqueue_reserve() and
            changes desc_base and desc_free_idx for the slot
4. Thread-A: changes the same members updated by Thread-B
reported by hannken, thanks.

(martin)

2023-06-03 14:35:18 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by rin in ticket #1636):

sys/lib/libsa/subr_prf.c: revision 1.30

libsa/printf: Do not fetch long va_arg as long long.

This does real harm iff all of the following conditions are satisfied:
(1) On ILP32 architectures.
(2) Both LIBSA_PRINTF_LONGLONG_SUPPORT and LIBSA_PRINTF_WIDTH_SUPPORT
    compile-time options are enabled.
(3) Width field is used with 'l' modifier.

This is an implicit-fallthrough bug, but unfortunately, GCC 10.4 cannot
find this out somehow...

(martin)

2023-06-03 14:33:56 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by rin in ticket #185):

sys/lib/libsa/subr_prf.c: revision 1.30

libsa/printf: Do not fetch long va_arg as long long.

This does real harm iff all of the following conditions are satisfied:
(1) On ILP32 architectures.
(2) Both LIBSA_PRINTF_LONGLONG_SUPPORT and LIBSA_PRINTF_WIDTH_SUPPORT
    compile-time options are enabled.
(3) Width field is used with 'l' modifier.

This is an implicit-fallthrough bug, but unfortunately, GCC 10.4 cannot
find this out somehow...

(martin)

2023-06-03 14:24:25 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by lukem in ticket #1635):

external/gpl3/gcc/usr.bin/libdecnumber/Makefile: revision 1.9
external/gpl3/gcc/usr.bin/common/Makefile: revision 1.12
external/gpl3/gcc/usr.bin/backend/Makefile: revision 1.67
external/gpl3/gcc/usr.bin/common-target/Makefile: revision 1.12
external/gpl3/gcc/usr.bin/frontend/Makefile: revision 1.15
external/gpl3/gcc/usr.bin/libcpp/Makefile: revision 1.10

gcc: fix build with clang++ HOST_CXX

Define HOSTPROG_CXX before .include anything that brings in bsd.own.mk.

This ensures that HOST_DBG (etc) gets assigned before HOST_CFLAGS
and HOST_CXXFLAGS is created.
backend: .include <bsd.init.mk> much earlier, as per the other directories.

Fixes backend build when using clang++ as the host compiler (e.g., macOS),
because backend host tools are now built with -O.
Inspired by https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255760

Fixes PR toolchain/57014

(martin)

2023-06-03 13:20:42 UTC MAIN commitmail json YAML

ld.elf_so: Fix missing tab in debug/shl.mi in last change.

XXX pullup-10

(riastradh)

2023-06-03 11:13:41 UTC MAIN commitmail json YAML

mk.conf: fix the year

(lukem)

2023-06-03 09:18:14 UTC MAIN commitmail json YAML

2023-06-03 09:10:13 UTC MAIN commitmail json YAML

tools/compat: support all bsd.own.mk disabled warnings

Check the host CC support for all the warnings now in <bsd.own.mk>
and override appropriately in defs.mk.

In general there's a 1:1 mapping, with the special case
CC_WNO_ADDRESS_OF_PACKED_MEMBER which is set from both
@CC_WNO_ADDRESS_OF_PACKED_MEMBER@ (gcc) and
@CC_WNO_ERROR_ADDRESS_OF_PACKED_MEMBER@ (clang).

(lukem)

2023-06-03 09:09:25 UTC MAIN commitmail json YAML

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.

(lukem)

2023-06-03 08:53:01 UTC MAIN commitmail json YAML

bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER

Provide a single variable
CC_WNO_ADDRESS_OF_PACKED_MEMBER
with options for both clang and gcc, to replace
CLANG_NO_ADDR_OF_PACKED_MEMBER
CC_NO_ADDR_OF_PACKED_MEMBER
GCC_NO_ADDR_OF_PACKED_MEMBER

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.

(lukem)

2023-06-02 20:49:07 UTC MAIN commitmail json YAML

etc.sparc64: remove obsolete MK32BITLIBS

As there's a functional MKCOMPAT implementation, and
MK32BITLIBS=yes hasn't worked since 2002 (and noone
noticed the latter), remove obsolete MK32BITLIBS code.

Per confirmation from martin@, mrg@, and riastradh@ on ICB.

(lukem)

2023-06-02 20:48:41 UTC MAIN commitmail json YAML

build.sh: MAKECONF and mk.conf(5) improvements

Move MAKECONF to the Environment variables section.
Add mk.conf(5) cross-references.
Make Notes more obvious.
Fix mandoc lint.

(lukem)

2023-06-02 20:48:09 UTC MAIN commitmail json YAML

build.sh: add show-params operation

Add show-params operation to the makefile target, and reword
params operation to describe what it's done since 2012.

(In 2012-11-04 the Makefile's previous params target was renamed
to show-params and a new params target was added to save a 'params'
file, and build.sh wasn't adapted.)

(lukem)

2023-06-02 20:47:27 UTC MAIN commitmail json YAML

tools: use NONLS= not MKNLS=no

(lukem)

2023-06-02 19:09:12 UTC MAIN commitmail json YAML

2023-06-02 19:08:49 UTC MAIN commitmail json YAML

2023-06-02 19:08:01 UTC MAIN commitmail json YAML

ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.

If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

XXX pullup-10

(riastradh)

2023-06-02 15:07:46 UTC MAIN commitmail json YAML

indent: force each statement on a new line

Previously, '{} while (cond)' was kept on a single line, even though the
'while' was independent of the '{}'.

(rillig)

2023-06-02 14:34:14 UTC MAIN commitmail json YAML

2023-06-02 14:32:04 UTC MAIN commitmail json YAML

etc.sparc64: fix syntax errors in MK32BITLIBS=yes

sparc64 snapshots with MK32BITLIBS=yes has been broken
because of make(1) and sh(1) syntax errors since
my change in revision 1.18 on 2002-12-03, when
snap_md_pre target was deprecated...
Move the rules to snap_md_post and fix the syntax errors.

The cross-build make snapshot snapbecause of the missing
$TOOLDIR/bin/sparc--netbsdelf-gcc due to the invocation
with SPARC32_ENV=MACHINE=sparc MACHINE_ARCH=sparc.
A separate issue to resolve.

(It seems MK32BITLIBS hasn't worked for 20+ years and
noone noticed! Do we need it?)

(lukem)

2023-06-02 14:30:23 UTC MAIN commitmail json YAML

bsd.own.mk: obsolete non-MK variants MANZ UNPRIVED UPDATE

Remove support for variables deprecated 20 years ago
by their MK* equivalents.

(lukem)

2023-06-02 14:29:11 UTC MAIN commitmail json YAML

build.sh: fix MKUNPRIVED comment

I renamed UNPRIVED to MKUNPRIVED 20 years ago, and missed a comment.

(lukem)

2023-06-02 14:25:36 UTC MAIN commitmail json YAML

etc.hp300, etc.sparc64: fix MKUPDATE handling

UPDATE was replaced with MKUPDATE 20 years ago,
but these directories were missed in the conversion.

(lukem)

2023-06-02 14:21:55 UTC MAIN commitmail json YAML

2023-06-02 13:59:33 UTC MAIN commitmail json YAML

indent: clean up

Only print the 'token' buffer in debug mode if it is interesting, group
the blocks in handling of '(' tokens by topic, remove obsolete comment
from test.

(rillig)

2023-06-02 12:08:26 UTC MAIN commitmail json YAML

ld.elf_so: Add new files to debug/shl.mi.

XXX pullup-10

(riastradh)

2023-06-02 11:43:07 UTC MAIN commitmail json YAML

2023-06-02 11:26:21 UTC MAIN commitmail json YAML

tests/indent: demonstrate bugs when formatting preprocessing lines

(rillig)

2023-06-02 11:09:39 UTC MAIN commitmail json YAML

Add recent ld.elf_so test helpers debug info

(martin)

2023-06-02 08:51:48 UTC MAIN commitmail json YAML

2023-06-01 23:47:24 UTC MAIN commitmail json YAML

ld.elf_so: Separately test eager and lazy resolution of def tls ptr.

eager: before loading use library
lazy: after loading use library

XXX pullup-10

(riastradh)

2023-06-01 22:26:51 UTC MAIN commitmail json YAML

ld.elf_so: Shorter test names.

No functional non-cosmetic change intended.

XXX pullup-10

(riastradh)

2023-06-01 22:26:40 UTC MAIN commitmail json YAML

2023-06-01 22:24:52 UTC MAIN commitmail json YAML

ld.elf_so: Factor out logic in TLS tests to make writing more easier.

No functional change intended.

XXX pullup-10

(riastradh)

2023-06-01 21:58:05 UTC MAIN commitmail json YAML

mk.conf(5): update to reality

- Document:
MKAMDGPUFIRMWARE, MKARGON2, MKARZERO, MKBSDGREP,
MKCOMPATMODULES, MKCOMPATTESTS, MKCOMPATX11, MKCXX,
MKDEPINCLUDES, MKDTB, MKDTC, MKFIRMWARE, MKGROFF,
MKGROFFHTMLDOC, MKLIBCSANITIZER, MKLIBCXX, MKLIBSTDCXX,
MKLLVM, MKLLVMRT, MKMAKEMANDB, MKMANDOC, MKNSD,
MKRADEONFIRMWARE, MKRELRO, MKSANITIZER, MKSLJIT,
MKSTATICPIE, MKTEGRAFIRMWARE, MKTPM, MKUNBOUND,
MKXORG_SERVER, NETBSD_OFFICIAL_RELEASE,
USE_LIBCSANITIZER, USE_PIGZGZIP, USE_SANITIZER,
USE_XZ_SETS, X11MOTIFPATH
- Document obsolete/deprecated:
EXTSRCSRCDIR, MKBFD, MKCRYPTO, MKEXTSRC, MKKDEBUG,
MKKERBEROS4, MKLLD, MKLLDB, MKMCLINKER, MKPERFUSE,
MKTOOLSDEBUG, SHAREDSTRINGS, USE_COMBINE
- Fix defaults: MKLINT=no MKPICINSTALL=no USE_SKEY=no
- Expand upon defaults that are platform specific.
- Sort variable entries.
- If a NOxxx variable disables a variable, describe it.
- Layout of each variable: supported values, description,
  any other variables that change this variable, optional note,
  default value.
- Consistent double quotes around default strings (even paths).
- Consistent "will be" instead of "is" or "are".
- Sort order of internal macro definitions.
- Add NODEF and NOVAR macros.
- Oxford comma and semi-colons where appropriate.
- Fix mandoc -Tlint.

(lukem)

2023-06-01 21:54:17 UTC MAIN commitmail json YAML

bsd.own.mk: describe recent convention in comments

(lukem)

2023-06-01 21:50:26 UTC MAIN commitmail json YAML

bsd.own.mk: MKPERFUSE isn't used anywhere

perfuse is built unconditionally, and MKPERFUSE
isn't tested anywhere.

(lukem)

2023-06-01 21:47:19 UTC MAIN commitmail json YAML

bsd.own.mk: MKLLD, MKLLDB, MKMCLINKER are obsolete

MKLLD, MKLLDB, MKMCLINKER aren't used in the build,
so remove them.

These were obsoleted by joerg@ on 2019-11-11
with the update of LLVM to 10.0.0git (01f3a59).

(lukem)

2023-06-01 20:56:35 UTC MAIN commitmail json YAML

tests/make: force line-based diagnostics to be listed in the tests

This way, contradictions between the intended output and the actual
output are closer together and have a better chance of being spotted.

(rillig)

2023-06-01 20:50:19 UTC MAIN commitmail json YAML

2023-06-01 20:48:30 UTC MAIN commitmail json YAML

ld.elf_so: Test variations on PR toolchain/50277.

XXX pullup-10

(riastradh)

2023-06-01 20:40:19 UTC MAIN commitmail json YAML

Add checks to EVP_CipherInit_ex() where they were missing and add a cheesy
define to get the RC4 cipher from the legacy provider, since the legacy
provider is not loaded by default now.

(christos)

2023-06-01 20:15:16 UTC MAIN commitmail json YAML

2023-06-01 13:04:48 UTC MAIN commitmail json YAML

mtree(8): a few markup fixes

Didn't touch the section that describes the spec file format.  We have
the format documented here, in mtree(8), and we also have the format
description in mtree(5) that comes from libarchive.

(uwe)

2023-06-01 09:02:14 UTC MAIN commitmail json YAML

2023-06-01 08:20:10 UTC MAIN commitmail json YAML

ld.elf_so: Make tls alloc debug messages more detailed and greppable.

XXX pullup-10

(riastradh)

2023-06-01 07:44:11 UTC MAIN commitmail json YAML

2023-06-01 07:27:31 UTC MAIN commitmail json YAML

2023-06-01 06:25:34 UTC MAIN commitmail json YAML

2023-06-01 04:08:36 UTC MAIN commitmail json YAML

add 2004's "@" definition.

(mrg)

2023-06-01 01:09:51 UTC MAIN commitmail json YAML

3RDPARTY: gcc-11.4 out

(gutteridge)

2023-05-31 21:49:39 UTC MAIN commitmail json YAML

stat_flags(3): try to improve the descriptions

List all alternative forms recognized by string_to_flags(3).
Both "dump" and "nonodump" are the negative of "nodump".
string_to_flags does not recognize "snap".
Provide xrefs for flag descriptions where applicable.

(uwe)

2023-05-31 21:02:50 UTC MAIN commitmail json YAML

doc: fix swappo

(wiz)

2023-05-31 20:59:15 UTC MAIN commitmail json YAML

2023-05-31 20:57:31 UTC MAIN commitmail json YAML

2023-05-31 20:47:35 UTC MAIN commitmail json YAML

bsd.own.mk: support ${MACHINE} defaults in MK* = yes

For MK* variables (in _MKVARS.yes), default to
MK*.${MACHINE} if MK*.${MACHINE_ARCH} isn't defined.

Equivalent to _MKVARS.no change by mrg@ in rev 1.1065 on 2018-06-16.

(lukem)

2023-05-31 20:45:02 UTC MAIN commitmail json YAML

bsd.own.mk: sort lists. whitespace fixes

Create _NOVARS for the list of NO* variables,
for consistency with _MKVARS.yes and _MKVARS.no

Format _NOVARS, _MKVARS.yes, and _MKVARS.no with
one entry per line, and sort the lists.
Simplifies review and adding new entries.
Per suggestion from riastradh@

Line up some variable assignments more consistently.

(lukem)

2023-05-31 20:43:28 UTC MAIN commitmail json YAML

2023-05-31 20:33:22 UTC MAIN commitmail json YAML

chflags(1): xref stat_flags(3)

(uwe)

2023-05-31 20:00:51 UTC MAIN commitmail json YAML

2023-05-31 19:44:43 UTC MAIN commitmail json YAML

2023-05-31 19:42:44 UTC MAIN commitmail json YAML

src/crypto/external/bsd/openssl/lib/libcrypto/man.inc@1.17 / diff / nxr@1.17
src/crypto/external/bsd/openssl/lib/libcrypto/man/ADMISSIONS.3@1.5 / diff / nxr@1.5
src/crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_EXTERN_FUNCS.3@1.2 / diff / nxr@1.2
src/crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_INTEGER_get_int64.3@1.6 / diff / nxr@1.6
src/crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_INTEGER_new.3@1.2 / diff / nxr@1.2
src/crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_ITEM_lookup.3@1.5 / diff / nxr@1.5
src/crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_OBJECT_new.3@1.22 / diff / nxr@1.22
src/crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_STRING_TABLE_add.3@1.5 / diff / nxr@1.5
src/crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_STRING_length.3@1.22 / diff / nxr@1.22
src/crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_STRING_new.3@1.22 / diff / nxr@1.22
src/crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_STRING_print_ex.3@1.22 / diff / nxr@1.22
src/crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_TIME_set.3@1.7 / diff / nxr@1.7
src/crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_TYPE_get.3@1.6 / diff / nxr@1.6
src/crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_aux_cb.3@1.2 / diff / nxr@1.2
src/crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_generate_nconf.3@1.22 / diff / nxr@1.22
src/crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_item_d2i_bio.3@1.2 / diff / nxr@1.2
src/crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_item_new.3@1.2 / diff / nxr@1.2
src/crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_item_sign.3@1.2 / diff / nxr@1.2
src/crypto/external/bsd/openssl/lib/libcrypto/man/ASYNC_WAIT_CTX_new.3@1.6 / diff / nxr@1.6
src/crypto/external/bsd/openssl/lib/libcrypto/man/ASYNC_start_job.3@1.6 / diff / nxr@1.6
      :
(more 720 files)
regen

(christos)

2023-05-31 19:35:31 UTC MAIN commitmail json YAML

2023-05-31 19:30:30 UTC MAIN commitmail json YAML

src/crypto/external/bsd/openssl/dist/Configure@1.33 / diff / nxr@1.33
src/crypto/external/bsd/openssl/dist/apps/cmp.c@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/dist/apps/lib/apps.c@1.4 / diff / nxr@1.4
src/crypto/external/bsd/openssl/dist/apps/openssl.cnf@1.11 / diff / nxr@1.11
src/crypto/external/bsd/openssl/dist/apps/s_server.c@1.28 / diff / nxr@1.28
src/crypto/external/bsd/openssl/dist/crypto/asn1/asn_pack.c@1.5 / diff / nxr@1.5
src/crypto/external/bsd/openssl/dist/crypto/bio/bio_lib.c@1.9 / diff / nxr@1.9
src/crypto/external/bsd/openssl/dist/crypto/bn/bn_lib.c@1.17 / diff / nxr@1.17
src/crypto/external/bsd/openssl/dist/crypto/bn/bn_nist.c@1.9 / diff / nxr@1.9
src/crypto/external/bsd/openssl/dist/crypto/bn/rsa_sup_mul.c deleted
src/crypto/external/bsd/openssl/dist/crypto/conf/conf_def.c@1.15 / diff / nxr@1.15
src/crypto/external/bsd/openssl/dist/crypto/engine/eng_lib.c@1.11 / diff / nxr@1.11
src/crypto/external/bsd/openssl/dist/crypto/ui/ui_lib.c@1.9 / diff / nxr@1.9
src/crypto/external/bsd/openssl/dist/crypto/x509/x509_vfy.c@1.28 / diff / nxr@1.28
src/crypto/external/bsd/openssl/dist/engines/e_padlock.c@1.9 / diff / nxr@1.9
src/crypto/external/bsd/openssl/dist/include/internal/refcount.h@1.7 / diff / nxr@1.7
src/crypto/external/bsd/openssl/dist/ssl/ssl_sess.c@1.12 / diff / nxr@1.12
src/crypto/external/bsd/openssl/dist/ssl/t1_lib.c@1.37 / diff / nxr@1.37
src/crypto/external/bsd/openssl/dist/test/destest.c@1.5 / diff / nxr@1.5
src/crypto/external/bsd/openssl/dist/test/dsatest.c@1.6 / diff / nxr@1.6
      :
(more 3 files)
merge conflicts between 3.0.8 and 3.0.9

(christos)

2023-05-31 18:44:39 UTC MAIN commitmail json YAML

ld.elf_so: Sprinkle tls debug messages.

XXX pullup-10

(riastradh)

2023-05-31 18:04:00 UTC MAIN commitmail json YAML

date(1): sync two [[[[[CC]yy]mm]dd]HH]MM[.SS] instances

The markup was the same (modulo Li vs Cm for the dot before the
seconds), but use the same source markup grouping/layout in both to
make this fact more obvious.

(uwe)

2023-05-31 17:56:54 UTC MAIN commitmail json YAML

Add -R to usage

(kim)

2023-05-31 17:52:02 UTC MAIN commitmail json YAML

date(1): minor markup fixes

(uwe)

2023-05-31 16:01:53 UTC MAIN commitmail json YAML

Add -R option for displaying time in RFC 5322 format, similar to GNU date.

(kim)

2023-05-31 13:02:10 UTC MAIN commitmail json YAML

ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.

XXX pullup-10

(riastradh)

2023-05-31 09:33:09 UTC MAIN commitmail json YAML

CHANGES: pax fixes

(lukem)

2023-05-31 01:06:43 UTC MAIN commitmail json YAML

ld.elf_so: Nix inadvertently committed private test program.

(riastradh)

2023-05-31 00:46:11 UTC MAIN commitmail json YAML

2023-05-31 00:18:44 UTC MAIN commitmail json YAML

2023-05-30 19:05:05 UTC MAIN commitmail json YAML

Fix LLVM build with host gcc 13

Building LLVM with a host gcc 13 fails and suggests including <cstdint>
in external/apache2/llvm/dist/llvm/include/llvm/Support/Signals.h .
Instead of this, joerg@ suggested not modifying the llvm vendor branch
but instead working around this in our LLVM build infrastructure.

(hgutch)

2023-05-30 19:04:43 UTC MAIN commitmail json YAML

2023-05-30 18:54:21 UTC MAIN commitmail json YAML

tools/compat: disable host CC warnings

Determine if the host CC supports flags to disable various
warnings similar to <bsd.own.mk> GCC_*, CLANG_*, and CC_*,
and override the <bsd.own.mk> equivalents in defs.mk.

Silences "warning: unknown warning option '...'" from our source.
External source (e.g., binutils and gcc) need their own fixes
to enhance their detection of supported clang compiler flags.

(lukem)

2023-05-30 18:39:19 UTC MAIN commitmail json YAML

tools/compat: detect supported host compiler flags

Define NB_CC_FLAG(FLAG) to use AX_CHECK_COMPILE_FLAG
to determine if the host compiler supports FLAG
and define and AC_SUBST CC_FLAG if so.

Use workarounds to force clang to hard-fail on unknown -Wwarning,
and gcc to use -WWARN to check unknown -Wno-WARN because the
latter doesn't cause an error in gcc.

In the future we could use NB_CC_FLAG([-fcommon]) for
older NetBSD release branches compiled with host gcc 10+.

Rework Darwin -no-cpp-precomp check to use NB_CC_FLAG().
Note: this flag probably hasn't been required on macOS (Darwin)
for a long time, but serves as a good example on how to use this.

Display varaibles at the end of configure to show what was detected.

(lukem)

2023-05-30 18:35:16 UTC MAIN commitmail json YAML

tools/compat: import AX_CHECK_COMPILE_FLAG

Import AX_CHECK_COMPILE_FLAG serial 6 from autoconf-archive
  https://github.com/autoconf-archive/autoconf-archive.git
as at commit 5b5ce7f on 2023-05-01.

(lukem)

2023-05-30 18:31:55 UTC MAIN commitmail json YAML

tools/compat: don't expose HAVE_PTHREAD_H to make

Non of the tools Makefiles needs HAVE_PTHREAD_H, so don't
AC_SUBST it or provide in defs.mk.

(lukem)

2023-05-30 18:27:04 UTC MAIN commitmail json YAML

tools/compat: use autoreconf, support MAKEVERBOSE

Use autoreconf instead of autoconf + autoheader;
we'll need aclocal in the near future.

If MAKEVERBOSE >= 2, add -v to autoreconf.

(lukem)

2023-05-30 11:53:40 UTC MAIN commitmail json YAML

Fix some const qual (Piotr Pawel Stefaniak)

(christos)

2023-05-30 07:21:23 UTC netbsd-10 commitmail json YAML

Ammend ticket #182 for additional changes

(martin)

2023-05-30 07:20:22 UTC netbsd-10 commitmail json YAML

Additionaly pull up the following revision for ticket #182 to fix the build:

distrib/sets/lists/dtb/ad.earmv7hfeb 1.10

Add imx6sx dtb files for BE too.

(martin)

2023-05-30 04:14:30 UTC MAIN commitmail json YAML

Use device_printf() instead of aprint_error_dev().

(msaitoh)

2023-05-29 23:30:48 UTC MAIN commitmail json YAML

sysctl.7: be a little more descriptive about kern.osrevision

It's expressed as an integer, and is also returned as an integer type
should one retrieve it via sysctl(3) (as this man page already
correctly documents in the table above its description).

(gutteridge)

2023-05-29 21:34:57 UTC MAIN commitmail json YAML

tools/compat: regen

(lukem)

2023-05-29 21:30:42 UTC MAIN commitmail json YAML

tools/compat/configure.ac: style tweaks

Use "NB_" prefix not "AC_" for our macros ("AC_" is for autoconf).
Fail is NB_ macro isn't defined.
Use AC_DEFUN() instead of define().
Consistently use () in zero argument macro calls.

(lukem)

2023-05-29 21:16:58 UTC MAIN commitmail json YAML

mdnsd(8): restore fixes for PR bin/46758, lost on resolving merge conflicts.
Original commit message from Roy Marples:
"Derive our primary interface and address by trying to connect to an
address in the TEST-NET-2 network as noted in RFC5737 instead of using
the 1.1.1.1 address. Also, use port 7 (echo) for better style.
Fixes PR bin/46758 thanks to Lloyd Parkes."

pullups needed for netbsd-9, netbsd-10.

(andvar)

2023-05-29 20:31:10 UTC MAIN commitmail json YAML

bsd.own.mk: rename NO_ADDR_OF_PACKED_MEMBER to CC_NO_ADDR_OF_PACKED_MEMBER

Add "CC_" prefix to NO_ADDR_OF_PACKED_MEMBER.

We now have the following convention:
GCC_NO_*: Disable specific warnings from GCC.
CLANG_NO_*: Disable specific warnings from Clang.
CC_NO_*: Disable specific warnings from both Clang and GCC.

This reserves "NO_*" Makefile variables to disable other features.

Some space->tab fixes.

(lukem)

2023-05-29 18:25:52 UTC MAIN commitmail json YAML

libc: fix typo in comments: NO_SRSC -> NO_SRCS

(lukem)

2023-05-29 17:35:11 UTC MAIN commitmail json YAML

bsd.own.mk: sort list of NO* variables

List the NO variables in order, leaving enough room to add more entries,
not splitting the next letter after "NO" across a line.

No functional change; just prettier and easier to review.

(lukem)

2023-05-29 08:00:05 UTC MAIN commitmail json YAML

aq(4): if_transmit: Invoke softint_schedule(9) with kpreempt disabled.

XXX
Pull up to netbsd-10 and netbsd-9.

(rin)

2023-05-29 03:56:52 UTC MAIN commitmail json YAML

libsa/printf: Do not fetch long va_arg as long long.

This does real harm iff all of the following conditions are satisfied:

(1) On ILP32 architectures.
(2) Both LIBSA_PRINTF_LONGLONG_SUPPORT and LIBSA_PRINTF_WIDTH_SUPPORT
    compile-time options are enabled.
(3) Width field is used with 'l' modifier.

This is an implicit-fallthrough bug, but unfortunately, GCC 10.4 cannot
find this out somehow...

XXX
Pull up to netbsd-10 and netbsd-9. netbsd-8 is not affected.

(rin)

2023-05-28 21:42:40 UTC MAIN commitmail json YAML

pax: don't overwrite destination if -r -w copy fails

Add more error handling to pax -r -w so that any failure
during the copy to the temporary file (including a failed flush)
prevents any existing destination file from being replaced
with the partial (including possibly empty) temporary file.
The partial temporary file is removed.  pax still exists non-zero.

Thanks to Michael van Elst (mlelstv@) for the analysis
of the problem in the PR.

Should fix PR misc/33753.

(lukem)

2023-05-28 17:01:46 UTC MAIN commitmail json YAML

pax: exit 0 if stdin filelist is used and empty

If copying a list of files from stdin, exit zero instead of non-zero
if there are no files supplied.

AFAICT, POSIX doesn't require a non-zero an error in this situation,
since there are no files to not match.

Fix from PR bin/41736 by Lloyd Parkes.

(lukem)

2023-05-28 12:56:56 UTC MAIN commitmail json YAML

Second arg to fdt_memory_remove_range is a size so pass dtbsize and not
dtb + dtbsize

(skrll)

2023-05-28 11:00:04 UTC MAIN commitmail json YAML

deprecate remnants of MKCRYPTO

MKCRYPTO was removed by riastradh@ on 2017-05-22,
so remove references to it in comments.

(lukem)

2023-05-28 10:49:00 UTC MAIN commitmail json YAML

bsd.own.mk: deprecate NOCRYPTO

MKCRYPTO was removed by riastradh@ on 2017-05-22,
so the NOCRYPTO override is now unnecessary.

(lukem)

2023-05-28 10:36:40 UTC netbsd-10 commitmail json YAML