FreeBSD/ports 518121head/lang/gcc8-devel/files patch-clang-vec_step

Forward port r509607 | gerald | 2019-08-22 from lang/gcc8 since this has
not been addressed upstream yet:

  clang on rs6000/powerpc* unfortunately poisons user namespace by default
  (without any special options or include files being required).

  Until that changes (or GCC changes) we need to avoid using vec_step as a
  variable name.

PR:            239266

FreeBSD/ports 518120head/games Makefile mancala, head/games/mancala Makefile pkg-descr

Add new port: games/mancala

Implementation of the simple board game called Mancala.  Contains both a
user unfriendly character based interface, and a nice, user friendly X11
interface.  Be warned: If you just bother to read the rules, you may get
hooked on this!

FreeBSD/ports 518119head/databases/redis Makefile, head/databases/redis/files patch-deps_lua_src_lua__cjson.c

Fix the build with external lua, forgotten to add the patch.
Bump PORTREVISION.

Reported by:    olgeni

FreeBSD/src 354989head/sys/fs/nfs nfsrvstate.h, head/sys/fs/nfsserver nfs_nfsdport.c

Fix the pNFS server's reporting of SpaceUsed (va_bytes).

The pNFS server currently reports SpaceUsed (va_bytes) for the metadata
file. This in not correct, since the metadata file is always empty and,
as such, va_bytes is just the allocation for the empty file.
This patch adds va_bytes to the list of attributes acquired from the
DS for a file, so that it includes the allocated data size and is updated
when the file is written.
For files created on a pNFS server before this patch is applied, the
va_bytes value is estimated by rounding va_size up to a multiple of
BLKDEV_IOSIZE. Once the file is written after this patch has been
applied to the metadata server, the va_bytes returned for the file
will be correct.

This patch only affects a pNFS metadata server.

Found during testing of the NFSv4.2 pNFS server for the Allocate operation.
(Not yet in head/current.)

MFC after:      2 weeks

FreeBSD/src 354988head/sys/kern kern_timeout.c

cc_ktr_event_name is used only with KTR

FreeBSD/src 354987head/sys/sys interrupt.h

Delete ih_thread.  Should have gone in r334170.

FreeBSD/ports 518118head/math/gnuplot Makefile, head/math/gnuplot/files patch-term-fig.trm

Fix the 'fig' terminal

PR:            242097
Submitted by:   mjl at luckie.org.nz

FreeBSD/ports 518117head/lang/erlang-runtime22 distinfo Makefile

Update lang/erlang-runtime22 to version 22.1.8.

FreeBSD/doc 53625head/pt_BR.ISO8859-1/articles/contributors pt_BR.po article.xml

pt_BR/articles/contributors: Sync with en_US r53598

Approved by:    ebrandi
Obtained from:  
https://weblate.eastus.cloudapp.azure.com/projects/freebsd-doc/articles_contributors/pt_BR/
Differential Revision:  https://reviews.freebsd.org/D22420

FreeBSD/doc 53624head/pt_BR.ISO8859-1/articles/freebsd-releng pt_BR.po article.xml

pt_BR/articles/freebsd-releng: Sync with en_US r53598

Approved by:    ebrandi
Obtained from:  
https://weblate.eastus.cloudapp.azure.com/projects/freebsd-doc/articles_freebsd-releng/pt_BR/
Differential Revision:  https://reviews.freebsd.org/D22419

FreeBSD/doc 53623head/pt_BR.ISO8859-1/books/faq pt_BR.po book.xml

pt_BR/books/faq: Sync with en_US r53598

Fix failing strings reported by Weblate (Quality checks).

Approved by:    ebrandi
Obtained from:  
https://weblate.eastus.cloudapp.azure.com/projects/freebsd-doc/boooks_faq/pt_BR/
Differential Revision:  https://reviews.freebsd.org/D22418

FreeBSD/doc 53622head/pt_BR.ISO8859-1/books/fdp-primer pt_BR.po book.xml

pt_BR/books/fdp-primer: Sync with en_US r53598

Fix several failing strings reported by Weblate (Quality checks).

Approved by:    ebrandi
Obtained from:  
https://weblate.eastus.cloudapp.azure.com/projects/freebsd-doc/boooks_fdp-primer/pt_BR/
Differential Revision:  Revision: https://reviews.freebsd.org/D22417

FreeBSD/doc 53621head/pt_BR.ISO8859-1/books/porters-handbook pt_BR.po book.xml

pt_BR/books/porters-handbook: Sync with en_US r53598

Fix several failing strings reported by Weblate (Quality checks).

Approved by:    ebrandi
Obtained from:  
https://weblate.eastus.cloudapp.azure.com/projects/freebsd-doc/boooks_porters-handbook/pt_BR/
Differential Revision:  https://reviews.freebsd.org/D22416

FreeBSD/ports 518116head/devel/mdb Makefile

Use clang 7 as compiler on 11.x and 12.x to fix build.

clang 8 and later error for duplicate definitions of enum values.  mdb
depends on having identical but duplicate definitions.  This was fixed
differently in 13 with a change to the kernel, but that change is
disruptive and cannot be easily backported.

Reported by:    pkg-fallout, Attila Nagy
Approved by:    bdrewery
MFH:           2019Q3
Differential Revision:  https://reviews.freebsd.org/D22486

FreeBSD/src 354986head/sys/kern vfs_mountroot.c, head/sys/sys systm.h

Add variant of root_mount_hold() without allocation.

It allows to use this KPI in non-sleepable contexts.

MFC after:      2 weeks
Sponsored by:   iXsystems, Inc.

FreeBSD/ports 518115head/www/py-multidict distinfo Makefile

- Update to 4.6.0

FreeBSD/ports 518114head/textproc/spellutils Makefile

Unbreak.

FreeBSD/ports 518113head/games/jumpnbump Makefile

- Fix build on gcc archs by requiring newer compiler

PR:            242079
Submitted by:   pkubaj at FreeBSD.org

FreeBSD/ports 518112head/net/bsdec2-image-upload files, head/net/bsdec2-image-upload/files patch-Makefile

Fix build on HEAD.

Makefiles that use the FreeBSD make infrastructure should be seeing
MAN= rather than defining NO_MAN since 2014.

FreeBSD/ports 518111head/games/jumpnbump Makefile distinfo, head/games/jumpnbump/files patch-Makefile patch-menu_Makefile

- Update to 1.61

FreeBSD/ports 518110head/games/rockdodger pkg-plist Makefile, head/games/rockdodger/files patch-Makefile patch-data_Makefile

- Update to 1.1.3
- Take maintainership
- Fix LICENSE
- Simplify
- Support global highscore

FreeBSD/src 354985head/contrib/llvm/tools/clang/lib/Basic/Targets Mips.cpp

Merge commit a751f557d from llvm git (by Simon Atanasyan):

  [mips] Set macros for Octeon+ CPU

This is one of the upstream changes needed for adding support for the
OCTEON+ CPU type, so that we can test Clang builds using the most
commonly available FreeBSD/mips64 reference platform, the Edge Router
Lite.

Requested by:   kevans
MFC after:      1 month
X-MFC-With:     r353358

FreeBSD/src 354984head/contrib/llvm/tools/clang/lib/Basic/Targets Mips.cpp

Merge commit 0d14656b9 from llvm git (by Simon Atanasyan):

  [mips] Set __OCTEON__ macros

This is one of the upstream changes needed for adding support for the
OCTEON+ CPU type, so that we can test Clang builds using the most
commonly available FreeBSD/mips64 reference platform, the Edge Router
Lite.

Requested by:   kevans
MFC after:      1 month
X-MFC-With:     r353358

FreeBSD/src 354983head/contrib/llvm/tools/clang/lib/Basic/Targets Mips.cpp

Merge commit e578d0fd2 from llvm git (by Simon Atanasyan):

  [mips] Fix `__mips_isa_rev` macros value for Octeon CPU

This is one of the upstream changes needed for adding support for the
OCTEON+ CPU type, so that we can test Clang builds using the most
commonly available FreeBSD/mips64 reference platform, the Edge Router
Lite.

Requested by:   kevans
MFC after:      1 month
X-MFC-With:     r353358

FreeBSD/src 354982head/contrib/llvm/tools/clang/lib/Basic/Targets Mips.cpp Mips.h, head/contrib/llvm/tools/clang/lib/Driver/ToolChains Gnu.cpp

Merge commit 3552d3e0f from llvm git (by Simon Atanasyan):

  [mips] Add `octeon+` to the list of CPUs accepted by the driver

This is one of the upstream changes needed for adding support for the
OCTEON+ CPU type, so that we can test Clang builds using the most
commonly available FreeBSD/mips64 reference platform, the Edge Router
Lite.

Requested by:   kevans
MFC after:      1 month
X-MFC-With:     r353358

FreeBSD/src 354981head/contrib/llvm/lib/Target/Mips/MCTargetDesc MipsABIFlagsSection.h

Merge commit bf996f761 from llvm git (by Simon Atanasyan):

  [mips] Write `AFL_EXT_OCTEONP` flag to the `.MIPS.abiflags` section

  Differential Revision: https://reviews.llvm.org/D69851

This is one of the upstream changes needed for adding support for the
OCTEON+ CPU type, so that we can test Clang builds using the most
commonly available FreeBSD/mips64 reference platform, the Edge Router
Lite.

Requested by:   kevans
MFC after:      1 month
X-MFC-With:     r353358

FreeBSD/src 354980head/contrib/llvm/lib/Target/Mips/AsmParser MipsAsmParser.cpp

Merge commit 3718102d4 from llvm git (by Simon Atanasyan):

  [mips] Support `octeon+` CPU in the `.set arch=` directive

  Differential Revision: https://reviews.llvm.org/D69850

This is one of the upstream changes needed for adding support for the
OCTEON+ CPU type, so that we can test Clang builds using the most
commonly available FreeBSD/mips64 reference platform, the Edge Router
Lite.

Requested by:   kevans
MFC after:      1 month
X-MFC-With:     r353358

FreeBSD/doc 53620head/en_US.ISO8859-1/articles/contributors contrib.additional.xml

Add James Wright to additional controbutors.

Maintainer of:  devel/geany-themes

FreeBSD/src 354979head/contrib/llvm/lib/Target/Mips Mips64InstrInfo.td MipsInstrFormats.td, head/contrib/llvm/lib/Target/Mips/AsmParser MipsAsmParser.cpp

Merge commit 7bed381ea from llvm git (by Simon Atanasyan):

  [mips] Implement Octeon+ `saa` and `saad` instructions

  `saa` and `saad` are 32-bit and 64-bit store atomic add instructions.

     memory[base] = memory[base] + rt

  These instructions are available for "Octeon+" CPU. The patch adds
  support for both instructions to MIPS assembler and diassembler and
  introduces new CPU type - "octeon+".

  Next patches will implement `.set arch=octeon+` directive and
  `AFL_EXT_OCTEONP` ISA extension flag support.

  Differential Revision: https://reviews.llvm.org/D69849

This is one of the upstream changes needed for adding support for the
OCTEON+ CPU type, so that we can test Clang builds using the most
commonly available FreeBSD/mips64 reference platform, the Edge Router
Lite.

Requested by:   kevans
MFC after:      1 month
X-MFC-With:     r353358

FreeBSD/src 354978head/usr.sbin/ntp config.h

Chase r344883. ntp is 4.2.8p13.

MFC after:      3 days

FreeBSD/src 354977head/share/man/man3 bitstring.3, head/sys/sys bitstring.h param.h

bitstring: add functions to find contiguous set/unset bit sequences

Add bit_ffs_area_at and bit_ffc_area_at functions for searching a bit
string for a sequence of contiguous set or unset bits of at least the
specified size.

The bit_ffc_area function will be used by the Intel ice driver for
implementing resource assignment logic using a bitstring to represent
whether or not a given index has been assigned or is currently free.

The bit_ffs_area, bit_ffc_area_at and bit_ffs_area_at functions are
implemented for completeness.

I'd like to add further test cases for the new functions, but I'm not
really sure how to add them easily. The new functions depend on specific
sequences of bits being set, while the bitstring tests appear to run for
varying bit sizes.

Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>

Submitted by:   Jacob Keller <jacob.e.keller at intel.com>
Reviewed by:    asomers@, erj@
MFC after:      1 week
Sponsored by:   Intel Corporation
Differential Revision:  https://reviews.freebsd.org/D22400

FreeBSD/ports 518109head/databases/couchdb Makefile, head/databases/riak Makefile

Add deprecations for lang/erlang-runtime1* & dependent ports
databases/couchdb and databases/riak as communicated on erlang at FreeBSD
list end of May 2019, with dates adjusted for my tardiness on committing
this.

Reviewed by:    jrm
Approved by:    olgeni, rm
Sponsored by:   SkunkWerks, GmbH
Differential Revision:  https://reviews.freebsd.org/D20449

FreeBSD/src 354976head/share/mk Makefile

Install bsd.sysdir.mk.

Submitted by: Jung-uk Kim

FreeBSD/ports 518108head/databases/redis distinfo Makefile, head/databases/redis-devel distinfo Makefile

Update from 5.0.6 to 5.0.7.

<ChangeLog>

Upgrade urgency HIGH: many issues fixed, some may have an impact.

Hi all, Redis 5.0.7 fixes a number of bugs, none is very critical, however
there are a few that may have an impact. It's a good idea to upgrade.
There are fixes in the area of replication from modules commands and
callbacks, AOF fsync (non critical issue), memory leaks (very rare and small),
streams beahvior (non critical), and a potential crash in commands
processing multiple keys at the same time that is there for years, and happens
very rarely, but is not impossible to trigger.

</ChangeLog>

FreeBSD/src 354975head/sys/sys bitstring.h, head/tests/sys/sys bitstring_test.c

bitstring: exit early if _start is past size of the bitstring

bit_ffs_at and bit_ffc_at both take _start parameters which indicate to
start searching from _start onwards.

If the given _start index is past the size of the bit string, these
functions will calculate an address of the current bitstring which is
after the expected size. The function will also dereference the memory,
resulting in a read buffer overflow.

The output of the function remains correct, because the tests ensure to
stop the loop if the current bitstring chunk passes the stop bitstring
chunk, and because of a check to ensure the reported _value is never
past _nbits.

However, if <sys/bitstring.h> is ever used in code which is checked by
-fsanitize=undefined, or similar static analysis, it can produce
warnings about reading past the buffer size.

Because of the above mentioned checks, these buffer overflows do not
occur as long as _start is less than _nbits. Additionally, by definition
bit_ffs_at and bif_ffc_at should set _result to -1 in any case where the
_start is after the _nbits.

Check for this case at the start of the function and exit early if so,

    [19 lines not shown]

FreeBSD/src 354974head/sys/dev/cxgbe t4_main.c t4_l2t.c, head/sys/dev/cxgbe/crypto t4_kern_tls.c

NIC KTLS for Chelsio T6 adapters.

This adds support for ifnet (NIC) KTLS using Chelsio T6 adapters.
Unlike the TOE-based KTLS in r353328, NIC TLS works with non-TOE
connections.

NIC KTLS on T6 is not able to use the normal TSO (LSO) path to segment
the encrypted TLS frames output by the crypto engine.  Instead, the
TOE is placed into a special setup to permit "dummy" connections to be
associated with regular sockets using KTLS.  This permits using the
TOE to segment the encrypted TLS records.  However, this approach does
have some limitations:

1) Regular TOE sockets cannot be used when the TOE is in this special
   mode.  One can use either TOE and TOE-based KTLS or NIC KTLS, but
   not both at the same time.

2) In NIC KTLS mode, the TOE is only able to accept a per-connection
   timestamp offset that varies in the upper 4 bits.  Put another way,
   only connections whose timestamp offset has the 28 lower bits
   cleared can use NIC KTLS and generate correct timestamps.  The
   driver will refuse to enable NIC KTLS on connections with a
   timestamp offset with any of the lower 28 bits set.  To use NIC
   KTLS, users can either disable TCP timestamps by setting the
   net.inet.tcp.rfc1323 sysctl to 0, or apply a local patch to the

    [73 lines not shown]

FreeBSD/ports 518107head UPDATING, head/databases/redis Makefile

Repocopy the databases/redis to the databases/redis4 to update
the databases/redis port to the latest stable version, 5.0.6.

PR:            241526
Reviewed by:    portmgr (adamw)
Approved by:    portmgr (adamw)
Differential Revision:  https://reviews.freebsd.org/D22336

FreeBSD/src 354973head/sys/dev/iicbus iiconf.c

Rewrite iicdev_writeto() to use a single buffer and a single iic_msg, rather
than effectively doing scatter/gather IO with a pair of iic_msgs that direct
the controller to do a single transfer with no bus STOP/START between the
two buffers.  It turns out we have multiple i2c hardware drivers that don't
honor the NOSTOP and NOSTART flags; sometimes they just try to do the
transfers anyway, creating confusing failures or leading to corrupted data.

FreeBSD/src 354972head/sys/arm/include profile.h, head/sys/mips/include profile.h

Remove two obsolete comments that reference splhigh/splx.

FreeBSD/src 354971head/sys/modules/geom/geom_uzip Makefile

Use kmod.opts.mk to fix standalone build.

FreeBSD/src 354970head/share/mk kmod.opts.mk, head/sys/conf kmod.opts.mk kmod.mk

Add a kmod.opts.mk.

This Makefile sets KERN_OPTS.  This permits kernel module Makefiles to
use KERN_OPTS to control the value of variables such as SRCS that are
used by bsd.kmod.mk for KERN_OPTS values that honor WITH/WITHOUT
options for standalone builds.

FreeBSD/ports 518106head/cad/openvsp pkg-plist Makefile

cad/openvsp: update to 3.19.1

ChangeLog:
http://openvsp.org/blogs/announcements/2019/11/18/openvsp-3-19-1-released

Features:

    * Add rotating blade examples for VSPAERO
    * Let vspviewer accept *.adb in file name passed, helps with double-click
    * Use less precision in M,A,B list from GUI to VSPAERO - long command lines
    * Clean up some warnings in VSPAERO code
    * Update VSPAERO command line documentation

Bug Fixes:

    * Fix field ordering in DegenGeom file - this broke VSPAERO
    * Fix problem with image backgrounds
    * Remove XS_BEZIER reference from Python test
    * Improve Ubuntu package to remove prior version
    * Fix PathToExe for FreeBSD

FreeBSD/ports 518105head/sysutils/sanoid distinfo Makefile, head/sysutils/sanoid-devel Makefile distinfo

Update to latest versions

PR:            241769
Submitted by:   hartzell at alerce.com

FreeBSD/doc 53619head/en_US.ISO8859-1/articles/committers-guide article.xml, head/en_US.ISO8859-1/htdocs/platforms index.xml

Rewrite the platform Tier definitions.

Rewrite the prose description of Tiers to be structured as bullet
lists of guarantees to users from the Project, guarantees to
developers from the Project, and obligations on developers.

This includes definitions of userland and kernel ABIs as well as
documenting our current practice of ABI stability.

The committments for ports are still vague and will require further
refinement.

Move the Tier status of architectures out of the committers guide and
into a table on the platforms page the website listing the Tier for
each architecture across currently supported stable branches as well
as the projected Tiers for the next stable branch (in this case,
13.x).  The table also lists individual TARGET_ARCH values to permit
more granularity in Tier definitions (e.g. hard-float vs soft-float).

Update the Unsupported Platforms table to only list removed
architectures and include the last supported release of these
architectures.  This required adding anchors for relevant releases on
the releases page.

Reviewed by:    bcr

    [2 lines not shown]

FreeBSD/ports 518104head/audio/wavbreaker distinfo pkg-plist

audio/wavbreaker: update to 0.13

Changes:        https://github.com/thp/wavbreaker/releases/tag/0.13
Reported by:    GitHub (watch releases)

FreeBSD/ports 518103head/multimedia/kodi-addon-inputstream.adaptive-devel distinfo pkg-plist

multimedia/kodi-addon-inputstream.adaptive-devel: Update to 2.5.3

Changes:        https://github.com/peak3d/inputstream.adaptive/commits/2.5.3-Matrix

FreeBSD/ports 518102head/multimedia/plexmediaserver distinfo Makefile, head/multimedia/plexmediaserver-plexpass distinfo Makefile

multimedia/plexmediaserver{-plexpass}: Update to 1.18.2.2041

Changelog:      https://forums.plex.tv/t/plex-media-server/30447/302

FreeBSD/src 354969head/sys/dev/usb usbdevs, head/sys/dev/usb/video udl.c

Add USB ID for Diamond Multimedia BVU195 Display Link device.

Submitted by:   darius at dons.net.au
PR:            242128
MFC after:      1 week
Sponsored by:   Mellanox Technologies

FreeBSD/src 354968head/share/mk bsd.kmod.mk bsd.dtb.mk, head/sys/conf kmod.mk dtb.build.mk

Introduce bsd.sysdir.mk to consolidate looking for the kernel.

Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D22144

FreeBSD/src 354967head/usr.sbin/bsdinstall bsdinstall.8

bsdinstall.8: Fix description of DISTRIBUTIONS environment variable

Reviewed by:    bcr
Approved by:    bcr (mentor)
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D22478