shmfd: consistently return size in 512 byte blocks for fstat(2) st_blocks
This is ABI-breaking change that could be considered as the bug fix.
Requested by: David Timber <dxdt at dev.snart.me>
Reviewed by: emaste, markj
Sponsored by: The FreeBSD Foundation
Relnotes: yes
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D58942
multimedia/webcamd: Fix 16-CURRENT build
16-CURRENT added capsicum support to libusb in src commit 749318f2ae56.
Chase this change by adding a couple of #ifdefs to determine whether
building under 16-CURRENT or not.
Approved by: portmgr (implicit, fix it)
devel/py-simpleparse: Fix build with Python 3.12+
cc -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -DMX_BUILDING_MXTEXTTOOLS=1 -DPY_SSIZE_T_CLEAN=1 -DDEBUG=1 -Isimpleparse/stt/TextTools/mxTextTools -I/usr/local/include/python3.12 -c simpleparse/stt/TextTools/mxTextTools/mxTextTools.c -o build/temp.freebsd-15.0-RELEASE-p11-amd64-cpython-312/simpleparse/stt/TextTools/mxTextTools/mxTextTools.o
simpleparse/stt/TextTools/mxTextTools/mxTextTools.c:244:13: warning: call to undeclared function 'PyUnicode_GET_SIZE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
244 | return PyUnicode_GET_SIZE(so->match);
| ^
simpleparse/stt/TextTools/mxTextTools/mxTextTools.c:389:15: warning: 'PyObject_AsCharBuffer' is deprecated [-Wdeprecated-declarations]
389 | else if (PyObject_AsCharBuffer(so->match, &match, &match_len))
| ^
/usr/local/include/python3.12/abstract.h:351:1: note: 'PyObject_AsCharBuffer' has been explicitly marked deprecated here
351 | Py_DEPRECATED(3.0)
| ^
/usr/local/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
317 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
| ^
simpleparse/stt/TextTools/mxTextTools/mxTextTools.c:448:11: warning: call to undeclared function 'PyUnicode_AS_UNICODE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
448 | match = PyUnicode_AS_UNICODE(so->match);
| ^
simpleparse/stt/TextTools/mxTextTools/mxTextTools.c:448:9: error: incompatible integer to pointer conversion assigning to 'Py_UNICODE *' (aka 'int *') from 'int' [-Wint-conversion]
[166 lines not shown]