Control battery charging support in x11/kde-plasma/powerdevil

2024-06-07 Thread Rafael Sadowski
Please find below a simple patch to add control battery charging support
in powerdevil aka KDE Plamsa - systemsettings via sysctl(2).

I would be happy if someone would take a look at the code.

Rafael

Index: Makefile
===
RCS file: /cvs/ports/x11/kde-plasma/powerdevil/Makefile,v
diff -u -p -r1.4 Makefile
--- Makefile20 May 2024 06:39:26 -  1.4
+++ Makefile7 Jun 2024 09:16:00 -
@@ -1,5 +1,6 @@
 COMMENT =  power management daemon
 DISTNAME = powerdevil-${VERSION}
+REVISION = 0
 
 WANTLIB += ${COMPILER_LIBCXX} GL KF6AuthCore KF6ColorScheme KF6Completion
 WANTLIB += KF6ConfigCore KF6ConfigGui KF6ConfigWidgets KF6CoreAddons
Index: patches/patch-daemon_chargethresholdhelper_cpp
===
RCS file: patches/patch-daemon_chargethresholdhelper_cpp
diff -N patches/patch-daemon_chargethresholdhelper_cpp
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-daemon_chargethresholdhelper_cpp  7 Jun 2024 09:16:00 
-
@@ -0,0 +1,113 @@
+Index: daemon/chargethresholdhelper.cpp
+--- daemon/chargethresholdhelper.cpp.orig
 daemon/chargethresholdhelper.cpp
+@@ -8,6 +8,11 @@
+ 
+ #include 
+ 
++#if defined(__OpenBSD__)
++  #include 
++  #include 
++#endif
++
+ #include 
+ 
+ #include 
+@@ -107,10 +112,89 @@ static bool setThresholds(const QString &which, int th
+ return true;
+ }
+ 
++#if defined(__OpenBSD__)
++static bool isThresholdSupported()
++{
++int mode;
++size_t len = sizeof(mode);
++int mib[] = {CTL_HW, HW_BATTERY, HW_BATTERY_CHARGEMODE};
++return (sysctl(mib, 3, &mode, &len, NULL, 0) != -1);
++}
++
++static int getBatteryCharge(const int type)
++{
++int percentage = -1;
++size_t len = sizeof(percentage);
++int mib[] = {CTL_HW, HW_BATTERY, type};
++sysctl(mib, 3, &percentage, &len, NULL, 0);
++return percentage;
++}
++
++static bool setBatteryCharge(const int type, int percentage)
++{
++size_t len = sizeof(percentage);
++int mib[] = {CTL_HW, HW_BATTERY, type};
++return (sysctl(mib, 3, NULL, 0, &percentage, len) != -1);
++}
++
+ ActionReply ChargeThresholdHelper::getthreshold(const QVariantMap &args)
+ {
+ Q_UNUSED(args);
+ 
++if (!isThresholdSupported()) {
++auto reply = ActionReply::HelperErrorReply();
++reply.setErrorDescription(QStringLiteral("Control battery charging is 
not supported by the kernel for this hardware"));
++return reply;
++}
++
++const int startThreshold = getBatteryCharge(HW_BATTERY_CHARGESTART);
++const int stopThreshold = getBatteryCharge(HW_BATTERY_CHARGESTOP);
++
++ActionReply reply;
++reply.setData({
++{QStringLiteral("chargeStartThreshold"), startThreshold},
++{QStringLiteral("chargeStopThreshold"), stopThreshold},
++});
++return reply;
++}
++
++ActionReply ChargeThresholdHelper::setthreshold(const QVariantMap &args)
++{
++bool hasStartThreshold;
++const int startThreshold = 
args.value(QStringLiteral("chargeStartThreshold"), 
-1).toInt(&hasStartThreshold);
++hasStartThreshold &= startThreshold != -1;
++
++bool hasStopThreshold;
++const int stopThreshold = 
args.value(QStringLiteral("chargeStopThreshold"), -1).toInt(&hasStopThreshold);
++hasStopThreshold &= stopThreshold != -1;
++
++if ((hasStartThreshold && (startThreshold < 0 || startThreshold > 100)) 
|| (hasStopThreshold && (stopThreshold < 0 || stopThreshold > 100))
++|| (hasStartThreshold && hasStopThreshold && startThreshold > 
stopThreshold) || (!hasStartThreshold && !hasStopThreshold)) {
++auto reply = ActionReply::HelperErrorReply(); // is there an "invalid 
arguments" error?
++reply.setErrorDescription(QStringLiteral("Invalid thresholds 
provided"));
++return reply;
++}
++if (hasStartThreshold && !(setBatteryCharge(HW_BATTERY_CHARGESTART, 
startThreshold)
++|| setBatteryCharge(HW_BATTERY_CHARGESTART, startThreshold))) {
++auto reply = ActionReply::HelperErrorReply();
++reply.setErrorDescription(QStringLiteral("Failed to write start 
charge threshold"));
++return reply;
++}
++
++if (hasStopThreshold && !(setBatteryCharge(HW_BATTERY_CHARGESTOP, 
stopThreshold)
++|| setBatteryCharge(HW_BATTERY_CHARGESTOP, stopThreshold))) {
++auto reply = ActionReply::HelperErrorReply();
++reply.setErrorDescription(QStringLiteral("Failed to write stop charge 
threshold"));
++return reply;
++}
++
++return ActionReply();
++}
++#else // Linux and friends
++ActionReply ChargeThresholdHelper::getthreshold(const QVariantMap &args)
++{
++Q_UNUSED(args);
++
+ auto startThresholds = getThresholds(s_chargeStartThreshold);
+ auto stopThresholds = getThresholds(s_chargeEndThreshold);
+ 
+@@ -174,6 +258,7 @@ ActionReply ChargeThresholdHelper::setthreshold(const 
+ 
+ return ActionReply();
+ }
++#endif
+ 
+ KAUT

Re: Control battery charging support in x11/kde-plasma/powerdevil

2024-06-07 Thread Omar Polo
On 2024/06/07 11:20:29 +0200, Rafael Sadowski  wrote:
> Please find below a simple patch to add control battery charging support
> in powerdevil aka KDE Plamsa - systemsettings via sysctl(2).
> 
> I would be happy if someone would take a look at the code.

never used plasma so haven't tested, but fwiw the sysctl(2) bits looks
fine to me.

> [...]
> ++#if defined(__OpenBSD__)
> ++static bool isThresholdSupported()
> ++{
> ++int mode;
> ++size_t len = sizeof(mode);
> ++int mib[] = {CTL_HW, HW_BATTERY, HW_BATTERY_CHARGEMODE};
> ++return (sysctl(mib, 3, &mode, &len, NULL, 0) != -1);

I was a bit surprised by this initially.  However, you're just testing
whether the hw.battery node is available, so this seems fine to me.
Maybe add a comment just in case?  Just to save a few seconds to the
next one glancing at this.

> ++}
> ++
> ++static int getBatteryCharge(const int type)
> ++{
> ++int percentage = -1;
> ++size_t len = sizeof(percentage);
> ++int mib[] = {CTL_HW, HW_BATTERY, type};
> ++sysctl(mib, 3, &percentage, &len, NULL, 0);

maybe consider checking whether sysctl returns successfully here or not.
If we call this, it means that thet hw.battery node exists, so this
shouldn't be failing, but still it doesn't cost much to add an if.

> ++return percentage;
> ++}



Thanks,

Omar Polo



Re: Control battery charging support in x11/kde-plasma/powerdevil

2024-06-07 Thread Rafael Sadowski
On Fri Jun 07, 2024 at 12:20:41PM +0200, Omar Polo wrote:
> On 2024/06/07 11:20:29 +0200, Rafael Sadowski  wrote:
> > Please find below a simple patch to add control battery charging support
> > in powerdevil aka KDE Plamsa - systemsettings via sysctl(2).
> > 
> > I would be happy if someone would take a look at the code.
> 
> never used plasma so haven't tested, but fwiw the sysctl(2) bits looks
> fine to me.

Thanks for your feedback!

> 
> > [...]
> > ++#if defined(__OpenBSD__)
> > ++static bool isThresholdSupported()
> > ++{
> > ++int mode;
> > ++size_t len = sizeof(mode);
> > ++int mib[] = {CTL_HW, HW_BATTERY, HW_BATTERY_CHARGEMODE};
> > ++return (sysctl(mib, 3, &mode, &len, NULL, 0) != -1);
> 
> I was a bit surprised by this initially.  However, you're just testing
> whether the hw.battery node is available, so this seems fine to me.
> Maybe add a comment just in case?  Just to save a few seconds to the
> next one glancing at this.

Yes, that was my idea, I have no other way of checking whether this feature is
available. Good point I'll add a comment.

> 
> > ++}
> > ++
> > ++static int getBatteryCharge(const int type)
> > ++{
> > ++int percentage = -1;
> > ++size_t len = sizeof(percentage);
> > ++int mib[] = {CTL_HW, HW_BATTERY, type};
> > ++sysctl(mib, 3, &percentage, &len, NULL, 0);
> 
> maybe consider checking whether sysctl returns successfully here or not.
> If we call this, it means that thet hw.battery node exists, so this
> shouldn't be failing, but still it doesn't cost much to add an if.

Yeah, I didn't see the point. if sysctl(2) fails I return -1 (default).  If it
passed I return the value set by sysctl. I safe code and one more return
statement.
> 
> > ++return percentage;
> > ++}
> 
> 
> 
> Thanks,
> 
> Omar Polo
> 



Re: [update] lang/go to 1.22.4; add missed syscall.EBADMSG

2024-06-07 Thread Stuart Henderson
On 2024/06/07 01:04, Kirill A. Korinsky wrote:
> I also included trivial patches to add missed syscall.EBADMSG on 386, amd64
> and arm which allows to remove dozen of patches from port tree.

slight exaggeration... 7 patches in docker-compose and 7 in
docker-buildx, all because of github.com/tonistiigi/fsutil.

afaik they're meant to be getting these from golang.org/x/sys/unix
(where EBADMSG *is* present for all OpenBSD platforms) rather than
go itself anyway?


> 
> Tested on -current/amd64.
> 
> diff --git lang/go/Makefile lang/go/Makefile
> index 87e960b38a5..4213793cbf5 100644
> --- lang/go/Makefile
> +++ lang/go/Makefile
> @@ -7,7 +7,7 @@ COMMENT = Go programming language
>  
>  # increment _MODGO_SYSTEM_VERSION in go.port.mk after updating to a new
>  # version, to trigger updates of go-compiled ports
> -VERSION =1.22.3
> +VERSION =1.22.4
>  DISTNAME =   go${VERSION}.src
>  PKGNAME =go-${VERSION}
>  PKGSPEC =${FULLPKGNAME:S/go-/go-=/}
> diff --git lang/go/distinfo lang/go/distinfo
> index a70f909087a..28eabcd6e3d 100644
> --- lang/go/distinfo
> +++ lang/go/distinfo
> @@ -4,11 +4,11 @@ SHA256 (go-openbsd-arm-bootstrap-1.20.4.tar.gz) = 
> MFK9DdbKJSqyYFLANhKbD6KWT1x+wX
>  SHA256 (go-openbsd-arm64-bootstrap-1.20.4.tar.gz) = 
> G3sZhx63D+QLEgbwU1+d3ECiVJjVrFD5RqD2/qutXmI=
>  SHA256 (go-openbsd-mips64-bootstrap-1.20.4.tar.gz) = 
> CaZYJ+pIQp+lp721Ox45Y8uqkbsygcfyDFxQsqabPIs=
>  SHA256 (go-openbsd-riscv64-bootstrap-1.20.4.tar.gz) = 
> lQv/8KPWi8U3yLG+k3xVDNRVzxa5rmPIIpJUDrwVo0o=
> -SHA256 (go1.22.3.src.tar.gz) = gGSO80+QMZPXKlnA3/AZ9fmK4MmqE63gsOy/+ZGnb2g=
> +SHA256 (go1.22.4.src.tar.gz) = /tcgZ45yinyjC6jR3tHKr+J9FgKPqwIyuLqOIgCPt4Q=
>  SIZE (go-openbsd-386-bootstrap-1.20.4.tar.gz) = 100681343
>  SIZE (go-openbsd-amd64-bootstrap-1.20.4.tar.gz) = 107075675
>  SIZE (go-openbsd-arm-bootstrap-1.20.4.tar.gz) = 104680775
>  SIZE (go-openbsd-arm64-bootstrap-1.20.4.tar.gz) = 102706601
>  SIZE (go-openbsd-mips64-bootstrap-1.20.4.tar.gz) = 105352848
>  SIZE (go-openbsd-riscv64-bootstrap-1.20.4.tar.gz) = 106167229
> -SIZE (go1.22.3.src.tar.gz) = 27552410
> +SIZE (go1.22.4.src.tar.gz) = 2703
> diff --git lang/go/patches/patch-src_syscall_zerrors_openbsd_386_go 
> lang/go/patches/patch-src_syscall_zerrors_openbsd_386_go
> new file mode 100644
> index 000..58d7b282dc6
> --- /dev/null
> +++ lang/go/patches/patch-src_syscall_zerrors_openbsd_386_go
> @@ -0,0 +1,11 @@
> +Index: src/syscall/zerrors_openbsd_386.go
> +--- src/syscall/zerrors_openbsd_386.go.orig
>  src/syscall/zerrors_openbsd_386.go
> +@@ -1330,6 +1330,7 @@ const (
> + EALREADY= Errno(0x25)
> + EAUTH   = Errno(0x50)
> + EBADF   = Errno(0x9)
> ++EBADMSG = Errno(0x5c)
> + EBADRPC = Errno(0x48)
> + EBUSY   = Errno(0x10)
> + ECANCELED   = Errno(0x58)
> diff --git lang/go/patches/patch-src_syscall_zerrors_openbsd_amd64_go 
> lang/go/patches/patch-src_syscall_zerrors_openbsd_amd64_go
> new file mode 100644
> index 000..3027cd91787
> --- /dev/null
> +++ lang/go/patches/patch-src_syscall_zerrors_openbsd_amd64_go
> @@ -0,0 +1,11 @@
> +Index: src/syscall/zerrors_openbsd_amd64.go
> +--- src/syscall/zerrors_openbsd_amd64.go.orig
>  src/syscall/zerrors_openbsd_amd64.go
> +@@ -1329,6 +1329,7 @@ const (
> + EALREADY= Errno(0x25)
> + EAUTH   = Errno(0x50)
> + EBADF   = Errno(0x9)
> ++EBADMSG = Errno(0x5c)
> + EBADRPC = Errno(0x48)
> + EBUSY   = Errno(0x10)
> + ECANCELED   = Errno(0x58)
> diff --git lang/go/patches/patch-src_syscall_zerrors_openbsd_arm_go 
> lang/go/patches/patch-src_syscall_zerrors_openbsd_arm_go
> new file mode 100644
> index 000..f0ffcb34cbc
> --- /dev/null
> +++ lang/go/patches/patch-src_syscall_zerrors_openbsd_arm_go
> @@ -0,0 +1,11 @@
> +Index: src/syscall/zerrors_openbsd_arm.go
> +--- src/syscall/zerrors_openbsd_arm.go.orig
>  src/syscall/zerrors_openbsd_arm.go
> +@@ -1329,6 +1329,7 @@ const (
> + EALREADY= Errno(0x25)
> + EAUTH   = Errno(0x50)
> + EBADF   = Errno(0x9)
> ++EBADMSG = Errno(0x5c)
> + EBADRPC = Errno(0x48)
> + EBUSY   = Errno(0x10)
> + ECANCELED   = Errno(0x58)
> diff --git lang/go/pkg/PLIST lang/go/pkg/PLIST
> index 10203640095..6ab40404a65 100644
> --- lang/go/pkg/PLIST
> +++ lang/go/pkg/PLIST
> @@ -188,6 +188,7 @@ go/src/archive/zip/reader_test.go
>  go/src/archive/zip/register.go
>  go/src/archive/zip/struct.go
>  go/src/archive/zip/testdata/
> +go/src/archive/zip/testdata/comment-truncated.zip
>  go/src/archive/zip/testdata/crc32-not-streamed.zip
>  go/src/archive/zip/testdata/dd.zip
>  go/src/archive/zip/testdata/dupdir.zip
> @@ -2576,6 +2577,7 @@ go/src/cmd/go/testdata/script/gopath_std_vendor.txt
>  go/src/cmd/go/testdata/script/gopath_vendor_dup_err.txt
>  go/src/cmd/go/testdata/script/goro

[new] archivers/py-brotlicffi: version 1.1.0.0

2024-06-07 Thread Kirill A . Korinsky
ports@,

I'm working to update and fix security/wapiti and it requires to import some
new pythong ports.

Here the first in the list: archivers/py-brotlicffi which I linked against
ports brotli instead of shiped version.

Anyway make port-lib-depends-check complains on this port as:

  py3-brotlicffi-1.1.0.0(archivers/py-brotlicffi,python3):
  Bogus WANTLIB: brotlidec.1 
(/usr/local/lib/python3.11/site-packages/brotlicffi/_brotlicffi.abi3.so) (NOT 
REACHABLE)
  Bogus WANTLIB: brotlienc.1 
(/usr/local/lib/python3.11/site-packages/brotlicffi/_brotlicffi.abi3.so) (NOT 
REACHABLE)
  *** Error 1 in target 'port-lib-depends-check' (ignored)

and I have no udea how to fix it.

Thanks.

--
wbr, Kirill


py-brotlicffi-1.1.0.0.tgz
Description: Binary data


Re: [patch] www/nginx: update third-party modules

2024-06-07 Thread Sergey A. Osokin
Hello,

could you please provide an update.

Thank you.

-- 
Sergey A. Osokin

On Sat, Jun 01, 2024 at 06:30:04PM +, Sergey A. Osokin wrote:
[...]
> 
> here's the patch to update www/nginx third-party modules to their
> recent versions.

[...]

> Index: Makefile
> ===
> RCS file: /cvs/ports/www/nginx/Makefile,v
> diff -u -p -r1.179 Makefile
> --- Makefile  30 May 2024 12:41:00 -  1.179
> +++ Makefile  1 Jun 2024 18:27:07 -
> @@ -22,8 +22,8 @@ VERSION=1.26.1
>  DISTNAME=nginx-${VERSION}
>  CATEGORIES=  www
>  
> -VERSION-njs= 0.8.2
> -VERSION-rtmp=1.2.1
> +VERSION-njs= 0.8.4
> +VERSION-rtmp=1.2.2
>  
>  PKGNAME-main=${DISTNAME}
>  PKGNAME-image_filter=nginx-image_filter-${VERSION}
> @@ -41,6 +41,8 @@ PKGNAME-passenger=  nginx-passenger-${VER
>  PKGNAME-rtmp=nginx-rtmp-${VERSION}
>  PKGNAME-securelink=  nginx-securelink-${VERSION}
>  
> +REVISION-main=   0
> +
>  ONLY_FOR_ARCHS-passenger= aarch64 amd64 arm i386
>  
>  SITES=   https://nginx.org/download/
> @@ -55,8 +57,8 @@ _GH_MODS=   \
>   kvspb   nginx-auth-ldap 
> 83c059b73566c2ee9cbda920d91b66657cf120b7 \
>   arutnginx-rtmp-module   v${VERSION-rtmp} \
>   nginx   njs ${VERSION-njs} \
> - simpl   ngx_devel_kit   v0.3.0 \
> - leevngx_http_geoip2_module  3.3 \
> + vision5 ngx_devel_kit   v0.3.3 \
> + leevngx_http_geoip2_module  3.4 \
>   nginx-modules   ngx_http_hmac_secure_link_module 
> 48c4625fbbf51ed5a95bfec23fa444f6c3702e50
>  
>  .for _a _p _c in ${_GH_MODS}
> Index: distinfo
> ===
> RCS file: /cvs/ports/www/nginx/distinfo,v
> diff -u -p -r1.85 distinfo
> --- distinfo  30 May 2024 12:41:00 -  1.85
> +++ distinfo  1 Jun 2024 18:27:07 -
> @@ -4,19 +4,19 @@ SHA256 (naxsi-d714f1636ea49a9a9f4f06dba1
>  SHA256 (nginx-1.20.1-chroot.patch) = 
> SS1TB0j8N4/dn5pUTGT6WvkN3aAUuKz5+R0Nt+MG0gk=
>  SHA256 (nginx-1.26.1.tar.gz) = +Rh0aP8usVkmC/1Thnwl/44zRyYjes8ie56HDlPT42s=
>  SHA256 (nginx-auth-ldap-83c059b73566c2ee9cbda920d91b66657cf120b7.tar.gz) = 
> aQxOW9sq4ZsP7nXNNW0YATRo20cmFrYJeloLvjRshGQ=
> -SHA256 (nginx-rtmp-module-v1.2.1.tar.gz) = 
> h6pZdACwtaBSdO4tI9jLgiThJoYiegq+MdeDs6ZF6jc=
> -SHA256 (ngx_devel_kit-v0.3.0.tar.gz) = 
> iOBamainQZBm9a51lm+x78QJutRSLRSYbaB0VUrmFhk=
> -SHA256 (ngx_http_geoip2_module-3.3.tar.gz) = 
> QTeEOMgz4xOhiGnQxKcnBLSDXDCsr3/WgBOrZzL/eKc=
> +SHA256 (nginx-rtmp-module-v1.2.2.tar.gz) = 
> B/Gbe//sXjV7uIIMY+UoHevUX1oubUaxY22SAsPgnXg=
> +SHA256 (ngx_devel_kit-v0.3.3.tar.gz) = 
> +qL81RaLEHZNNQgTVlEdX4TbXFJqGqS2rdLblLaFOys=
> +SHA256 (ngx_http_geoip2_module-3.4.tar.gz) = 
> rXL8IzSNcVozCZSYRTH6ubNgbhYEgyNnN/mkppV9lFI=
>  SHA256 
> (ngx_http_hmac_secure_link_module-48c4625fbbf51ed5a95bfec23fa444f6c3702e50.tar.gz)
>  = ZXpA2rODS1enIREzlD1OqWwpWcv3NOUXH4eUOgOAmqg=
> -SHA256 (njs-0.8.2.tar.gz) = bxc4fbjfkLbjOC0oBFWWL/hforGjLZHCzh/Rr1qFTXI=
> +SHA256 (njs-0.8.4.tar.gz) = /hl+JUIEwV6fHfCs83Wt1XvjQWkB7I17hzGdzLSQ+Q0=
>  SIZE (headers-more-nginx-module-v0.34.tar.gz) = 28827
>  SIZE (lua-nginx-module-v0.10.11.tar.gz) = 616653
>  SIZE (naxsi-d714f1636ea49a9a9f4f06dba14aee003e970834.tar.gz) = 237272
>  SIZE (nginx-1.20.1-chroot.patch) = 8783
>  SIZE (nginx-1.26.1.tar.gz) = 1244738
>  SIZE (nginx-auth-ldap-83c059b73566c2ee9cbda920d91b66657cf120b7.tar.gz) = 
> 18542
> -SIZE (nginx-rtmp-module-v1.2.1.tar.gz) = 519919
> -SIZE (ngx_devel_kit-v0.3.0.tar.gz) = 66455
> -SIZE (ngx_http_geoip2_module-3.3.tar.gz) = 8509
> +SIZE (nginx-rtmp-module-v1.2.2.tar.gz) = 519934
> +SIZE (ngx_devel_kit-v0.3.3.tar.gz) = 66561
> +SIZE (ngx_http_geoip2_module-3.4.tar.gz) = 8877
>  SIZE 
> (ngx_http_hmac_secure_link_module-48c4625fbbf51ed5a95bfec23fa444f6c3702e50.tar.gz)
>  = 6159
> -SIZE (njs-0.8.2.tar.gz) = 733916
> +SIZE (njs-0.8.4.tar.gz) = 743910



Re: [patch] www/nginx: update third-party modules

2024-06-07 Thread Stuart Henderson
On 2024/06/07 13:26, Sergey A. Osokin wrote:
> Hello,
> 
> could you please provide an update.

Update is: There's been no reply from the maintainer yet. But it's
only been a few days.

> Thank you.
> 
> -- 
> Sergey A. Osokin
> 
> On Sat, Jun 01, 2024 at 06:30:04PM +, Sergey A. Osokin wrote:
> [...]
> > 
> > here's the patch to update www/nginx third-party modules to their
> > recent versions.
> 
> [...]
> 
> > Index: Makefile
> > ===
> > RCS file: /cvs/ports/www/nginx/Makefile,v
> > diff -u -p -r1.179 Makefile
> > --- Makefile30 May 2024 12:41:00 -  1.179
> > +++ Makefile1 Jun 2024 18:27:07 -
> > @@ -22,8 +22,8 @@ VERSION=  1.26.1
> >  DISTNAME=  nginx-${VERSION}
> >  CATEGORIES=www
> >  
> > -VERSION-njs=   0.8.2
> > -VERSION-rtmp=  1.2.1
> > +VERSION-njs=   0.8.4
> > +VERSION-rtmp=  1.2.2
> >  
> >  PKGNAME-main=  ${DISTNAME}
> >  PKGNAME-image_filter=  nginx-image_filter-${VERSION}
> > @@ -41,6 +41,8 @@ PKGNAME-passenger=nginx-passenger-${VER
> >  PKGNAME-rtmp=  nginx-rtmp-${VERSION}
> >  PKGNAME-securelink=nginx-securelink-${VERSION}
> >  
> > +REVISION-main= 0
> > +
> >  ONLY_FOR_ARCHS-passenger= aarch64 amd64 arm i386
> >  
> >  SITES= https://nginx.org/download/
> > @@ -55,8 +57,8 @@ _GH_MODS= \
> > kvspb   nginx-auth-ldap 
> > 83c059b73566c2ee9cbda920d91b66657cf120b7 \
> > arutnginx-rtmp-module   v${VERSION-rtmp} \
> > nginx   njs ${VERSION-njs} \
> > -   simpl   ngx_devel_kit   v0.3.0 \
> > -   leevngx_http_geoip2_module  3.3 \
> > +   vision5 ngx_devel_kit   v0.3.3 \
> > +   leevngx_http_geoip2_module  3.4 \
> > nginx-modules   ngx_http_hmac_secure_link_module 
> > 48c4625fbbf51ed5a95bfec23fa444f6c3702e50
> >  
> >  .for _a _p _c in ${_GH_MODS}
> > Index: distinfo
> > ===
> > RCS file: /cvs/ports/www/nginx/distinfo,v
> > diff -u -p -r1.85 distinfo
> > --- distinfo30 May 2024 12:41:00 -  1.85
> > +++ distinfo1 Jun 2024 18:27:07 -
> > @@ -4,19 +4,19 @@ SHA256 (naxsi-d714f1636ea49a9a9f4f06dba1
> >  SHA256 (nginx-1.20.1-chroot.patch) = 
> > SS1TB0j8N4/dn5pUTGT6WvkN3aAUuKz5+R0Nt+MG0gk=
> >  SHA256 (nginx-1.26.1.tar.gz) = +Rh0aP8usVkmC/1Thnwl/44zRyYjes8ie56HDlPT42s=
> >  SHA256 (nginx-auth-ldap-83c059b73566c2ee9cbda920d91b66657cf120b7.tar.gz) = 
> > aQxOW9sq4ZsP7nXNNW0YATRo20cmFrYJeloLvjRshGQ=
> > -SHA256 (nginx-rtmp-module-v1.2.1.tar.gz) = 
> > h6pZdACwtaBSdO4tI9jLgiThJoYiegq+MdeDs6ZF6jc=
> > -SHA256 (ngx_devel_kit-v0.3.0.tar.gz) = 
> > iOBamainQZBm9a51lm+x78QJutRSLRSYbaB0VUrmFhk=
> > -SHA256 (ngx_http_geoip2_module-3.3.tar.gz) = 
> > QTeEOMgz4xOhiGnQxKcnBLSDXDCsr3/WgBOrZzL/eKc=
> > +SHA256 (nginx-rtmp-module-v1.2.2.tar.gz) = 
> > B/Gbe//sXjV7uIIMY+UoHevUX1oubUaxY22SAsPgnXg=
> > +SHA256 (ngx_devel_kit-v0.3.3.tar.gz) = 
> > +qL81RaLEHZNNQgTVlEdX4TbXFJqGqS2rdLblLaFOys=
> > +SHA256 (ngx_http_geoip2_module-3.4.tar.gz) = 
> > rXL8IzSNcVozCZSYRTH6ubNgbhYEgyNnN/mkppV9lFI=
> >  SHA256 
> > (ngx_http_hmac_secure_link_module-48c4625fbbf51ed5a95bfec23fa444f6c3702e50.tar.gz)
> >  = ZXpA2rODS1enIREzlD1OqWwpWcv3NOUXH4eUOgOAmqg=
> > -SHA256 (njs-0.8.2.tar.gz) = bxc4fbjfkLbjOC0oBFWWL/hforGjLZHCzh/Rr1qFTXI=
> > +SHA256 (njs-0.8.4.tar.gz) = /hl+JUIEwV6fHfCs83Wt1XvjQWkB7I17hzGdzLSQ+Q0=
> >  SIZE (headers-more-nginx-module-v0.34.tar.gz) = 28827
> >  SIZE (lua-nginx-module-v0.10.11.tar.gz) = 616653
> >  SIZE (naxsi-d714f1636ea49a9a9f4f06dba14aee003e970834.tar.gz) = 237272
> >  SIZE (nginx-1.20.1-chroot.patch) = 8783
> >  SIZE (nginx-1.26.1.tar.gz) = 1244738
> >  SIZE (nginx-auth-ldap-83c059b73566c2ee9cbda920d91b66657cf120b7.tar.gz) = 
> > 18542
> > -SIZE (nginx-rtmp-module-v1.2.1.tar.gz) = 519919
> > -SIZE (ngx_devel_kit-v0.3.0.tar.gz) = 66455
> > -SIZE (ngx_http_geoip2_module-3.3.tar.gz) = 8509
> > +SIZE (nginx-rtmp-module-v1.2.2.tar.gz) = 519934
> > +SIZE (ngx_devel_kit-v0.3.3.tar.gz) = 66561
> > +SIZE (ngx_http_geoip2_module-3.4.tar.gz) = 8877
> >  SIZE 
> > (ngx_http_hmac_secure_link_module-48c4625fbbf51ed5a95bfec23fa444f6c3702e50.tar.gz)
> >  = 6159
> > -SIZE (njs-0.8.2.tar.gz) = 733916
> > +SIZE (njs-0.8.4.tar.gz) = 743910
> 



Re: [new] archivers/py-brotlicffi: version 1.1.0.0

2024-06-07 Thread Stuart Henderson
Missing LIB_DEPENDS.

On 2024/06/07 13:44, Kirill A. Korinsky wrote:
> ports@,
> 
> I'm working to update and fix security/wapiti and it requires to import some
> new pythong ports.
> 
> Here the first in the list: archivers/py-brotlicffi which I linked against
> ports brotli instead of shiped version.
> 
> Anyway make port-lib-depends-check complains on this port as:
> 
>   py3-brotlicffi-1.1.0.0(archivers/py-brotlicffi,python3):
>   Bogus WANTLIB: brotlidec.1 
> (/usr/local/lib/python3.11/site-packages/brotlicffi/_brotlicffi.abi3.so) (NOT 
> REACHABLE)
>   Bogus WANTLIB: brotlienc.1 
> (/usr/local/lib/python3.11/site-packages/brotlicffi/_brotlicffi.abi3.so) (NOT 
> REACHABLE)
>   *** Error 1 in target 'port-lib-depends-check' (ignored)
> 
> and I have no udea how to fix it.
> 
> Thanks.
> 
> --
> wbr, Kirill




Re: [patch] www/nginx: update third-party modules

2024-06-07 Thread Sergey A. Osokin
Hi Stuart,

thank you for the reply.

On Fri, Jun 07, 2024 at 02:48:36PM +0100, Stuart Henderson wrote:
> On 2024/06/07 13:26, Sergey A. Osokin wrote:
> > 
> > could you please provide an update.
> 
> Update is: There's been no reply from the maintainer yet. But it's
> only been a few days.

Yeah, that's exactly what I'm looking for - the maintainer update.
To be honest, it's already 1 week timeout :-)

I'm curious - is there "maintainer timeout" rule for such updates?
And if so, that's the timeout time for that?

Thank you.

-- 
Sergey A. Osokin



[maintainer update] security/gosec v2.20.0

2024-06-07 Thread Laurent Cheylus
Hi,

update of security/gosec port to the latest version v2.20.0
Changelog: https://github.com/securego/gosec/releases/tag/v2.20.0

- update Makefile, distinfo and modules.inc for this version

Build and tests OK on current/amd64 with Go 1.22.3

Tests welcome and please commit if OK.

Laurent
Index: Makefile
===
RCS file: /cvs/ports/security/gosec/Makefile,v
diff -u -p -r1.8 Makefile
--- Makefile	1 Nov 2023 10:14:15 -	1.8
+++ Makefile	6 Jun 2024 17:39:10 -
@@ -1,10 +1,11 @@
 COMMENT =	security checker for Go projects
 
 MODGO_MODNAME =	github.com/securego/gosec/v2
-MODGO_VERSION =	v2.18.2
+MODGO_VERSION =	v2.20.0
 
 DISTNAME =	gosec-${MODGO_VERSION}
 
+# https://github.com/securego/gosec
 HOMEPAGE =	https://securego.io/
 
 CATEGORIES =	security devel
Index: distinfo
===
RCS file: /cvs/ports/security/gosec/distinfo,v
diff -u -p -r1.6 distinfo
--- distinfo	1 Nov 2023 10:14:15 -	1.6
+++ distinfo	6 Jun 2024 17:39:11 -
@@ -76,16 +76,23 @@ SHA256 (go_modules/github.com/beorn7/per
 SHA256 (go_modules/github.com/beorn7/perks/@v/v1.0.1.zip) = Jb2eLZSsp3Dm28H1NyX4T2r0Qy9jHTXdLEb5bvBRLxo=
 SHA256 (go_modules/github.com/bgentry/speakeasy/@v/v0.1.0.mod) = 3cwpDb3wE/SqyV8Z03/jXfekytewLyflMKiJNc/rLDg=
 SHA256 (go_modules/github.com/bgentry/speakeasy/@v/v0.1.0.zip) = 1L/Ui5v2jIf5LJRHiskQvNqycuFeuQnVjx+5OSM/dfA=
-SHA256 (go_modules/github.com/ccojocar/zxcvbn-go/@v/v1.0.1.mod) = +rhquNy+drv/KCStXXdL/QfuLSDoNA+tOvFaKfEDzNg=
-SHA256 (go_modules/github.com/ccojocar/zxcvbn-go/@v/v1.0.1.zip) = KKXI5T1xtdNLGCEmqIKMWlE4y9JvFzK6GEFtd/rpUzo=
+SHA256 (go_modules/github.com/ccojocar/zxcvbn-go/@v/v1.0.2.mod) = +rhquNy+drv/KCStXXdL/QfuLSDoNA+tOvFaKfEDzNg=
+SHA256 (go_modules/github.com/ccojocar/zxcvbn-go/@v/v1.0.2.zip) = X17Yx700aTFe2/VybODZ3GpmqU6FSmUrZrU+CCzf05k=
 SHA256 (go_modules/github.com/census-instrumentation/opencensus-proto/@v/v0.2.1.mod) = 2uZGOSlkAiNbVVh9FNJkBhXrNzb6hA5DJ9PBXbY8w0U=
 SHA256 (go_modules/github.com/census-instrumentation/opencensus-proto/@v/v0.2.1.zip) = s8CfPmNdR7QThpWlR9HyxxOPOCy+WotYZbZqjggjNGE=
 SHA256 (go_modules/github.com/cespare/xxhash/v2/@v/v2.1.1.mod) = oJD46q9ZzCrfFjKZ6+/nl+Hco/at0sjoimo7kLpTiwI=
 SHA256 (go_modules/github.com/cespare/xxhash/v2/@v/v2.1.1.zip) = W6oDHHLnPkJhfw/XTn2BM0SFC9amBzOBtqQWCl6ctZ4=
+SHA256 (go_modules/github.com/chromedp/cdproto/@v/v0.0.0-20230802225258-3cf4e6d46a89.mod) = Nh8rIDXm09Uv8At3ncEj1cptSHbLqeMBKmDIPJ4yQNE=
+SHA256 (go_modules/github.com/chromedp/cdproto/@v/v0.0.0-20230802225258-3cf4e6d46a89.zip) = I0QMuZIrxm2lXiNFWq9TeZtOg4UW38qSIC8p0h+fStM=
+SHA256 (go_modules/github.com/chromedp/chromedp/@v/v0.9.2.mod) = 5kOiIdsYLNMnoC5T3DsNAz62wWyjXMLBD3HO6QqJlPY=
+SHA256 (go_modules/github.com/chromedp/chromedp/@v/v0.9.2.zip) = 8UHQwkK4e6/lUEBFiM2Guh5roF2dF3TOltTQl0VbUdY=
+SHA256 (go_modules/github.com/chromedp/sysutil/@v/v1.0.0.mod) = wa3CidX40XDV4Ktj1XZFbw359Qf3JinokPJwd+PCItE=
+SHA256 (go_modules/github.com/chromedp/sysutil/@v/v1.0.0.zip) = DS9c8EeL7wqO5x6LYKknn9VbB8v8ZtvPv1pfTMuQXGI=
 SHA256 (go_modules/github.com/chzyer/logex/@v/v1.1.10.mod) = 99MQTqxMVnTcSEfPWxGTwuA70k/lISQ6NNcscJrYOjo=
 SHA256 (go_modules/github.com/chzyer/logex/@v/v1.1.10.zip) = LJR3HB4zWixYqWREs3aLjgApd0fWzn58FLqy6LOdkb0=
 SHA256 (go_modules/github.com/chzyer/readline/@v/v0.0.0-20180603132655-2972be24d48e.mod) = kAt5fFMfLfGC5DGolezTEJqs/t/d2rI6SPfAqdWnVlk=
-SHA256 (go_modules/github.com/chzyer/readline/@v/v0.0.0-20180603132655-2972be24d48e.zip) = PchCZ3iHJ4+zPSUHjTda5qepS7d6jSBe4iMLWBtpR6Y=
+SHA256 (go_modules/github.com/chzyer/readline/@v/v1.5.1.mod) = QLB2WWhek/DlLKQqgJYRf4GjeZ9x6YnJLQEI+hwu2Q4=
+SHA256 (go_modules/github.com/chzyer/readline/@v/v1.5.1.zip) = ziWFSovq5cIL3ehA1RQub70fhvDlhEJwW4+yHfzkhQE=
 SHA256 (go_modules/github.com/chzyer/test/@v/v0.0.0-20180213035817-a1ea475d72b1.mod) = 0HXE5LZiTqb4AxiDyNZv9DCrwv/h+06Jw7kRVpnynDs=
 SHA256 (go_modules/github.com/chzyer/test/@v/v0.0.0-20180213035817-a1ea475d72b1.zip) = rYVQvtPEqUu+9XufxbsVgG6s7aAJJXFkBDIFgNYOL30=
 SHA256 (go_modules/github.com/client9/misspell/@v/v0.3.4.mod) = 0bw2Ld3Zb7OkPtS5Kqq3CqbH71pQDX8JVk4+skq88Lg=
@@ -150,16 +157,22 @@ SHA256 (go_modules/github.com/go-kit/kit
 SHA256 (go_modules/github.com/go-logfmt/logfmt/@v/v0.3.0.mod) = eTmLzLy8EwrQD5ipnOaf/lysw0WL9NMy8Vib+Zur2Ug=
 SHA256 (go_modules/github.com/go-logfmt/logfmt/@v/v0.4.0.mod) = SWFhybJTv9cd/bQCM8MieG1V6eQpU3hcO+SDiYP+fnk=
 SHA256 (go_modules/github.com/go-logfmt/logfmt/@v/v0.4.0.zip) = 1ngZjcDurtKHNuDXG5GaC9mFAbcnXGmnkXEi9t6eDRw=
-SHA256 (go_modules/github.com/go-logr/logr/@v/v1.2.4.mod) = UZsdbaXu72dbShhX1ijwXxEKK4yzxCO3Ff6oDQl1pRg=
-SHA256 (go_modules/github.com/go-logr/logr/@v/v1.2.4.zip) = ItrKBia0VYT1pW/RE8XZYoG1vS9etUx4sjxZcuU3m7I=
+SHA256 (go_modules/github.com/go-logr/logr/@v/v1.4.1.mod) = xJbzDXAPArSaG1C8JIaifC903z3OddnbbS1Dl1s4Fyc=
+SHA256 (go_modules/github.com/go-logr/logr/@v/v1.4.1.zip) = J9HI1BH9jkLcYgKZHXCvpjAIlwDx0A

Re: [update] lang/go to 1.22.4; add missed syscall.EBADMSG

2024-06-07 Thread Kirill A . Korinsky
On Fri, 07 Jun 2024 12:11:44 +0100,
Stuart Henderson  wrote:
> 
> On 2024/06/07 01:04, Kirill A. Korinsky wrote:
> > I also included trivial patches to add missed syscall.EBADMSG on 386, amd64
> > and arm which allows to remove dozen of patches from port tree.
> 
> slight exaggeration... 7 patches in docker-compose and 7 in
> docker-buildx, all because of github.com/tonistiigi/fsutil.
>

just a bit, but it it still dozen of patches.

> afaik they're meant to be getting these from golang.org/x/sys/unix
> (where EBADMSG *is* present for all OpenBSD platforms) rather than
> go itself anyway?

I've already tried it and discovered an issue that x/sys/unix isn't
available on windows that is expected, but syscall.EBADMSG is available on
windows. My approach to replace it in fsutil fails on CI [1].

As far as I know go hasn't got condition compiling that allows to inclide or
exclude some block of code inside file and the only way is making dedicated
files which is used at some platforms, that means quite a work to refactor
fsutil to move away from syscall to x/sys.

Footnotes:
[1]  
https://github.com/catap/fsutil/commit/aa976fb00b3a25d23bacb193c5dfcf13d7db7199#diff-d1445ba8bd61e8e9f66950832df5b1d76f222e7f1f38700a30b728c214da04ccL126-L129

-- 
wbr, Kirill



Re: [new] archivers/py-brotlicffi: version 1.1.0.0

2024-06-07 Thread Kirill A . Korinsky
On Fri, 07 Jun 2024 14:49:33 +0100,
Stuart Henderson  wrote:
> 
> Missing LIB_DEPENDS.
>

Thanks! Here an updated version.

-- 
wbr, Kirill


py-brotlicffi-1.1.0.0.tgz
Description: Binary data


Re: new port: mail/p5-Email-Outlook-Message

2024-06-07 Thread giovanni

On 6/6/24 9:35 AM, Abel Abraham Camarillo Ojeda wrote:

Hi porters

I need this port to use msgconvert utility to transform .msg (outlook) files to 
plaintext .eml files

`make test` pass in amd64, I was also able to read some output .eml files.


I would add devel/p5-Test-Pod-Coverage to TEST_DEPENDS.
ok giovanni@ anyway.

 Cheers
  Giovanni


===>  Regression tests for p5-Email-Outlook-Message-0.921
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" 
"undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/basics.t ... ok
t/charset.t .. ok
t/full_structure.t ... ok
t/gpg_signed.t ... ok
t/internals.t  ok
t/plain_jpeg_attached.t .. ok
t/plain_uc_unsent.t .. ok
t/plain_uc_wc_unsent.t ... ok
t/plain_unsent.t . ok
t/pod_coverage.t . skipped: Test::Pod::Coverage required for testing 
pod coverage
All tests successful.
Files=10, Tests=118,  2 wallclock secs ( 0.05 usr  0.02 sys +  1.42 cusr  0.36 
csys =  1.85 CPU)
Result: PASS

Please tell if I'm missing something

port attached

kind regards~




OpenPGP_signature.asc
Description: OpenPGP digital signature


Re: [update] lang/go to 1.22.4; add missed syscall.EBADMSG

2024-06-07 Thread Tim van der Molen
Kirill A. Korinsky (2024-06-07 15:34 +0100):
> > afaik they're meant to be getting these from golang.org/x/sys/unix
> > (where EBADMSG *is* present for all OpenBSD platforms) rather than
> > go itself anyway?
> 
> I've already tried it and discovered an issue that x/sys/unix isn't
> available on windows that is expected, but syscall.EBADMSG is available on
> windows. My approach to replace it in fsutil fails on CI [1].
> 
> As far as I know go hasn't got condition compiling that allows to inclide or
> exclude some block of code inside file and the only way is making dedicated
> files which is used at some platforms, that means quite a work to refactor
> fsutil to move away from syscall to x/sys.
> 
> Footnotes:
> [1]  
> https://github.com/catap/fsutil/commit/aa976fb00b3a25d23bacb193c5dfcf13d7db7199#diff-d1445ba8bd61e8e9f66950832df5b1d76f222e7f1f38700a30b728c214da04ccL126-L129

Is the following approach feasible in fsutil?

Create errors_unix.go:

//go:build unix

import "golang.org/x/sys/unix"

const (
ebadmsg = unix.EBADMSG
eexist  = unix.EEXIST
enotdir = unix.ENOTDIR
)

Create errors_windows.go:

import "syscall"

const (
ebadmsg = syscall.EBADMSG
// ...
)

Then replace "syscall.EBADMSG" with "ebadmsg" in the other files (and
similarly for the other errors).



Re: new port: mail/p5-Email-Outlook-Message

2024-06-07 Thread Abel Abraham Camarillo Ojeda
On Fri, Jun 7, 2024 at 9:54 AM  wrote:

> On 6/6/24 9:35 AM, Abel Abraham Camarillo Ojeda wrote:
> > Hi porters
> >
> > I need this port to use msgconvert utility to transform .msg (outlook)
> files to plaintext .eml files
> >
> > `make test` pass in amd64, I was also able to read some output .eml
> files.
> >
> I would add devel/p5-Test-Pod-Coverage to TEST_DEPENDS.
> ok giovanni@ anyway.
>
>   Cheers
>Giovanni
>

Updated with added devel/p5-Test-Pod-Coverage

thanks


p5-Email-Outlook-Message.tgz
Description: application/compressed-tar


Re: NEW: autoconf 2.72

2024-06-07 Thread Brad Smith

On 2024-05-29 4:14 a.m., Stuart Henderson wrote:

Reattached to make it easier for anyone who wants to look.

I'm not familiar enough with m4 to know if the changes in
patch-configure make sense.


It's the same patch that has existed through all the other versions to
use the system copy of m4.


On 2024/05/29 01:02, Brad Smith wrote:

ping.

On 2024-05-03 3:53 p.m., Brad Smith wrote:

ping.

On 2024-04-26 10:14 p.m., Brad Smith wrote:

Here is a port for GNU autoconf 2.72.

https://lists.gnu.org/archive/html/autotools-announce/2023-12/msg3.html





Re: new port: mail/p5-Email-Outlook-Message

2024-06-07 Thread Stuart Henderson

Added automatically if you set

MAKE_ENV= TEST_POD=1

--
 Sent from a phone, apologies for poor formatting.

On 7 June 2024 16:54:49 giova...@paclan.it wrote:


On 6/6/24 9:35 AM, Abel Abraham Camarillo Ojeda wrote:

Hi porters

I need this port to use msgconvert utility to transform .msg (outlook) 
files to plaintext .eml files


`make test` pass in amd64, I was also able to read some output .eml files.


I would add devel/p5-Test-Pod-Coverage to TEST_DEPENDS.
ok giovanni@ anyway.

 Cheers
  Giovanni


===>  Regression tests for p5-Email-Outlook-Message-0.921
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" 
"-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 
'blib/lib', 'blib/arch')" t/*.t

t/basics.t ... ok
t/charset.t .. ok
t/full_structure.t ... ok
t/gpg_signed.t ... ok
t/internals.t  ok
t/plain_jpeg_attached.t .. ok
t/plain_uc_unsent.t .. ok
t/plain_uc_wc_unsent.t ... ok
t/plain_unsent.t . ok
t/pod_coverage.t . skipped: Test::Pod::Coverage required for 
testing pod coverage

All tests successful.
Files=10, Tests=118,  2 wallclock secs ( 0.05 usr  0.02 sys +  1.42 cusr  
0.36 csys =  1.85 CPU)

Result: PASS

Please tell if I'm missing something

port attached

kind regards~




[new] archivers/py-zstandard

2024-06-07 Thread Kirill A . Korinsky
ports@,

Here the new port archivers/py-zstandard which is part of dependency tree of
security/wapiti which I'm working to update and fix

Unfortently I can't fix tests and make test fails as:

  ImportError while importing test module 
'/usr/ports/pobj/py-zstandard-0.22.0-python3/zstandard-0.22.0/tests/test_open.py'.
  Hint: make sure your test modules/packages have valid Python names.
  Traceback:
  /usr/local/lib/python3.11/importlib/__init__.py:126: in import_module
  return _bootstrap._gcd_import(name[level:], package, level)
  tests/test_open.py:6: in 
  import zstandard as zstd
  zstandard/__init__.py:39: in 
  from .backend_c import *  # type: ignore
  E   ModuleNotFoundError: No module named 'zstandard.backend_c'
  ___ ERROR collecting tests/test_train_dictionary.py 


I have no idea how to fix it, but I've tested on -current/amd64 by hand and
it works.

Also, to avoid static linking against zstd I disabled CFFI part of that
library, but so-called C-backend works well.

-- 
wbr, Kirill


py-zstandard-1.1.0.0.tgz
Description: Binary data


Re: [maintainer update] security/gosec v2.20.0

2024-06-07 Thread Daniel Jakots
On Fri, 7 Jun 2024 16:26:39 +0200 (CEST), Laurent Cheylus
 wrote:

> Hi,
> 
> update of security/gosec port to the latest version v2.20.0
> Changelog: https://github.com/securego/gosec/releases/tag/v2.20.0
> 
> - update Makefile, distinfo and modules.inc for this version
> 
> Build and tests OK on current/amd64 with Go 1.22.3
> 
> Tests welcome and please commit if OK.

Committed, thanks!



UPDATE: databases/timescaledb-2.15.2

2024-06-07 Thread Renato Aguiar

Diff updating database/timescaledb to 2.15.2:

diff --git a/databases/timescaledb/Makefile b/databases/timescaledb/Makefile
index 46389fd2322..5eeb1c36f34 100644
--- a/databases/timescaledb/Makefile
+++ b/databases/timescaledb/Makefile
@@ -2,7 +2,10 @@ COMMENT =	database designed to make SQL scalable for time-series data
 
 GH_ACCOUNT =	timescale
 GH_PROJECT =	timescaledb
-GH_TAGNAME =	2.14.2
+GH_TAGNAME =	2.15.2
+
+EXTRAS_COMMIT =	52443a469a58d3f64a4e049889f468e8a149cc8f
+DIST_TUPLE +=	github timescale timescaledb-extras ${EXTRAS_COMMIT} _extras
 
 CATEGORIES =	databases
 HOMEPAGE =	https://www.timescale.com/
@@ -15,7 +18,7 @@ PERMIT_PACKAGE = Yes
 MODULES =	devel/cmake
 SUBST_VARS +=	GH_TAGNAME
 
-WANTLIB =	c crypto pq ssl
+WANTLIB =	crypto pq ssl
 
 COMPILER =	base-clang ports-gcc
 
@@ -29,4 +32,10 @@ CONFIGURE_ARGS +=	-DREGRESS_CHECKS=OFF \
 			-DSEND_TELEMETRY_DEFAULT=OFF \
 			-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
 
+post-install:
+	${INSTALL_DATA_DIR} ${PREFIX}/share/timescaledb
+	${INSTALL_DATA} \
+		${WRKSRC}/_extras/utils/2.15.X-fix_hypertable_foreign_keys.sql \
+		${PREFIX}/share/timescaledb
+
 .include 
diff --git a/databases/timescaledb/distinfo b/databases/timescaledb/distinfo
index a0e20a0d44b..e6f774f01ed 100644
--- a/databases/timescaledb/distinfo
+++ b/databases/timescaledb/distinfo
@@ -1,2 +1,4 @@
-SHA256 (timescaledb-2.14.2.tar.gz) = x3aLJn6meRTQSRso2hAvrs0xcGDkKbLadTBRf7yU5zs=
-SIZE (timescaledb-2.14.2.tar.gz) = 7319288
+SHA256 (timescale-timescaledb-extras-52443a469a58d3f64a4e049889f468e8a149cc8f.tar.gz) = /fBZ0+p3BcPYlmf7Oj4cqXKF19YpWJaywrt0qGuZqvw=
+SHA256 (timescaledb-2.15.2.tar.gz) = fOz0wZ7CPIAXxdJST8VldX+FzmaYJTr8ncygxTtZZk4=
+SIZE (timescale-timescaledb-extras-52443a469a58d3f64a4e049889f468e8a149cc8f.tar.gz) = 12981
+SIZE (timescaledb-2.15.2.tar.gz) = 7440309
diff --git a/databases/timescaledb/pkg/MESSAGE b/databases/timescaledb/pkg/MESSAGE
new file mode 100644
index 000..d422a212a3d
--- /dev/null
+++ b/databases/timescaledb/pkg/MESSAGE
@@ -0,0 +1,3 @@
+If you are upgrading from versions prior to 2.15.0, after you run 'ALTER
+EXTENSION', you must also run this SQL script:
+${PREFIX}/share/timescaledb/2.15.X-fix_hypertable_foreign_keys.sql
diff --git a/databases/timescaledb/pkg/PLIST b/databases/timescaledb/pkg/PLIST
index 5f2f8860e11..5ac2565f76f 100644
--- a/databases/timescaledb/pkg/PLIST
+++ b/databases/timescaledb/pkg/PLIST
@@ -18,6 +18,9 @@ share/postgresql/extension/timescaledb--2.13.0--${GH_TAGNAME}.sql
 share/postgresql/extension/timescaledb--2.13.1--${GH_TAGNAME}.sql
 share/postgresql/extension/timescaledb--2.14.0--${GH_TAGNAME}.sql
 share/postgresql/extension/timescaledb--2.14.1--${GH_TAGNAME}.sql
+share/postgresql/extension/timescaledb--2.14.2--${GH_TAGNAME}.sql
+share/postgresql/extension/timescaledb--2.15.0--${GH_TAGNAME}.sql
+share/postgresql/extension/timescaledb--2.15.1--${GH_TAGNAME}.sql
 share/postgresql/extension/timescaledb--${GH_TAGNAME}.sql
 share/postgresql/extension/timescaledb--2.2.0--${GH_TAGNAME}.sql
 share/postgresql/extension/timescaledb--2.2.1--${GH_TAGNAME}.sql
@@ -41,3 +44,5 @@ share/postgresql/extension/timescaledb--2.9.1--${GH_TAGNAME}.sql
 share/postgresql/extension/timescaledb--2.9.2--${GH_TAGNAME}.sql
 share/postgresql/extension/timescaledb--2.9.3--${GH_TAGNAME}.sql
 share/postgresql/extension/timescaledb.control
+share/timescaledb/
+share/timescaledb/2.15.X-fix_hypertable_foreign_keys.sql

-- 
Renato Aguiar


[update] x11/zutty to 0.16

2024-06-07 Thread Lucas Raab
Hello,

Here's an update for zutty that's been working fine on amd64.

changelog: https://git.hq.sig7.se/zutty.git/shortlog

Thanks,
Lucas
diff /usr/ports
commit - d9e9c3c039df8f17812a57691458464b64fa7d47
path + /usr/ports
blob - a7acae0fdfa59dd947f700cbb0759e0819a80ca6
file + x11/zutty/Makefile
--- x11/zutty/Makefile
+++ x11/zutty/Makefile
@@ -1,8 +1,7 @@
 COMMENT =  X terminal which uses OpenGL ES Compute Shaders
 
-V =0.15
+V =0.16
 DISTNAME = zutty-$V
-REVISION = 0
 
 CATEGORIES =   x11
 
blob - 76ad00bff05a07e1f9fbb0d9804d4061cd09903e
file + x11/zutty/distinfo
--- x11/zutty/distinfo
+++ x11/zutty/distinfo
@@ -1,2 +1,2 @@
-SHA256 (zutty-0.15.tar.gz) = S0I0ljWm5C95nKG3AuhNeSlNZcBJs1ESpzA3T1zJO78=
-SIZE (zutty-0.15.tar.gz) = 351752
+SHA256 (zutty-0.16.tar.gz) = x5S6dp9L2XPQuDbHwTjdL4J6zoNZ93LToTbu5nGtqkA=
+SIZE (zutty-0.16.tar.gz) = 361065


[update] security/osv-scanner to 1.7.4

2024-06-07 Thread Lucas Raab
Hello,

Here's an update for osv-scanner that's been working fine on amd64.
Other tests?

changelog:
Features:
Support scanning gradle/verification-metadata.xml files.
Misc:
Hide unimportant Debian vulnerabilities to reduce noise.

Thanks,
Lucas
diff /usr/ports
commit - 52cc6351144c9960da5aa35fb9edbd613aefe454
path + /usr/ports
blob - 0802cb8e110eacc7d9121d6e883ff0103e9aec68
file + security/osv-scanner/Makefile
--- security/osv-scanner/Makefile
+++ security/osv-scanner/Makefile
@@ -6,7 +6,7 @@ ONLY_FOR_ARCHS = aarch64 amd64 mips64 riscv64
 
 COMMENT =  scan your project's dependencies for vulnerabilities
 
-V =1.7.3
+V =1.7.4
 MODGO_MODNAME =github.com/google/osv-scanner
 MODGO_VERSION =v${V}
 
blob - 1bb69eec9219d8f0dbd3594ba4b45632d08915a0
file + security/osv-scanner/distinfo
--- security/osv-scanner/distinfo
+++ security/osv-scanner/distinfo
@@ -1,23 +1,24 @@
 SHA256 (go_modules/cloud.google.com/go/compute/@v/v1.19.3.mod) = 
am0s/+OFo8MUMlu1WLCAZ9fMAzH3Ulp3G/3xSTPVTJM=
-SHA256 (go_modules/cloud.google.com/go/compute/@v/v1.24.0.mod) = 
cN4p9UNomi3fW3rQg0/EUFQ5aZbCJCmJAGJRv5NZFEE=
-SHA256 (go_modules/cloud.google.com/go/compute/@v/v1.24.0.zip) = 
DPPUMl43jJL/kM7z0bd1JoKnfw6qCxHAksw+oy5e1jg=
+SHA256 (go_modules/cloud.google.com/go/compute/@v/v1.25.1.mod) = 
yt/2fjWKw9deIVdsx/dQonaiS0xSdZsGxg9Cuj2v2V0=
+SHA256 (go_modules/cloud.google.com/go/compute/@v/v1.25.1.zip) = 
UXOgF6FfeHTmh1KoEWVW/g1+XhE0TdQmXEVEZ7tlHLg=
 SHA256 (go_modules/cloud.google.com/go/compute/metadata/@v/v0.2.3.mod) = 
ABGpCmT7GqppqtQm/orJyeWjfkthmnvQTUCQlTZatIg=
 SHA256 (go_modules/cloud.google.com/go/compute/metadata/@v/v0.2.3.zip) = 
KShk29Cx3jepaOKF6UmIXlczhIN9gc02lb5c4uI5GIc=
 SHA256 (go_modules/dario.cat/mergo/@v/v1.0.0.mod) = 
4jxLgDpsbm5FdHlG6H0kcEzXd1bMSEvf0XtXIjvzINY=
 SHA256 (go_modules/dario.cat/mergo/@v/v1.0.0.zip) = 
Gn7zlnCcWDUha7R7qSGN1ECsUwdYPGnReYzp5FfxMR0=
 SHA256 (go_modules/deps.dev/api/v3/@v/v3.0.0-20240311054650-e1e6a3d70fb7.mod) 
= 0eXe1Um8xy/dpyuzUBJiTEW2UCL1e7pk9fqR7utQyfw=
-SHA256 (go_modules/deps.dev/api/v3/@v/v3.0.0-20240503042720-6166138ce783.mod) 
= pOYazRwsqfHMAkCyA6YDJksvG0/CsYBwYb51HY76DXI=
-SHA256 (go_modules/deps.dev/api/v3/@v/v3.0.0-20240503042720-6166138ce783.zip) 
= 8fNjI+mNWiLWxh0TjGjqmfXT/50MP1DoAdlYwKJa1mc=
+SHA256 (go_modules/deps.dev/api/v3/@v/v3.0.0-20240516073147-b352d7eeeae6.mod) 
= pOYazRwsqfHMAkCyA6YDJksvG0/CsYBwYb51HY76DXI=
+SHA256 (go_modules/deps.dev/api/v3/@v/v3.0.0-20240516073147-b352d7eeeae6.zip) 
= u8KWg+CTzlTp1+zG+/GFbim2vB1N0KrRj7YMPVrX2ZM=
 SHA256 
(go_modules/deps.dev/util/maven/@v/v0.0.0-20240322043601-ff53416fec6a.mod) = 
GMfX16LJfwvrYJ6sPFo5mSm1N4SG0VljBrHxragt9iA=
-SHA256 
(go_modules/deps.dev/util/maven/@v/v0.0.0-20240503042720-6166138ce783.mod) = 
GMfX16LJfwvrYJ6sPFo5mSm1N4SG0VljBrHxragt9iA=
-SHA256 
(go_modules/deps.dev/util/maven/@v/v0.0.0-20240503042720-6166138ce783.zip) = 
aQgr0Vc0QL2+xOz7w6tZY/nWJQugNSSgnGnS0RQLzfQ=
-SHA256 
(go_modules/deps.dev/util/resolve/@v/v0.0.0-20240503042720-6166138ce783.mod) = 
aH6UY0UPHn/0kb7TNDHvcUZLcmbTY5RrFOqI32TjtLE=
-SHA256 
(go_modules/deps.dev/util/resolve/@v/v0.0.0-20240503042720-6166138ce783.zip) = 
kAW5BhQxiIyh9zG5H+VGSV38CSWozlz1PNnNNs9+1F8=
+SHA256 
(go_modules/deps.dev/util/maven/@v/v0.0.0-20240516073147-b352d7eeeae6.mod) = 
GMfX16LJfwvrYJ6sPFo5mSm1N4SG0VljBrHxragt9iA=
+SHA256 
(go_modules/deps.dev/util/maven/@v/v0.0.0-20240516073147-b352d7eeeae6.zip) = 
zCccMtxYsbWGWgW/7LroNC52a8+icYzrKrRxT8RjWWs=
+SHA256 
(go_modules/deps.dev/util/resolve/@v/v0.0.0-20240516073147-b352d7eeeae6.mod) = 
aH6UY0UPHn/0kb7TNDHvcUZLcmbTY5RrFOqI32TjtLE=
+SHA256 
(go_modules/deps.dev/util/resolve/@v/v0.0.0-20240516073147-b352d7eeeae6.zip) = 
6vxA2mAU22Tgj+QRGE7kMH8nq6vDefINAtp0LgQf9ZY=
 SHA256 
(go_modules/deps.dev/util/semver/@v/v0.0.0-20240109040450-1e316b822bc4.mod) = 
PBARmS9BLys0bWQHHH40BDoAiidH3bPqo/In6id0XXw=
-SHA256 
(go_modules/deps.dev/util/semver/@v/v0.0.0-20240503042720-6166138ce783.mod) = 
PBARmS9BLys0bWQHHH40BDoAiidH3bPqo/In6id0XXw=
-SHA256 
(go_modules/deps.dev/util/semver/@v/v0.0.0-20240503042720-6166138ce783.zip) = 
BujKHydd9K0Cz1RP8L0TlXD43aBlKa8YpASJdH5MRdI=
+SHA256 
(go_modules/deps.dev/util/semver/@v/v0.0.0-20240516073147-b352d7eeeae6.mod) = 
PBARmS9BLys0bWQHHH40BDoAiidH3bPqo/In6id0XXw=
+SHA256 
(go_modules/deps.dev/util/semver/@v/v0.0.0-20240516073147-b352d7eeeae6.zip) = 
R2pBDHzCmv3+M6cCsjVTuTs/97PKaE86DVGWlBXhDMM=
 SHA256 (go_modules/github.com/!burnt!sushi/toml/@v/v1.3.2.mod) = 
JnfIL+dPIDdyiJpagBr7Mp2VF1UId92ssXIZFpurPt0=
-SHA256 (go_modules/github.com/!burnt!sushi/toml/@v/v1.3.2.zip) = 
XeJGoMtMJW8/1dDbigihFPWK8MLhk7vwrZASEErbtrI=
+SHA256 (go_modules/github.com/!burnt!sushi/toml/@v/v1.4.0.mod) = 
RdeLgFcZmbaiWNoPIWc9o55rUBNJwDOkrNFpQ3QR1zM=
+SHA256 (go_modules/github.com/!burnt!sushi/toml/@v/v1.4.0.zip) = 
2SdNW//bf/CYiQVbQtnhI3g1Ze53bWOnMVIZ7BWpgnY=
 SHA256 (go_modules/github.com/!cyclone!d!x/cyclonedx-go/@v/v0.8.0.mod) = 
X1TYnaBD7V3Tmb6nIG+3k3AcVSRgAH6nq+sCUVmMX9s=
 SHA256 (g

Re: [update] x11/zutty to 0.16

2024-06-07 Thread Stefan Hagen
Hey,

Released 20 hours ago. How are you doing this?

Feel free to commit. 

OK sdk@

Lucas Raab wrote (2024-06-08 02:49 CEST):
> Hello,
> 
> Here's an update for zutty that's been working fine on amd64.
> 
> changelog: https://git.hq.sig7.se/zutty.git/shortlog
> 
> Thanks,
> Lucas

> diff /usr/ports
> commit - d9e9c3c039df8f17812a57691458464b64fa7d47
> path + /usr/ports
> blob - a7acae0fdfa59dd947f700cbb0759e0819a80ca6
> file + x11/zutty/Makefile
> --- x11/zutty/Makefile
> +++ x11/zutty/Makefile
> @@ -1,8 +1,7 @@
>  COMMENT =X terminal which uses OpenGL ES Compute Shaders
>  
> -V =  0.15
> +V =  0.16
>  DISTNAME =   zutty-$V
> -REVISION =   0
>  
>  CATEGORIES = x11
>  
> blob - 76ad00bff05a07e1f9fbb0d9804d4061cd09903e
> file + x11/zutty/distinfo
> --- x11/zutty/distinfo
> +++ x11/zutty/distinfo
> @@ -1,2 +1,2 @@
> -SHA256 (zutty-0.15.tar.gz) = S0I0ljWm5C95nKG3AuhNeSlNZcBJs1ESpzA3T1zJO78=
> -SIZE (zutty-0.15.tar.gz) = 351752
> +SHA256 (zutty-0.16.tar.gz) = x5S6dp9L2XPQuDbHwTjdL4J6zoNZ93LToTbu5nGtqkA=
> +SIZE (zutty-0.16.tar.gz) = 361065