dhclient: Improve server and filename validation
* Don't iterate over each string three times; once is enough.
* Reject control characters (anything below space) in addition to the
double quote and backslash.
* If an unsafe character is encountered, discard the string instead of
rejecting the entire lease.
* If backslashes are encountered in the file name option, convert them
to forward slashes instead of rejecting the option.
* Tweak the warning messages a bit. Looking through the rest of the
code, it seems to me that notes generally end with a period while
warnings generally don't.
Fixes: 8008e4b88daf ("dhclient: Check for unexpected characters in some DHCP server options")
PR: 294886
[3 lines not shown]
misc/py-numcodecs: Fix RUN_DEPENDS
- Change from py-numpy to py-numpy
- Do not bump PORTREVISION because this port does not build before
bbea9171d95c59cc03d10c677a166373137d5208 breaks all dependent ports.
For example:
- devel/py-anndata
- devel/py-xarray
- devel/py-xarray-simlab
- devel/py-zarr
- filesystems/py-kerchunk
- graphics/py-imagecodecs
- graphics/py-imageio
- graphics/py-scikit-image
- graphics/py-tifffile
- math/py-mathics
- misc/py-napari
- www/py-sentinelhub
[2 lines not shown]
misc/py-numcodecs: Fix patch-pyproject.toml
The error message is as follows:
===> Configuring for py311-numcodecs-0.16.5
/usr/local/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py:104: _BetaConfiguration: Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*.
warnings.warn(msg, _BetaConfiguration)
configuration error: `project` must not contain {'license-files'} properties
...
ValueError: invalid pyproject.toml config: `project`
*** Error code 1
Stop.
make: stopped in /usr/ports/misc/py-numcodecs
Approved by: portmgr (blanket)
misc/py-numcodecs: Fix BUILD_DEPENDS
- Add missing py-numpy1
- Remove lang/cython: it is done by USE_PYTHON=cython
The error message is as follows:
===> Configuring for py311-numcodecs-0.16.5
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "setup.py", line 385, in <module>
run_setup(with_extensions)
File "setup.py", line 366, in run_setup
+ vlen_extension()
^^^^^^^^^^^^^^^^
File "setup.py", line 208, in vlen_extension
import numpy
ModuleNotFoundError: No module named 'numpy'
...
*** Error code 1
[7 lines not shown]