05.09.2024 02:25, Kirill A. Korinsky пишет:
> ports@, Remi,
> 
> Here an update of security/wapiti to the last version 3.2.0 from 3.0.1 which
> was released in May of 2018.
> 
> So, time pasts, and it needs new dependencies which I ported as well.
> 
> Thus, right now wapiti fails as:
> 
>       File 
> "/usr/local/lib/python3.11/site-packages/wapitiCore/main/wapiti.py", line 39, 
> in <module>
>         from wapitiCore.language.language import _
>       File 
> "/usr/local/lib/python3.11/site-packages/wapitiCore/language/language.py", 
> line 62, in <module>
>         lan = gettext.translation(
>               ^^^^^^^^^^^^^^^^^^^^
>     TypeError: translation() got an unexpected keyword argument 'codeset'

Do we know what broke this and when?

Is there perhaps an small/easy fix to unbreak our port before we import 11 
ports for it?

> 
> To this email I've attached new ports:
> 
>     - databases/py-aiosqlite
>     - devel/py-aiocache
>     - devel/py-loguru
>     - devel/py-prance
>     - devel/py-structlog
>     - misc/py-aiomcache
>     - security/py-krb5
>     - security/py-spnego
>     - www/py-arsenic
>     - www/py-browser-cookie3
>     - www/py-httpx-ntlm
> 
> devel/py-aiocache also requires an update py-redis which is discussed here:
> https://marc.info/?l=openbsd-ports&m=172544735321024&w=2


> +# Tests installs specified version via netowrk, disable it
> +NO_TEST=             Yes

Doesn't match bsd.port.mk(5) for NO_TEST.
Porters should be able to run tests if they exist;  they may enable network
or do not use PORTS_PRIVSEP in the first place.

But you can indicate indicate such behaviour with TEST_IS_INTERACTIVE=network.

> +
> +post-install:
> +     find ${PREFIX}/lib/python${MODPY_VERSION}/site-packages \
> +             -name 'requires.txt' -type f -exec rm {} \;

I'd swap the -name and -type primaries, they are evaluated in order and only 
files
will be called that.

> +     rm -R ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/doc

I think you can skip that in the first place with -prune.

> +     ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/wapiti
> +     ${INSTALL_DATA} ${WRKSRC}/doc/* \
> +             ${PREFIX}/share/doc/wapiti
> +     mv ${PREFIX}/share/doc/wapiti/*.1 ${PREFIX}/man/man1

Reply via email to