Update: lang/jruby 9.4.8.0

2024-07-02 Thread Jeremy Evans
This updates to the latest version of JRuby. Release announcement at
https://www.jruby.org/2024/07/02/jruby-9-4-8-0.html

Tested on amd64, the only supported arch.

I plan on committing in a few days unless I hear objections.

Thanks,
Jeremy

Index: Makefile
===
RCS file: /cvs/ports/lang/jruby/Makefile,v
retrieving revision 1.115
diff -u -p -u -p -r1.115 Makefile
--- Makefile1 May 2024 21:52:10 -   1.115
+++ Makefile2 Jul 2024 17:49:03 -
@@ -3,7 +3,7 @@ ONLY_FOR_ARCHS = amd64
 
 COMMENT =  pure-Java implementation of the Ruby language
 
-V =9.4.7.0
+V =9.4.8.0
 DISTNAME = jruby-dist-${V}-bin
 PKGNAME =  jruby-${V}
 CATEGORIES =   lang lang/ruby
Index: distinfo
===
RCS file: /cvs/ports/lang/jruby/distinfo,v
retrieving revision 1.79
diff -u -p -u -p -r1.79 distinfo
--- distinfo1 May 2024 21:52:10 -   1.79
+++ distinfo2 Jul 2024 17:49:03 -
@@ -1,6 +1,6 @@
 SHA256 (jffi-1.3.10.tar.gz) = QZWOTjjcxTOTidj4/JjERqcokJJ5SOiQualLs/ivHsw=
-SHA256 (jruby-dist-9.4.7.0-bin.tar.gz) = 
8cOfgldQUwClKP+D/kch++YahVq7JePSfVLUOsl6TYA=
+SHA256 (jruby-dist-9.4.8.0-bin.tar.gz) = 
NHtmkr2ckcSApFryXOiNd76LbkrEp3vJSHDyxbVLySk=
 SHA256 (jruby-launcher-1.1.19-java.gem) = 
LPGrpNcsdLNq7MSjCxiSXh4h+vcPVuC0ykUyUYquGJo=
 SIZE (jffi-1.3.10.tar.gz) = 3304571
-SIZE (jruby-dist-9.4.7.0-bin.tar.gz) = 31842429
+SIZE (jruby-dist-9.4.8.0-bin.tar.gz) = 31739037
 SIZE (jruby-launcher-1.1.19-java.gem) = 64000
Index: pkg/PLIST
===
RCS file: /cvs/ports/lang/jruby/pkg/PLIST,v
retrieving revision 1.70
diff -u -p -u -p -r1.70 PLIST
--- pkg/PLIST   1 May 2024 21:52:10 -   1.70
+++ pkg/PLIST   2 Jul 2024 17:49:03 -
@@ -29,7 +29,7 @@ jruby/lib/ruby/gems/1.8/
 jruby/lib/ruby/gems/1.8/cache/
 jruby/lib/ruby/gems/1.8/cache/matrix-0.4.2.gem
 jruby/lib/ruby/gems/1.8/cache/minitest-5.15.0.gem
-jruby/lib/ruby/gems/1.8/cache/net-ftp-0.1.3.gem
+jruby/lib/ruby/gems/1.8/cache/net-ftp-0.3.7.gem
 jruby/lib/ruby/gems/1.8/cache/net-imap-0.2.3.gem
 jruby/lib/ruby/gems/1.8/cache/net-pop-0.1.1.gem
 jruby/lib/ruby/gems/1.8/cache/net-smtp-0.3.1.gem
@@ -95,21 +95,22 @@ jruby/lib/ruby/gems/1.8/gems/minitest-5.
 
jruby/lib/ruby/gems/1.8/gems/minitest-5.15.0/test/minitest/test_minitest_reporter.rb
 
jruby/lib/ruby/gems/1.8/gems/minitest-5.15.0/test/minitest/test_minitest_spec.rb
 
jruby/lib/ruby/gems/1.8/gems/minitest-5.15.0/test/minitest/test_minitest_test.rb
-jruby/lib/ruby/gems/1.8/gems/net-ftp-0.1.3/
-jruby/lib/ruby/gems/1.8/gems/net-ftp-0.1.3/.github/
-jruby/lib/ruby/gems/1.8/gems/net-ftp-0.1.3/.github/workflows/
-jruby/lib/ruby/gems/1.8/gems/net-ftp-0.1.3/.github/workflows/test.yml
-jruby/lib/ruby/gems/1.8/gems/net-ftp-0.1.3/Gemfile
-jruby/lib/ruby/gems/1.8/gems/net-ftp-0.1.3/LICENSE.txt
-jruby/lib/ruby/gems/1.8/gems/net-ftp-0.1.3/README.md
-jruby/lib/ruby/gems/1.8/gems/net-ftp-0.1.3/Rakefile
-jruby/lib/ruby/gems/1.8/gems/net-ftp-0.1.3/bin/
-jruby/lib/ruby/gems/1.8/gems/net-ftp-0.1.3/bin/console
-jruby/lib/ruby/gems/1.8/gems/net-ftp-0.1.3/bin/setup
-jruby/lib/ruby/gems/1.8/gems/net-ftp-0.1.3/lib/
-jruby/lib/ruby/gems/1.8/gems/net-ftp-0.1.3/lib/net/
-jruby/lib/ruby/gems/1.8/gems/net-ftp-0.1.3/lib/net/ftp.rb
-jruby/lib/ruby/gems/1.8/gems/net-ftp-0.1.3/net-ftp.gemspec
+jruby/lib/ruby/gems/1.8/gems/net-ftp-0.3.7/
+jruby/lib/ruby/gems/1.8/gems/net-ftp-0.3.7/.github/
+jruby/lib/ruby/gems/1.8/gems/net-ftp-0.3.7/.github/dependabot.yml
+jruby/lib/ruby/gems/1.8/gems/net-ftp-0.3.7/.github/workflows/
+jruby/lib/ruby/gems/1.8/gems/net-ftp-0.3.7/.github/workflows/push_gem.yml
+jruby/lib/ruby/gems/1.8/gems/net-ftp-0.3.7/.github/workflows/test.yml
+jruby/lib/ruby/gems/1.8/gems/net-ftp-0.3.7/BSDL
+jruby/lib/ruby/gems/1.8/gems/net-ftp-0.3.7/COPYING
+jruby/lib/ruby/gems/1.8/gems/net-ftp-0.3.7/Gemfile
+jruby/lib/ruby/gems/1.8/gems/net-ftp-0.3.7/LICENSE.txt
+jruby/lib/ruby/gems/1.8/gems/net-ftp-0.3.7/README.md
+jruby/lib/ruby/gems/1.8/gems/net-ftp-0.3.7/Rakefile
+jruby/lib/ruby/gems/1.8/gems/net-ftp-0.3.7/lib/
+jruby/lib/ruby/gems/1.8/gems/net-ftp-0.3.7/lib/net/
+jruby/lib/ruby/gems/1.8/gems/net-ftp-0.3.7/lib/net/ftp.rb
+jruby/lib/ruby/gems/1.8/gems/net-ftp-0.3.7/net-ftp.gemspec
 jruby/lib/ruby/gems/1.8/gems/net-imap-0.2.3/
 jruby/lib/ruby/gems/1.8/gems/net-imap-0.2.3/.github/
 jruby/lib/ruby/gems/1.8/gems/net-imap-0.2.3/.github/workflows/
@@ -554,7 +555,7 @@ jruby/lib/ruby/gems/1.8/specifications/d
 jruby/lib/ruby/gems/1.8/specifications/default/ipaddr-1.2.4.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/irb-1.4.2.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/jar-dependencies-0.4.1.gemspec
-jruby/lib/ruby/gems/1.8/specifications/default/jruby-openssl-0.14.5-java.gemspec
+jruby/lib/ruby/gems/1.8/specifications/default/jruby-openssl-0.15.0-java.gemspec
 

CVS: cvs.openbsd.org: ports

2024-07-02 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/07/02 10:10:12

Modified files:
security/suricata: Tag: OPENBSD_7_5 Makefile distinfo 

Log message:
Update to suricata 7.0.6

Fixes:

CVE-2024-37151
CVE-2024-38536
CVE-2024-38534
CVE-2024-38535

OK gonzalo@



CVS: cvs.openbsd.org: ports

2024-07-02 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/07/02 08:31:58

Modified files:
security/suricata: Makefile distinfo 
security/suricata/patches: patch-configure_ac 
   patch-src_suricata_c 
   patch-suricata_yaml_in 

Log message:
Update to suricata 7.0.6

Fixes:

CVE-2024-37151
CVE-2024-38536
CVE-2024-38534
CVE-2024-38535

Fix path to magic file in default configuration file, since libmagic is
used (from sthen@)

OK gonzalo@



Update: suricata 7.0.6

2024-06-27 Thread Jeremy Evans
Simple update to the latest release of suricata.  Release announcement
at https://suricata.io/2024/06/27/suricata-7-0-6-and-6-0-20-released/

This fixes 4 security issues, so I plan to backport to -stable.

Other than version bump, only port change is regenerating patches.

OKs?

Thanks,
Jeremy

Index: Makefile
===
RCS file: /cvs/ports/security/suricata/Makefile,v
diff -u -p -u -p -r1.71 Makefile
--- Makefile29 May 2024 08:04:35 -  1.71
+++ Makefile27 Jun 2024 15:12:03 -
@@ -3,13 +3,12 @@ NOT_FOR_ARCHS =   powerpc64 riscv64
 
 COMMENT =  high performance network IDS, IPS and security monitoring
 
-SURICATA_V =   7.0.5
+SURICATA_V =   7.0.6
 SUPDATE_V =1.3.3
 
 DISTNAME = suricata-${SURICATA_V}
 CATEGORIES =   security
 SHARED_LIBS += htp   0.1 # 2.0
-REVISION = 1
 
 HOMEPAGE = https://suricata.io/
 
Index: distinfo
===
RCS file: /cvs/ports/security/suricata/distinfo,v
diff -u -p -u -p -r1.24 distinfo
--- distinfo30 Apr 2024 14:30:46 -  1.24
+++ distinfo27 Jun 2024 15:12:12 -
@@ -1,2 +1,2 @@
-SHA256 (suricata-7.0.5.tar.gz) = H/tWgVjyZcCFVEZL+4VOZWjvaDvwMxKSO1HyjFB5Ck4=
-SIZE (suricata-7.0.5.tar.gz) = 23612189
+SHA256 (suricata-7.0.6.tar.gz) = IYJPf/Egh8DJud4gcZmnWpwxsDA2aIx8ucF48KO1f40=
+SIZE (suricata-7.0.6.tar.gz) = 23644184
Index: patches/patch-configure_ac
===
RCS file: /cvs/ports/security/suricata/patches/patch-configure_ac,v
diff -u -p -u -p -r1.13 patch-configure_ac
--- patches/patch-configure_ac  22 Feb 2024 09:49:35 -  1.13
+++ patches/patch-configure_ac  27 Jun 2024 15:15:29 -
@@ -3,7 +3,7 @@ To remove the pid file, its directory mu
 Index: configure.ac
 --- configure.ac.orig
 +++ configure.ac
-@@ -2562,7 +2562,7 @@ if test "$WINDOWS_PATH" = "yes"; then
+@@ -2597,7 +2597,7 @@ if test "$WINDOWS_PATH" = "yes"; then
  fi
  else
  EXPAND_VARIABLE(localstatedir, e_logdir, "/log/suricata/")
Index: patches/patch-src_suricata_c
===
RCS file: /cvs/ports/security/suricata/patches/patch-src_suricata_c,v
diff -u -p -u -p -r1.15 patch-src_suricata_c
--- patches/patch-src_suricata_c27 Mar 2024 21:31:15 -  1.15
+++ patches/patch-src_suricata_c27 Jun 2024 15:15:26 -
@@ -4,7 +4,7 @@ Suricata uses libcap-ng on Linux and run
 Index: src/suricata.c
 --- src/suricata.c.orig
 +++ src/suricata.c
-@@ -1597,7 +1597,7 @@ static TmEcode ParseCommandLine(int argc, char** argv,
+@@ -1609,7 +1609,7 @@ static TmEcode ParseCommandLine(int argc, char** argv,
  return TM_ECODE_FAILED;
  #endif /* UNITTESTS */
  } else if (strcmp((long_opts[option_index]).name, "user") == 0) {
@@ -13,7 +13,7 @@ Index: src/suricata.c
  SCLogError("libcap-ng is required to"
 " drop privileges, but it was not compiled into 
Suricata.");
  return TM_ECODE_FAILED;
-@@ -1606,7 +1606,7 @@ static TmEcode ParseCommandLine(int argc, char** argv,
+@@ -1618,7 +1618,7 @@ static TmEcode ParseCommandLine(int argc, char** argv,
  suri->do_setuid = TRUE;
  #endif /* HAVE_LIBCAP_NG */
  } else if (strcmp((long_opts[option_index]).name, "group") == 0) {
@@ -22,7 +22,7 @@ Index: src/suricata.c
  SCLogError("libcap-ng is required to"
 " drop privileges, but it was not compiled into 
Suricata.");
  return TM_ECODE_FAILED;
-@@ -3040,6 +3040,7 @@ int SuricataMain(int argc, char **argv)
+@@ -3055,6 +3055,7 @@ int SuricataMain(int argc, char **argv)
  SystemHugepageSnapshotDestroy(prerun_snap);
  SystemHugepageSnapshotDestroy(postrun_snap);
  }
Index: patches/patch-suricata_yaml_in
===
RCS file: /cvs/ports/security/suricata/patches/patch-suricata_yaml_in,v
diff -u -p -u -p -r1.21 patch-suricata_yaml_in
--- patches/patch-suricata_yaml_in  27 Mar 2024 21:31:15 -  1.21
+++ patches/patch-suricata_yaml_in  27 Jun 2024 15:15:26 -
@@ -35,7 +35,7 @@ Index: suricata.yaml.in
# Enable for multi-threaded eve.json output; output files are amended 
with
# an identifier, e.g., eve.9.json
#threaded: false
-@@ -334,6 +336,7 @@ outputs:
+@@ -340,6 +342,7 @@ outputs:
- http-log:
enabled: no
filename: http.log
@@ -43,7 +43,7 @@ Index: suricata.yaml.in
append: yes
#extended: yes # enable this for extended logging information
#custom: yes   # enable the custom logging format (defined by 
customformat)
-@@ -344,6 +347,7 @@ outputs:
+@@ -350,6 +353,7 @@ outputs:
- tls-log:
enabled: no  # Log TLS connections.
filename: tls.log # File to store TLS 

CVS: cvs.openbsd.org: ports

2024-06-22 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/06/22 09:25:34

Modified files:
graphics/ruby-rmagick: Makefile distinfo 
graphics/ruby-rmagick/pkg: PLIST 

Log message:
Update to rmagick 6.0.1



Re: ruby arm64 BTI

2024-06-22 Thread Jeremy Evans
On 06/22 01:41, Mark Kettenis wrote:
> Theo pointed out the NOBTCFI reversal here.  Now the reason that we
> still see SIGILL despite fixes to the assembly code is because the
> -mbranch-protection=pac-ret option added by the configure script
> actually downgrades our default of enabling both BTI and PAC to just
> enabling PAC.  So the necessary BTI instructrions were missing from
> the C code.
> 
> With the diff below things seem to work fine on Apple M2.  There is
> one failure in the testsuite:
> 
>   1) Failure:
> TestIO_Console#test_failed_path 
> [/home/ports/pobj/ruby-3.3.3/ruby-3.3.3/test/io/console/test_io_console.rb:46]:
> [Errno::ENODEV, Errno::ENOTTY, Errno::EBADF, Errno::ENXIO] exception 
> expected, not #.
> 
> but I'm pretty sure that is unrelated to BTI support.

OK jeremy@

I'll try to update the test suite upstream to also handle
Errno::EOPNOTSUPP.

Thanks,
Jeremy

> 
> 
> Index: lang/ruby/3.3/Makefile
> ===
> RCS file: /cvs/ports/lang/ruby/3.3/Makefile,v
> retrieving revision 1.8
> diff -u -p -r1.8 Makefile
> --- lang/ruby/3.3/Makefile21 Jun 2024 16:01:52 -  1.8
> +++ lang/ruby/3.3/Makefile22 Jun 2024 11:34:53 -
> @@ -1,5 +1,4 @@
> -USE_NOBTCFI-aarch64 =Yes
> -REVISION-main =  0
> +REVISION-main =  1
>  
>  VERSION =3.3.3
>  DISTNAME =   ruby-${VERSION}
> Index: lang/ruby/3.3/patches/patch-configure
> ===
> RCS file: /cvs/ports/lang/ruby/3.3/patches/patch-configure,v
> retrieving revision 1.3
> diff -u -p -r1.3 patch-configure
> --- lang/ruby/3.3/patches/patch-configure 14 Jun 2024 19:41:34 -  
> 1.3
> +++ lang/ruby/3.3/patches/patch-configure 22 Jun 2024 11:34:53 -
> @@ -6,6 +6,15 @@ so ports don't have to be bumped when Op
>  Index: configure
>  --- configure.orig
>  +++ configure
> +@@ -10913,7 +10913,7 @@ esac
> + case "$target_cpu" in #(
> +   aarch64) :
> + 
> +-for opt in -mbranch-protection=pac-ret -msign-return-address=all
> ++for opt in -mbranch-protection=standard -msign-return-address=all
> + do :
> + 
> + 
>  @@ -31909,7 +31909,7 @@ fi
>;; #(
> openbsd*|mirbsd*) :



Update: ruby-rmagick 6.0.1

2024-06-21 Thread Jeremy Evans
This should fix rb_gc_adjust_memory_usage issues when building
on riscv64/sparc64 with Ruby 3.3.

Crashes reported by jca@

OKs?

Thanks,
Jeremy

Index: Makefile
===
RCS file: /cvs/ports/graphics/ruby-rmagick/Makefile,v
diff -u -p -u -p -r1.39 Makefile
--- Makefile1 Sep 2023 13:27:50 -   1.39
+++ Makefile21 Jun 2024 17:22:42 -
@@ -1,6 +1,6 @@
 COMMENT =  Ruby interface to ImageMagick
 
-DISTNAME = rmagick-5.3.0
+DISTNAME = rmagick-6.0.1
 CATEGORIES =   graphics
 
 HOMEPAGE = https://github.com/rmagick/rmagick
Index: distinfo
===
RCS file: /cvs/ports/graphics/ruby-rmagick/distinfo,v
diff -u -p -u -p -r1.10 distinfo
--- distinfo1 Sep 2023 13:27:50 -   1.10
+++ distinfo21 Jun 2024 17:22:58 -
@@ -1,2 +1,2 @@
-SHA256 (rmagick-5.3.0.gem) = +lPqVZMiudgbkFW1Y4Yw92n2t5KRaKFKGklPWspBECA=
-SIZE (rmagick-5.3.0.gem) = 241664
+SHA256 (rmagick-6.0.1.gem) = N8uJH1obZ/HSrqmtp8dOcG7ckBqa7kXRFtgcKU4MQWE=
+SIZE (rmagick-6.0.1.gem) = 269824
Index: pkg/PLIST
===
RCS file: /cvs/ports/graphics/ruby-rmagick/pkg/PLIST,v
diff -u -p -u -p -r1.13 PLIST
--- pkg/PLIST   1 Sep 2023 13:27:50 -   1.13
+++ pkg/PLIST   21 Jun 2024 19:26:11 -
@@ -48,4 +48,37 @@ ${GEM_LIB}/gems/${DISTNAME}/lib/rvg/text
 ${GEM_LIB}/gems/${DISTNAME}/lib/rvg/transformable.rb
 ${GEM_LIB}/gems/${DISTNAME}/lib/rvg/units.rb
 ${GEM_LIB}/gems/${DISTNAME}/rmagick.gemspec
+${GEM_LIB}/gems/${DISTNAME}/sig/
+${GEM_LIB}/gems/${DISTNAME}/sig/rmagick/
+${GEM_LIB}/gems/${DISTNAME}/sig/rmagick.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rmagick/_draw_common_methods.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rmagick/_image_common_methods.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rmagick/draw.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rmagick/draw_attribute.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rmagick/enum.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rmagick/error.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rmagick/fill.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rmagick/geometry.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rmagick/image.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rmagick/image_list.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rmagick/iptc.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rmagick/kernel_info.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rmagick/optional_method_arguments.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rmagick/pixel.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rmagick/struct.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rvg/
+${GEM_LIB}/gems/${DISTNAME}/sig/rvg/clippath.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rvg/container.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rvg/deep_equal.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rvg/describable.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rvg/embellishable.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rvg/misc.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rvg/paint.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rvg/pathdata.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rvg/rvg.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rvg/stretchable.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rvg/stylable.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rvg/text.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rvg/transformable.rbs
+${GEM_LIB}/gems/${DISTNAME}/sig/rvg/units.rbs
 ${GEM_LIB}/specifications/${DISTNAME}.gemspec



Re: unbreak Ruby 3.3 on arm64 BTI

2024-06-21 Thread Jeremy Evans
On 06/21 04:33, Stuart Henderson wrote:
> Ruby 3.3 hits SIGILL at startup on arm64 machines with BTI (apple M2),
> ktrace shows that it is indeed BTI-related.
> 
> 3.1 and 3.2 seem OK as-is.
> 
> OK to fix it like this?

OK jeremy@

Note that Ruby 3.3 has code to handle BTI in the arm64 coroutine:
https://github.com/ruby/ruby/blob/v3_3_3/coroutine/arm64/Context.S

Hopefully someone can figure out why that doesn't work on OpenBSD,
and how to fix it, so I can work on upstreaming support (as I
upstreamed support for IBT on amd64).

Thanks,
Jeremy

> Index: Makefile
> ===
> RCS file: /cvs/ports/lang/ruby/3.3/Makefile,v
> diff -u -p -r1.7 Makefile
> --- Makefile  14 Jun 2024 19:41:34 -  1.7
> +++ Makefile  21 Jun 2024 15:33:16 -
> @@ -1,3 +1,6 @@
> +USE_NOBTCFI-aarch64 =Yes
> +REVISION-main =  0
> +
>  VERSION =3.3.3
>  DISTNAME =   ruby-${VERSION}
>  PKGNAME-main =   ruby-${VERSION}



CVS: cvs.openbsd.org: ports

2024-06-20 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/06/20 16:41:25

Modified files:
databases/xapian-bindings: Makefile 
devel/gitsh: Makefile 
devel/ragel: Makefile 
devel/reposurgeon: Makefile 
devel/vim-command-t: Makefile 
editors/vim: Makefile 
graphics/inkscape: Makefile 
lang/mruby : Makefile 
mail/mew   : Makefile 
multimedia/mkvtoolnix: Makefile 
net/ocserv : Makefile 
net/rrdtool: Makefile 
net/weechat: Makefile 
net/whatweb: Makefile 
security/arirang: Makefile 
security/openssl-ruby-tests: Makefile 
security/wpscan: Makefile 
sysutils/puppetserver/7: Makefile 
sysutils/puppetserver/8: Makefile 
sysutils/ruby-puppet/7: Makefile 
sysutils/ruby-puppet/8: Makefile 
sysutils/tmuxinator: Makefile 
textproc/asciidoctor: Makefile 
textproc/libmarisa: Makefile 
www/nginx  : Makefile 
www/sass   : Makefile 
www/unit/unit-ruby: Makefile 
x11/kde-applications/kross-interpreters: Makefile 

Log message:
Bump ports after switching the default ruby version in ports to Ruby 3.3

OK tb@



CVS: cvs.openbsd.org: ports

2024-06-20 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/06/20 16:40:55

Modified files:
lang/ruby  : ruby.port.mk 

Log message:
Switch the default ruby version in ports to Ruby 3.3

OK tb@



CVS: cvs.openbsd.org: ports

2024-06-14 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/06/14 13:41:34

Modified files:
lang/ruby/3.3  : Makefile distinfo 
lang/ruby/3.3/patches: patch-configure patch-lib_rubygems_rb 
lang/ruby/3.3/pkg: PLIST-main PLIST-ri_docs 
Added files:
lang/ruby/3.3/patches: patch-lib_drb_ssl_rb 
   patch-test_rubygems_test_gem_installer_rb 
   patch-tool_leaked-globals 

Log message:
Update to Ruby 3.3.3

* Regen patches
* Drop a distpatch added upstream
* Add a distpatch to fix an openssl extension test error
* Add a patch to fix a bunch of drb ssl test errors
* Add a patch to fix a rubygems test error due to changes in our port
* Add a patch to the leaked symbols test (not yet enabled in the port)



Switch default ruby version in ports from 3.2 to 3.3

2024-06-13 Thread Jeremy Evans
I would like to update to the default ruby version in ports from 3.2 to
3.3.  We usually do this update after ruby-x.y.2 has been released, and
ruby-3.3.2 was released a couple weeks ago, and I plan on committing
ruby 3.3.3 tomorrow. I think this is a good time in the release cycle
for this change.

Other than ruby.port.mk, the only changes needed are REVISION bumps.

Tested on amd64 using a bulk of all ports that depend on a ruby port.
OKs?

Thanks,
Jeremy

Index: databases/xapian-bindings/Makefile
===
RCS file: /cvs/ports/databases/xapian-bindings/Makefile,v
diff -u -p -u -p -r1.52 Makefile
--- databases/xapian-bindings/Makefile  6 May 2024 12:22:36 -   1.52
+++ databases/xapian-bindings/Makefile  12 Jun 2024 20:24:35 -
@@ -10,7 +10,7 @@ PKGNAME-python=   xapian-bindings-python-$
 PKGNAME-ruby=  ruby${MODRUBY_BINREV}-xapian-${V}
 REVISION-main= 0
 REVISION-python=0
-REVISION-ruby= 0
+REVISION-ruby= 1
 
 CATEGORIES=databases textproc
 
Index: devel/gitsh/Makefile
===
RCS file: /cvs/ports/devel/gitsh/Makefile,v
diff -u -p -u -p -r1.19 Makefile
--- devel/gitsh/Makefile21 Sep 2023 09:49:54 -  1.19
+++ devel/gitsh/Makefile12 Jun 2024 20:24:42 -
@@ -1,5 +1,5 @@
 VERSION =  0.13
-REVISION = 4
+REVISION = 5
 
 COMMENT =  interactive shell for git
 
Index: devel/ragel/Makefile
===
RCS file: /cvs/ports/devel/ragel/Makefile,v
diff -u -p -u -p -r1.17 Makefile
--- devel/ragel/Makefile21 Sep 2023 09:50:04 -  1.17
+++ devel/ragel/Makefile12 Jun 2024 20:24:47 -
@@ -1,7 +1,7 @@
 COMMENT =  state machine compiler
 
 DISTNAME = ragel-6.9
-REVISION = 7
+REVISION = 8
 CATEGORIES =   devel
 
 HOMEPAGE = http://www.colm.net/open-source/ragel/
Index: devel/reposurgeon/Makefile
===
RCS file: /cvs/ports/devel/reposurgeon/Makefile,v
diff -u -p -u -p -r1.18 Makefile
--- devel/reposurgeon/Makefile  21 Sep 2023 09:50:04 -  1.18
+++ devel/reposurgeon/Makefile  12 Jun 2024 20:24:53 -
@@ -1,7 +1,7 @@
 COMMENT=   tool for editing version-control repository history
 
 DISTNAME=  reposurgeon-4.32
-REVISION=  1
+REVISION=  2
 
 CATEGORIES=devel
 
Index: devel/vim-command-t/Makefile
===
RCS file: /cvs/ports/devel/vim-command-t/Makefile,v
diff -u -p -u -p -r1.17 Makefile
--- devel/vim-command-t/Makefile21 Sep 2023 09:50:07 -  1.17
+++ devel/vim-command-t/Makefile12 Jun 2024 20:24:57 -
@@ -2,7 +2,7 @@ COMMENT =   fast, intuitive file opening 
 
 V =1.11.2
 DISTNAME = vim-command-t-${V}
-REVISION = 8
+REVISION = 9
 
 CATEGORIES =   devel editors
 
Index: editors/vim/Makefile
===
RCS file: /cvs/ports/editors/vim/Makefile,v
diff -u -p -u -p -r1.263 Makefile
--- editors/vim/Makefile1 Jun 2024 10:03:47 -   1.263
+++ editors/vim/Makefile12 Jun 2024 20:25:30 -
@@ -15,6 +15,8 @@ FULLPKGPATH-lang= ${PKGPATH},-lang
 P= vim${V:R:S/.//}
 CATEGORIES=editors
 
+REVISION=  0
+
 HOMEPAGE=  https://www.vim.org/
 
 MAINTAINER=Stuart Henderson 
Index: graphics/inkscape/Makefile
===
RCS file: /cvs/ports/graphics/inkscape/Makefile,v
diff -u -p -u -p -r1.112 Makefile
--- graphics/inkscape/Makefile  29 May 2024 12:06:31 -  1.112
+++ graphics/inkscape/Makefile  12 Jun 2024 23:47:40 -
@@ -2,7 +2,7 @@ COMMENT =   SVG vector drawing application
 
 VERSION =  1.3.2
 DISTNAME = inkscape-${VERSION}
-REVISION = 2
+REVISION = 3
 
 CATEGORIES =   graphics
 
Index: lang/mruby/Makefile
===
RCS file: /cvs/ports/lang/mruby/Makefile,v
diff -u -p -u -p -r1.25 Makefile
--- lang/mruby/Makefile 15 Apr 2024 15:10:07 -  1.25
+++ lang/mruby/Makefile 12 Jun 2024 20:25:44 -
@@ -6,6 +6,8 @@ GH_ACCOUNT =mruby
 GH_PROJECT =   mruby
 GH_TAGNAME =   3.3.0
 
+REVISION = 0
+
 CATEGORIES =   lang
 HOMEPAGE = https://mruby.org/
 
Index: lang/ruby/ruby.port.mk
===
RCS file: /cvs/ports/lang/ruby/ruby.port.mk,v
diff -u -p -u -p -r1.120 ruby.port.mk
--- lang/ruby/ruby.port.mk  18 Feb 2024 05:03:49 -  1.120
+++ lang/ruby/ruby.port.mk  12 Jun 2024 19:39:36 -
@@ -42,9 +42,9 @@ FULLPKGNAME?= ${MODRUBY_PKG_PREFIX}-${P
 SUBST_VARS+= 

Update: Ruby 3.3.3

2024-06-12 Thread Jeremy Evans
This updates to the latest version of Ruby 3.3, released yesterday.
Release announcement at
https://www.ruby-lang.org/en/news/2024/06/12/ruby-3-3-3-released/

Port changes:

* Regen patches
* Drop a distpatch added upstream
* Add a distpatch to fix an openssl extension test error
* Add a patch to fix a bunch of drb ssl errors
* Add a patch to fix a rubygems error due to changes in our port
* Add a patch to the leaked symbols test (not yet enabled in the port)

Run test-spec in addition to test-all.  There are still 3 spec
failures, all of which appear to be related to HOME not being
set.  I'll see if I can fix these upstream.

Tested on amd64.  Will be committing in a couple days unless I hear
objections.

Thanks,
Jeremy

Index: Makefile
===
RCS file: /cvs/ports/lang/ruby/3.3/Makefile,v
diff -u -p -u -p -r1.6 Makefile
--- Makefile4 Jun 2024 17:41:18 -   1.6
+++ Makefile12 Jun 2024 18:44:58 -
@@ -1,4 +1,4 @@
-VERSION =  3.3.2
+VERSION =  3.3.3
 DISTNAME = ruby-${VERSION}
 PKGNAME-main = ruby-${VERSION}
 PKGNAME-ri_docs =  ruby${BINREV}-ri_docs-${VERSION}
@@ -6,8 +6,10 @@ SHARED_LIBS =  ruby33  0.0
 NEXTVER =  3.4
 PKGSPEC-main ?= ruby->=3.3.0,<${NEXTVER}
 
-# Backport fix i386 compilation warning
-PATCHFILES.p = 
ruby33-i386-compile-warning{055613fd868a8c94e43893f8c58a00cdd2a81f6d}.patch
+SITES.p1 = https://github.com/ruby/openssl/commit/
+
+# Fix openssl test failure
+PATCHFILES.p1 +=   
ruby33-openssl-csr-version-failure{c06fdeb0912221d9a2888369bbf9c10704af021e}.patch
 
 PSEUDO_FLAVORS=no_ri_docs bootstrap
 # Do not build the RI docs on slow arches
@@ -43,7 +45,7 @@ GEM_EXTENSIONS_DIR = lib/ruby/gems/${REV
 SUBST_VARS += GEM_EXTENSIONS_DIR
 
 TEST_ENV = RUBYGEMS_SYSTEM_UPDATE_MESSAGE=enable
-TEST_TARGET =  test-all TESTOPTS="-v -q"
+TEST_TARGET =  test-all test-spec TESTOPTS="-v -q"
 
 post-extract:
${POST_EXTRACT}
Index: distinfo
===
RCS file: /cvs/ports/lang/ruby/3.3/distinfo,v
diff -u -p -u -p -r1.3 distinfo
--- distinfo4 Jun 2024 17:41:18 -   1.3
+++ distinfo12 Jun 2024 18:45:03 -
@@ -1,4 +1,4 @@
-SHA256 (ruby-3.3.2.tar.gz) = O+HRAOvyoM5gws2NIs2dtNZLPgShlDvixP97Ug8ry1s=
-SHA256 (ruby33-i386-compile-warning.patch) = 
ozizp3gIm42WxEhiAL6XoYyV26LfpWmQmP5sRlrX5qI=
-SIZE (ruby-3.3.2.tar.gz) = 22095824
-SIZE (ruby33-i386-compile-warning.patch) = 819
+SHA256 (ruby-3.3.3.tar.gz) = g8BbIXfunDNbYxspuMB3tHcBZtAvpSfzqfakDRPzzOI=
+SHA256 (ruby33-openssl-csr-version-failure.patch) = 
5OTIvi/5NUJ4moT03s5LxllLDAtdnkrMMZAcJk+oubk=
+SIZE (ruby-3.3.3.tar.gz) = 22105219
+SIZE (ruby33-openssl-csr-version-failure.patch) = 2441
Index: patches/patch-configure
===
RCS file: /cvs/ports/lang/ruby/3.3/patches/patch-configure,v
diff -u -p -u -p -r1.2 patch-configure
--- patches/patch-configure 25 Apr 2024 22:04:30 -  1.2
+++ patches/patch-configure 12 Jun 2024 18:45:41 -
@@ -6,7 +6,7 @@ so ports don't have to be bumped when Op
 Index: configure
 --- configure.orig
 +++ configure
-@@ -31894,7 +31894,7 @@ fi
+@@ -31909,7 +31909,7 @@ fi
 ;; #(
openbsd*|mirbsd*) :
  
@@ -15,7 +15,7 @@ Index: configure
 ;; #(
solaris*) :
  
-@@ -34020,7 +34020,7 @@ then :
+@@ -34035,7 +34035,7 @@ then :
  
  else $as_nop
  
Index: patches/patch-lib_drb_ssl_rb
===
RCS file: patches/patch-lib_drb_ssl_rb
diff -N patches/patch-lib_drb_ssl_rb
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-lib_drb_ssl_rb4 Jun 2024 23:22:11 -
@@ -0,0 +1,19 @@
+Allow drb ssl tests to pass
+
+X509_set_version states that the version field is one
+less than the actual version, so a version 3 certificate
+should use 2.  Without this, setting the version to 3
+raises an exception, resulting in many failing tests.
+
+Index: lib/drb/ssl.rb
+--- lib/drb/ssl.rb.orig
 lib/drb/ssl.rb
+@@ -185,7 +185,7 @@ module DRb
+ }
+ 
+ cert = OpenSSL::X509::Certificate.new
+-cert.version = 3
++cert.version = 2
+ cert.serial = 0
+ name = OpenSSL::X509::Name.new(self[:SSLCertName])
+ cert.subject = name
Index: patches/patch-lib_rubygems_rb
===
RCS file: /cvs/ports/lang/ruby/3.3/patches/patch-lib_rubygems_rb,v
diff -u -p -u -p -r1.1.1.1 patch-lib_rubygems_rb
--- patches/patch-lib_rubygems_rb   27 Dec 2023 20:04:59 -  1.1.1.1
+++ patches/patch-lib_rubygems_rb   12 Jun 2024 18:45:41 -
@@ -9,7 +9,7 @@ The ENV usage is to skip this logic duri
 Index: lib/rubygems.rb
 --- lib/rubygems.rb.orig
 +++ lib/rubygems.rb
-@@ -1161,6 +1161,13 @@ An Array (#{env.inspect}) was passed in 

CVS: cvs.openbsd.org: ports

2024-06-06 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/06/06 21:07:53

Modified files:
security/ruby-cms_scanner: Makefile 
security/ruby-cms_scanner/patches: patch-_metadata 

Log message:
Work with updated nokogiri dependency by removing pessimistic version 
restriction



CVS: cvs.openbsd.org: ports

2024-06-04 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/06/04 11:45:18

Modified files:
textproc/ruby-nokogiri: Makefile distinfo 
Added files:
textproc/ruby-nokogiri/patches: 
patch-lib_nokogiri_version_info_rb 

Log message:
Update to nokogiri 1.16.5

Remove warning if libxml/libxslt version loaded differs from the version
nokogiri was compiled with.  This happens routinely on -stable due to
libxml security patches.



CVS: cvs.openbsd.org: ports

2024-06-04 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/06/04 11:43:23

Modified files:
lang/ruby/3.3  : Tag: OPENBSD_7_5 Makefile distinfo 
lang/ruby/3.3/pkg: Tag: OPENBSD_7_5 PLIST-main PLIST-ri_docs 

Log message:
Update to Ruby 3.3.2

Backporting to -stable as this fixes a pthread_kill related crash.



CVS: cvs.openbsd.org: ports

2024-06-04 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/06/04 11:41:18

Modified files:
lang/ruby/3.3  : Makefile distinfo 
lang/ruby/3.3/pkg: PLIST-main PLIST-ri_docs 

Log message:
Update to Ruby 3.3.2



CVS: cvs.openbsd.org: ports

2024-05-31 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/05/31 11:22:48

Modified files:
lang/ruby/3.1  : Makefile distinfo 
lang/ruby/3.1/pkg: PLIST-main 
Removed files:
lang/ruby/3.1/patches: patch-ext_fiddle_closure_c 
   patch-ext_openssl_ossl_pkey_c 

Log message:
Update to Ruby 3.1.6

Remove a distpatch and a couple patches merged upstream.



Update: ruby-nokogiri 1.16.5

2024-05-31 Thread Jeremy Evans
Simple update to the latest release of nokogiri.  Changelog available at
https://nokogiri.org/CHANGELOG.html

Ports-wise, the only change besides the version bump is silencing
the warning when the libxml/libxslt version changes.  This happens
quite often in -stable because libxml is patched for security
patches.

Tested on amd64.  I'll be committing in a few days unless I hear
objections.

Thanks,
Jeremy

Index: Makefile
===
RCS file: /cvs/ports/textproc/ruby-nokogiri/Makefile,v
diff -u -p -u -p -r1.43 Makefile
--- Makefile1 Sep 2023 21:05:28 -   1.43
+++ Makefile31 May 2024 16:29:52 -
@@ -1,6 +1,6 @@
 COMMENT=   HTML, XML, SAX and Reader parser
 
-DISTNAME=  nokogiri-1.15.4
+DISTNAME=  nokogiri-1.16.5
 CATEGORIES=textproc
 
 HOMEPAGE=  http://nokogiri.org/
Index: distinfo
===
RCS file: /cvs/ports/textproc/ruby-nokogiri/distinfo,v
diff -u -p -u -p -r1.20 distinfo
--- distinfo1 Sep 2023 21:05:28 -   1.20
+++ distinfo31 May 2024 16:29:57 -
@@ -1,2 +1,2 @@
-SHA256 (nokogiri-1.15.4.gem) = 5KgB5e9kPMADbwp+k0M9GIGLMdSMnCh1lraOksAXPE0=
-SIZE (nokogiri-1.15.4.gem) = 4610560
+SHA256 (nokogiri-1.16.5.gem) = 7DYWLGiYT6CpClxK56t3WUYGOecWzBznXzTDy1QVitI=
+SIZE (nokogiri-1.16.5.gem) = 4625408
Index: patches/patch-lib_nokogiri_version_info_rb
===
RCS file: patches/patch-lib_nokogiri_version_info_rb
diff -N patches/patch-lib_nokogiri_version_info_rb
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-lib_nokogiri_version_info_rb  31 May 2024 16:36:05 -
@@ -0,0 +1,24 @@
+Do not print a warning when libxml/libxslt version differs from
+the one nokogiri was compiled with.  This is a common occurence
+when there are security patches to libxml, especially in
+-stable.
+
+Index: lib/nokogiri/version/info.rb
+--- lib/nokogiri/version/info.rb.orig
 lib/nokogiri/version/info.rb
+@@ -72,6 +72,7 @@ module Nokogiri
+ def warnings
+   warnings = []
+ 
++=begin
+   if libxml2?
+ if compiled_libxml_version != loaded_libxml_version
+   warnings << "Nokogiri was built against libxml version 
#{compiled_libxml_version}, but has dynamically loaded #{loaded_libxml_version}"
+@@ -81,6 +82,7 @@ module Nokogiri
+   warnings << "Nokogiri was built against libxslt version 
#{compiled_libxslt_version}, but has dynamically loaded 
#{loaded_libxslt_version}"
+ end
+   end
++=end
+ 
+   warnings
+ end



Update: Ruby 3.3.2

2024-05-30 Thread Jeremy Evans
This updates to the latest release of Ruby 3.3. This fixes a crash
related to pthread_kill, so I plan on backporting this to -stable.

Tested on amd64.  Will be committing in a couple days unless I hear
objections.

I plan to work on switching the default Ruby version in ports to 3.3
after this is committed (maybe not right away).

Thanks,
Jeremy

Index: Makefile
===
RCS file: /cvs/ports/lang/ruby/3.3/Makefile,v
diff -u -p -u -p -r1.5 Makefile
--- Makefile25 Apr 2024 22:04:30 -  1.5
+++ Makefile30 May 2024 14:44:30 -
@@ -1,4 +1,4 @@
-VERSION =  3.3.1
+VERSION =  3.3.2
 DISTNAME = ruby-${VERSION}
 PKGNAME-main = ruby-${VERSION}
 PKGNAME-ri_docs =  ruby${BINREV}-ri_docs-${VERSION}
Index: distinfo
===
RCS file: /cvs/ports/lang/ruby/3.3/distinfo,v
diff -u -p -u -p -r1.2 distinfo
--- distinfo25 Apr 2024 22:04:30 -  1.2
+++ distinfo30 May 2024 14:44:43 -
@@ -1,4 +1,4 @@
-SHA256 (ruby-3.3.1.tar.gz) = jcKvKALMcAzRgtVDByY4jM+IWz8KFPzWoPIf8knJqpk=
+SHA256 (ruby-3.3.2.tar.gz) = O+HRAOvyoM5gws2NIs2dtNZLPgShlDvixP97Ug8ry1s=
 SHA256 (ruby33-i386-compile-warning.patch) = 
ozizp3gIm42WxEhiAL6XoYyV26LfpWmQmP5sRlrX5qI=
-SIZE (ruby-3.3.1.tar.gz) = 22074535
+SIZE (ruby-3.3.2.tar.gz) = 22095824
 SIZE (ruby33-i386-compile-warning.patch) = 819
Index: pkg/PLIST-main
===
RCS file: /cvs/ports/lang/ruby/3.3/pkg/PLIST-main,v
diff -u -p -u -p -r1.2 PLIST-main
--- pkg/PLIST-main  25 Apr 2024 22:04:30 -  1.2
+++ pkg/PLIST-main  30 May 2024 15:34:17 -
@@ -725,38 +725,46 @@ lib/ruby/${REV}/ipaddr.rb
 lib/ruby/${REV}/irb/
 lib/ruby/${REV}/irb.rb
 lib/ruby/${REV}/irb/cmd/
-lib/ruby/${REV}/irb/cmd/backtrace.rb
-lib/ruby/${REV}/irb/cmd/break.rb
-lib/ruby/${REV}/irb/cmd/catch.rb
-lib/ruby/${REV}/irb/cmd/chws.rb
-lib/ruby/${REV}/irb/cmd/continue.rb
-lib/ruby/${REV}/irb/cmd/debug.rb
-lib/ruby/${REV}/irb/cmd/delete.rb
-lib/ruby/${REV}/irb/cmd/edit.rb
-lib/ruby/${REV}/irb/cmd/finish.rb
-lib/ruby/${REV}/irb/cmd/help.rb
-lib/ruby/${REV}/irb/cmd/history.rb
-lib/ruby/${REV}/irb/cmd/info.rb
-lib/ruby/${REV}/irb/cmd/irb_info.rb
-lib/ruby/${REV}/irb/cmd/load.rb
-lib/ruby/${REV}/irb/cmd/ls.rb
-lib/ruby/${REV}/irb/cmd/measure.rb
-lib/ruby/${REV}/irb/cmd/next.rb
 lib/ruby/${REV}/irb/cmd/nop.rb
-lib/ruby/${REV}/irb/cmd/pushws.rb
-lib/ruby/${REV}/irb/cmd/show_cmds.rb
-lib/ruby/${REV}/irb/cmd/show_doc.rb
-lib/ruby/${REV}/irb/cmd/show_source.rb
-lib/ruby/${REV}/irb/cmd/step.rb
-lib/ruby/${REV}/irb/cmd/subirb.rb
-lib/ruby/${REV}/irb/cmd/whereami.rb
 lib/ruby/${REV}/irb/color.rb
 lib/ruby/${REV}/irb/color_printer.rb
+lib/ruby/${REV}/irb/command/
+lib/ruby/${REV}/irb/command.rb
+lib/ruby/${REV}/irb/command/backtrace.rb
+lib/ruby/${REV}/irb/command/base.rb
+lib/ruby/${REV}/irb/command/break.rb
+lib/ruby/${REV}/irb/command/catch.rb
+lib/ruby/${REV}/irb/command/chws.rb
+lib/ruby/${REV}/irb/command/context.rb
+lib/ruby/${REV}/irb/command/continue.rb
+lib/ruby/${REV}/irb/command/debug.rb
+lib/ruby/${REV}/irb/command/delete.rb
+lib/ruby/${REV}/irb/command/disable_irb.rb
+lib/ruby/${REV}/irb/command/edit.rb
+lib/ruby/${REV}/irb/command/exit.rb
+lib/ruby/${REV}/irb/command/finish.rb
+lib/ruby/${REV}/irb/command/force_exit.rb
+lib/ruby/${REV}/irb/command/help.rb
+lib/ruby/${REV}/irb/command/history.rb
+lib/ruby/${REV}/irb/command/info.rb
+lib/ruby/${REV}/irb/command/internal_helpers.rb
+lib/ruby/${REV}/irb/command/irb_info.rb
+lib/ruby/${REV}/irb/command/load.rb
+lib/ruby/${REV}/irb/command/ls.rb
+lib/ruby/${REV}/irb/command/measure.rb
+lib/ruby/${REV}/irb/command/next.rb
+lib/ruby/${REV}/irb/command/pushws.rb
+lib/ruby/${REV}/irb/command/show_doc.rb
+lib/ruby/${REV}/irb/command/show_source.rb
+lib/ruby/${REV}/irb/command/step.rb
+lib/ruby/${REV}/irb/command/subirb.rb
+lib/ruby/${REV}/irb/command/whereami.rb
 lib/ruby/${REV}/irb/completion.rb
 lib/ruby/${REV}/irb/context.rb
 lib/ruby/${REV}/irb/debug/
 lib/ruby/${REV}/irb/debug.rb
 lib/ruby/${REV}/irb/debug/ui.rb
+lib/ruby/${REV}/irb/default_commands.rb
 lib/ruby/${REV}/irb/easter-egg.rb
 lib/ruby/${REV}/irb/ext/
 lib/ruby/${REV}/irb/ext/change-ws.rb
@@ -766,9 +774,12 @@ lib/ruby/${REV}/irb/ext/multi-irb.rb
 lib/ruby/${REV}/irb/ext/tracer.rb
 lib/ruby/${REV}/irb/ext/use-loader.rb
 lib/ruby/${REV}/irb/ext/workspaces.rb
-lib/ruby/${REV}/irb/extend-command.rb
 lib/ruby/${REV}/irb/frame.rb
 lib/ruby/${REV}/irb/help.rb
+lib/ruby/${REV}/irb/helper_method/
+lib/ruby/${REV}/irb/helper_method.rb
+lib/ruby/${REV}/irb/helper_method/base.rb
+lib/ruby/${REV}/irb/helper_method/conf.rb
 lib/ruby/${REV}/irb/history.rb
 lib/ruby/${REV}/irb/init.rb
 lib/ruby/${REV}/irb/input-method.rb
@@ -1759,9 +1770,9 @@ lib/ruby/gems/${REV}/gems/io-console-0.7
 lib/ruby/gems/${REV}/gems/io-nonblock-0.3.0/
 lib/ruby/gems/${REV}/gems/io-wait-0.3.1/
 

CVS: cvs.openbsd.org: ports

2024-05-29 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/05/29 11:06:28

Added files:
devel/ruby-json_pure/pkg: DESCR PLIST 

Log message:
Add DESCR and PLIST, missed when json_pure was readded



Update: Ruby 3.1.6

2024-05-29 Thread Jeremy Evans
This updates to the latest version of Ruby 3.1.  Two of our patches
and one distpatch have been upstreamed.

Tested on amd64.  Will be committing in a couple days unless I hear
objections.

Thanks,
Jeremy

Index: Makefile
===
RCS file: /cvs/ports/lang/ruby/3.1/Makefile,v
diff -u -p -u -p -r1.18 Makefile
--- Makefile25 Apr 2024 22:09:25 -  1.18
+++ Makefile29 May 2024 14:37:24 -
@@ -1,4 +1,4 @@
-VERSION =  3.1.5
+VERSION =  3.1.6
 DISTNAME = ruby-${VERSION}
 SHARED_LIBS =  ruby31  0.0
 NEXTVER =  3.2
@@ -8,8 +8,6 @@ SITES.p1 ?= https://github.com/ruby/ope
 
 # Backport fix for fixnum*fixnum multiplication on octeon
 PATCHFILES.p = 
ruby-octeon-fix-2{fe6245b4309c855e6aca5b786ad50a72d53d278a}.patch
-# Backport fix for ASN.1 time test
-PATCHFILES.p1 +=   
ruby-asn1time-fix-1{bbc540fe83195e2a54cf40fab448cea2afe4df1d}.patch
 # Enable HKDF
 PATCHFILES.p1 +=   
ruby-enable-hkdf-1{9bdd39a7e2a5851c9090889727f54859e63a4ec9}.patch
 # Fix Ed25519 support
Index: distinfo
===
RCS file: /cvs/ports/lang/ruby/3.1/distinfo,v
diff -u -p -u -p -r1.10 distinfo
--- distinfo25 Apr 2024 22:09:25 -  1.10
+++ distinfo29 May 2024 14:37:45 -
@@ -1,10 +1,8 @@
-SHA256 (ruby-3.1.5.tar.gz) = NoXFHu7hNSwx6gOXBtcZdvU9AKttdzEt5qoauvXNosU=
-SHA256 (ruby-asn1time-fix-1.patch) = 
n3v+hFVd72m+qOQYrHfnU8aKhypFTHkmbw1tdxoj6U4=
+SHA256 (ruby-3.1.6.tar.gz) = DQ2vuFnnZ2NDJXGjEJ0VN9l2JmvjCDRFZR3Gje7SXCI=
 SHA256 (ruby-ed25519-fix-1.patch) = 
6Cxx/FbYfJGbhKqdUbAmKvRmZEWpP1MPTZfWWzHoNfg=
 SHA256 (ruby-enable-hkdf-1.patch) = 
IUjVM4OMHs4KeZcXAdPW2iMy1voVDuAGtUZBMJovyFY=
 SHA256 (ruby-octeon-fix-2.patch) = u3ETLnfgMRbVGa6X33NRjdToUT6X+xq5/K7hHrXQwQQ=
-SIZE (ruby-3.1.5.tar.gz) = 20884264
-SIZE (ruby-asn1time-fix-1.patch) = 2279
+SIZE (ruby-3.1.6.tar.gz) = 20887803
 SIZE (ruby-ed25519-fix-1.patch) = 1496
 SIZE (ruby-enable-hkdf-1.patch) = 1471
 SIZE (ruby-octeon-fix-2.patch) = 1884
Index: patches/patch-ext_fiddle_closure_c
===
RCS file: patches/patch-ext_fiddle_closure_c
diff -N patches/patch-ext_fiddle_closure_c
--- patches/patch-ext_fiddle_closure_c  25 Apr 2024 22:09:25 -  1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,14 +0,0 @@
-Unbreak compilation of fiddle, breakage introduced in Ruby 3.1.5.
-
-Index: ext/fiddle/closure.c
 ext/fiddle/closure.c.orig
-+++ ext/fiddle/closure.c
-@@ -276,7 +276,7 @@ initialize(int rbargc, VALUE argv[], VALUE self)
- result = ffi_prep_closure_loc(pcl, cif, callback,
-   (void *)self, cl->code);
- #else
--result = ffi_prep_closure(pcl, cif, callback, (void *)(data->self));
-+result = ffi_prep_closure(pcl, cif, callback, (void *)self);
- cl->code = (void *)pcl;
- i = mprotect(pcl, sizeof(*pcl), PROT_READ | PROT_EXEC);
- if (i) {
Index: patches/patch-ext_openssl_ossl_pkey_c
===
RCS file: patches/patch-ext_openssl_ossl_pkey_c
diff -N patches/patch-ext_openssl_ossl_pkey_c
--- patches/patch-ext_openssl_ossl_pkey_c   27 Nov 2022 01:10:37 -  
1.3
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,15 +0,0 @@
-LibreSSL 3.5 and later provide and need to use
-PEM_write_bio_PrivateKey_traditional()
-
-Index: ext/openssl/ossl_pkey.c
 ext/openssl/ossl_pkey.c.orig
-+++ ext/openssl/ossl_pkey.c
-@@ -710,7 +710,7 @@ ossl_pkey_export_traditional(int argc, VALUE *argv, VA
-   }
- }
- else {
--#if OPENSSL_VERSION_NUMBER >= 0x1010 && !defined(LIBRESSL_VERSION_NUMBER)
-+#if OPENSSL_VERSION_NUMBER >= 0x1010
-   if (!PEM_write_bio_PrivateKey_traditional(bio, pkey, enc, NULL, 0,
- ossl_pem_passwd_cb,
- (void *)pass)) {
Index: pkg/PLIST-main
===
RCS file: /cvs/ports/lang/ruby/3.1/pkg/PLIST-main,v
diff -u -p -u -p -r1.8 PLIST-main
--- pkg/PLIST-main  25 Apr 2024 22:09:25 -  1.8
+++ pkg/PLIST-main  29 May 2024 15:25:59 -
@@ -220,7 +220,7 @@ include/ruby-${REV}/ruby/util.h
 include/ruby-${REV}/ruby/version.h
 include/ruby-${REV}/ruby/vm.h
 include/ruby-${REV}/${SUB}/
-include/ruby-${REV}/${SUB}/rb_mjit_min_header-3.1.5.h
+include/ruby-${REV}/${SUB}/rb_mjit_min_header-3.1.6.h
 include/ruby-${REV}/${SUB}/ruby/
 include/ruby-${REV}/${SUB}/ruby/config.h
 @so lib/libruby31.so



CVS: cvs.openbsd.org: ports

2024-05-23 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/05/23 10:10:59

Modified files:
textproc/ruby-commonmarker: Makefile 

Log message:
Add rb_sys to RUN_DEPENDS

Without rb_sys installed, trying to require commonmarker results in:

Gem::MissingSpecError: Could not find 'rb_sys' (~> 0.9) among ... total gem(s)



CVS: cvs.openbsd.org: ports

2024-05-20 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/05/20 13:18:27

Modified files:
databases/postgresql: Tag: OPENBSD_7_5 Makefile distinfo 
databases/postgresql/pkg: Tag: OPENBSD_7_5 PLIST-docs 
  PLIST-server 

Log message:
Update to PostgreSQL 16.3

Fixes CVE-2024-4317



CVS: cvs.openbsd.org: ports

2024-05-20 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/05/20 13:14:05

Modified files:
databases/postgresql: Makefile distinfo 
databases/postgresql/pkg: PLIST-docs PLIST-server 

Log message:
Update to PostgreSQL 16.3

Fixes CVE-2024-4317



Update: PostgreSQL 16.3

2024-05-09 Thread Jeremy Evans
Update to the latest release of PostgreSQL.  Release announcement at:
https://www.postgresql.org/about/news/postgresql-163-157-1412-1315-and-1219-released-2858/

Note that there is a small (CVSS score 3.1) security fix this release
that requires manual updates for existing installations (see the
release announcement).

Briefly tested on amd64.  Will be doing some additional tests, but plan
to commit tomorrow unless there are objections.

Thanks,
Jeremy

Index: Makefile
===
RCS file: /cvs/ports/databases/postgresql/Makefile,v
retrieving revision 1.301
diff -u -p -u -p -r1.301 Makefile
--- Makefile10 Feb 2024 19:18:10 -  1.301
+++ Makefile9 May 2024 14:29:43 -
@@ -5,7 +5,7 @@ COMMENT-contrib=PostgreSQL RDBMS contrib
 COMMENT-plpython=Python procedural language for PostgreSQL
 COMMENT-pg_upgrade=Support for upgrading PostgreSQL data from previous version
 
-VERSION=   16.2
+VERSION=   16.3
 PREV_MAJOR=15
 DISTNAME=  postgresql-${VERSION}
 PKGNAME-main=  postgresql-client-${VERSION}
Index: distinfo
===
RCS file: /cvs/ports/databases/postgresql/distinfo,v
retrieving revision 1.100
diff -u -p -u -p -r1.100 distinfo
--- distinfo10 Feb 2024 19:18:10 -  1.100
+++ distinfo9 May 2024 14:29:43 -
@@ -1,2 +1,2 @@
-SHA256 (postgresql-16.2.tar.gz) = K4IBBH7IGs0brSnbonjXiOeJG5w+gjLtoWuyneyBMcc=
-SIZE (postgresql-16.2.tar.gz) = 32558575
+SHA256 (postgresql-16.3.tar.gz) = vTeYw5m8G20IuUNA+d16daMKf6B2eI7y9ISL4r5qX8U=
+SIZE (postgresql-16.3.tar.gz) = 32616059
Index: pkg/PLIST-docs
===
RCS file: /cvs/ports/databases/postgresql/pkg/PLIST-docs,v
retrieving revision 1.113
diff -u -p -u -p -r1.113 PLIST-docs
--- pkg/PLIST-docs  10 Feb 2024 19:18:10 -  1.113
+++ pkg/PLIST-docs  9 May 2024 14:29:44 -
@@ -717,6 +717,7 @@ share/doc/postgresql/html/regress-varian
 share/doc/postgresql/html/regress.html
 share/doc/postgresql/html/release-16-1.html
 share/doc/postgresql/html/release-16-2.html
+share/doc/postgresql/html/release-16-3.html
 share/doc/postgresql/html/release-16.html
 share/doc/postgresql/html/release-prior.html
 share/doc/postgresql/html/release.html
Index: pkg/PLIST-server
===
RCS file: /cvs/ports/databases/postgresql/pkg/PLIST-server,v
retrieving revision 1.50
diff -u -p -u -p -r1.50 PLIST-server
--- pkg/PLIST-server10 Feb 2024 19:18:10 -  1.50
+++ pkg/PLIST-server9 May 2024 14:29:44 -
@@ -988,6 +988,7 @@ share/postgresql/extension/plperlu--1.0.
 share/postgresql/extension/plperlu.control
 share/postgresql/extension/plpgsql--1.0.sql
 share/postgresql/extension/plpgsql.control
+share/postgresql/fix-CVE-2024-4317.sql
 share/postgresql/pg_hba.conf.sample
 share/postgresql/pg_ident.conf.sample
 share/postgresql/pg_service.conf.sample



CVS: cvs.openbsd.org: ports

2024-05-02 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/05/02 10:37:28

Modified files:
security/suricata: Tag: OPENBSD_7_5 Makefile distinfo 
security/suricata/patches: Tag: OPENBSD_7_5 patch-configure_ac 
   patch-src_suricata_c 
   patch-suricata_yaml_in 

Log message:
Update to suricata 7.0.5

Fixes CVE-2024-32663 CVE-2024-32664 CVE-2024-32867

OK gonzalo@



CVS: cvs.openbsd.org: ports

2024-05-01 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/05/01 15:52:10

Modified files:
lang/jruby : Makefile distinfo 
lang/jruby/pkg : PLIST 

Log message:
Update to JRuby 9.4.7.0



CVS: cvs.openbsd.org: ports

2024-04-30 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/04/30 08:30:46

Modified files:
security/suricata: Makefile distinfo 

Log message:
Update to suricata 7.0.5

Fixes CVE-2024-32663 CVE-2024-32664 CVE-2024-32867

OK gonzalo@



Update: JRuby 9.4.7.0

2024-04-29 Thread Jeremy Evans
Simple update to the latest release of JRuby.  Release notes at:
https://www.jruby.org/2024/04/29/jruby-9-4-7-0.html

Tested on amd64, the only supported arch.  Will be committing in a
couple days unless I hear objections.

Thanks,
Jeremy

Index: Makefile
===
RCS file: /cvs/ports/lang/jruby/Makefile,v
retrieving revision 1.114
diff -u -p -u -p -r1.114 Makefile
--- Makefile23 Feb 2024 17:29:53 -  1.114
+++ Makefile29 Apr 2024 19:41:51 -
@@ -3,7 +3,7 @@ ONLY_FOR_ARCHS = amd64
 
 COMMENT =  pure-Java implementation of the Ruby language
 
-V =9.4.6.0
+V =9.4.7.0
 DISTNAME = jruby-dist-${V}-bin
 PKGNAME =  jruby-${V}
 CATEGORIES =   lang lang/ruby
Index: distinfo
===
RCS file: /cvs/ports/lang/jruby/distinfo,v
retrieving revision 1.78
diff -u -p -u -p -r1.78 distinfo
--- distinfo23 Feb 2024 17:29:53 -  1.78
+++ distinfo29 Apr 2024 19:41:51 -
@@ -1,6 +1,6 @@
 SHA256 (jffi-1.3.10.tar.gz) = QZWOTjjcxTOTidj4/JjERqcokJJ5SOiQualLs/ivHsw=
-SHA256 (jruby-dist-9.4.6.0-bin.tar.gz) = 
LaFN5BUrcf2/o1ukaHpG7xLNRldAM3tUnMH+bHwTmBM=
+SHA256 (jruby-dist-9.4.7.0-bin.tar.gz) = 
8cOfgldQUwClKP+D/kch++YahVq7JePSfVLUOsl6TYA=
 SHA256 (jruby-launcher-1.1.19-java.gem) = 
LPGrpNcsdLNq7MSjCxiSXh4h+vcPVuC0ykUyUYquGJo=
 SIZE (jffi-1.3.10.tar.gz) = 3304571
-SIZE (jruby-dist-9.4.6.0-bin.tar.gz) = 31819131
+SIZE (jruby-dist-9.4.7.0-bin.tar.gz) = 31842429
 SIZE (jruby-launcher-1.1.19-java.gem) = 64000
Index: pkg/PLIST
===
RCS file: /cvs/ports/lang/jruby/pkg/PLIST,v
retrieving revision 1.69
diff -u -p -u -p -r1.69 PLIST
--- pkg/PLIST   23 Feb 2024 17:29:53 -  1.69
+++ pkg/PLIST   29 Apr 2024 19:41:51 -
@@ -259,10 +259,10 @@ jruby/lib/ruby/gems/1.8/gems/rake-13.0.6
 jruby/lib/ruby/gems/1.8/gems/rake-13.0.6/lib/rake/version.rb
 jruby/lib/ruby/gems/1.8/gems/rake-13.0.6/lib/rake/win32.rb
 jruby/lib/ruby/gems/1.8/gems/rake-13.0.6/rake.gemspec
-jruby/lib/ruby/gems/1.8/gems/rdoc-6.4.0/
-jruby/lib/ruby/gems/1.8/gems/rdoc-6.4.0/exe/
-jruby/lib/ruby/gems/1.8/gems/rdoc-6.4.0/exe/rdoc
-jruby/lib/ruby/gems/1.8/gems/rdoc-6.4.0/exe/ri
+jruby/lib/ruby/gems/1.8/gems/rdoc-6.4.1.1/
+jruby/lib/ruby/gems/1.8/gems/rdoc-6.4.1.1/exe/
+jruby/lib/ruby/gems/1.8/gems/rdoc-6.4.1.1/exe/rdoc
+jruby/lib/ruby/gems/1.8/gems/rdoc-6.4.1.1/exe/ri
 jruby/lib/ruby/gems/1.8/gems/rexml-3.2.5/
 jruby/lib/ruby/gems/1.8/gems/rexml-3.2.5/LICENSE.txt
 jruby/lib/ruby/gems/1.8/gems/rexml-3.2.5/NEWS.md
@@ -554,7 +554,7 @@ jruby/lib/ruby/gems/1.8/specifications/d
 jruby/lib/ruby/gems/1.8/specifications/default/ipaddr-1.2.4.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/irb-1.4.2.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/jar-dependencies-0.4.1.gemspec
-jruby/lib/ruby/gems/1.8/specifications/default/jruby-openssl-0.14.3-java.gemspec
+jruby/lib/ruby/gems/1.8/specifications/default/jruby-openssl-0.14.5-java.gemspec
 
jruby/lib/ruby/gems/1.8/specifications/default/jruby-readline-1.3.7-java.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/json-2.7.1-java.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/logger-1.5.1.gemspec
@@ -573,7 +573,7 @@ jruby/lib/ruby/gems/1.8/specifications/d
 jruby/lib/ruby/gems/1.8/specifications/default/psych-5.1.1.1-java.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/racc-1.6.0-java.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/rake-ant-1.0.6.gemspec
-jruby/lib/ruby/gems/1.8/specifications/default/rdoc-6.4.0.gemspec
+jruby/lib/ruby/gems/1.8/specifications/default/rdoc-6.4.1.1.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/reline-0.4.2.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/resolv-replace-0.1.0.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/rinda-0.1.1.gemspec



CVS: cvs.openbsd.org: ports

2024-04-26 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/04/26 12:15:10

Modified files:
lang/ruby/3.3  : Tag: OPENBSD_7_5 Makefile distinfo 
lang/ruby/3.3/patches: Tag: OPENBSD_7_5 patch-configure 
   patch-ext_extmk_rb 
lang/ruby/3.3/pkg: Tag: OPENBSD_7_5 PLIST-main PLIST-ri_docs 

Log message:
Update to Ruby 3.3.1

Fixes:

CVE-2024-27282: Arbitrary memory address read vulnerability with Regex search
CVE-2024-27281: RCE vulnerability with .rdoc_options in RDoc
CVE-2024-27280: Buffer overread vulnerability in StringIO

Backport an upstream fix for ILP32 architectures.

Switch check to test-all as the test target, as the previous check
target fails before the main test suite runs due to a symbol
visibility that doesn't handle retguard.

Upstream fix identified by tb@
i386 testing by tb@
OK tb@



CVS: cvs.openbsd.org: ports

2024-04-26 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/04/26 12:14:20

Modified files:
lang/ruby/3.2  : Tag: OPENBSD_7_5 Makefile distinfo 
lang/ruby/3.2/patches: Tag: OPENBSD_7_5 patch-compile_c 
   patch-configure 
   patch-coroutine_amd64_Context_S 
   patch-lib_rubygems_commands_install_command_rb 
   patch-lib_rubygems_dependency_installer_rb 
   patch-lib_rubygems_ext_builder_rb 
   patch-lib_rubygems_ext_ext_conf_builder_rb 
   patch-template_Makefile_in 
lang/ruby/3.2/pkg: Tag: OPENBSD_7_5 PLIST-main PLIST-ri_docs 

Log message:
Update to Ruby 3.2.4

Fixes:

CVE-2024-27282: Arbitrary memory address read vulnerability with Regex search
CVE-2024-27281: RCE vulnerability with .rdoc_options in RDoc
CVE-2024-27280: Buffer overread vulnerability in StringIO

OK tb@



CVS: cvs.openbsd.org: ports

2024-04-26 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/04/26 12:13:28

Modified files:
lang/ruby/3.1  : Tag: OPENBSD_7_5 Makefile distinfo 
lang/ruby/3.1/patches: Tag: OPENBSD_7_5 patch-compile_c 
   patch-configure 
   patch-coroutine_amd64_Context_S 
lang/ruby/3.1/pkg: Tag: OPENBSD_7_5 PLIST-main PLIST-ri_docs 
Added files:
lang/ruby/3.1/patches: Tag: OPENBSD_7_5 
   patch-ext_fiddle_closure_c 

Log message:
Update to Ruby 3.1.5

Fixes:

CVE-2024-27282: Arbitrary memory address read vulnerability with Regex search
CVE-2024-27281: RCE vulnerability with .rdoc_options in RDoc
CVE-2024-27280: Buffer overread vulnerability in StringIO

Fix a bad backport in the fiddle extension that breaks compilation.

OK tb@



CVS: cvs.openbsd.org: ports

2024-04-25 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/04/25 16:09:25

Modified files:
lang/ruby/3.1  : Makefile distinfo 
lang/ruby/3.1/patches: patch-compile_c patch-configure 
   patch-coroutine_amd64_Context_S 
lang/ruby/3.1/pkg: PLIST-main PLIST-ri_docs 
Added files:
lang/ruby/3.1/patches: patch-ext_fiddle_closure_c 

Log message:
Update to Ruby 3.1.5

Fix a bad backport in the fiddle extension that breaks compilation.

OK tb@



CVS: cvs.openbsd.org: ports

2024-04-25 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/04/25 16:05:25

Modified files:
lang/ruby/3.2  : Makefile distinfo 
lang/ruby/3.2/patches: patch-compile_c patch-configure 
   patch-coroutine_amd64_Context_S 
   patch-lib_rubygems_commands_install_command_rb 
   patch-lib_rubygems_dependency_installer_rb 
   patch-lib_rubygems_ext_builder_rb 
   patch-lib_rubygems_ext_ext_conf_builder_rb 
   patch-template_Makefile_in 
lang/ruby/3.2/pkg: PLIST-main PLIST-ri_docs 

Log message:
Update to Ruby 3.2.4

OK tb@



CVS: cvs.openbsd.org: ports

2024-04-25 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/04/25 16:04:30

Modified files:
lang/ruby/3.3  : Makefile distinfo 
lang/ruby/3.3/patches: patch-configure patch-ext_extmk_rb 
lang/ruby/3.3/pkg: PLIST-main PLIST-ri_docs 

Log message:
Update to Ruby 3.3.1

Backport an upstream fix for ILP32 architectures.

Switch check to test-all as the test target, as the previous check
target fails before the main test suite runs due to a symbol
visibility that doesn't handle retguard.

Upstream fix identified by tb@
i386 testing by tb@
OK tb@



Update: suricata 7.0.5

2024-04-23 Thread Jeremy Evans
Simple update to the latest suricata release.  Release notes at:
https://forum.suricata.io/t/suricata-7-0-5-and-6-0-19-released/4617

Looks like a couple CVEs fixed based on the release announcement,
but I couldn't find details.

Tested briefly on amd64.

OKs?

Thanks,
Jeremy

Index: Makefile
===
RCS file: /cvs/ports/security/suricata/Makefile,v
retrieving revision 1.68
diff -u -p -u -p -r1.68 Makefile
--- Makefile27 Mar 2024 21:31:15 -  1.68
+++ Makefile24 Apr 2024 00:12:15 -
@@ -3,8 +3,8 @@ NOT_FOR_ARCHS = powerpc64 riscv64
 
 COMMENT =  high performance network IDS, IPS and security monitoring
 
-SURICATA_V =   7.0.4
-SUPDATE_V =1.3.2
+SURICATA_V =   7.0.5
+SUPDATE_V =1.3.3
 
 DISTNAME = suricata-${SURICATA_V}
 CATEGORIES =   security
Index: distinfo
===
RCS file: /cvs/ports/security/suricata/distinfo,v
retrieving revision 1.23
diff -u -p -u -p -r1.23 distinfo
--- distinfo27 Mar 2024 21:31:15 -  1.23
+++ distinfo24 Apr 2024 00:12:15 -
@@ -1,2 +1,2 @@
-SHA256 (suricata-7.0.4.tar.gz) = ZABgEgAkvnDb6B9uxu/HLkYlD8s2IZ3/Z+ZBciD/Ibc=
-SIZE (suricata-7.0.4.tar.gz) = 23610769
+SHA256 (suricata-7.0.5.tar.gz) = H/tWgVjyZcCFVEZL+4VOZWjvaDvwMxKSO1HyjFB5Ck4=
+SIZE (suricata-7.0.5.tar.gz) = 23612189



Ruby 3.1.5, 3.2.4, 3.3.1

2024-04-23 Thread Jeremy Evans
This updates to the latest versions of Ruby, released today. Release
notes at:

* https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-1-5-released/
* https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-2-4-released/
* https://www.ruby-lang.org/en/news/2024/04/23/ruby-3-3-1-released/

These fix 3 CVEs:

* 
https://www.ruby-lang.org/en/news/2024/04/23/arbitrary-memory-address-read-regexp-cve-2024-27282/
* https://www.ruby-lang.org/en/news/2024/03/21/rce-rdoc-cve-2024-27281/
* https://www.ruby-lang.org/en/news/2024/03/21/buffer-overread-cve-2024-27280/

There has already been a bug report filed that Ruby 3.3.1 does not
compile on Fedora/i686 (https://bugs.ruby-lang.org/issues/20447).  Can
someone please test whether it compiles on OpenBSD/i386?  If not, that
will have to be fixed before commit.

There has also been a report of a regression in ripper in Ruby 3.1.5
(https://bugs.ruby-lang.org/issues/20449). This issue seems fairly
minor and I don't think should block an update.  There is an available
patch to fix it that we can use if we want.

Ports-wise, this is a version bump + regen patches + PLIST update,
with the exception of a new patch added for Ruby 3.1.5, to fix a
compiler error introduced by an upstream backport.

Tested briefly on amd64.  I'll be doing additional tests later today.

Assuming that this doesn't cause problems on OpenBSD/i386, I plan to
commit in a couple days, and due to the security fixes, backport to
-stable.

Thanks,
Jeremy

Index: 3.1/Makefile
===
RCS file: /cvs/ports/lang/ruby/3.1/Makefile,v
retrieving revision 1.17
diff -u -p -u -p -r1.17 Makefile
--- 3.1/Makefile9 Apr 2024 04:17:52 -   1.17
+++ 3.1/Makefile23 Apr 2024 16:49:41 -
@@ -1,10 +1,8 @@
-VERSION =  3.1.4
+VERSION =  3.1.5
 DISTNAME = ruby-${VERSION}
 SHARED_LIBS =  ruby31  0.0
 NEXTVER =  3.2
 PKGSPEC-main ?= ruby->=3.1.0,<${NEXTVER}
-
-REVISION-main =1
 
 SITES.p1 ?=https://github.com/ruby/openssl/commit/
 
Index: 3.1/distinfo
===
RCS file: /cvs/ports/lang/ruby/3.1/distinfo,v
retrieving revision 1.9
diff -u -p -u -p -r1.9 distinfo
--- 3.1/distinfo5 Feb 2024 20:51:41 -   1.9
+++ 3.1/distinfo23 Apr 2024 16:49:41 -
@@ -1,9 +1,9 @@
-SHA256 (ruby-3.1.4.tar.gz) = o9VYeaDfqx1xQf3xDSKgfb+OXNxEFdob3gYSfVzDx7Y=
+SHA256 (ruby-3.1.5.tar.gz) = NoXFHu7hNSwx6gOXBtcZdvU9AKttdzEt5qoauvXNosU=
 SHA256 (ruby-asn1time-fix-1.patch) = 
n3v+hFVd72m+qOQYrHfnU8aKhypFTHkmbw1tdxoj6U4=
 SHA256 (ruby-ed25519-fix-1.patch) = 
6Cxx/FbYfJGbhKqdUbAmKvRmZEWpP1MPTZfWWzHoNfg=
 SHA256 (ruby-enable-hkdf-1.patch) = 
IUjVM4OMHs4KeZcXAdPW2iMy1voVDuAGtUZBMJovyFY=
 SHA256 (ruby-octeon-fix-2.patch) = u3ETLnfgMRbVGa6X33NRjdToUT6X+xq5/K7hHrXQwQQ=
-SIZE (ruby-3.1.4.tar.gz) = 20917933
+SIZE (ruby-3.1.5.tar.gz) = 20884264
 SIZE (ruby-asn1time-fix-1.patch) = 2279
 SIZE (ruby-ed25519-fix-1.patch) = 1496
 SIZE (ruby-enable-hkdf-1.patch) = 1471
Index: 3.1/patches/patch-compile_c
===
RCS file: /cvs/ports/lang/ruby/3.1/patches/patch-compile_c,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-compile_c
--- 3.1/patches/patch-compile_c 11 Mar 2022 19:29:14 -  1.2
+++ 3.1/patches/patch-compile_c 23 Apr 2024 16:49:41 -
@@ -4,7 +4,7 @@ segfaults.
 Index: compile.c
 --- compile.c.orig
 +++ compile.c
-@@ -2906,6 +2906,10 @@ static int
+@@ -2934,6 +2934,10 @@ static int
  iseq_peephole_optimize(rb_iseq_t *iseq, LINK_ELEMENT *list, const int 
do_tailcallopt)
  {
  INSN *const iobj = (INSN *)list;
Index: 3.1/patches/patch-configure
===
RCS file: /cvs/ports/lang/ruby/3.1/patches/patch-configure,v
retrieving revision 1.6
diff -u -p -u -p -r1.6 patch-configure
--- 3.1/patches/patch-configure 1 Apr 2023 19:29:04 -   1.6
+++ 3.1/patches/patch-configure 23 Apr 2024 16:49:41 -
@@ -8,7 +8,7 @@ so ports don't have to be bumped when Op
 Index: configure
 --- configure.orig
 +++ configure
-@@ -29567,6 +29567,10 @@ esac
+@@ -29577,6 +29577,10 @@ esac
  
  coroutine_type=x86
   ;; #(
@@ -19,7 +19,7 @@ Index: configure
*-openbsd*) :
  
  coroutine_type=pthread
-@@ -31827,7 +31831,7 @@ fi
+@@ -31837,7 +31841,7 @@ fi
 ;; #(
openbsd*|mirbsd*) :
  
@@ -28,7 +28,7 @@ Index: configure
 ;; #(
solaris*) :
  
-@@ -33529,7 +33533,7 @@ then :
+@@ -33539,7 +33543,7 @@ then :
  
  else $as_nop
  
Index: 3.1/patches/patch-coroutine_amd64_Context_S
===
RCS file: /cvs/ports/lang/ruby/3.1/patches/patch-coroutine_amd64_Context_S,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 patch-coroutine_amd64_Context_S
--- 3.1/patches/patch-coroutine_amd64_Context_S 9 Apr 

CVS: cvs.openbsd.org: ports

2024-04-22 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/04/22 10:06:13

Modified files:
databases/ruby-sqlite3: Makefile distinfo 
databases/ruby-sqlite3/pkg: PLIST 

Log message:
Update to ruby-sqlite3 2.0.0

Remove test code from port, as the gem no longer ships tests.



Update: databases/ruby-sqlite3 2.0.0

2024-04-17 Thread Jeremy Evans
Update to the latest release of ruby sqlite3. Changelog located at
https://github.com/sparklemotion/sqlite3-ruby/blob/main/CHANGELOG.md

The gem no longer ships tests, so remove test code from the port.

Tested manually on amd64.  I plan on committing this next week unless I
hear objections.

Thanks,
Jeremy

Index: Makefile
===
RCS file: /cvs/ports/databases/ruby-sqlite3/Makefile,v
diff -u -p -r1.49 Makefile
--- Makefile31 Dec 2023 21:25:22 -  1.49
+++ Makefile17 Apr 2024 18:39:17 -
@@ -1,6 +1,6 @@
 COMMENT=   access a SQLite3 database from ruby
 
-DISTNAME=  sqlite3-1.7.0
+DISTNAME=  sqlite3-2.0.0
 CATEGORIES=databases
 
 MAINTAINER =   Jeremy Evans 
@@ -17,12 +17,5 @@ LIB_DEPENDS= databases/sqlite3
 
 CONFIGURE_STYLE=   ruby gem ext
 CONFIGURE_ARGS=--enable-system-libraries
-
-MODRUBY_TEST=  rake
-TEST_DEPENDS=  ${FULLPKGNAME}:${BUILD_PKGPATH}
-
-do-test:
-   cd ${WRKSRC}/test && ${RUBY} -I . -e \
-   "require 'sqlite3'; Dir['test_*.rb'].each{|f| load(f)}"
 
 .include 
Index: distinfo
===
RCS file: /cvs/ports/databases/ruby-sqlite3/distinfo,v
diff -u -p -r1.22 distinfo
--- distinfo31 Dec 2023 21:25:22 -  1.22
+++ distinfo17 Apr 2024 18:34:08 -
@@ -1,2 +1,2 @@
-SHA256 (sqlite3-1.7.0.gem) = iUtZZVkfstt9lVcuk5QvT93Rdi037E+8GYs2Qm/Nrjw=
-SIZE (sqlite3-1.7.0.gem) = 3277824
+SHA256 (sqlite3-2.0.0.gem) = 9ojkquE/YKu486SdP6I6gU08ZkO4n+yWuu8zYCyPTgc=
+SIZE (sqlite3-2.0.0.gem) = 3295232
Index: pkg/PLIST
===
RCS file: /cvs/ports/databases/ruby-sqlite3/pkg/PLIST,v
diff -u -p -r1.19 PLIST
--- pkg/PLIST   31 Dec 2023 21:25:23 -  1.19
+++ pkg/PLIST   17 Apr 2024 18:38:56 -
@@ -1,16 +1,11 @@
-${GEM_LIB}/build_info/${DISTNAME}.info
 ${GEM_LIB}/cache/${DISTNAME}.gem
 ${GEM_LIB}/gems/${DISTNAME}/
 ${GEM_LIB}/gems/${DISTNAME}/.gemtest
-${GEM_LIB}/gems/${DISTNAME}/API_CHANGES.md
 ${GEM_LIB}/gems/${DISTNAME}/CHANGELOG.md
 ${GEM_LIB}/gems/${DISTNAME}/CONTRIBUTING.md
-${GEM_LIB}/gems/${DISTNAME}/ChangeLog.cvs
 ${GEM_LIB}/gems/${DISTNAME}/FAQ.md
-${GEM_LIB}/gems/${DISTNAME}/Gemfile
 ${GEM_LIB}/gems/${DISTNAME}/INSTALLATION.md
 ${GEM_LIB}/gems/${DISTNAME}/LICENSE
-${GEM_LIB}/gems/${DISTNAME}/LICENSE-DEPENDENCIES
 ${GEM_LIB}/gems/${DISTNAME}/README.md
 ${GEM_LIB}/gems/${DISTNAME}/dependencies.yml
 ${GEM_LIB}/gems/${DISTNAME}/lib/
@@ -23,28 +18,9 @@ ${GEM_LIB}/gems/${DISTNAME}/lib/sqlite3/
 ${GEM_LIB}/gems/${DISTNAME}/lib/sqlite3/resultset.rb
 @so ${GEM_LIB}/gems/${DISTNAME}/lib/sqlite3/sqlite3_native.so
 ${GEM_LIB}/gems/${DISTNAME}/lib/sqlite3/statement.rb
-${GEM_LIB}/gems/${DISTNAME}/lib/sqlite3/translator.rb
 ${GEM_LIB}/gems/${DISTNAME}/lib/sqlite3/value.rb
 ${GEM_LIB}/gems/${DISTNAME}/lib/sqlite3/version.rb
-${GEM_LIB}/gems/${DISTNAME}/test/
-${GEM_LIB}/gems/${DISTNAME}/test/helper.rb
-${GEM_LIB}/gems/${DISTNAME}/test/test_backup.rb
-${GEM_LIB}/gems/${DISTNAME}/test/test_collation.rb
-${GEM_LIB}/gems/${DISTNAME}/test/test_database.rb
-${GEM_LIB}/gems/${DISTNAME}/test/test_database_flags.rb
-${GEM_LIB}/gems/${DISTNAME}/test/test_database_readonly.rb
-${GEM_LIB}/gems/${DISTNAME}/test/test_database_readwrite.rb
-${GEM_LIB}/gems/${DISTNAME}/test/test_deprecated.rb
-${GEM_LIB}/gems/${DISTNAME}/test/test_encoding.rb
-${GEM_LIB}/gems/${DISTNAME}/test/test_integration.rb
-${GEM_LIB}/gems/${DISTNAME}/test/test_integration_aggregate.rb
-${GEM_LIB}/gems/${DISTNAME}/test/test_integration_open_close.rb
-${GEM_LIB}/gems/${DISTNAME}/test/test_integration_pending.rb
-${GEM_LIB}/gems/${DISTNAME}/test/test_integration_resultset.rb
-${GEM_LIB}/gems/${DISTNAME}/test/test_integration_statement.rb
-${GEM_LIB}/gems/${DISTNAME}/test/test_pragmas.rb
-${GEM_LIB}/gems/${DISTNAME}/test/test_result_set.rb
-${GEM_LIB}/gems/${DISTNAME}/test/test_sqlite3.rb
-${GEM_LIB}/gems/${DISTNAME}/test/test_statement.rb
-${GEM_LIB}/gems/${DISTNAME}/test/test_statement_execute.rb
+${GEM_LIB}/gems/${DISTNAME}/ports/
+${GEM_LIB}/gems/${DISTNAME}/ports/archives/
+${GEM_LIB}/gems/${DISTNAME}/ports/archives/sqlite-autoconf-3450300.tar.gz
 ${GEM_LIB}/specifications/${DISTNAME}.gemspec



CVS: cvs.openbsd.org: ports

2024-04-09 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/04/09 12:44:31

Modified files:
lang/ruby/3.1  : Tag: OPENBSD_7_5 Makefile 
lang/ruby/3.2  : Tag: OPENBSD_7_5 Makefile 
lang/ruby/3.3  : Tag: OPENBSD_7_5 Makefile 
Added files:
lang/ruby/3.1/patches: Tag: OPENBSD_7_5 
   patch-coroutine_amd64_Context_S 
lang/ruby/3.2/patches: Tag: OPENBSD_7_5 
   patch-coroutine_amd64_Context_S 
lang/ruby/3.3/patches: Tag: OPENBSD_7_5 
   patch-coroutine_amd64_Context_S 

Log message:
Add _CET_ENDBR to amd64 coroutine code

I originally thought this issue was post-7.5, but after getting
access to a 7.5 machine with IBT, I confirmed it affects 7.5.

This fixes SIGILL/ILL_BTCFI for the following example code:

mutex = Mutex.new
mutex.synchronize { Fiber.new { mutex.owned? }.resume }

Thanks to tb@ for following up with me regarding this.

Issue reported by jcs@

Tested by jcs@

OK jcs@



CVS: cvs.openbsd.org: ports

2024-04-08 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/04/08 22:17:52

Modified files:
lang/ruby/3.1  : Makefile 
lang/ruby/3.2  : Makefile 
lang/ruby/3.3  : Makefile 
Added files:
lang/ruby/3.1/patches: patch-coroutine_amd64_Context_S 
lang/ruby/3.2/patches: patch-coroutine_amd64_Context_S 
lang/ruby/3.3/patches: patch-coroutine_amd64_Context_S 

Log message:
Add _CET_ENDBR to amd64 coroutine code

This fixes SIGILL/ILL_BTCFI that started occurring after
recent changes (post 7.5), for the following example code:

mutex = Mutex.new
mutex.synchronize { Fiber.new { mutex.owned? }.resume

Issue reported by jcs@

Tested by jcs@

OK jcs@



CVS: cvs.openbsd.org: ports

2024-04-08 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/04/08 17:41:18

Modified files:
security/suricata: Tag: OPENBSD_7_5 Makefile 
security/suricata/pkg: Tag: OPENBSD_7_5 PLIST 
Added files:
security/suricata/patches: Tag: OPENBSD_7_5 patch-src_suricata_c 
   patch-src_util-privs_c 
   patch-src_util-privs_h 

Log message:
Readd privdrop patches

"probably automatically removed" by gonzalo@ in the 7.0.2 update

OK gonzalo@

add various @sample to suricata's PLIST that were missed in the 7.0.2 update

from sthen@



CVS: cvs.openbsd.org: ports

2024-04-02 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/04/02 18:07:23

Modified files:
audio  : Makefile 
databases  : Makefile 
devel  : Makefile 
graphics   : Makefile 
net: Makefile 
security   : Makefile 
sysutils   : Makefile 
textproc   : Makefile 
www: Makefile 
x11: Makefile 

Log message:
Stop building ruby31 ports by default

Ruby 3.1 is now in security maintenance mode, so per our Ruby support
policy, we will no longer build ruby31 packages by default.



CVS: cvs.openbsd.org: ports

2024-03-27 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/03/27 15:31:15

Modified files:
security/suricata: Makefile distinfo 
security/suricata/patches: patch-src_suricata_c 
   patch-suricata_yaml_in 
security/suricata/pkg: README 
Removed files:
security/suricata/patches: patch-doc_userguide_Makefile_in 

Log message:
Update to Suricata 7.0.4

Take co-maintainership.

Drop unnecessary AUTOMAKE version and SUBST_CMD processing of
configure and doc/userguide/Makefile.in.

Drop empty line patch of doc/userguide/Makefile.in.

Process suricata.yaml.in with SUBST_CMD, and patch it so all
@e_*@ variables are replaced.

As the pkg README recommends suricata-update for updates,
make that the default in the config file.

Fix the pkg README to set the path when calling suricata-update,
as the default path is not the desired path (it would be best to
fix the default path, but the current patches are insufficient).

Following the instructions in the README to setup suricata now
results in a working configuration without any configuration
file modification.

OK gonzalo@ (MAINTAINER)
OK sthen@



Re: Update: Suricata 7.0.4 + fixes

2024-03-26 Thread Jeremy Evans
On 03/26 09:38, Stuart Henderson wrote:
> On 2024/03/25 20:16, Jeremy Evans wrote:
> > Here's an update to Suricata 7.0.4, based on gonzalo's update
> > recently posted to ports@.  After discussion with gonzalo@ and
> > sthen@, I'm adding myself as co-maintainer.
> > 
> > In addition to the version update, this fixes the following issues:
> > 
> > Package README recommends suricata-update, but default config is
> > overridden to not use suricata-update. Stop overriding default
> > config, so way recommended by package README does not require
> > suricata.yaml modification.
> > 
> > Run SUBST_CMD on suricata.yaml.in to fix the ${LOCALSTATEDIR}
> > remaining in default installed configuration.
> > 
> > suricata-update downloads to /var/lib/suricata instead of
> > /var/suricata by default, despite the local patches.  Not sure yet
> > how to fix that easily, so updated package README to specify -D
> > flag so it updates the correct place.  I checked OpenBSD 7.4
> > (Suricata 6.0.12) and suricata-update also defaulted to
> > /var/lib/suricata there.
> > 
> > Remove now unnecessary patch for suricata/doc/Makefile.in. Remove
> > a couple unnecessary files in SUBST_CMD as well.
> 
> OK.
> 
> Some other possible tweaks:
> 
> ${WRKSRC}/configure can be dropped from SUBST_CMD too.

I made that change.
 
> AUTOMAKE_VERSION is set but does nothing (the port does not use a
> CONFIGURE_STYLE which depends on automake) so probably better removed.
> Alternatively as e_rundir is only used to set the default pid path in
> suricata.yaml, that could be patched  in suricata.yaml.in and avoid the
> need to re-run autoconf completely (-> CONFIGURE_STYLE=gnu and drop
> both AUTO*_VERSION lines).

I updated suricata.yaml.in to replace all of the autoconf related code
with make variables that will be updated by SUBST_CMD. I found that
suricata does not like our /etc/magic file, so I left that commented
out.

I found that autoconf is used by the build system.  I made a few
attempts at patching it out, but was unsuccessful. So I left that in.

Here's a revised diff.  I plan to commit this tomorrow unless I hear
objections.

Thanks,
Jeremy

Index: Makefile
===
RCS file: /cvs/ports/security/suricata/Makefile,v
retrieving revision 1.67
diff -u -p -r1.67 Makefile
--- Makefile23 Mar 2024 13:26:40 -  1.67
+++ Makefile26 Mar 2024 19:44:49 -
@@ -3,9 +3,8 @@ NOT_FOR_ARCHS = powerpc64 riscv64
 
 COMMENT =  high performance network IDS, IPS and security monitoring
 
-SURICATA_V =   7.0.3
-SUPDATE_V =1.2.8
-REVISION = 1
+SURICATA_V =   7.0.4
+SUPDATE_V =1.3.2
 
 DISTNAME = suricata-${SURICATA_V}
 CATEGORIES =   security
@@ -13,7 +12,8 @@ SHARED_LIBS +=htp  
 
 HOMEPAGE = https://suricata.io/
 
-MAINTAINER =   Gonzalo L. R. 
+MAINTAINER =   Gonzalo L. R. , \
+   Jeremy Evans 
 
 # GPLv2
 PERMIT_PACKAGE=Yes
@@ -48,7 +48,6 @@ DEBUG_PACKAGES = ${BUILD_PACKAGES}
 
 CONFIGURE_STYLE =  autoconf
 AUTOCONF_VERSION = 2.71
-AUTOMAKE_VERSION = 1.15
 
 CONFIGURE_ENV =ac_cv_path_HAVE_PDFLATEX= \
ac_cv_path_HAVE_GIT_CMD= \
@@ -67,9 +66,7 @@ CONFIGURE_ARGS =  --disable-gccmarch-nati
 SUBST_VARS =   SURICATA_V SUPDATE_V
 
 pre-configure:
-   ${SUBST_CMD} ${WRKSRC}/configure \
-   ${WRKSRC}/doc/userguide/Makefile.in \
-   ${WRKSRC}/suricata-update/doc/Makefile \
+   ${SUBST_CMD} ${WRKSRC}/suricata.yaml.in \
${WRKSRC}/suricata-update/suricata/update/config.py \
${WRKSRC}/suricata-update/suricata/update/parsers.py
# prevent generating revision.py
Index: distinfo
===
RCS file: /cvs/ports/security/suricata/distinfo,v
retrieving revision 1.22
diff -u -p -r1.22 distinfo
--- distinfo22 Feb 2024 09:49:35 -  1.22
+++ distinfo26 Mar 2024 19:44:49 -
@@ -1,2 +1,2 @@
-SHA256 (suricata-7.0.3.tar.gz) = 6gdC16mHg/GvSldmGvYGi8LYUKw+ygSzIE0ozhZeNf8=
-SIZE (suricata-7.0.3.tar.gz) = 23599903
+SHA256 (suricata-7.0.4.tar.gz) = ZABgEgAkvnDb6B9uxu/HLkYlD8s2IZ3/Z+ZBciD/Ibc=
+SIZE (suricata-7.0.4.tar.gz) = 23610769
Index: patches/patch-doc_userguide_Makefile_in
===
RCS file: patches/patch-doc_userguide_Makefile_in
diff -N patches/patch-doc_userguide_Makefile_in
--- patches/patch-doc_userguide_Makefile_in 16 Nov 2023 18:15:37 -  
1.7
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,8 +0,0 @@
-Index: doc/userguide/Makefile.in
 doc/userguide/Makefile.in.orig
-+++ doc/userguide/Makefile.in
-@@ -1,3 +1,4 @@
-+
- # Makefile.in generated by automake 1.16.5 from Makefile

Update: Suricata 7.0.4 + fixes

2024-03-25 Thread Jeremy Evans
Here's an update to Suricata 7.0.4, based on gonzalo's update
recently posted to ports@.  After discussion with gonzalo@ and
sthen@, I'm adding myself as co-maintainer.

In addition to the version update, this fixes the following issues:

Package README recommends suricata-update, but default config is
overridden to not use suricata-update. Stop overriding default
config, so way recommended by package README does not require
suricata.yaml modification.

Run SUBST_CMD on suricata.yaml.in to fix the ${LOCALSTATEDIR}
remaining in default installed configuration.

suricata-update downloads to /var/lib/suricata instead of
/var/suricata by default, despite the local patches.  Not sure yet
how to fix that easily, so updated package README to specify -D
flag so it updates the correct place.  I checked OpenBSD 7.4
(Suricata 6.0.12) and suricata-update also defaulted to
/var/lib/suricata there.

Remove now unnecessary patch for suricata/doc/Makefile.in. Remove
a couple unnecessary files in SUBST_CMD as well.

Fix README to not recommend restarting suricata twice after updating
the rules with suricata-update (once in the suricata-update section
and once in the "After updating rules" section).

Index: Makefile
===
RCS file: /cvs/ports/security/suricata/Makefile,v
retrieving revision 1.67
diff -u -p -r1.67 Makefile
--- Makefile23 Mar 2024 13:26:40 -  1.67
+++ Makefile25 Mar 2024 20:09:24 -
@@ -3,9 +3,8 @@ NOT_FOR_ARCHS = powerpc64 riscv64
 
 COMMENT =  high performance network IDS, IPS and security monitoring
 
-SURICATA_V =   7.0.3
-SUPDATE_V =1.2.8
-REVISION = 1
+SURICATA_V =   7.0.4
+SUPDATE_V =1.3.2
 
 DISTNAME = suricata-${SURICATA_V}
 CATEGORIES =   security
@@ -13,7 +12,8 @@ SHARED_LIBS +=htp  
 
 HOMEPAGE = https://suricata.io/
 
-MAINTAINER =   Gonzalo L. R. 
+MAINTAINER =   Gonzalo L. R. , \
+       Jeremy Evans 
 
 # GPLv2
 PERMIT_PACKAGE=Yes
@@ -68,8 +68,7 @@ SUBST_VARS =  SURICATA_V SUPDATE_V
 
 pre-configure:
${SUBST_CMD} ${WRKSRC}/configure \
-   ${WRKSRC}/doc/userguide/Makefile.in \
-   ${WRKSRC}/suricata-update/doc/Makefile \
+   ${WRKSRC}/suricata.yaml.in \
${WRKSRC}/suricata-update/suricata/update/config.py \
${WRKSRC}/suricata-update/suricata/update/parsers.py
# prevent generating revision.py
Index: distinfo
===
RCS file: /cvs/ports/security/suricata/distinfo,v
retrieving revision 1.22
diff -u -p -r1.22 distinfo
--- distinfo22 Feb 2024 09:49:35 -  1.22
+++ distinfo25 Mar 2024 20:09:24 -
@@ -1,2 +1,2 @@
-SHA256 (suricata-7.0.3.tar.gz) = 6gdC16mHg/GvSldmGvYGi8LYUKw+ygSzIE0ozhZeNf8=
-SIZE (suricata-7.0.3.tar.gz) = 23599903
+SHA256 (suricata-7.0.4.tar.gz) = ZABgEgAkvnDb6B9uxu/HLkYlD8s2IZ3/Z+ZBciD/Ibc=
+SIZE (suricata-7.0.4.tar.gz) = 23610769
Index: patches/patch-doc_userguide_Makefile_in
===
RCS file: patches/patch-doc_userguide_Makefile_in
diff -N patches/patch-doc_userguide_Makefile_in
--- patches/patch-doc_userguide_Makefile_in 16 Nov 2023 18:15:37 -  
1.7
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,8 +0,0 @@
-Index: doc/userguide/Makefile.in
 doc/userguide/Makefile.in.orig
-+++ doc/userguide/Makefile.in
-@@ -1,3 +1,4 @@
-+
- # Makefile.in generated by automake 1.16.5 from Makefile.am.
- # @configure_input@
- 
Index: patches/patch-src_suricata_c
===
RCS file: /cvs/ports/security/suricata/patches/patch-src_suricata_c,v
retrieving revision 1.14
diff -u -p -r1.14 patch-src_suricata_c
--- patches/patch-src_suricata_c18 Mar 2024 17:46:37 -  1.14
+++ patches/patch-src_suricata_c25 Mar 2024 20:09:24 -
@@ -4,7 +4,7 @@ Suricata uses libcap-ng on Linux and run
 Index: src/suricata.c
 --- src/suricata.c.orig
 +++ src/suricata.c
-@@ -1600,7 +1600,7 @@ static TmEcode ParseCommandLine(int argc, char** argv,
+@@ -1597,7 +1597,7 @@ static TmEcode ParseCommandLine(int argc, char** argv,
  return TM_ECODE_FAILED;
  #endif /* UNITTESTS */
  } else if (strcmp((long_opts[option_index]).name, "user") == 0) {
@@ -13,7 +13,7 @@ Index: src/suricata.c
  SCLogError("libcap-ng is required to"
 " drop privileges, but it was not compiled into 
Suricata.");
  return TM_ECODE_FAILED;
-@@ -1609,7 +1609,7 @@ static TmEcode ParseCommandLine(int argc, char** argv,
+@@ -1606,7 +1606,7 @@ static TmEcode ParseCommandLine(int argc, char** argv,
  suri->do_setuid = TRUE;
  #endif /* HAVE_LIBCAP_NG */
  } else if (strcmp((long_opts[option_index]).name, "group&quo

CVS: cvs.openbsd.org: ports

2024-03-20 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/03/20 20:43:46

Modified files:
x11/ruby-tk: Makefile distinfo 
x11/ruby-tk/pkg: PLIST 

Log message:
Update to ruby-tk 0.5.0



CVS: cvs.openbsd.org: ports

2024-03-18 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/03/18 11:46:37

Modified files:
security/suricata: Makefile 
Added files:
security/suricata/patches: patch-src_suricata_c 
   patch-src_util-privs_c 
   patch-src_util-privs_h 

Log message:
Readd privdrop patches

"probably automatically removed" by gonzalo@ in the 7.0.2 update

OK gonzalo@



After Unlock: Restore privdrop in security/suricata

2024-03-15 Thread Jeremy Evans
Suricata had local patches added in 2019 to support dropping privileges,
so the suricata daemon does not run as root.  These patches were dropped
in the Suricata 7.0.2 update, without a rationale I could find.

Considering Suricata deals with potentially malicious traffic, it seems
like a bad idea to run it as root.  It is pledged, but the pledge is
"stdio rpath wpath cpath fattr unix dns bpf", and it is not unveiled or
chrooted, which means a compromised process could modify any file on the
system.

This restores the local patches for dropping privileges that were
dropped in the 7.0.2 update, and updates them to fix the conflicts.

Tested briefly on amd64.

OKs to commit after unlock, and to commit to 7.5 -stable after it opens?

Thanks,
Jeremy

Index: Makefile
===
RCS file: /cvs/ports/security/suricata/Makefile,v
diff -u -p -r1.65 Makefile
--- Makefile22 Feb 2024 09:49:35 -  1.65
+++ Makefile15 Mar 2024 19:03:06 -
@@ -5,6 +5,7 @@ COMMENT =   high performance network IDS, 
 
 SURICATA_V =   7.0.3
 SUPDATE_V =1.2.8
+REVISION = 0
 
 DISTNAME = suricata-${SURICATA_V}
 CATEGORIES =   security
Index: patches/patch-src_suricata_c
===
RCS file: patches/patch-src_suricata_c
diff -N patches/patch-src_suricata_c
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-src_suricata_c15 Mar 2024 19:17:33 -
@@ -0,0 +1,32 @@
+Use setresuid/gid() directly to change user and group.  Otherwise
+Suricata uses libcap-ng on Linux and runs as root elsewhere.
+
+Index: src/suricata.c
+--- src/suricata.c.orig
 src/suricata.c
+@@ -1600,7 +1600,7 @@ static TmEcode ParseCommandLine(int argc, char** argv,
+ return TM_ECODE_FAILED;
+ #endif /* UNITTESTS */
+ } else if (strcmp((long_opts[option_index]).name, "user") == 0) {
+-#ifndef HAVE_LIBCAP_NG
++#if 0
+ SCLogError("libcap-ng is required to"
+" drop privileges, but it was not compiled into 
Suricata.");
+ return TM_ECODE_FAILED;
+@@ -1609,7 +1609,7 @@ static TmEcode ParseCommandLine(int argc, char** argv,
+ suri->do_setuid = TRUE;
+ #endif /* HAVE_LIBCAP_NG */
+ } else if (strcmp((long_opts[option_index]).name, "group") == 0) {
+-#ifndef HAVE_LIBCAP_NG
++#if 0
+ SCLogError("libcap-ng is required to"
+" drop privileges, but it was not compiled into 
Suricata.");
+ return TM_ECODE_FAILED;
+@@ -3036,6 +3036,7 @@ int SuricataMain(int argc, char **argv)
+ SystemHugepageSnapshotDestroy(prerun_snap);
+ SystemHugepageSnapshotDestroy(postrun_snap);
+ 
++SCSetUserID(suricata.userid, suricata.groupid);
+ SCPledge();
+ SuricataMainLoop();
+ 
Index: patches/patch-src_util-privs_c
===
RCS file: patches/patch-src_util-privs_c
diff -N patches/patch-src_util-privs_c
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-src_util-privs_c  15 Mar 2024 19:13:13 -
@@ -0,0 +1,34 @@
+Use setresuid/gid() directly to change user and group.  Otherwise
+Suricata uses libcap-ng on Linux and runs as root elsewhere.
+
+Index: src/util-privs.c
+--- src/util-privs.c.orig
 src/util-privs.c
+@@ -244,6 +244,27 @@ void SCGetGroupID(const char *group_name, uint32_t *gi
+ *gid = grpid;
+ }
+ 
++int SCSetUserID(const uint32_t uid, const uint32_t gid)
++{
++int ret = setresgid(gid, gid, gid);
++
++if (ret != 0) {
++SCLogError("unable to set the group ID,"
++" check permissions!! gid=%u ret=%i errno=%i", gid, ret, 
errno);
++exit(EXIT_FAILURE);
++}
++
++ret = setresuid(uid, uid, uid);
++
++if (ret != 0) {
++SCLogError("unable to set the user ID,"
++" check permissions!! uid=%u ret=%i errno=%i", uid, ret, 
errno);
++exit(EXIT_FAILURE);
++}
++
++return 0;
++}
++
+ #ifdef __OpenBSD__
+ int SCPledge(void)
+ {
Index: patches/patch-src_util-privs_h
===
RCS file: patches/patch-src_util-privs_h
diff -N patches/patch-src_util-privs_h
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-src_util-privs_h  15 Mar 2024 19:02:38 -
@@ -0,0 +1,14 @@
+Use setresuid/gid() directly to change user and group.  Otherwise
+Suricata uses libcap-ng on Linux and runs as root elsewhere.
+
+Index: src/util-privs.h
+--- src/util-privs.h.orig
 src/util-privs.h
+@@ -92,6 +92,7 @@ void SCDropMainThreadCaps(uint32_t , uint32_t );
+ 
+ void SCGetUserID(const char *, const char *, uint32_t *, uint32_t *);
+ void SCGetGroupID(const char *, uint32_t *);
++int SCSetUserID(const uint32_t uid, const uint32_t gid);
+ 
+ #ifdef __OpenBSD__
+ int SCPledge(void);



CVS: cvs.openbsd.org: ports

2024-02-23 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/02/23 10:29:53

Modified files:
lang/jruby : Makefile distinfo 
lang/jruby/pkg : PLIST 

Log message:
Update to JRuby 9.4.6.0



Update: JRuby 9.4.6.0

2024-02-20 Thread Jeremy Evans
This updates to the latest version of JRuby, released today. Release
notes at: https://www.jruby.org/2024/02/20/jruby-9-4-6-0.html

Tested on amd64, the only supported arch.  Will be committing in a
couple days unless I hear objections.

Thanks,
Jeremy

Index: Makefile
===
RCS file: /cvs/ports/lang/jruby/Makefile,v
diff -u -p -r1.113 Makefile
--- Makefile6 Nov 2023 16:53:37 -   1.113
+++ Makefile20 Feb 2024 20:49:02 -
@@ -3,7 +3,7 @@ ONLY_FOR_ARCHS = amd64
 
 COMMENT =  pure-Java implementation of the Ruby language
 
-V =9.4.5.0
+V =9.4.6.0
 DISTNAME = jruby-dist-${V}-bin
 PKGNAME =  jruby-${V}
 CATEGORIES =   lang lang/ruby
Index: distinfo
===
RCS file: /cvs/ports/lang/jruby/distinfo,v
diff -u -p -r1.77 distinfo
--- distinfo6 Nov 2023 16:53:37 -   1.77
+++ distinfo20 Feb 2024 20:49:08 -
@@ -1,6 +1,6 @@
 SHA256 (jffi-1.3.10.tar.gz) = QZWOTjjcxTOTidj4/JjERqcokJJ5SOiQualLs/ivHsw=
-SHA256 (jruby-dist-9.4.5.0-bin.tar.gz) = 
pA94xGQczIZ1Lhay2iR/1ryfvPmkhkzxvjb3/3s1aEw=
+SHA256 (jruby-dist-9.4.6.0-bin.tar.gz) = 
LaFN5BUrcf2/o1ukaHpG7xLNRldAM3tUnMH+bHwTmBM=
 SHA256 (jruby-launcher-1.1.19-java.gem) = 
LPGrpNcsdLNq7MSjCxiSXh4h+vcPVuC0ykUyUYquGJo=
 SIZE (jffi-1.3.10.tar.gz) = 3304571
-SIZE (jruby-dist-9.4.5.0-bin.tar.gz) = 31735329
+SIZE (jruby-dist-9.4.6.0-bin.tar.gz) = 31819131
 SIZE (jruby-launcher-1.1.19-java.gem) = 64000
Index: pkg/PLIST
===
RCS file: /cvs/ports/lang/jruby/pkg/PLIST,v
diff -u -p -r1.68 PLIST
--- pkg/PLIST   6 Nov 2023 16:53:37 -   1.68
+++ pkg/PLIST   20 Feb 2024 20:49:59 -
@@ -549,18 +549,19 @@ jruby/lib/ruby/gems/1.8/specifications/d
 jruby/lib/ruby/gems/1.8/specifications/default/find-0.1.1.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/forwardable-1.3.2.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/getoptlong-0.1.1.gemspec
-jruby/lib/ruby/gems/1.8/specifications/default/io-console-0.5.11-java.gemspec
+jruby/lib/ruby/gems/1.8/specifications/default/io-console-0.7.2-java.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/io-wait-0.3.0-java.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/ipaddr-1.2.4.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/irb-1.4.2.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/jar-dependencies-0.4.1.gemspec
-jruby/lib/ruby/gems/1.8/specifications/default/jruby-openssl-0.14.2-java.gemspec
+jruby/lib/ruby/gems/1.8/specifications/default/jruby-openssl-0.14.3-java.gemspec
 
jruby/lib/ruby/gems/1.8/specifications/default/jruby-readline-1.3.7-java.gemspec
-jruby/lib/ruby/gems/1.8/specifications/default/json-2.6.1-java.gemspec
+jruby/lib/ruby/gems/1.8/specifications/default/json-2.7.1-java.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/logger-1.5.1.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/mutex_m-0.1.1.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/net-http-0.3.0.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/net-protocol-0.1.2.gemspec
+jruby/lib/ruby/gems/1.8/specifications/default/nkf-0.2.0-java.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/observer-0.1.1.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/open-uri-0.3.0.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/open3-0.1.2.gemspec
@@ -573,7 +574,7 @@ jruby/lib/ruby/gems/1.8/specifications/d
 jruby/lib/ruby/gems/1.8/specifications/default/racc-1.6.0-java.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/rake-ant-1.0.6.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/rdoc-6.4.0.gemspec
-jruby/lib/ruby/gems/1.8/specifications/default/reline-0.3.5.gemspec
+jruby/lib/ruby/gems/1.8/specifications/default/reline-0.4.2.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/resolv-replace-0.1.0.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/rinda-0.1.1.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/ruby2_keywords-0.0.5.gemspec
@@ -582,7 +583,7 @@ jruby/lib/ruby/gems/1.8/specifications/d
 jruby/lib/ruby/gems/1.8/specifications/default/shellwords-0.1.0.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/singleton-0.1.1.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/stringio-3.0.8-java.gemspec
-jruby/lib/ruby/gems/1.8/specifications/default/strscan-3.0.7-java.gemspec
+jruby/lib/ruby/gems/1.8/specifications/default/strscan-3.1.0-java.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/subspawn-0.1.1.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/subspawn-posix-0.1.1.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/time-0.2.2.gemspec
@@ -1109,7 +1110,17 @@ jruby/lib/ruby/stdlib/ffi/enum.rb
 jruby/lib/ruby/stdlib/ffi/errno.rb
 jruby/lib/ruby/stdlib/ffi/ffi.rb
 jruby/lib/ruby/stdlib/ffi/function.rb
+jruby/lib/ruby/stdlib/ffi/io/
 jruby/lib/ruby/stdlib/ffi/io.rb

CVS: cvs.openbsd.org: ports

2024-02-12 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/02/12 15:56:15

Modified files:
databases/postgresql: Tag: OPENBSD_7_4 Makefile distinfo 
databases/postgresql/pkg: Tag: OPENBSD_7_4 PLIST-docs 
  PLIST-server 

Log message:
Update to PostgreSQL 15.6

Fixes CVE-2024-0985: PostgreSQL non-owner REFRESH MATERIALIZED VIEW CONCURRENTLY
executes arbitrary SQL



CVS: cvs.openbsd.org: ports

2024-02-10 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/02/10 12:18:10

Modified files:
databases/postgresql: Makefile distinfo 
databases/postgresql/patches: patch-src_bin_initdb_initdb_c 
databases/postgresql/pkg: PLIST-docs PLIST-server 

Log message:
Update to PostgreSQL 16.2

Fixes CVE-2024-0985: PostgreSQL non-owner REFRESH MATERIALIZED VIEW CONCURRENTLY
executes arbitrary SQL



Update: PostgreSQL 16.2

2024-02-08 Thread Jeremy Evans
This updates PostgreSQL to 16.2.  Release announcement at
https://www.postgresql.org/about/news/postgresql-162-156-1411-1314-and-1218-released-2807/

This fixes one CVE:

CVE-2024-0985: PostgreSQL non-owner REFRESH MATERIALIZED VIEW
   CONCURRENTLY executes arbitrary SQL

Tested on amd64.  Will be committing in a couple days unless I hear
objections. Will backport to -stable next week.

Thanks,
Jeremy

Index: Makefile
===
RCS file: /cvs/ports/databases/postgresql/Makefile,v
diff -u -p -r1.300 Makefile
--- Makefile29 Nov 2023 23:41:15 -  1.300
+++ Makefile8 Feb 2024 15:43:27 -
@@ -5,7 +5,7 @@ COMMENT-contrib=PostgreSQL RDBMS contrib
 COMMENT-plpython=Python procedural language for PostgreSQL
 COMMENT-pg_upgrade=Support for upgrading PostgreSQL data from previous version
 
-VERSION=   16.1
+VERSION=   16.2
 PREV_MAJOR=15
 DISTNAME=  postgresql-${VERSION}
 PKGNAME-main=  postgresql-client-${VERSION}
Index: distinfo
===
RCS file: /cvs/ports/databases/postgresql/distinfo,v
diff -u -p -r1.99 distinfo
--- distinfo29 Nov 2023 23:41:15 -  1.99
+++ distinfo8 Feb 2024 15:45:09 -
@@ -1,2 +1,2 @@
-SHA256 (postgresql-16.1.tar.gz) = vwVkclYT98V/HD6/XJCbPsWLnPs9gbS7EgnYh2cGWoc=
-SIZE (postgresql-16.1.tar.gz) = 32433767
+SHA256 (postgresql-16.2.tar.gz) = K4IBBH7IGs0brSnbonjXiOeJG5w+gjLtoWuyneyBMcc=
+SIZE (postgresql-16.2.tar.gz) = 32558575
Index: patches/patch-src_bin_initdb_initdb_c
===
RCS file: 
/cvs/ports/databases/postgresql/patches/patch-src_bin_initdb_initdb_c,v
diff -u -p -r1.1 patch-src_bin_initdb_initdb_c
--- patches/patch-src_bin_initdb_initdb_c   11 Sep 2023 20:04:47 -  
1.1
+++ patches/patch-src_bin_initdb_initdb_c   8 Feb 2024 16:30:59 -
@@ -4,7 +4,7 @@ script handles.
 Index: src/bin/initdb/initdb.c
 --- src/bin/initdb/initdb.c.orig
 +++ src/bin/initdb/initdb.c
-@@ -3152,6 +3152,16 @@ main(int argc, char *argv[])
+@@ -3411,6 +3411,16 @@ main(int argc, char *argv[])
  
if (!noinstructions)
{
@@ -21,7 +21,7 @@ Index: src/bin/initdb/initdb.c
/*
 * Build up a shell command to tell the user how to start the 
server
 */
-@@ -3183,6 +3193,7 @@ main(int argc, char *argv[])
+@@ -3442,6 +3452,7 @@ main(int argc, char *argv[])
   start_db_cmd->data);
  
destroyPQExpBuffer(start_db_cmd);
Index: pkg/PLIST-docs
===
RCS file: /cvs/ports/databases/postgresql/pkg/PLIST-docs,v
diff -u -p -r1.112 PLIST-docs
--- pkg/PLIST-docs  29 Nov 2023 23:41:15 -  1.112
+++ pkg/PLIST-docs  8 Feb 2024 16:26:53 -
@@ -716,6 +716,7 @@ share/doc/postgresql/html/regress-tap.ht
 share/doc/postgresql/html/regress-variant.html
 share/doc/postgresql/html/regress.html
 share/doc/postgresql/html/release-16-1.html
+share/doc/postgresql/html/release-16-2.html
 share/doc/postgresql/html/release-16.html
 share/doc/postgresql/html/release-prior.html
 share/doc/postgresql/html/release.html
Index: pkg/PLIST-server
===
RCS file: /cvs/ports/databases/postgresql/pkg/PLIST-server,v
diff -u -p -r1.49 PLIST-server
--- pkg/PLIST-server29 Nov 2023 23:41:15 -  1.49
+++ pkg/PLIST-server8 Feb 2024 16:27:24 -
@@ -575,6 +575,7 @@ include/postgresql/server/pgstat.h
 include/postgresql/server/pgtar.h
 include/postgresql/server/pgtime.h
 include/postgresql/server/plperl.h
+include/postgresql/server/plperl_system.h
 include/postgresql/server/plpgsql.h
 include/postgresql/server/plpy_cursorobject.h
 include/postgresql/server/plpy_elog.h
@@ -587,6 +588,7 @@ include/postgresql/server/plpy_resultobj
 include/postgresql/server/plpy_spi.h
 include/postgresql/server/plpy_subxactobject.h
 include/postgresql/server/plpy_typeio.h
+include/postgresql/server/plpython_system.h
 include/postgresql/server/port/
 include/postgresql/server/port.h
 include/postgresql/server/port/aix.h



CVS: cvs.openbsd.org: ports

2024-01-22 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/01/22 10:44:08

Modified files:
lang/ruby/3.2  : Tag: OPENBSD_7_4 Makefile distinfo 
lang/ruby/3.2/pkg: Tag: OPENBSD_7_4 MESSAGE-main UNMESSAGE-main 
   PLIST-main PLIST-ri_docs 

Log message:
Update to Ruby 3.2.3

Fixes CVE-2023-36617: ReDoS vulnerability in URI



CVS: cvs.openbsd.org: ports

2024-01-20 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/01/20 13:20:50

Modified files:
lang/ruby/3.2  : Makefile distinfo 
lang/ruby/3.2/pkg: MESSAGE-main PLIST-main PLIST-ri_docs 
   UNMESSAGE-main 

Log message:
Update to Ruby 3.2.3

Fixes CVE-2023-36617: ReDoS vulnerability in URI



Update: Ruby 3.2.3

2024-01-18 Thread Jeremy Evans
This updates from Ruby 3.2.2 to Ruby 3.2.3. Release announcement at
https://www.ruby-lang.org/en/news/2024/01/18/ruby-3-2-3-released/

One security fix in this release:

CVE-2023-36617: ReDoS vulnerability in URI

Porting wise, the only unusual change is the addition of a new command
line tool (syntax_suggest32) in a tiny release.  The command line tool
doesn't work, and I checked and Ruby 3.3 has the same issue.  I filed
a bug upstream for that.

Tested on amd64.

Will be committing in a couple days unless I hear objections. Since this
has a security fix, I'll commit to -stable next week.

Thanks,
Jeremy

Index: Makefile
===
RCS file: /cvs/ports/lang/ruby/3.2/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- Makefile1 Jan 2024 17:03:48 -   1.8
+++ Makefile18 Jan 2024 18:53:11 -
@@ -1,9 +1,8 @@
-VERSION =  3.2.2
+VERSION =  3.2.3
 DISTNAME = ruby-${VERSION}
 SHARED_LIBS =  ruby32  0.0
 NEXTVER =  3.3
 PKGSPEC-main ?= ruby->=3.2.0,<${NEXTVER}
-REVISION-main =2
 
 PSEUDO_FLAVORS=no_ri_docs bootstrap
 # Do not build the RI docs on slow arches
Index: distinfo
===
RCS file: /cvs/ports/lang/ruby/3.2/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo1 Apr 2023 19:28:25 -   1.3
+++ distinfo18 Jan 2024 18:53:11 -
@@ -1,2 +1,2 @@
-SHA256 (ruby-3.2.2.tar.gz) = lsV1WIcaZ0jeW8nydOk/S1qtBs2PN776Do2U57ikI7w=
-SIZE (ruby-3.2.2.tar.gz) = 20467023
+SHA256 (ruby-3.2.3.tar.gz) = r38XV9ndtjA0WYgTkhHx/VcP9bqDDe8cx8Rorptlybo=
+SIZE (ruby-3.2.3.tar.gz) = 20577155
Index: pkg/MESSAGE-main
===
RCS file: /cvs/ports/lang/ruby/3.2/pkg/MESSAGE-main,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 MESSAGE-main
--- pkg/MESSAGE-main26 Dec 2022 03:03:57 -  1.1.1.1
+++ pkg/MESSAGE-main18 Jan 2024 18:53:11 -
@@ -13,6 +13,7 @@ create symbolic links like so (overwriti
  ln -sf ${PREFIX}/bin/rdbg32 ${PREFIX}/bin/rdbg
  ln -sf ${PREFIX}/bin/rdoc32 ${PREFIX}/bin/rdoc
  ln -sf ${PREFIX}/bin/ri32 ${PREFIX}/bin/ri
+ ln -sf ${PREFIX}/bin/syntax_suggest32 ${PREFIX}/bin/syntax_suggest
  ln -sf ${PREFIX}/bin/typeprof32 ${PREFIX}/bin/typeprof
 
 The ruby-shims package is also available to automatically select an
Index: pkg/PLIST-main
===
RCS file: /cvs/ports/lang/ruby/3.2/pkg/PLIST-main,v
retrieving revision 1.3
diff -u -p -r1.3 PLIST-main
--- pkg/PLIST-main  1 Apr 2023 19:28:26 -   1.3
+++ pkg/PLIST-main  18 Jan 2024 18:53:11 -
@@ -13,6 +13,7 @@ bin/rdbg32
 bin/rdoc32
 bin/ri32
 @bin bin/ruby32
+bin/syntax_suggest32
 bin/typeprof32
 include/ruby-${REV}/
 include/ruby-${REV}/ruby/
@@ -221,7 +222,7 @@ include/ruby-${REV}/ruby/util.h
 include/ruby-${REV}/ruby/version.h
 include/ruby-${REV}/ruby/vm.h
 include/ruby-${REV}/${SUB}/
-include/ruby-${REV}/${SUB}/rb_mjit_min_header-3.2.2.h
+include/ruby-${REV}/${SUB}/rb_mjit_min_header-3.2.3.h
 include/ruby-${REV}/${SUB}/ruby/
 include/ruby-${REV}/${SUB}/ruby/config.h
 @so lib/libruby32.so
@@ -412,6 +413,7 @@ lib/ruby/${REV}/bundler/rubygems_ext.rb
 lib/ruby/${REV}/bundler/rubygems_gem_installer.rb
 lib/ruby/${REV}/bundler/rubygems_integration.rb
 lib/ruby/${REV}/bundler/runtime.rb
+lib/ruby/${REV}/bundler/safe_marshal.rb
 lib/ruby/${REV}/bundler/self_manager.rb
 lib/ruby/${REV}/bundler/settings/
 lib/ruby/${REV}/bundler/settings.rb
@@ -1225,7 +1227,12 @@ lib/ruby/${REV}/rubygems/ext/configure_b
 lib/ruby/${REV}/rubygems/ext/ext_conf_builder.rb
 lib/ruby/${REV}/rubygems/ext/rake_builder.rb
 lib/ruby/${REV}/rubygems/gem_runner.rb
+lib/ruby/${REV}/rubygems/gemcutter_utilities/
 lib/ruby/${REV}/rubygems/gemcutter_utilities.rb
+lib/ruby/${REV}/rubygems/gemcutter_utilities/webauthn_listener/
+lib/ruby/${REV}/rubygems/gemcutter_utilities/webauthn_listener.rb
+lib/ruby/${REV}/rubygems/gemcutter_utilities/webauthn_listener/response.rb
+lib/ruby/${REV}/rubygems/gemcutter_utilities/webauthn_poller.rb
 lib/ruby/${REV}/rubygems/indexer.rb
 lib/ruby/${REV}/rubygems/install_default_message.rb
 lib/ruby/${REV}/rubygems/install_message.rb
@@ -1346,6 +1353,7 @@ lib/ruby/${REV}/rubygems/security/policy
 lib/ruby/${REV}/rubygems/security/signer.rb
 lib/ruby/${REV}/rubygems/security/trust_dir.rb
 lib/ruby/${REV}/rubygems/security_option.rb
+lib/ruby/${REV}/rubygems/shellwords.rb
 lib/ruby/${REV}/rubygems/source/
 lib/ruby/${REV}/rubygems/source.rb
 lib/ruby/${REV}/rubygems/source/git.rb
@@ -1393,6 +1401,9 @@ lib/ruby/${REV}/syntax_suggest.rb
 lib/ruby/${REV}/syntax_suggest/api.rb
 lib/ruby/${REV}/syntax_suggest/around_block_scan.rb
 lib/ruby/${REV}/syntax_suggest/block_expand.rb
+lib/ruby/${REV}/syntax_suggest/capture/

CVS: cvs.openbsd.org: ports

2024-01-16 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/01/16 12:28:47

Modified files:
lang/ruby/3.3  : Makefile 

Log message:
Disable YJIT on arm64

This allows Ruby 3.3 to work on arm64.  No bump as it did not build before
on arm64, and the change only affects arm64.

OK tb@, phessler@



CVS: cvs.openbsd.org: ports

2024-01-09 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/01/09 17:32:04

Modified files:
textproc/ruby-commonmarker: Makefile distinfo 
textproc/ruby-commonmarker/pkg: DESCR PLIST 
Added files:
textproc/ruby-commonmarker: crates.inc 

Log message:
Update to commonmarker 1.0.3

The backend switched to Rust, so this brings in the devel/cargo module,
and a number of other changes to deal with the significantly more
involved build.

Initial version by me
Many improvements from semarie@



CVS: cvs.openbsd.org: ports

2024-01-09 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/01/09 17:26:20

Modified files:
devel  : Makefile 

Log message:
Hookup ruby-rb_sys



CVS: cvs.openbsd.org: ports

2024-01-09 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/01/09 17:24:30

Log message:
Import rb_sys 0.9.85

Allows for easily building native extensions for Ruby using Rust.

OK semarie@

Status:

Vendor Tag: jeremy
Release Tags:   jeremy_2024-Jan-09

N ports/devel/ruby-rb_sys/Makefile
N ports/devel/ruby-rb_sys/distinfo
N ports/devel/ruby-rb_sys/pkg/DESCR
N ports/devel/ruby-rb_sys/pkg/PLIST

No conflicts created by this import



CVS: cvs.openbsd.org: ports

2024-01-09 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2024/01/09 17:21:36

Modified files:
lang/ruby  : ruby.port.mk 

Log message:
Do not change directory in EXTRACT_CASES

Fixes interaction with devel/cargo module.

>From semarie@



Update: ruby-commonmarker 1.0.3 (switch to Rust backend)

2024-01-08 Thread Jeremy Evans
The commonmarker gem recently changed the backend they were using from a
C-based one (libcmark-gfm), to a Rust-based one (comrak).  This required
a significant amount of work to get it to continue to build, because:

* cargo wants to download the crates at runtime, and the way the cargo
  module wants to handle this doesn't work for the gem case.

* There is a dummy cargo.toml file shipped in top level folder, but it
  is not the one used for building.

* One crate needs a source file that doesn't appear to ship in the crate
  (or the cargo module removes it).

* The cargo module needs to modification (extra variable) to build this,
  because either it or the ruby module puts the downloaded crates in a
  different location than expected.

* This requires libclang for building, since it uses it to parse and
  type check C/C++ header files.  It does not link to it, so I have made
  llvm a build depends.

* gmake must be used for building.  I raised the issue upstream, since
  almost all Ruby native gems will build with BSD make, but they think
  that requiring gmake is acceptable.

To get around the last issue, I added MODCARGO_CRATE_EXTRACTDIR to the
cargo module.  No backwards-incompatible changes for other ports
using the cargo module.

This also required a new dependency, ruby-rb_sys, which will likely
be used by any future Rust-based Ruby ports.  Hopefully, the work
required to get this port updated will make it easier to get other
Rust-based Ruby ports working, should they show up.

This is my first time working on a port using Rust.  Maybe there is an
easier way or I'm doing something wrong.

The use of Rust will probably knock out a few platforms. However, this
is a leaf port, so the affect on ports will be minimal.

Tested on amd64.

OKs for:

* cargo module change
* import ruby-rb_sys dependency
* commonmarker update

Thanks,
Jeremy

Index: devel/cargo/cargo.port.mk
===
RCS file: /cvs/ports/devel/cargo/cargo.port.mk,v
retrieving revision 1.45
diff -u -p -r1.45 cargo.port.mk
--- devel/cargo/cargo.port.mk   6 Jan 2024 08:02:52 -   1.45
+++ devel/cargo/cargo.port.mk   8 Jan 2024 20:43:52 -
@@ -56,6 +56,8 @@ DISTFILES +=  ${GH_DISTFILE}
 DISTFILES.cargo += 
${_MODCARGO_DIST_SUBDIR}${_cratename}-${_cratever}.tar.gz{${_cratename}/${_cratever}/download}
 .endfor
 
+MODCARGO_CRATE_EXTRACTDIR ?=   ${WRKDIR}
+
 # post-extract target for preparing crates directory.
 # It will put all crates in the local crates directory.
 MODCARGO_post-extract = \
@@ -63,7 +65,7 @@ MODCARGO_post-extract = \
mkdir -p ${MODCARGO_VENDOR_DIR} ;
 .for _cratename _cratever in ${MODCARGO_CRATES}
 MODCARGO_post-extract += \
-   mv ${WRKDIR}/${_cratename}-${_cratever} 
${MODCARGO_VENDOR_DIR}/${_cratename}-${_cratever} ;
+   mv ${MODCARGO_CRATE_EXTRACTDIR}/${_cratename}-${_cratever} 
${MODCARGO_VENDOR_DIR}/${_cratename}-${_cratever} ;
 .endfor
 
 # post-extract target to provide clean environment for specific crates
Index: textproc/ruby-commonmarker/Makefile
===
RCS file: /cvs/ports/textproc/ruby-commonmarker/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- textproc/ruby-commonmarker/Makefile 1 Sep 2023 19:23:31 -   1.2
+++ textproc/ruby-commonmarker/Makefile 8 Jan 2024 20:43:52 -
@@ -1,14 +1,184 @@
-COMMENT =  ruby wrapper for libcmark-gfm
+COMMENT =  ruby wrapper for comrak rust crate
 
-DISTNAME = commonmarker-0.23.10
+DISTNAME = commonmarker-1.0.3
 CATEGORIES =   textproc
 HOMEPAGE = https://github.com/gjtorikian/commonmarker
 
+ONIG_V =   6.9.9
+DISTFILES.onig =onig-${ONIG_V}.tar.gz  
+SITES.onig =   https://github.com/kkos/oniguruma/releases/download/v${ONIG_V}/
+
 # MIT License
 PERMIT_PACKAGE =   Yes
 
-MODULES =  lang/ruby
+MODULES =  devel/cargo \
+   lang/ruby
+
+WANTLIB += ${MODCARGO_WANTLIB}
+
+BUILD_DEPENDS =devel/ruby-rb_sys,${MODRUBY_FLAVOR}>=0.9 \
+   devel/llvm/16,-main
 
 CONFIGURE_STYLE = ruby gem ext
+
+MODCARGO_CRATE_EXTRACTDIR = ${WRKDIST}
+MODCARGO_VENDOR_DIR = ${WRKDIR}/modcargo-crates
+MODCARGO_BUILD = No
+MODCARGO_INSTALL = No
+
+USE_GMAKE = Yes
+CONFIGURE_ENV =MAKE=gmake
+MAKE_ENV = MAKE=gmake \
+   RUBY=${RUBY} \
+   HOME=${WRKSRC} \
+   LIBCLANG_PATH=${PREFIX}/llvm16/lib
+
+pre-configure:
+   mv ${WRKSRC}/onig-${ONIG_V} \
+   ${MODCARGO_VENDOR_DIR}/onig_sys-69.8.1/oniguruma
+   mkdir ${WRKSRC}/.cargo
+   echo '[source.crates-io]' > ${WRKSRC}/.cargo/config.toml
+   echo 'replace-with = "vendored-sources"' >> ${WRKSRC}/.cargo/config.toml
+   echo '[source.vendored-sources]' >> ${WRKSRC}/.cargo/config.toml
+   echo 'directory = "${MODCARGO_VENDOR_DIR}"' >> 
${WRKSRC}/.cargo/config.toml
+
+# run: make modcargo-gen-crates-licenses
+MODCARGO_CRATES += adler   1.0.2

CVS: cvs.openbsd.org: ports

2023-12-31 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/12/31 14:25:23

Modified files:
databases/ruby-sqlite3: Makefile distinfo 
databases/ruby-sqlite3/pkg: PLIST 

Log message:
Update to ruby-sqlite3 1.7.0

Remove unneeded sqlite3 source file from package.



Re: aarch64 bulk build report

2023-12-30 Thread Jeremy Evans
On Sat, Dec 30, 2023 at 10:17 AM Peter Hessler  wrote:

> :http://build-failures.rhaalovely.net/aarch64/2023-12-28/lang/ruby/3.3.log
>
> ./miniruby -I./lib -I. -I.ext/common  -n  -e
> 'BEGIN{version=ARGV.shift;mis=ARGV.dup}'  -e 'END{abort "UNICODE version
> mismatch: #{mis}" unless mis.empty?}'  -e '(mis.delete(ARGF.path);
> ARGF.close) if /ONIG_UNICODE_VERSION_STRING
> +"#{Regexp.quote(version)}"/o'  15.0.0 ./enc/unicode/15.0.0/casefold.h
> ./enc/unicode/15.0.0/name2ctype.h
> Segmentation fault (core dumped)
> *** Error 139 in /usr/obj/ports/ruby-3.3.0/ruby-3.3.0 (Makefile:1626
> '.rbconfig.time')
>

Maybe this could be fixed by
https://github.com/ruby/ruby/commit/02973b78f499acc28c714a082c82a846314a911f,
but that's just a guess without seeing the backtrace.

Thanks,
Jeremy


Update: databases/ruby-sqlite3 1.7.0

2023-12-29 Thread Jeremy Evans
This updates the ruby-sqlite3 port to the latest release.  Changelog at
https://github.com/sparklemotion/sqlite3-ruby/blob/master/CHANGELOG.md

Only change portswise is removing an unnecessary file from the package.
The file was used for building an embedded SQLite, but the port is
set to use system SQLite.

Tested on amd64.  Will be committing in a couple days unless I hear
objections.

Thanks,
Jeremy

Index: Makefile
===
RCS file: /cvs/ports/databases/ruby-sqlite3/Makefile,v
diff -u -p -r1.48 Makefile
--- Makefile1 Sep 2023 09:56:21 -   1.48
+++ Makefile29 Dec 2023 20:34:02 -
@@ -1,6 +1,6 @@
 COMMENT=   access a SQLite3 database from ruby
 
-DISTNAME=  sqlite3-1.6.4
+DISTNAME=  sqlite3-1.7.0
 CATEGORIES=databases
 
 MAINTAINER =   Jeremy Evans 
Index: distinfo
===
RCS file: /cvs/ports/databases/ruby-sqlite3/distinfo,v
diff -u -p -r1.21 distinfo
--- distinfo1 Sep 2023 09:56:21 -   1.21
+++ distinfo29 Dec 2023 20:34:09 -
@@ -1,2 +1,2 @@
-SHA256 (sqlite3-1.6.4.gem) = +QimDfe/Gc9Vm6el2jaeXrGdSPrWOSJQN8cLJtZq9jU=
-SIZE (sqlite3-1.6.4.gem) = 3248640
+SHA256 (sqlite3-1.7.0.gem) = iUtZZVkfstt9lVcuk5QvT93Rdi037E+8GYs2Qm/Nrjw=
+SIZE (sqlite3-1.7.0.gem) = 3277824
Index: pkg/PLIST
===
RCS file: /cvs/ports/databases/ruby-sqlite3/pkg/PLIST,v
diff -u -p -r1.18 PLIST
--- pkg/PLIST   1 Sep 2023 09:56:21 -   1.18
+++ pkg/PLIST   29 Dec 2023 20:35:13 -
@@ -26,9 +26,6 @@ ${GEM_LIB}/gems/${DISTNAME}/lib/sqlite3/
 ${GEM_LIB}/gems/${DISTNAME}/lib/sqlite3/translator.rb
 ${GEM_LIB}/gems/${DISTNAME}/lib/sqlite3/value.rb
 ${GEM_LIB}/gems/${DISTNAME}/lib/sqlite3/version.rb
-${GEM_LIB}/gems/${DISTNAME}/ports/
-${GEM_LIB}/gems/${DISTNAME}/ports/archives/
-${GEM_LIB}/gems/${DISTNAME}/ports/archives/sqlite-autoconf-343.tar.gz
 ${GEM_LIB}/gems/${DISTNAME}/test/
 ${GEM_LIB}/gems/${DISTNAME}/test/helper.rb
 ${GEM_LIB}/gems/${DISTNAME}/test/test_backup.rb



CVS: cvs.openbsd.org: ports

2023-12-27 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/12/27 16:43:12

Modified files:
audio  : Makefile 
databases  : Makefile 
devel  : Makefile 
graphics   : Makefile 
net: Makefile 
security   : Makefile 
sysutils   : Makefile 
textproc   : Makefile 
www: Makefile 
x11: Makefile 

Log message:
Build ruby33 FLAVOR of ruby gem ext ports by default



CVS: cvs.openbsd.org: ports

2023-12-27 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/12/27 13:08:05

Modified files:
lang/ruby  : Makefile 

Log message:
Hookup Ruby 3.3 to the build



CVS: cvs.openbsd.org: ports

2023-12-27 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/12/27 13:07:31

Modified files:
lang/ruby  : ruby.port.mk 

Log message:
Support ruby33 FLAVOR when building Ruby ports

OK tb@, gkoehler@



CVS: cvs.openbsd.org: ports

2023-12-27 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/12/27 13:06:42

Modified files:
lang/ruby  : Makefile.inc 
lang/ruby/3.2  : Makefile 
lang/ruby/3.1  : Makefile 

Log message:
Fix WANTLIB for Ruby 3.1 and 3.2, other minor changes

This sets PATCHORIG = .orig, because the build infrastructure handles
that better and it requires less work when updating plists.

This sets optflags="", so that the build infrastructure does not
override the default optimization flags.

This removes ncurses, readline, and yaml from WANTLIB, and adds yaml-0
to WANTLIB. For Ruby 3.1 and 3.2, ncurses and readline are added back.
Ruby 3.3 drops the readline extension, so those libraries are no longer
needed.

This drops the gdbm subpackage code from Makefile.inc, since it
is no longer used by any supported Ruby version.

OK tb@, gkoehler@



CVS: cvs.openbsd.org: ports

2023-12-27 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/12/27 13:05:01

Log message:
Import Ruby 3.3.0

OK tb@, gkoehler@

Status:

Vendor Tag: jeremy
Release Tags:   jeremy_2023-Dec-27

N ports/lang/ruby/3.3/Makefile
N ports/lang/ruby/3.3/distinfo
N ports/lang/ruby/3.3/patches/patch-common_mk
N ports/lang/ruby/3.3/patches/patch-ext_etc_etc_c
N ports/lang/ruby/3.3/patches/patch-compile_c
N ports/lang/ruby/3.3/patches/patch-configure
N ports/lang/ruby/3.3/patches/patch-ext_ripper_depend
N ports/lang/ruby/3.3/patches/patch-ext_extmk_rb
N ports/lang/ruby/3.3/patches/patch-lib_rubygems_ext_builder_rb
N ports/lang/ruby/3.3/patches/patch-lib_fileutils_rb
N ports/lang/ruby/3.3/patches/patch-lib_mkmf_rb
N ports/lang/ruby/3.3/patches/patch-lib_rubygems_commands_install_command_rb
N ports/lang/ruby/3.3/patches/patch-lib_rubygems_dependency_installer_rb
N ports/lang/ruby/3.3/patches/patch-lib_rubygems_ext_ext_conf_builder_rb
N ports/lang/ruby/3.3/patches/patch-lib_rubygems_rb
N ports/lang/ruby/3.3/patches/patch-template_Makefile_in
N ports/lang/ruby/3.3/patches/patch-template_builtin_binary_inc_tmpl
N ports/lang/ruby/3.3/pkg/DESCR-ri_docs
N ports/lang/ruby/3.3/pkg/DESCR-main
N ports/lang/ruby/3.3/pkg/MESSAGE-main
N ports/lang/ruby/3.3/pkg/PLIST-main
N ports/lang/ruby/3.3/pkg/PLIST-ri_docs
N ports/lang/ruby/3.3/pkg/UNMESSAGE-main

No conflicts created by this import



CVS: cvs.openbsd.org: ports

2023-12-08 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/12/08 10:04:07

Modified files:
security/ruby-argon2: Makefile distinfo 
security/ruby-argon2/pkg: PLIST 

Log message:
Update to argon2 2.3.0

Mostly from wen heping 



CVS: cvs.openbsd.org: ports

2023-12-05 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/12/05 08:17:22

Modified files:
www/ruby-passenger: Makefile 
www/ruby-passenger/pkg: PLIST 

Log message:
Switch LDEP from pcre to pcre2

The passenger build system checks for the pcre header, and will fail if
it is not present (even if pcre2 is installed).  However, the only place
pcre is used is for the embedded nginx, and that will pick pcre2 over
pcre if both are installed.  This switches the LDEP from pcre to pcre2
so that the embedded nginx will always use pcre2, and adds a BDEP on
pcre so that the passenger build system still works.

While here, comment out a file in the PLIST so updates using make
update-plist are easier.

Problem found by tb@ because dpb junked pcre2 while building passenger

OK tb@



CVS: cvs.openbsd.org: ports

2023-12-04 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/12/04 10:22:17

Modified files:
databases/postgresql: Tag: OPENBSD_7_4 Makefile distinfo 
databases/postgresql/pkg: Tag: OPENBSD_7_4 PLIST-docs 

Log message:
Update to PostgreSQL 15.5



Re: security/ruby-argon2: Update to 2.3.0

2023-12-04 Thread Jeremy Evans
On 12/04 08:49, wen heping wrote:
> Hi, all:
> 
> Here is a simple patch for security/ruby-argon2 to 
> update to 2.3.0.
> 
> It build and run well on amd64-current system, no test
> defined and no other ports depend on it.

We don't add files under ${GEM_EXTENSIONS_DIR} or
${GEM_LIB}/gems/${DISTNAME}/ext/ to packages.  Otherwise, this looks
good.  I'll try to update the port this week.

Thanks,
Jeremy

> 
> 
> Cheers !
> wen

> Index: security/ruby-argon2/Makefile
> ===
> RCS file: /cvs/ports/security/ruby-argon2/Makefile,v
> retrieving revision 1.3
> diff -u -p -r1.3 Makefile
> --- security/ruby-argon2/Makefile 1 Sep 2023 17:11:35 -   1.3
> +++ security/ruby-argon2/Makefile 4 Dec 2023 08:47:03 -
> @@ -1,6 +1,6 @@
>  COMMENT =Ruby binding for the argon2 password hashing algorithm
>  
> -DISTNAME =   argon2-2.2.0
> +DISTNAME =   argon2-2.3.0
>  CATEGORIES = security
>  
>  MAINTAINER = Jeremy Evans 
> Index: security/ruby-argon2/distinfo
> ===
> RCS file: /cvs/ports/security/ruby-argon2/distinfo,v
> retrieving revision 1.2
> diff -u -p -r1.2 distinfo
> --- security/ruby-argon2/distinfo 1 Sep 2023 17:11:35 -   1.2
> +++ security/ruby-argon2/distinfo 4 Dec 2023 08:47:03 -
> @@ -1,2 +1,2 @@
> -SHA256 (argon2-2.2.0.gem) = jT+DbLLD6X/kgi+daw6JugNjbtiNFkSc/zagTDGjtPE=
> -SIZE (argon2-2.2.0.gem) = 1787904
> +SHA256 (argon2-2.3.0.gem) = mA72UXK/USrTe2y7DWHu9AttzKtqfbTnBVdSfh3OlVc=
> +SIZE (argon2-2.3.0.gem) = 1788928
> Index: security/ruby-argon2/pkg/PLIST
> ===
> RCS file: /cvs/ports/security/ruby-argon2/pkg/PLIST,v
> retrieving revision 1.3
> diff -u -p -r1.3 PLIST
> --- security/ruby-argon2/pkg/PLIST1 Sep 2023 17:11:35 -   1.3
> +++ security/ruby-argon2/pkg/PLIST4 Dec 2023 08:47:03 -
> @@ -1,4 +1,5 @@
>  ${GEM_LIB}/cache/${DISTNAME}.gem
> +${GEM_EXTENSIONS_DIR}/gem_make.out
>  ${GEM_LIB}/gems/${DISTNAME}/
>  ${GEM_LIB}/gems/${DISTNAME}/.github/
>  ${GEM_LIB}/gems/${DISTNAME}/.github/workflows/
> @@ -19,6 +20,112 @@ ${GEM_LIB}/gems/${DISTNAME}/bin/
>  ${GEM_LIB}/gems/${DISTNAME}/bin/console
>  ${GEM_LIB}/gems/${DISTNAME}/bin/setup
>  ${GEM_LIB}/gems/${DISTNAME}/bin/test
> +${GEM_LIB}/gems/${DISTNAME}/ext/
> +${GEM_LIB}/gems/${DISTNAME}/ext/argon2_wrap/
> +${GEM_LIB}/gems/${DISTNAME}/ext/argon2_wrap/Makefile
> +${GEM_LIB}/gems/${DISTNAME}/ext/argon2_wrap/argon_wrap.c
> +${GEM_LIB}/gems/${DISTNAME}/ext/argon2_wrap/argon_wrap.o
> +${GEM_LIB}/gems/${DISTNAME}/ext/argon2_wrap/extconf.rb
> +@so ${GEM_LIB}/gems/${DISTNAME}/ext/argon2_wrap/libargon2_wrap.so
> +${GEM_LIB}/gems/${DISTNAME}/ext/argon2_wrap/test.c
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/.git
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/.gitattributes
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/.gitignore
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/.travis.yml
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/Argon2.sln
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/CHANGELOG.md
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/LICENSE
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/Makefile
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/Package.swift
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/README.md
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/appveyor.yml
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/argon2-specs.pdf
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/export.sh
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/include/
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/include/argon2.h
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/kats/
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/kats/argon2d
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/kats/argon2d.shasum
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/kats/argon2d_v16
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/kats/argon2d_v16.shasum
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/kats/argon2i
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/kats/argon2i.shasum
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/kats/argon2i_v16
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/kats/argon2i_v16.shasum
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/kats/argon2id
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/kats/argon2id.shasum
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-argon2/kats/argon2id_v16
> +${GEM_LIB}/gems/${DISTNAME}/ext/phc-winner-ar

CVS: cvs.openbsd.org: ports

2023-11-29 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/11/29 16:42:16

Modified files:
geo/pgpointcloud: Makefile distinfo 
geo/pgpointcloud/pkg: PLIST 
Removed files:
geo/pgpointcloud/patches: patch-pgsql_pc_pgsql_c 

Log message:
Update to pgpointcloud 1.2.5, which supports PostgreSQL 16.

Remove backported patch for PostgreSQL 16 support.

OK tb@, sthen@



CVS: cvs.openbsd.org: ports

2023-11-29 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/11/29 16:42:00

Modified files:
databases/postgresql-pllua: Makefile distinfo 

Log message:
Update to pllua 2.0.12 to work with PostgreSQL 16.

OK tb@, sthen@



CVS: cvs.openbsd.org: ports

2023-11-29 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/11/29 16:41:45

Modified files:
databases/postgresql-odbc: Makefile distinfo 
Added files:
databases/postgresql-odbc/patches: patch-psqlodbc_h 

Log message:
Update to postgresql-odbc 16.00..

Add patch to work with PostgreSQL 16.

OK tb@, sthen@



CVS: cvs.openbsd.org: ports

2023-11-29 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/11/29 16:41:30

Modified files:
databases/postgresql-previous: Makefile distinfo 
databases/postgresql-previous/patches: 
   patch-src_bin_scripts_vacuumdb_c 
   
patch-src_include_storage_s_lock_h 
   
patch-src_interfaces_libpq_Makefile 
databases/postgresql-previous/pkg: PLIST 

Log message:
Update postgresql-previous to PostgreSQL 15.4 following PostgreSQL update to 
16.1

OK tb@, sthen@



CVS: cvs.openbsd.org: ports

2023-11-29 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/11/29 16:41:15

Modified files:
databases/postgresql: Makefile distinfo 
databases/postgresql/patches: patch-src_backend_libpq_ip_c 
  patch-src_include_storage_s_lock_h 
  
patch-src_interfaces_ecpg_compatlib_Makefile 
  
patch-src_interfaces_ecpg_ecpglib_Makefile 
  
patch-src_interfaces_ecpg_pgtypeslib_Makefile 
  patch-src_interfaces_libpq_Makefile 
databases/postgresql/pkg: PLIST-contrib PLIST-docs PLIST-server 

Log message:
Update to PostgreSQL 16.1

This adds textproc/icu4c as a dependency, since PostgreSQL 16 requires
that by default.  This allows additional collations to work.

Bulk testing by tb@

Input from tb@ and sthen@

OK tb@, sthen@



Re: Early Look: PostgreSQL 16.0

2023-11-27 Thread Jeremy Evans
On 09/16 09:56, Theo Buehler wrote:
> On Thu, Sep 14, 2023 at 06:06:37PM +0000, Jeremy Evans wrote:
> > PostgreSQL 16.0 was released today:
> > https://www.postgresql.org/about/news/postgresql-16-released-2715/
> > 
> > As usual, we don't plan to change the default version in ports until
> > 16.1, and after we have prepared updates all software that depends on
> > PostgreSQL to support the new version.  However, for early testing,
> > here's a diff to test with.
> 
> As mentioned elsewhwere, the diff needs an installed icu4c to configure
> as it is now. I ran a bulk with '--without-icu' added to CONFIGURE_ARGS.
> 
> There are a few version checks that break some ports, as usual.
> There is at least one .so in the server that had changes amounting to a
> major bump, but for some reasone they aren't versioned. Should they be?

Patch below makes the ports tree ready for PostgreSQL 16.1:

databases/citus version

Citus since upgraded to 12.1.0, which works with PostgreSQL 16.

databases/pg_sqlite_fdw version

pg_sqlite_fdw since upgraded to 2.4.0, which works with PostgreSQL 16.

databases/postgresql-odbc   ?

Needed stdarg.h include added to a header.  Patch below also updates it
to 16.00., the most current version.

databases/postgresql-pllua  version

Patch below updates to 2.0.12, which works with PostgreSQL 16.

databases/timescaledb   version

PostgreSQL 16 support not yet ready, planned for future version.  I
marked it BROKEN, same as in the last 2 PostgreSQL major upgrades.

geo/pgpointcloudAPI break in -server

Patch below updates to 1.2.5, which works with PostgreSQL 16 (might have
already worked with patch I removed).

Can someone test this in a bulk?  Also, OKs to apply this if no fallout
from the bulk?

After updating -current, I'll update -stable to 15.5.

Thanks,
Jeremy


Index: databases/postgresql/Makefile
===
RCS file: /cvs/ports/databases/postgresql/Makefile,v
diff -u -p -r1.299 Makefile
--- databases/postgresql/Makefile   17 Nov 2023 17:46:55 -  1.299
+++ databases/postgresql/Makefile   19 Nov 2023 21:46:39 -
@@ -5,11 +5,10 @@ COMMENT-contrib=PostgreSQL RDBMS contrib
 COMMENT-plpython=Python procedural language for PostgreSQL
 COMMENT-pg_upgrade=Support for upgrading PostgreSQL data from previous version
 
-VERSION=   15.4
-PREV_MAJOR=14
+VERSION=   16.1
+PREV_MAJOR=15
 DISTNAME=  postgresql-${VERSION}
 PKGNAME-main=  postgresql-client-${VERSION}
-REVISION=  1
 
 DPB_PROPERTIES=parallel
 
@@ -17,7 +16,7 @@ CATEGORIES=   databases
 SHARED_LIBS=   ecpg7.10 \
ecpg_compat 4.10 \
pgtypes 4.9 \
-   pq  6.14
+   pq  6.15
 
 HOMEPAGE=  https://www.postgresql.org/
 
@@ -84,8 +83,9 @@ LIB_DEPENDS-main= textproc/libxml
 WANTLIB-main=  ${WANTLIB} execinfo xml2
 
 LIB_DEPENDS-server=databases/postgresql=${VERSION} \
+   textproc/icu4c \
${LIB_DEPENDS-main}
-WANTLIB-server=${WANTLIB-main} perl pq
+WANTLIB-server=${WANTLIB-main} icudata icui18n icuuc perl pq
 
 RUN_DEPENDS-contrib=   databases/postgresql,-server=${VERSION}
 LIB_DEPENDS-contrib=   databases/postgresql=${VERSION} \
Index: databases/postgresql/distinfo
===
RCS file: /cvs/ports/databases/postgresql/distinfo,v
diff -u -p -r1.98 distinfo
--- databases/postgresql/distinfo   13 Aug 2023 20:23:27 -  1.98
+++ databases/postgresql/distinfo   11 Nov 2023 04:30:27 -
@@ -1,2 +1,2 @@
-SHA256 (postgresql-15.4.tar.gz) = DhHu5yPdflmmNAUrwb/JvmBeVcHMo/Zun8JdOjlPsDA=
-SIZE (postgresql-15.4.tar.gz) = 29978353
+SHA256 (postgresql-16.1.tar.gz) = vwVkclYT98V/HD6/XJCbPsWLnPs9gbS7EgnYh2cGWoc=
+SIZE (postgresql-16.1.tar.gz) = 32433767
Index: databases/postgresql/patches/patch-src_backend_libpq_ip_c
===
RCS file: /cvs/ports/databases/postgresql/patches/patch-src_backend_libpq_ip_c,v
diff -u -p -r1.4 patch-src_backend_libpq_ip_c
--- databases/postgresql/patches/patch-src_backend_libpq_ip_c   11 Mar 2022 
18:31:37 -  1.4
+++ databases/postgresql/patches/patch-src_backend_libpq_ip_c   25 May 2023 
15:08:40 -
@@ -4,12 +4,11 @@ since the latter is unreliable. Fixes "s
 Index: src/backend/libpq/ifaddr.c
 --- src/backend/libpq/ifaddr.c.orig
 +++ src/backend/libpq/ifaddr.c
-@@ -200,17 +200,16 @@ run_ifaddr_callback(PgIfAddrCallback callback, void *c
+@@ -189,16 +189,14 @@ run_ifaddr_callback(PgIfAddrCallback callback, void *c
/* Check that the mask is valid */
if (mask)
{
 -  if (mask->sa_family != addr->sa_family

CVS: cvs.openbsd.org: ports

2023-11-27 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/11/27 13:06:26

ports/databases/postgresql-odbc/patches

Update of /cvs/ports/databases/postgresql-odbc/patches
In directory cvs.openbsd.org:/tmp/cvs-serv8104/databases/postgresql-odbc/patches

Log Message:
Directory /cvs/ports/databases/postgresql-odbc/patches added to the repository



CVS: cvs.openbsd.org: ports

2023-11-06 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/11/06 09:53:37

Modified files:
lang/jruby : Makefile distinfo 
lang/jruby/pkg : PLIST 

Log message:
Update to JRuby 9.4.5.0



CVS: cvs.openbsd.org: ports

2023-10-22 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/10/22 16:43:43

Modified files:
lang/jruby : Makefile distinfo 
lang/jruby/patches: patch-lib_ruby_stdlib_ffi_library_rb 
lang/jruby/pkg : PLIST 

Log message:
Update to JRuby 9.4.4.0



Update: JRuby 9.4.4.0

2023-10-18 Thread Jeremy Evans
This updates JRuby to the latest release.  Release notes at:
https://www.jruby.org/2023/10/18/jruby-9-4-4-0.html

Tested on amd64, the only supported arch.  Will be committing in a few
days unless I hear objections.

Thanks,
Jeremy

Index: Makefile
===
RCS file: /cvs/ports/lang/jruby/Makefile,v
retrieving revision 1.109
diff -u -p -r1.109 Makefile
--- Makefile10 Jun 2023 17:30:29 -  1.109
+++ Makefile18 Oct 2023 19:10:50 -
@@ -3,7 +3,7 @@ ONLY_FOR_ARCHS = amd64
 
 COMMENT =  pure-Java implementation of the Ruby language
 
-V =9.4.3.0
+V =9.4.4.0
 DISTNAME = jruby-dist-${V}-bin
 PKGNAME =  jruby-${V}
 CATEGORIES =   lang lang/ruby
Index: distinfo
===
RCS file: /cvs/ports/lang/jruby/distinfo,v
retrieving revision 1.75
diff -u -p -r1.75 distinfo
--- distinfo10 Jun 2023 17:30:29 -  1.75
+++ distinfo18 Oct 2023 19:10:55 -
@@ -1,6 +1,6 @@
 SHA256 (jffi-1.3.10.tar.gz) = QZWOTjjcxTOTidj4/JjERqcokJJ5SOiQualLs/ivHsw=
-SHA256 (jruby-dist-9.4.3.0-bin.tar.gz) = 
sJfgjFZp6KGIKI4RORHRK0rSvWeiwgnW36hEXWOk2Mk=
+SHA256 (jruby-dist-9.4.4.0-bin.tar.gz) = 
arEmcK/Y5ciskwX6vkIFV5XF3fn46PGh5g4mDy1yTMA=
 SHA256 (jruby-launcher-1.1.19-java.gem) = 
LPGrpNcsdLNq7MSjCxiSXh4h+vcPVuC0ykUyUYquGJo=
 SIZE (jffi-1.3.10.tar.gz) = 3304571
-SIZE (jruby-dist-9.4.3.0-bin.tar.gz) = 29462176
+SIZE (jruby-dist-9.4.4.0-bin.tar.gz) = 31660522
 SIZE (jruby-launcher-1.1.19-java.gem) = 64000
Index: patches/patch-lib_ruby_stdlib_ffi_library_rb
===
RCS file: /cvs/ports/lang/jruby/patches/patch-lib_ruby_stdlib_ffi_library_rb,v
retrieving revision 1.3
diff -u -p -r1.3 patch-lib_ruby_stdlib_ffi_library_rb
--- patches/patch-lib_ruby_stdlib_ffi_library_rb11 Mar 2022 19:29:04 
-  1.3
+++ patches/patch-lib_ruby_stdlib_ffi_library_rb18 Oct 2023 19:28:32 
-
@@ -1,20 +1,17 @@
 Index: lib/ruby/stdlib/ffi/library.rb
 --- lib/ruby/stdlib/ffi/library.rb.orig
 +++ lib/ruby/stdlib/ffi/library.rb
-@@ -96,6 +96,7 @@ module FFI
+@@ -90,10 +90,13 @@ module FFI
raise LoadError.new("library names list must not be empty") if 
names.empty?
  
-   lib_flags = defined?(@ffi_lib_flags) ? @ffi_lib_flags : 
FFI::DynamicLibrary::RTLD_LAZY | FFI::DynamicLibrary::RTLD_LOCAL
+   lib_flags = defined?(@ffi_lib_flags) && @ffi_lib_flags
 +  libc = FFI::DynamicLibrary.open('libc.so', 
FFI::DynamicLibrary::RTLD_LAZY | FFI::DynamicLibrary::RTLD_GLOBAL)
-   ffi_libs = names.map do |name|
  
- if name == FFI::CURRENT_PROCESS
-@@ -149,7 +150,7 @@ module FFI
-   lib
- end
+   @ffi_libs = names.map do |name|
+ FFI::DynamicLibrary.send(:load_library, name, lib_flags)
end
--
-+  ffi_libs.unshift(libc)
-   @ffi_libs = ffi_libs
++  @ffi_libs.unshift(libc)
++  @ffi_libs
  end
  
+ # Set the calling convention for {#attach_function} and {#callback}
Index: pkg/PLIST
===
RCS file: /cvs/ports/lang/jruby/pkg/PLIST,v
retrieving revision 1.66
diff -u -p -r1.66 PLIST
--- pkg/PLIST   10 Jun 2023 17:30:29 -  1.66
+++ pkg/PLIST   18 Oct 2023 19:30:03 -
@@ -529,6 +529,7 @@ jruby/lib/ruby/gems/1.8/specifications/d
 jruby/lib/ruby/gems/1.8/specifications/default/abbrev-0.1.0.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/base64-0.1.1.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/benchmark-0.2.0.gemspec
+jruby/lib/ruby/gems/1.8/specifications/default/bigdecimal-3.1.4-java.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/bundler-2.3.26.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/cgi-0.3.6-java.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/csv-3.2.5.gemspec
@@ -541,7 +542,7 @@ jruby/lib/ruby/gems/1.8/specifications/d
 jruby/lib/ruby/gems/1.8/specifications/default/english-0.7.1.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/erb-2.2.3.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/error_highlight-0.3.0.gemspec
-jruby/lib/ruby/gems/1.8/specifications/default/ffi-1.15.5-java.gemspec
+jruby/lib/ruby/gems/1.8/specifications/default/ffi-1.16.3-java.gemspec
 
jruby/lib/ruby/gems/1.8/specifications/default/ffi-binary-libfixposix-0.5.1.1-java.gemspec
 
jruby/lib/ruby/gems/1.8/specifications/default/ffi-bindings-libfixposix-0.5.1.0.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/fileutils-1.6.0.gemspec
@@ -553,7 +554,7 @@ jruby/lib/ruby/gems/1.8/specifications/d
 jruby/lib/ruby/gems/1.8/specifications/default/ipaddr-1.2.4.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/irb-1.4.2.gemspec
 jruby/lib/ruby/gems/1.8/specifications/default/jar-dependencies-0.4.1.gemspec
-jruby/lib/ruby/gems/1.8/specifications/default/jruby-openssl-0.14.1-java.gemspec

CVS: cvs.openbsd.org: ports

2023-10-13 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/10/13 17:15:40

Modified files:
lang/ruby  : ruby.port.mk 

Log message:
Remove support for building ruby30-* packages for Ruby ports



CVS: cvs.openbsd.org: ports

2023-10-13 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/10/13 17:14:54

Modified files:
devel/quirks   : Makefile 
devel/quirks/files: Quirks.pm 

Log message:
Update quirk for ruby30-* ports



CVS: cvs.openbsd.org: ports

2023-10-13 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/10/13 17:13:19

Removed files:
lang/ruby/3.0  : Makefile distinfo 
lang/ruby/3.0/patches: patch-common_mk patch-compile_c 
   patch-configure patch-ext_etc_etc_c 
   patch-ext_extmk_rb 
   patch-ext_openssl_extconf_rb 
   patch-ext_openssl_ossl_ocsp_c 
   patch-ext_openssl_ossl_pkey_ec_c 
   patch-ext_ripper_depend 
   patch-lib_cgi_cookie_rb 
   patch-lib_fileutils_rb patch-lib_mkmf_rb 
   patch-lib_rubygems_commands_install_command_rb 
   patch-lib_rubygems_dependency_installer_rb 
   patch-lib_rubygems_ext_ext_conf_builder_rb 
   patch-template_builtin_binary_inc_tmpl 
   patch-thread_pthread_h 
lang/ruby/3.0/pkg: DESCR-gdbm DESCR-main DESCR-ri_docs 
   MESSAGE-main PLIST-gdbm PLIST-main 
   PLIST-ri_docs UNMESSAGE-main 

Log message:
Send Ruby 3.0 to the Attic



CVS: cvs.openbsd.org: ports

2023-10-13 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/10/13 17:12:43

Modified files:
lang/ruby  : Makefile 

Log message:
Unhook Ruby 3.0



Ruby 3.0 Removal

2023-10-12 Thread Jeremy Evans
Per our standard Ruby support policy, I am planning to remove Ruby 3.0
from the ports tree, as it will be completely unsupported before the
release of OpenBSD 7.5. Nothing currently depends on it, so
this should cause no problems.
 
Here's the diff for ruby.port.mk. I also have diffs prepared for
ruby-module.5 and quirks.
 
Thanks,
Jeremy

Index: ruby.port.mk
===
RCS file: /cvs/ports/lang/ruby/ruby.port.mk,v
retrieving revision 1.116
diff -u -p -r1.116 ruby.port.mk
--- ruby.port.mk27 Sep 2023 21:41:16 -  1.116
+++ ruby.port.mk12 Oct 2023 17:09:41 -
@@ -25,7 +25,7 @@ MODRUBY_HANDLE_FLAVORS ?= No
 # If ruby.pork.mk should handle FLAVORs, define a separate FLAVOR
 # for each ruby version.
 .if !defined(FLAVORS)
-FLAVORS=   ruby30 ruby31 ruby32
+FLAVORS=   ruby31 ruby32
 .endif
 
 # Instead of adding flavors to the end of the package name, we use
@@ -49,11 +49,10 @@ FLAVOR =ruby32
 
 # Check for conflicting FLAVORs and set MODRUBY_REV appropriately based
 # on the FLAVOR.
-.for i in ruby30 ruby31 ruby32
+.for i in ruby31 ruby32
 .  if ${FLAVOR:M$i}
 MODRUBY_REV = ${i:C/ruby([0-9])/\1./}
-.if ${FLAVOR:N$i:Mruby30} || \
-${FLAVOR:N$i:Mruby31} || \
+.if ${FLAVOR:N$i:Mruby31} || \
 ${FLAVOR:N$i:Mruby32}
 ERRORS += "Fatal: Conflicting flavors used: ${FLAVOR}"
 .endif



Re: BTI fix ruby 3.2.2

2023-09-23 Thread Jeremy Evans
On 09/23 08:38, Mark Kettenis wrote: > The configure scripts adds
-mbranch-protection=pac-ret, which on > OpenBSD actually *downgrades* the
protection and makes things fail on > arm64 systems that implement BTI. >
> Use -mbranch-protection=standard instead. > > ok? OK jeremy@ > Index:
lang/ruby/3.2/Makefile >
=== > RCS
file: /cvs/ports/lang/ruby/3.2/Makefile,v > retrieving revision 1.5 >
diff -u -p -r1.5 Makefile > --- lang/ruby/3.2/Makefile 13 Jun 2023
05:00:23 - 1.5 > +++ lang/ruby/3.2/Makefile 23 Sep 2023 18:32:57
- > @@ -3,7 +3,7 @@ DISTNAME = ruby-${VERSION} > SHARED_LIBS = ruby32
0.0 > NEXTVER = 3.3 > PKGSPEC-main ?= ruby->=3.2.0,<${NEXTVER} >
-REVISION-main = 0 > +REVISION-main = 1 > > PSEUDO_FLAVORS= no_ri_docs
bootstrap > # Do not build the RI docs on slow arches > Index:
lang/ruby/3.2/patches/patch-configure >
=== > RCS
file: /cvs/ports/lang/ruby/3.2/patches/patch-configure,v > retrieving
revision 1.2 > diff -u -p -r1.2 patch-configure > ---
lang/ruby/3.2/patches/patch-configure 1 Apr 2023 19:28:26 - 1.2 > +++
lang/ruby/3.2/patches/patch-configure 23 Sep 2023 18:32:57 - > @@
-1,4 +1,5 @@ > Support arm64 coroutines. > +Don't downgrade arm64 branch
protection. > > Set correct shared library name. > > @@ -8,6 +9,15 @@ so
ports don't have to be bumped when Op > Index: configure > ---
configure.orig > +++ configure > +@@ -10897,7 +10897,7 @@ esac > + case
"$target_cpu" in #( > + aarch64) : > + > +- for opt in
-mbranch-protection=pac-ret -msign-return-address=all > ++ for opt in
-mbranch-protection=standard -msign-return-address=all > + do : > + > + >
@@ -29475,6 +29475,10 @@ esac > > coroutine_type=x86


Re: Early Look: PostgreSQL 16.0

2023-09-16 Thread Jeremy Evans
On 09/16 09:56, Theo Buehler wrote:
> On Thu, Sep 14, 2023 at 06:06:37PM +0000, Jeremy Evans wrote:
> > PostgreSQL 16.0 was released today:
> > https://www.postgresql.org/about/news/postgresql-16-released-2715/
> > 
> > As usual, we don't plan to change the default version in ports until
> > 16.1, and after we have prepared updates all software that depends on
> > PostgreSQL to support the new version.  However, for early testing,
> > here's a diff to test with.
> 
> As mentioned elsewhwere, the diff needs an installed icu4c to configure
> as it is now. I ran a bulk with '--without-icu' added to CONFIGURE_ARGS.

Thanks!  I've updated my copy to use --without-icu.  If someone wants
ICU support in PostgreSQL, please speak up and describe why.
 
> There are a few version checks that break some ports, as usual.
> There is at least one .so in the server that had changes amounting to a
> major bump, but for some reasone they aren't versioned. Should they be?

I believe the @so entries in PLIST-server are only designed for use by
PostgreSQL itself via dlopen.  I don't think external code should be
linking to them, and therefore there is no reason to version them.

> databases/citus   version
> databases/pg_sqlite_fdw   version
> databases/postgresql-odbc ?
> databases/postgresql-plluaversion
> databases/timescaledb version
> geo/pgpointcloud  API break in -server

For these, it's best to wait a couple months till upstream has had a
chance to update.  After 16.1 is released, I'll take a look at these and
see if upstream has released a new version compatible with PostgreSQL
16, or has at least committed fixes that can be backported.

Thanks,
Jeremy

> 
> Not sure what's up with postgresql-odbc, maybe missing stdarg/stdbool
> includes?
> 
> 
> databases/citus:
> configure: error: Citus is not compatible with the detected PostgreSQL 
> version 16.
> 
> databases/pg_sqlite_fdw:
> Makefile:40: *** PostgreSQL 11, 12, 13, 14 or 15 is required to compile this 
> extension.  Stop.
> 
> databases/postgresql-pllua:
> ===> postgresql-pllua-2.0.10p0 depends on: postgresql-server->=15,<16 - 
> default postgresql-server-16.0 does not match
> 
> databases/timescaledb:
> CMake Error at CMakeLists.txt:349 (message):
>   TimescaleDB only supports PostgreSQL 12, 13, 14 and 15
> 
> databases/postgresql-odbc:
> 
> cc -DHAVE_CONFIG_H -I. -I/usr/local/include -I/usr/local/include/postgresql 
> -I/usr/local/include/postgresql/internal -DUNICODE_SUPPORT -O2 -pipe -MT 
> psqlodbcw_la-info.lo -MD -MP -MF .deps/psqlodbcw_la-info.Tpo -c info.c -fPIC 
> -DPIC -o .libs/psqlodbcw_la-info.o
> In file included from info.c:34:
> In file included from ./connection.h:14:
> /usr/local/include/postgresql/internal/pqexpbuffer.h:168:8: error: unknown 
> type name 'bool'
> extern bool appendPQExpBufferVA(PQExpBuffer str, const char *fmt, va_list 
> args) pg_attribute_printf(2, 0);
>^
> /usr/local/include/postgresql/internal/pqexpbuffer.h:168:67: error: unknown 
> type name 'va_list'; did you mean '__va_list'?
> extern bool appendPQExpBufferVA(PQExpBuffer str, const char *fmt, va_list 
> args) pg_attribute_printf(2, 0);
>   ^~~
>   __va_list
> /usr/include/machine/_types.h:126:27: note: '__va_list' declared here
> typedef __builtin_va_list   __va_list;
> ^
> 2 errors generated.
> 
> geo/pgpointcloud: https://github.com/pgpointcloud/pointcloud/pull/339
> 
> pc_pgsql.c:47:50: error: too few arguments to function call, expected 2, have 
> 1
>   List *names = stringToQualifiedNameList(proname);
> ~^
> /usr/local/include/postgresql/server/utils/regproc.h:28:14: note: 
> 'stringToQualifiedNameList' declared here
> extern List *stringToQualifiedNameList(const char *string, Node *escontext);
>  ^
> 1 error generated.



Early Look: PostgreSQL 16.0

2023-09-14 Thread Jeremy Evans
PostgreSQL 16.0 was released today:
https://www.postgresql.org/about/news/postgresql-16-released-2715/

As usual, we don't plan to change the default version in ports until
16.1, and after we have prepared updates all software that depends on
PostgreSQL to support the new version.  However, for early testing,
here's a diff to test with.

This also includes a diff for postgresql-previous to update it to 15.4.

I've been testing PostgreSQL 16 since beta1 and haven't experienced
any problems.

Thanks,
Jeremy

Index: postgresql/Makefile
===
RCS file: /cvs/ports/databases/postgresql/Makefile,v
retrieving revision 1.297
diff -u -p -r1.297 Makefile
--- postgresql/Makefile 11 Sep 2023 20:04:47 -  1.297
+++ postgresql/Makefile 14 Sep 2023 18:01:41 -
@@ -5,11 +5,10 @@ COMMENT-contrib=PostgreSQL RDBMS contrib
 COMMENT-plpython=Python procedural language for PostgreSQL
 COMMENT-pg_upgrade=Support for upgrading PostgreSQL data from previous version
 
-VERSION=   15.4
-PREV_MAJOR=14
+VERSION=   16.0
+PREV_MAJOR=15
 DISTNAME=  postgresql-${VERSION}
 PKGNAME-main=  postgresql-client-${VERSION}
-REVISION-server=0
 
 DPB_PROPERTIES=parallel
 
@@ -17,7 +16,7 @@ CATEGORIES=   databases
 SHARED_LIBS=   ecpg7.10 \
ecpg_compat 4.10 \
pgtypes 4.9 \
-   pq  6.14
+   pq  6.15
 
 HOMEPAGE=  https://www.postgresql.org/
 
Index: postgresql/distinfo
===
RCS file: /cvs/ports/databases/postgresql/distinfo,v
retrieving revision 1.98
diff -u -p -r1.98 distinfo
--- postgresql/distinfo 13 Aug 2023 20:23:27 -  1.98
+++ postgresql/distinfo 14 Sep 2023 18:01:41 -
@@ -1,2 +1,2 @@
-SHA256 (postgresql-15.4.tar.gz) = DhHu5yPdflmmNAUrwb/JvmBeVcHMo/Zun8JdOjlPsDA=
-SIZE (postgresql-15.4.tar.gz) = 29978353
+SHA256 (postgresql-16.0.tar.gz) = WL06JlonmidUkF3fBypU1k1iNtz3hvIPkrXTC5Ft9RY=
+SIZE (postgresql-16.0.tar.gz) = 32283370
Index: postgresql/patches/patch-src_backend_libpq_ip_c
===
RCS file: /cvs/ports/databases/postgresql/patches/patch-src_backend_libpq_ip_c,v
retrieving revision 1.4
diff -u -p -r1.4 patch-src_backend_libpq_ip_c
--- postgresql/patches/patch-src_backend_libpq_ip_c 11 Mar 2022 18:31:37 
-  1.4
+++ postgresql/patches/patch-src_backend_libpq_ip_c 14 Sep 2023 18:01:41 
-
@@ -4,12 +4,11 @@ since the latter is unreliable. Fixes "s
 Index: src/backend/libpq/ifaddr.c
 --- src/backend/libpq/ifaddr.c.orig
 +++ src/backend/libpq/ifaddr.c
-@@ -200,17 +200,16 @@ run_ifaddr_callback(PgIfAddrCallback callback, void *c
+@@ -189,16 +189,14 @@ run_ifaddr_callback(PgIfAddrCallback callback, void *c
/* Check that the mask is valid */
if (mask)
{
 -  if (mask->sa_family != addr->sa_family)
-+
 +  /* mask->sa_family can be different from addr->sa_family. */
 +
 +  if (addr->sa_family == AF_INET)
@@ -21,7 +20,6 @@ Index: src/backend/libpq/ifaddr.c
if (((struct sockaddr_in *) mask)->sin_addr.s_addr == 
INADDR_ANY)
mask = NULL;
}
- #ifdef HAVE_IPV6
 -  else if (mask->sa_family == AF_INET6)
 +  else if (addr->sa_family == AF_INET6)
{
Index: postgresql/patches/patch-src_include_storage_s_lock_h
===
RCS file: 
/cvs/ports/databases/postgresql/patches/patch-src_include_storage_s_lock_h,v
retrieving revision 1.10
diff -u -p -r1.10 patch-src_include_storage_s_lock_h
--- postgresql/patches/patch-src_include_storage_s_lock_h   16 Nov 2022 
02:59:23 -  1.10
+++ postgresql/patches/patch-src_include_storage_s_lock_h   14 Sep 2023 
18:01:41 -
@@ -1,7 +1,7 @@
 Index: src/include/storage/s_lock.h
 --- src/include/storage/s_lock.h.orig
 +++ src/include/storage/s_lock.h
-@@ -802,6 +802,29 @@ tas(volatile slock_t *lock)
+@@ -655,6 +655,29 @@ tas(volatile slock_t *lock)
do { __asm__ __volatile__("" : : : "memory");  *(lock) = 0; } while (0)
  #endif
  
Index: postgresql/patches/patch-src_interfaces_ecpg_compatlib_Makefile
===
RCS file: 
/cvs/ports/databases/postgresql/patches/patch-src_interfaces_ecpg_compatlib_Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 patch-src_interfaces_ecpg_compatlib_Makefile
--- postgresql/patches/patch-src_interfaces_ecpg_compatlib_Makefile 11 Mar 
2022 18:31:37 -  1.14
+++ postgresql/patches/patch-src_interfaces_ecpg_compatlib_Makefile 14 Sep 
2023 18:01:41 -
@@ -11,4 +11,4 @@ Index: src/interfaces/ecpg/compatlib/Mak
 +SO_MINOR_VERSION= ${LIBecpg_compat_MINOR}
  
  override CPPFLAGS := -I../include 

CVS: cvs.openbsd.org: ports

2023-09-11 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/09/11 14:04:47

Modified files:
databases/postgresql: Makefile 
Added files:
databases/postgresql/patches: patch-src_bin_initdb_initdb_c 

Log message:
Have initdb recommend use of rcctl if appropriate

Requested by espie@
OK sthen@, espie@



CVS: cvs.openbsd.org: ports

2023-09-11 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/09/11 13:59:04

Modified files:
lang/ruby  : ruby.port.mk 

Log message:
Further simplify ruby.port.mk

* Remove variables not used by any ports in the tree:
* MODRUBY_LIBDIR
* MODRUBY_RELDOCDIR
* MODRUBY_DOCDIR
* MODRUBY_EXAMPLEDIR
* MODRUBY_ADJ_REPLACE
* MODRUBY_TEST_DIR

* Prefix internal variables with an underscore.  Any variable
not currently used by any ports in the tree has been made
internal.

* Consolidate all SUBST_VARS and UPDATE_PLIST_ARGS setting to
a single case.

Tested by building all ports using lang/ruby module.



CVS: cvs.openbsd.org: ports

2023-09-09 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/09/09 21:21:19

Modified files:
audio/aqualung : Makefile distinfo 

Log message:
Backport upstream commits to work with audio/mac update

As one of the commits affects configure.ac, add autoreconf
CONFIGURE_STYLE.



CVS: cvs.openbsd.org: ports

2023-09-09 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/09/09 21:11:51

Modified files:
audio/mac  : Makefile distinfo 
audio/mac/pkg  : PLIST 
Added files:
audio/mac/patches: patch-Shared_All_h patch-Shared_NoWindows_h 
Removed files:
audio/mac/patches: patch-configure patch-src_Console_Console_cpp 
   patch-src_MACLib_APEDecompress_cpp 
   patch-src_MACLib_APELink_cpp 
   patch-src_MACLib_MACLib_h 

Log message:
Update to Monkey's Audio Codec 10.20

This switches to using the upstream distfile, instead of what appears
to be a Linux port of a quite old version (Monkey's Audio was
previously Windows-only). The upstream distfile compiles without
hanges.

The shared library has changed from libmac to libMAC.  The license
has changed from a custom, non-open source license to a standard
BSD-3-Clause license.

All previous patches no longer necessary or apply. Add a couple
new patches to the include files to make it easier to use the
library.



Re: Update documentation for ruby-module.5

2023-09-07 Thread Jeremy Evans
On 09/07 01:45, Ingo Schwarze wrote:
> Hi Jeremy,
> 
> Jeremy Evans wrote on Wed, Sep 06, 2023 at 09:42:09PM +:
> 
> > This updates ruby-module.5 to update it for recent changes and
> > make other improvements:
> > 
> > * Sort the list of variables.
> > 
> > * Remove mention of variables removed from ruby.port.mk, and
> >   mention of jruby now that jruby support has been removed.
> > 
> > I plan on committing this after the ruby.port.mk diff I sent,
> > assuming there are no objections.
> 
> Definitely no objection here.
> 
> When having a very brief look at the page, i noticed a very unusual
> style: first there is a giant list of variables with no explanation,
> then references to them scattered around the rest of the text.
> 
> Wouldn't something like
> 
> .Bl -tag -width Ds
> .It Ev MODRUBY_REV
> The ruby version for a non-gem port.
> The default is 3.2.
> The other supported values are 3.0 and 3.1.
> For a gem port, use a
> .Ev FLAVOR
> like
> .Ql ruby31
> instead.
> 
> be easier to read, more concise, look more familiar, be easier
> to maintain and easier to search at the same time?  Right now,
> for example, ":t MODUBY_REV" does not work, and making mandoc(1)
> cope with the present style looks very difficult to me.

Ingo,

Thank you for the feedback.  I agree with you.  I will work on an
updated patch that uses that style.

Best regards,
Jeremy



CVS: cvs.openbsd.org: ports

2023-09-07 Thread Jeremy Evans
CVSROOT:/cvs
Module name:ports
Changes by: jer...@cvs.openbsd.org  2023/09/07 15:29:04

Modified files:
security   : Makefile 

Log message:
+= ruby-ed25519



  1   2   3   4   5   6   7   8   9   10   >