Re: PostgreSQL 15.2

2023-02-16 Thread vtamara

Thank you.

I have noticed that PostgreSQL 15 requires more shared memory than 
PostgreSQL 14.

The diagnose I see in /var/postgresql/logfile is:

 ERROR:  could not open shared memory segment "/PostgreSQL.4139364318": 
No such file or directory


To overcome this I have increased values in /etc/sysctl.conf as follows:

kern.seminfo.semmni=1024
kern.seminfo.semmns=2048

kern.shminfo.shmmax=15000
kern.shminfo.shmall=591200
kern.shminfo.shmmni=8192
kern.shminfo.shmseg=256


Any suggestions about this?

IMHO it is worth mentioning it in 
/usr/local/share/doc/pkg-readmes/postgresql-server


Blessings.

El 2023-02-09 11:54, Jeremy Evans escribió:

This updates to PostgreSQL 15.2, released today.  Release announcement:
https://www.postgresql.org/about/news/postgresql-152-147-1310-1214-and-1119-released-2592/

One security issue, CVE-2022-41862: Client memory disclosure when
connecting, with Kerberos, to modified server. Is there anyone running
PostgreSQL clients on OpenBSD using Kerberos authentication and
connecting to potentially untrusted servers?

No problems in my testing on amd64.  I plan to commit in a couple days
unless I hear objections.

Thanks,
Jeremy

Index: Makefile
===
RCS file: /cvs/ports/databases/postgresql/Makefile,v
retrieving revision 1.292
diff -u -p -r1.292 Makefile
--- Makefile16 Nov 2022 02:59:22 -  1.292
+++ Makefile9 Feb 2023 15:56:11 -
@@ -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=   15.1
+VERSION=   15.2
 PREV_MAJOR=14
 DISTNAME=  postgresql-${VERSION}
 PKGNAME-main=  postgresql-client-${VERSION}
Index: distinfo
===
RCS file: /cvs/ports/databases/postgresql/distinfo,v
retrieving revision 1.95
diff -u -p -r1.95 distinfo
--- distinfo16 Nov 2022 02:59:22 -  1.95
+++ distinfo9 Feb 2023 15:56:28 -
@@ -1,2 +1,2 @@
-SHA256 (postgresql-15.1.tar.gz) = 
6izwWahYgmVLmJrNB+3BIYMxZKMDQPruDTYVz3BY5mw=

-SIZE (postgresql-15.1.tar.gz) = 29778341
+SHA256 (postgresql-15.2.tar.gz) = 
7M0gjz50Eq17xMZI7Mh+CqUU4CwkpI9xv55GkQvyhMo=

+SIZE (postgresql-15.2.tar.gz) = 29811750
Index: pkg/PLIST-contrib
===
RCS file: /cvs/ports/databases/postgresql/pkg/PLIST-contrib,v
retrieving revision 1.25
diff -u -p -r1.25 PLIST-contrib
--- pkg/PLIST-contrib   16 Nov 2022 02:59:23 -  1.25
+++ pkg/PLIST-contrib   9 Feb 2023 16:05:51 -
@@ -183,6 +183,7 @@ share/postgresql/extension/pageinspect--
 share/postgresql/extension/pageinspect--1.7--1.8.sql
 share/postgresql/extension/pageinspect--1.8--1.9.sql
 share/postgresql/extension/pageinspect--1.9--1.10.sql
+share/postgresql/extension/pageinspect--1.10--1.11.sql
 share/postgresql/extension/pageinspect.control
 share/postgresql/extension/pg_buffercache--1.0--1.1.sql
 share/postgresql/extension/pg_buffercache--1.1--1.2.sql
Index: pkg/PLIST-docs
===
RCS file: /cvs/ports/databases/postgresql/pkg/PLIST-docs,v
retrieving revision 1.108
diff -u -p -r1.108 PLIST-docs
--- pkg/PLIST-docs  16 Nov 2022 02:59:23 -  1.108
+++ pkg/PLIST-docs  9 Feb 2023 16:06:27 -
@@ -717,6 +717,7 @@ share/doc/postgresql/html/regress-varian
 share/doc/postgresql/html/regress.html
 share/doc/postgresql/html/release-15.html
 share/doc/postgresql/html/release-15-1.html
+share/doc/postgresql/html/release-15-2.html
 share/doc/postgresql/html/release-prior.html
 share/doc/postgresql/html/release.html
 share/doc/postgresql/html/replication-origins.html


--
Dios, gracias por tu amor infinito.
--
  Vladimir Támara Patiño.  http://vtamara.pasosdeJesus.org/
  http://www.pasosdejesus.org/dominio_publico_colombia.html



Re: Ruby 3.2.1

2023-02-15 Thread vtamara




Can you explain why you
were running `gem update --system`? The only reason I can think of is
the nag message asked you to. The only reason I can think of is
the nag message asked you to.


I prefer to have all the gems as updated as possible, particularly 
bundler and running `doas gem update --system` will update bundler and 
rubygems at once.


After running it, if I remove the package ruby, it present a warning:
File 
/usr/local/lib/ruby/gems/3.2/specifications/default/bundler-2.4.1.gemspec 
does not exist

But it will remove the other files.

I understand that in this moment there is not much advantge because to 
udpate bundler I can run:

doas gem install bundler

So as you prefer is fine.



El 2023-02-13 00:20, Jeremy Evans escribió:

On 02/12 09:28, vtamara wrote:

One question about

El 2023-02-09 11:38, Jeremy Evans escribi??:
> * Change how gem update --system nag message is removed, which also
>   prevents gem update --system from working (nobody using the OpenBSD
>   package should use it).

I have been testing 3.2 long ago doing frequently doas gem update 
--system

and I have not
noticed any issue, why to remove it?


My understanding is it modifies files the ruby-* package installs.  
That

will prevent clean uninstalls of the package.  Can you explain why you
were running `gem update --system`? The only reason I can think of is
the nag message asked you to.

Thanks,
Jeremy


--
Dios, gracias por tu amor infinito.
--
  Vladimir Támara Patiño.  http://vtamara.pasosdeJesus.org/
  http://www.pasosdejesus.org/dominio_publico_colombia.html



Re: Ruby 3.2.1

2023-02-12 Thread vtamara

One question about

El 2023-02-09 11:38, Jeremy Evans escribió:

* Change how gem update --system nag message is removed, which also
  prevents gem update --system from working (nobody using the OpenBSD
  package should use it).


I have been testing 3.2 long ago doing frequently doas gem update 
--system and I have not

noticed any issue, why to remove it?


Blessings
--
Dios, gracias por tu amor infinito.
--
  Vladimir Támara Patiño.  http://vtamara.pasosdeJesus.org/
  http://www.pasosdejesus.org/dominio_publico_colombia.html



Small fix for ruby package

2022-10-26 Thread vtamara




There are small mistakes in pkg/MESSAGE-main

Patch below.

Blessings.

--

 Dios, gracias por tu amor infinito.
--
  Vladimir Támara Patiño.  http://vtamara.pasosdeJesus.org/
  http://www.pasosdejesus.org/dominio_publico_colombia.html

diff --git a/arboldes/usr/ports/mystuff/lang/ruby/3.1/Makefile 
b/arboldes/usr/ports/mystuff/lang/ruby/3.1/Makefile

index 3bfc4e53..9fc5beac 100644
--- a/arboldes/usr/ports/mystuff/lang/ruby/3.1/Makefile
+++ b/arboldes/usr/ports/mystuff/lang/ruby/3.1/Makefile
@@ -3,7 +3,7 @@ DISTNAME = ruby-${VERSION}
SHARED_LIBS = ruby31 0.0
NEXTVER = 3.2
PKGSPEC-main ?= ruby->=3.1.0,<${NEXTVER}
-REVISION-main = 0
+REVISION-main = 1

# Backport fix for fixnum*fixnum multiplication on octeon
PATCHFILES = 
ruby-octeon-fix{fe6245b4309c855e6aca5b786ad50a72d53d278a}.patch:0
diff --git a/arboldes/usr/ports/mystuff/lang/ruby/3.1/pkg/MESSAGE-main 
b/arboldes/usr/ports/mystuff/lang/ruby/3.1/pkg/MESSAGE-main

index 68c5d7df..8419f075 100644
--- a/arboldes/usr/ports/mystuff/lang/ruby/3.1/pkg/MESSAGE-main
+++ b/arboldes/usr/ports/mystuff/lang/ruby/3.1/pkg/MESSAGE-main
@@ -7,10 +7,10 @@ create symbolic links like so (overwriting any 
previous default):

ln -sf ${PREFIX}/bin/erb31 ${PREFIX}/bin/erb
ln -sf ${PREFIX}/bin/gem31 ${PREFIX}/bin/gem
ln -sf ${PREFIX}/bin/irb31 ${PREFIX}/bin/irb
- ln -sf ${PREFIX}/bin/rdoc31 ${PREFIX}/bin/racc
+ ln -sf ${PREFIX}/bin/racc31 ${PREFIX}/bin/racc
ln -sf ${PREFIX}/bin/rake31 ${PREFIX}/bin/rake
- ln -sf ${PREFIX}/bin/rdoc31 ${PREFIX}/bin/rbs
- ln -sf ${PREFIX}/bin/rdoc31 ${PREFIX}/bin/rdbg
+ ln -sf ${PREFIX}/bin/rbs31 ${PREFIX}/bin/rbs
+ ln -sf ${PREFIX}/bin/rdbg31 ${PREFIX}/bin/rdbg
ln -sf ${PREFIX}/bin/rdoc31 ${PREFIX}/bin/rdoc
ln -sf ${PREFIX}/bin/ri31 ${PREFIX}/bin/ri
ln -sf ${PREFIX}/bin/typeprof31 ${PREFIX}/bin/typeprof


Re: PostgreSQL 14.1 (plus dependencies)

2022-01-06 Thread vtamara

Sorry, You right. Thank you.

El 2022-01-06 13:28, Stuart Henderson escribió:

On 2022/01/06 09:14, vtamara wrote:

Hi

I tried just database/postgresql.  When I compile it generates in
/usr/port/packages/amd64/all/:

postgresql-14.1-contrib.tgz postgresql-14.1-pg_upgrade.tgz
postgresql-14.1-server.tgz
postgresql-14.1-docs.tgzpostgresql-14.1-plpython.tgz
postgresql-client-14.1.tgz


These ports are for -current not 7.0.


--
Dios, gracias por tu amor infinito.
--
  Vladimir Támara Patiño.  http://vtamara.pasosdeJesus.org/
  http://www.pasosdejesus.org/dominio_publico_colombia.html



Re: PostgreSQL 14.1 (plus dependencies)

2022-01-06 Thread vtamara

Hi

I tried just database/postgresql.  When I compile it generates in 
/usr/port/packages/amd64/all/:


postgresql-14.1-contrib.tgz postgresql-14.1-pg_upgrade.tgz  
postgresql-14.1-server.tgz
postgresql-14.1-docs.tgzpostgresql-14.1-plpython.tgz
postgresql-client-14.1.tgz


Names that are differente to the usual convention, e.g:

postgresql-client-13.4.tgz  postgresql-docs-13.4.tgz
postgresql-previous-13.3.tgz
postgresql-contrib-13.4.tgz postgresql-pg_upgrade-13.4.tgz  
postgresql-server-13.4.tgz



When I try to install any of them:

% PKG_PATH=/usr/ports/packages/amd64/all doas pkg_add -D unsigned 
/usr/ports/packages/amd64/all/postgresql-14.1-server

postgresql-14.1-server:postgresql-client-14.1: ok
Can't install postgresql-14.1-server because of conflicts 
(postgresql-client-14.1)
ldconfig: 
/usr/local/lib/ruby/gems/3.1/gems/nokogiri-1.12.5/ports/x86_64-unknown-openbsd7.0/libxml2/2.9.12/lib: 
No such file or directory
ldconfig: 
/usr/local/lib/ruby/gems/3.1/gems/nokogiri-1.12.5/ports/x86_64-unknown-openbsd7.0/libxslt/1.1.34/lib: 
No such file or directory

system(/sbin/ldconfig, -R) failed: exit(255)
--- postgresql-14.1-server ---
Can't install postgresql-14.1-server: conflicts
Couldn't install postgresql-14.1-server


Thanks. Blessings

El 2021-11-19 16:29, Jeremy Evans escribió:

On 10/12 10:39, Jeremy Evans wrote:

Here's a diff to upgrade PostgreSQL from 13.4 to 14.0, including
dependent ports.  In general, we don't commit a PostgreSQL update 
until

${MAJOR_VERSION}.1 is released, but this should be useful for early
testing. This diff includes changes to:

databases/postgresql
databases/postgresql-previous
databases/citus (update)
databases/pg_statsinfo (update and many patches)
databases/pgadmin3 (patch)
databases/postgresql-pllua (update)
databases/skytools (patch)
databases/timescaledb (temporarily mark as BROKEN as PG 14 support
hasn't been released)


Here's an updated diff for PostgreSQL 14.1, with the following
changes compared to the previous diff:

databases/postgresql (14.0 -> 14.1)
databases/postgresql-previous (13.4 -> 13.5)
databases/timescaledb (BROKEN -> 2.5.0)

Note that denis@ already sent a more complete update for
databases/timescaledb, but it hasn't been committed yet.

The postgresql-pllua diff is for the same version, but has
changed slightly due to recent impovements by sthen@.

I think this is ready to test in a bulk.

Thanks,
Jeremy

Index: databases/postgresql/Makefile
===
RCS file: /cvs/ports/databases/postgresql/Makefile,v
retrieving revision 1.278
diff -u -p -r1.278 Makefile
--- databases/postgresql/Makefile   7 Nov 2021 14:27:44 -   1.278
+++ databases/postgresql/Makefile   19 Nov 2021 21:21:32 -
@@ -7,12 +7,8 @@ COMMENT-contrib=PostgreSQL RDBMS contrib
 COMMENT-plpython=Python procedural language for PostgreSQL
 COMMENT-pg_upgrade=Support for upgrading PostgreSQL data from previous 
version


-VERSION=   13.4
-REVISION=  0
-REVISION-server=   1
-REVISION-plpython= 1
-
-PREV_MAJOR=12
+VERSION=   14.1
+PREV_MAJOR=13
 DISTNAME=  postgresql-${VERSION}
 PKGNAME-main=  postgresql-client-${VERSION}
 PKGNAME-server=postgresql-server-${VERSION}
@@ -27,7 +23,7 @@ CATEGORIES=   databases
 SHARED_LIBS=   ecpg7.10 \
ecpg_compat 4.10 \
pgtypes 4.9 \
-   pq  6.12
+   pq  6.13

 HOMEPAGE=  https://www.postgresql.org/

Index: databases/postgresql/distinfo
===
RCS file: /cvs/ports/databases/postgresql/distinfo,v
retrieving revision 1.90
diff -u -p -r1.90 distinfo
--- databases/postgresql/distinfo   10 Sep 2021 14:07:45 -  1.90
+++ databases/postgresql/distinfo   19 Nov 2021 21:21:32 -
@@ -1,2 +1,2 @@
-SHA256 (postgresql-13.4.tar.gz) = 
Wde8Uj54VwxUmHb+0pfsPkbdMH6Q9bHSL0kYEZHPID4=

-SIZE (postgresql-13.4.tar.gz) = 27687091
+SHA256 (postgresql-14.1.tar.gz) = 
spAwUl4TFNZ29B5gB6ltRIm6DQP6k+Z7R3wdU4Z5DI8=

+SIZE (postgresql-14.1.tar.gz) = 28666442
Index: databases/postgresql/pkg/PLIST-contrib
===
RCS file: /cvs/ports/databases/postgresql/pkg/PLIST-contrib,v
retrieving revision 1.22
diff -u -p -r1.22 PLIST-contrib
--- databases/postgresql/pkg/PLIST-contrib	9 Feb 2021 20:01:36 
-	1.22

+++ databases/postgresql/pkg/PLIST-contrib  19 Nov 2021 21:21:33 -
@@ -3,8 +3,8 @@
 @conflict postgresql-server-<8.4.3
 @pkgpath devel/uuid,-pgsql
 @bin bin/oid2name
+@bin bin/pg_amcheck
 @bin bin/pg_archivecleanup
-@bin bin/pg_standby
 @bin bin/pg_test_fsync
 @bin bin/pg_test_timing
 @bin bin/pgbench
@@ -32,12 +32,14 @@
 @so lib/postgresql/lo.so
 @so lib/postgresql/ltree.so
 @so lib/postgresql/moddatetime.so
+@so lib/postgresql/old_snapshot.so
 @so 

Re: New: Ruby 3.1.0

2021-12-30 Thread vtamara

Hi, I tried it and it compiles, although I added:

BUILD_DEPENDS += devel/dwz

make regress produces 5 errors and I obtain other errors trying to run a 
rails application. I will check more.


Blessings.

El 2021-12-25 15:20, Jeremy Evans escribió:

Here's a port for the recently released Ruby 3.1.0. Major improvements
are:

* In-process JIT compiler (which respects W^X)
* New debugger
* Improved error reporting
* Autocomplete in irb shell

Release notes at:
https://www.ruby-lang.org/en/news/2021/12/25/ruby-3-1-0-released/

Diff below to allow building ruby31 packages for ports.

Tested on amd64.  OK to import?

Thanks,
Jeremy

Index: ruby.port.mk
===
RCS file: /cvs/ports/lang/ruby/ruby.port.mk,v
retrieving revision 1.105
diff -u -p -r1.105 ruby.port.mk
--- ruby.port.mk6 Oct 2021 21:10:19 -   1.105
+++ ruby.port.mk9 Nov 2021 12:36:46 -
@@ -24,7 +24,7 @@ MODRUBY_HANDLE_FLAVORS ?= No
 # If ruby.pork.mk should handle FLAVORs, define a separate FLAVOR
 # for each ruby interpreter
 .if !defined(FLAVORS)
-FLAVORS=   ruby27 ruby30
+FLAVORS=   ruby27 ruby30 ruby31
 .  if !${CONFIGURE_STYLE:L:Mext}
 FLAVORS+=  jruby
 .  endif
@@ -52,7 +52,7 @@ FLAVOR =  ruby30

 # Check for conflicting FLAVORs and set MODRUBY_REV appropriately 
based

 # on the FLAVOR.
-.for i in ruby27 ruby30 jruby
+.for i in ruby27 ruby30 ruby31 jruby
 .  if ${FLAVOR:M$i}
 MODRUBY_REV = ${i:C/ruby([0-9])/\1./}
 .if ${FLAVOR:N$i:Mruby27} || \


--
Dios, gracias por tu amor infinito.
--
  Vladimir Támara Patiño.  http://vtamara.pasosdeJesus.org/
  http://www.pasosdejesus.org/dominio_publico_colombia.html



Re: Bus Error with Unicorn 6.0 on OpenBSD-current (6.9) with Ruby 3.0 in minimal rails application

2021-04-12 Thread vtamara

Hi

No the  issue doesn't exist with Ruby 3.0.1

thank you.

El 2021-04-07 22:11, Jeremy Evans escribió:

On 04/07 05:19, vtamara wrote:

Good evening

I found that the problem happens also:

1. In OpenBSD-current (what will be 6.9 soon) --for that reason I copy 
to

ports-openbsd
2. With what I consider the minimal rails application,  started with 
the

flag --minimal, running with sqlite, i.e:


I committed Ruby 3.0.1 to OpenBSD today.  Does the issue still exist
with Ruby 3.0.1?

Thanks,
Jeremy


--
Dios, gracias por tu amor infinito.
--
  Vladimir Támara Patiño.  http://vtamara.pasosdeJesus.org/
  http://www.pasosdejesus.org/dominio_publico_colombia.html



Bus Error with Unicorn 6.0 on OpenBSD-current (6.9) with Ruby 3.0 in minimal rails application

2021-04-07 Thread vtamara

Good evening

I found that the problem happens also:

1. In OpenBSD-current (what will be 6.9 soon) --for that reason I copy 
to ports-openbsd
2. With what I consider the minimal rails application,  started with the 
flag --minimal, running with sqlite, i.e:


rails new --minimal ap61

The configuration of gems in /var/www/bundler and the configuration of 
nginx is as I explained in the previous email  
https://yhbt.net/unicorn-public/20210404200358.GA32719@dcvr/T/#mcf469c2eb443db6c9e4fee55afa3b252606c27f2 
but  changing cor1440 with ap61.


In my previous email I forgot some details, like how to create self 
signed certificate and how to install nginx and ruby, here they go:


doas pkg_add nginx
doas pkg_add ruby-3.0.0p0
 ln -sf /usr/local/bin/ruby30 /usr/local/bin/ruby
 ln -sf /usr/local/bin/erb30 /usr/local/bin/erb
 ln -sf /usr/local/bin/irb30 /usr/local/bin/irb
 ln -sf /usr/local/bin/rdoc30 /usr/local/bin/racc
 ln -sf /usr/local/bin/rdoc30 /usr/local/bin/rdoc
 ln -sf /usr/local/bin/rdoc30 /usr/local/bin/rbs
 ln -sf /usr/local/bin/ri30 /usr/local/bin/ri
 ln -sf /usr/local/bin/rake30 /usr/local/bin/rake
 ln -sf /usr/local/bin/gem30 /usr/local/bin/gem
 ln -sf /usr/local/bin/bundle30 /usr/local/bin/bundle
 ln -sf /usr/local/bin/bundler30 /usr/local/bin/bundler
 ln -sf /usr/local/bin/typeprof30 /usr/local/bin/typeprof


# Creating self signed certificate
doas openssl genrsa -out /etc/ssl/private/server.key 2048
openssl req -new -key /etc/ssl/private/server.key \
  -out /etc/ssl/private/server.csr
openssl x509 -req -days 3650 -in /etc/ssl/private/server.csr \
  -signkey /etc/ssl/private/server.key -out /etc/ssl/server.crt

# Installing sqlite3
doas pkg_add sqlite3
doas gem install --install-dir /var/www/bundler/ruby/3.0/ sqlite3

# Installing rails globally
doas gem install rails
doas ln -s /usr/local/bin/rails30 /usr/local/bin/rails

rails new --minimal ap61
mv ap61 /var/www/htdocs/
cd /var/www/htdocs/ap61

# Configuring unicorn
cat <> Gemfile
group :production do
  gem 'unicorn'
end
EOF
doas gem install --install-dir /var/www/bundler/ruby/3.0 unicorn
bundle
cat < config/unicorn.rb
listen 2011
APP_PATH="/var/www/htdocs/ap61"
working_directory APP_PATH
worker_processes 2
pid APP_PATH + "/tmp/pids/unicorn.pid"
stderr_path APP_PATH + "/log/unicorn.log"
stdout_path APP_PATH + "/log/unicorn.log"
EOF

# Start the application
bundle exec /usr/local/bin/unicorn_rails -c config/unicorn.rb -E 
production -D



# Try to see the initial rails screen
doas pkg_add w3m
w3m https://127.0.0.1/ap61

It will not present the presentation screen, stopping w3m and checking 
the logfile I see the samen Segmentation faults:


I, [2021-04-07T15:27:34.289298 #75098]  INFO -- : listening on 
addr=0.0.0.0:2011 fd=12

I, [2021-04-07T15:27:34.290752 #75098]  INFO -- : worker=0 spawning...
I, [2021-04-07T15:27:34.303205 #75098]  INFO -- : worker=1 spawning...
I, [2021-04-07T15:27:34.308574 #98078]  INFO -- : worker=0 spawned 
pid=98078

I, [2021-04-07T15:27:34.310157 #98078]  INFO -- : Refreshing Gem list
I, [2021-04-07T15:27:34.329730 #75098]  INFO -- : master process ready
I, [2021-04-07T15:27:34.390398 #14713]  INFO -- : worker=1 spawned 
pid=14713

I, [2021-04-07T15:27:34.391984 #14713]  INFO -- : Refreshing Gem list
/var/www/bundler/ruby/3.0/gems/unicorn-6.0.0/lib/unicorn.rb:86: [BUG] 
Segmentation fault at 0x

ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-openbsd]



-- Control frame information 
---
/var/www/bundler/ruby/3.0/gems/unicorn-6.0.0/lib/unicorn.rb:80: [BUG] 
Segmentation fault at 0x0001

ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-openbsd]


-- Control frame information 
---
E, [2021-04-07T15:27:50.430649 #75098] ERROR -- : reaped 
# worker=0

I, [2021-04-07T15:27:50.430976 #75098]  INFO -- : worker=0 spawning...
I, [2021-04-07T15:27:50.439973 #19064]  INFO -- : worker=0 spawned 
pid=19064

I, [2021-04-07T15:27:50.441607 #19064]  INFO -- : Refreshing Gem list
E, [2021-04-07T15:27:51.490681 #75098] ERROR -- : reaped 
# worker=1

I, [2021-04-07T15:27:51.491040 #75098]  INFO -- : worker=1 spawning...
I, [2021-04-07T15:27:51.500370 #66270]  INFO -- : worker=1 spawned 
pid=66270

I, [2021-04-07T15:27:51.501983 #66270]  INFO -- : Refreshing Gem list
/var/www/bundler/ruby/3.0/gems/unicorn-6.0.0/lib/unicorn.rb:80: [BUG] 
Segmentation fault at 0x030bbfc8d6f5

ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-openbsd]



-- Control frame information 
---
/var/www/bundler/ruby/3.0/gems/unicorn-6.0.0/lib/unicorn.rb:80: [BUG] 
Segmentation fault at 0x0001

ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-openbsd]


-- Control frame information 
---
E, [2021-04-07T15:28:05.676716 #75098] ERROR -- : reaped 
# worker=0

I, [2021-04-07T15:28:05.677110 #75098]  INFO -- : worker=0 spawning...

Re: New: Ruby 3.0.0

2021-01-23 Thread vtamara

El 2021-01-11 22:46, Jeremy Evans escribió:



Install the package, but be aware you should be running -current, not
6.8.  Running of -current packages on 6.8 is not supported.

Thanks,
Jeremy


I tried on current on amd64, it compiled fine, and running `make test` 
produced 24 failing cases (I'm attaching a file with the result).


Finally, I also could compile on 6.8 on amd64 --I had to remove other 
versions of ruby before.  Running  `make test` produces 24 failing cases 
(result attached).



Thank you.
--
Dios, gracias por tu amor infinito.
--
  Vladimir Támara Patiño.  http://vtamara.pasosdeJesus.org/
  http://www.pasosdejesus.org/dominio_publico_colombia.html===>  Regression tests for ruby-3.0.0
cd /usr/ports/pobj/ruby-3.0.0/ruby-3.0.0 && make check
BASERUBY = echo executable host ruby is required.  use --with-baseruby 
option.; false
CC = cc -fdeclspec
LD = ld
LDSHARED = cc -fdeclspec -shared 
CFLAGS = -O2 -pipe -g -fPIC 
XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector-strong 
-fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -I. 
-I.ext/include/x86_64-openbsd -I./include -I. -I./enc/unicode/12.1.0
CPPFLAGS = -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   
DLDFLAGS = -L/usr/local/lib -fstack-protector-strong  
SOLIBS = -lz -pthread -lgmp -lm 
LANG = es_CO.UTF-8
LC_ALL = 
LC_CTYPE = 
MFLAGS =   
OpenBSD clang version 10.0.1 
Target: amd64-unknown-openbsd6.8
Thread model: posix
InstalledDir: /usr/bin
: > revision.tmp
./tool/ifchange "--timestamp=./.revision.time" "./revision.h" revision.tmp
./revision.h unchanged
./miniruby -I./lib -I. -I.ext/common  ./enc/make_encmake.rb 
--builtin-encs="enc/ascii.o enc/us_ascii.o enc/unicode.o enc/utf_8.o" 
--builtin-transes="enc/trans/newline.o" --module  enc.mk
make -f enc.mk V="1" UNICODE_HDR_DIR="./enc/unicode/12.1.0"  RUBY="./miniruby 
-I./lib -I. -I.ext/common " MINIRUBY="./miniruby -I./lib -I. -I.ext/common "
srcs
./miniruby -I./lib -I. -I.ext/common  ./tool/generic_erb.rb -c -o transdb.h 
./template/transdb.h.tmpl ./enc/trans enc/trans
transdb.h unchanged
mkdir -p ext
./miniruby -I./lib -I. -I.ext/common  ./tool/generic_erb.rb -o 
ext/configure-ext.mk -c  ./template/configure-ext.mk.tmpl --srcdir="."  
--miniruby="./miniruby -I./lib -I. -I.ext/common " --script-args='--dest-dir="" 
 --extout=".ext"  --mflags="  "  --make-flags=" "'
ext/configure-ext.mk unchanged
make -f ext/configure-ext.mkV=1 EXTSTATIC=  gnumake= MINIRUBY="./miniruby 
-I./lib -I. -I.ext/common "  EXTLDFLAGS="" srcdir="."
./miniruby -I./lib -I. -I.ext/common  ./ext/extmk.rb --make='make'  
--command-output=ext/-test-/exts.mk --dest-dir=""  --extout=".ext"  --mflags="  
"  --make-flags=" " --gnumake= --extflags=""  
--make-flags="MINIRUBY='./miniruby -I./lib -I. -I.ext/common '" --extstatic   
-- configure ext/-test-
./miniruby -I./lib -I. -I.ext/common  ./ext/extmk.rb --make='make'  
--command-output=ext/bigdecimal/exts.mk --dest-dir=""  --extout=".ext"  
--mflags="  "  --make-flags=" " --gnumake= --extflags=""  
--make-flags="MINIRUBY='./miniruby -I./lib -I. -I.ext/common '" --extstatic   
-- configure ext/bigdecimal
./miniruby -I./lib -I. -I.ext/common  ./ext/extmk.rb --make='make'  
--command-output=ext/cgi/exts.mk --dest-dir=""  --extout=".ext"  --mflags="  "  
--make-flags=" " --gnumake= --extflags=""  --make-flags="MINIRUBY='./miniruby 
-I./lib -I. -I.ext/common '" --extstatic   -- configure ext/cgi
./miniruby -I./lib -I. -I.ext/common  ./ext/extmk.rb --make='make'  
--command-output=ext/continuation/exts.mk --dest-dir=""  --extout=".ext"  
--mflags="  "  --make-flags=" " --gnumake= --extflags=""  
--make-flags="MINIRUBY='./miniruby -I./lib -I. -I.ext/common '" --extstatic   
-- configure ext/continuation
./miniruby -I./lib -I. -I.ext/common  ./ext/extmk.rb --make='make'  
--command-output=ext/coverage/exts.mk --dest-dir=""  --extout=".ext"  
--mflags="  "  --make-flags=" " --gnumake= --extflags=""  
--make-flags="MINIRUBY='./miniruby -I./lib -I. -I.ext/common '" --extstatic   
-- configure ext/coverage
./miniruby -I./lib -I. -I.ext/common  ./ext/extmk.rb --make='make'  
--command-output=ext/date/exts.mk --dest-dir=""  --extout=".ext"  --mflags="  " 
 --make-flags=" " --gnumake= --extflags=""  --make-flags="MINIRUBY='./miniruby 
-I./lib -I. -I.ext/common '" --extstatic   -- configure ext/date
./miniruby -I./lib -I. -I.ext/common  ./ext/extmk.rb --make='make'  
--command-output=ext/dbm/exts.mk --dest-dir=""  --extout=".ext"  --mflags="  "  
--make-flags=" " --gnumake= --extflags=""  --make-flags="MINIRUBY='./miniruby 
-I./lib -I. -I.ext/common '" --extstatic   -- configure ext/dbm
./miniruby -I./lib -I. -I.ext/common  ./ext/extmk.rb --make='make'  
--command-output=ext/digest/exts.mk --dest-dir=""  --extout=".ext"  --mflags="  
"  --make-flags=" " --gnumake= --extflags=""  
--make-flags="MINIRUBY='./miniruby -I./lib -I. -I.ext/common '" --extstatic   
-- configure 

Re: New: Ruby 3.0.0

2021-01-11 Thread vtamara



Hi, have a great 2021

Thanks for the port.

I tried it on 6.8, it compiles fine, however by running

  make fake

it produces:

===>  Faking installation for ruby-3.0.0
find /usr/ports/pobj/ruby-3.0.0/ruby-3.0.0 -name '*.orig' -delete;  
/usr/ports/pobj/ruby-3.0.0/bin/install -d -m 755 
/usr/ports/pobj/ruby-3.0.0/fake-amd64/usr/l
ocal/share/doc/ruby  
/usr/ports/pobj/ruby-3.0.0/fake-amd64/usr/local/lib/ruby/gems/3.0/extensions/x86_64-openbsd 
 /usr/ports/pobj/ruby-3.0.0/fake-amd64/usr/loca

l/lib/ruby/gems/3.0/extensions/x86_64-openbsd/3.0;
/usr/local/bin/ruby --disable=gems -C "."  -I./tool -rdownloader -answ  
-e 'gem, ver = *$F'  -e 'next if !ver or /^#/=~gem'  -e 'old = 
Dir.glob("gems/#{gem}-*.g
em")'  -e 'gem = "#{gem}-#{ver}.gem"'  -e 
'Downloader::RubyGems.download(gem, "gems", nil) and'  -e 
'(old.delete("gems/#{gem}"); !old.empty?) and'  -e 'File.unl
ink(*old) and'  -e 'FileUtils.rm_rf(old.map{'"|n|"'n.chomp(".gem")})'  
gems/bundled_gems

Traceback (most recent call last):
-e:in `require': cannot load such file -- downloader (LoadError)
*** Error 1 in /usr/ports/pobj/ruby-3.0.0/ruby-3.0.0 (Makefile:2008 
'update-gems')
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:3010 
'/usr/ports/pobj/ruby-3.0.0/fake-amd64/.fake_done': @cd 
/usr/ports/pobj/ruby...)
*** Error 2 in /usr/ports/mystuff/lang/ruby/3.0 
(/usr/ports/infrastructure/mk/bsd.port.mk:2584 'fake': @lock=ruby-3.0.0; 
 export _LOCKS_HELD...)



Even after installing globally the gem downloader, any advice on how to 
proceed?



Greetings

El 2020-12-25 11:32, Jeremy Evans escribió:

Here's a port for the recently released Ruby 3.0.0.

Release notes at:
http://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/

Tested on amd64.  OKs to import?

Thanks,
Jeremy


--
Dios, gracias por tu amor infinito.
--
  Vladimir Támara Patiño.  http://vtamara.pasosdeJesus.org/
  http://www.pasosdejesus.org/dominio_publico_colombia.html



Re: Ruby 2.6.0

2018-12-26 Thread vtamara

Thank you!

IMHO it is necessary to change in the file pkg/MESSAGE-main

 ln -sf ${PREFIX}/bin/bundle26 ${PREFIX}/bin/gem
 ln -sf ${PREFIX}/bin/bundler26 ${PREFIX}/bin/gem

for

 ln -sf ${PREFIX}/bin/bundle26 ${PREFIX}/bin/bundle
 ln -sf ${PREFIX}/bin/bundler26 ${PREFIX}/bin/bundler



Happy christmas.
Blessings.



El 2018-12-25 11:34, Jeremy Evans escribió:

Ruby 2.6.0 was released today.  Release announcement is at
https://www.ruby-lang.org/en/news/2018/12/25/ruby-2-6-0-released/

Some highlights:

* Significant performance improvements
* JIT Compiler
* Endless Ranges
* Function Composition Operators for Procs
* One-shot coverage
* Bundler now included

Tested on amd64, for about 9 months starting with the first preview
release. OK to import?

Thanks,
Jeremy


--
Dios, gracias por tu amor infinito.
--
  Vladimir Támara Patiño.  http://vtamara.pasosdeJesus.org/
  http://www.pasosdejesus.org/dominio_publico_colombia.html



Re: Upcoming Ruby Plans

2017-10-12 Thread vtamara
In general I think these are good plans. I use to develop applications 
on Ruby on Rails, and I try to keep always with the latest version of 
the gems (since I use bundler I don't use the gems packed for OpenBSD) 
So these are good plans for me.


Besides that, and thanking your hard work maintaining recent Ruby on 
OpenBSD, I would like to ask you:

 - How to use chroot with unicorn ?

I have not been able to find documentation about it, except notes in 
changelogs.


Again, thanks a lot.

Blessings.


El 2017-10-10 22:49, Jeremy Evans escribió:

tl;dr:

* Make ruby 2.4 default ruby version
* Remove ruby 1.8, 2.1, 2.2
* Remove ruby-do_* and ruby-swift-db-*

This message may be a little long, but if you are interested in ruby on
OpenBSD, I'd like to get some feedback.  I plan on preparing for these
changes over the next few weeks, and commiting them during p2k17.

Now that ruby 2.4.2 has been released, I plan to switch the default 
ruby
version in the ports tree from 2.3 to 2.4.  I'll be doing bulk builds 
of

all ruby ports before and after switching to hopefully catch all the
necessary bumps.

In late August I worked on getting the remaining ports that depended on
ruby 1.8 working on a modern version of ruby, and getting OKs to remove
a couple ports that couldn't be upgraded and were no longer needed
(gonzui and puppet-dashboard).  There shouldn't be any remaining ports
that depend on lang/ruby/1.8, other than some old ruby libraries:

* databases/ruby-bdb (dependency of gonzui)
* devel/ruby-gems (included in ruby 1.9+)
* devel/ruby-rake (included in ruby 1.9+)

So I plan on removing these ports and then removing ruby 1.8.

Upstream support for ruby 2.1 was dropped completely in March, so I 
plan

on also removing ruby 2.1 per our usual ruby support policy.

When I first proposed our current ruby support policy in August 2015,
there was a greater need to support older ruby versions.  Since then,
the last couple ruby versions have had fewer backwards incompatible
changes, so there is less reason to continue to supporting old 
versions.
Plus, honestly I don't want to backport security patches to versions 
not

supported upstream.

So, with that in mind I'd like to update our ruby support policy to the
following:

1) All upstream versions in normal maintenance phase are supported, 
with

   C extensions built for each version.
2) Once an upstream version enters security maintenance phase, it
   remains in the ports tree, but C extensions are no longer built for
   it.
3) 6 months after the upstream version enters security maintenance
   phase, it is removed from the ports tree.

Currently, this would have the effect of also removing ruby 2.2, since
it has been over 6 months since ruby 2.2 entered security maintenance
phase (which happened on March 28, 2017 with the release of ruby 
2.2.7).


There are currently a couple of ruby ports (ruby-augeas and
ruby-libvirt) that are built for ruby 2.2 and not ruby 2.3, those will
need to be dealt with before ruby 2.2 can be removed.

There are quite a few ruby database driver ports in the tree that are 
no

longer needed:

* ruby-data_objects
* ruby-do_mysql
* ruby-do_postgres
* ruby-do_sqlite3
* ruby-swift-db-mysql
* ruby-swift-db-postgres
* ruby-swift-db-sqlite3

These ports are all dead upstream.  They used to be usable with
databases/ruby-sequel, but support for them was dropped in a recent
Sequel version, and there is nothing in the tree that uses them.  The
data_objects and do_* ports were used by DataMapper and were reasonably
popular at one point, but pretty much nothing in the ruby ecosystem
still uses DataMapper anymore.  The swift-db-* ports were never popular
or widely used.  I plan on removing these ports as well.

There are a number of pure ruby gem ports in the tree that are not
dependencies of anything else and have not been updated in many years.
I would like to remove some of these ports as they do not add value.  I
don't have a list of such ports yet, this is probably something I'll
research at p2k17.

I appreciate any thoughts or comments on these changes.

Thanks,
Jeremy


--
--
Dios, gracias por tu amor infinito.
--
  Vladimir Támara Patiño.  http://vtamara.pasosdeJesus.org/
  http://www.pasosdejesus.org/dominio_publico_colombia.html



Problem with abiword and spanish locale

2015-05-30 Thread vtamara

In OpenBSD 5.6, 5.7 and current when I run:

LANG=C abiword

it works, but when I run:

LANG=es.UTF-8 abiword

Finishes with Abort trap (core dumped).





Re: Problem with abiword and spanish locale

2015-05-30 Thread vtamara


Thanks for answering, no it happens the same.

Checking with gdb I see problem at:
#6  0x08515e0b551b in EV_UnixMenu::synthesizeMenu ()
   from /usr/local/lib/libabiword-3.0.so.0.0

Requires recompiling abiword with -g to check in detail.


El 2015-05-30 16:23, Dmitrij D. Czarkoff escribió:

vtamara said:

In OpenBSD 5.6, 5.7 and current when I run:

LANG=C abiword

it works, but when I run:

LANG=es.UTF-8 abiword

Finishes with Abort trap (core dumped).


Try with some real locale, eg. es_ES.UTF-8.




Re: Stop building rubinius (rbx-*) ports

2014-09-30 Thread vtamara
First thank you for your work with ruby on OpenBSD, I'm doing some 
projects on RoR with it.


I have not tested much rubinius --just I see that some of my projects 
compile with rbx on travis-ci.


However I notice:
* Recent rbx supports mri 2.1  
(http://rubini.us/doc/en/guides/migrating-from-mri-to-rubinius/)
* There are some good results in benchmarks for rbx compared to mri and 
even jruby -- 
http://miguelcamba.com/blog/2013/10/05/benchmarking-the-ruby-2-dot-1-and-rubinius-2-dot-0/


Since possibly you have more experience on this, do you think there is 
noticiable difference

for a Rails application when used with rbx over mri ?

If that is the case I would like to test the ports *-rbx, for the 
projects I have I think I would test

at least postgresql and bcrypt.

Again thank you.



El 2014-09-29 18:16, Jeremy Evans escribió:

Since we removed building of ports for ruby 1.8 and 1.9, it doesn't
make sense to keep building packages for rubinius (rbx-*), 
considering

that both ruby 1.8 and 1.9 are probably used more than rubinius.  So
this removes the building of rbx packages.

While here, clean up some other issues:

* For ruby gems with C extensions, always use a specific FLAVOR in 
the

  category Makefile.

* Unlink devel/ruby-fastthread, as it is a no-op on ruby 1.9+, and it
  only existed because it was a dependency of www/ruby-mongrel, 
removed
  a few days ago.  fastthread will be removed after this is 
committed.


* Add back devel/ruby-prof, temporarily unlinked.

* Build pure ruby gems with the default ruby version, instead of
  specifying an older ruby version (hiera, hiera-file, gir_ffi)

I plan on committing this in a couple days unless I hear objections.

Thanks,
Jeremy

Index: databases/Makefile
===
RCS file: /cvs/ports/databases/Makefile,v
retrieving revision 1.277
diff -u -p -r1.277 Makefile
--- databases/Makefile  27 Sep 2014 16:31:40 -  1.277
+++ databases/Makefile  28 Sep 2014 18:15:08 -
@@ -193,21 +193,17 @@
  SUBDIR += riak
  SUBDIR += ruby-amalgalite,ruby20
  SUBDIR += ruby-amalgalite,ruby21
- SUBDIR += ruby-bdb
+ SUBDIR += ruby-bdb,ruby20
  SUBDIR += ruby-couchrest
- SUBDIR += ruby-data_objects,rbx
- SUBDIR += ruby-data_objects,ruby20
- SUBDIR += ruby-do_mysql,rbx
+ SUBDIR += ruby-data_objects
  SUBDIR += ruby-do_mysql,ruby20
  SUBDIR += ruby-do_mysql,ruby21
- SUBDIR += ruby-do_postgres,rbx
  SUBDIR += ruby-do_postgres,ruby20
  SUBDIR += ruby-do_postgres,ruby21
- SUBDIR += ruby-do_sqlite3,rbx
  SUBDIR += ruby-do_sqlite3,ruby20
  SUBDIR += ruby-do_sqlite3,ruby21
- SUBDIR += ruby-hiera,ruby20
- SUBDIR += ruby-hiera-file,ruby20
+ SUBDIR += ruby-hiera
+ SUBDIR += ruby-hiera-file
  SUBDIR += ruby-jdbc-h2
  SUBDIR += ruby-jdbc-mysql
  SUBDIR += ruby-jdbc-postgres
@@ -215,12 +211,10 @@
  SUBDIR += ruby-kirbybase
  SUBDIR += ruby-ldap,ruby20
  SUBDIR += ruby-ldap,ruby21
- SUBDIR += ruby-mysql,rbx
  SUBDIR += ruby-mysql,ruby20
  SUBDIR += ruby-mysql,ruby21
  SUBDIR += ruby-mysql2,ruby20
  SUBDIR += ruby-mysql2,ruby21
- SUBDIR += ruby-pg,rbx
  SUBDIR += ruby-pg,ruby20
  SUBDIR += ruby-pg,ruby21
  SUBDIR += ruby-redis
@@ -229,7 +223,6 @@
  SUBDIR += ruby-sequel
  SUBDIR += ruby-sequel_pg,ruby20
  SUBDIR += ruby-sequel_pg,ruby21
- SUBDIR += ruby-sqlite3,rbx
  SUBDIR += ruby-sqlite3,ruby20
  SUBDIR += ruby-sqlite3,ruby21
  SUBDIR += ruby-swift
@@ -239,7 +232,6 @@
  SUBDIR += ruby-swift-db-postgres,ruby21
  SUBDIR += ruby-swift-db-sqlite3,ruby20
  SUBDIR += ruby-swift-db-sqlite3,ruby21
- SUBDIR += ruby-tiny_tds,rbx
  SUBDIR += ruby-tiny_tds,ruby20
  SUBDIR += ruby-tiny_tds,ruby21
  SUBDIR += ruby-validatable
Index: devel/Makefile
===
RCS file: /cvs/ports/devel/Makefile,v
retrieving revision 1.1255
diff -u -p -r1.1255 Makefile
--- devel/Makefile  27 Sep 2014 16:31:40 -  1.1255
+++ devel/Makefile  28 Sep 2014 18:22:50 -
@@ -1308,7 +1308,6 @@
  SUBDIR += ruby-deep_merge
  SUBDIR += ruby-diff-lcs
  SUBDIR += ruby-extlib
- SUBDIR += ruby-fastthread
  SUBDIR += ruby-ffi,ruby20
  SUBDIR += ruby-ffi,ruby21
  SUBDIR += ruby-ffi-inliner
@@ -1316,8 +1315,7 @@
  SUBDIR += ruby-gem_plugin
  SUBDIR += ruby-gems
  SUBDIR += ruby-gettext
- SUBDIR += ruby-gir_ffi,ruby20
- SUBDIR += ruby-gir_ffi,ruby21
+ SUBDIR += ruby-gir_ffi
  SUBDIR += ruby-git
  SUBDIR += ruby-highline
  SUBDIR += ruby-hoe
@@ -1343,10 +1341,13 @@
  SUBDIR += ruby-ole
  SUBDIR += ruby-open4
  SUBDIR += ruby-polyglot
+ SUBDIR += ruby-prof,ruby20
+ SUBDIR += ruby-prof,ruby21
  SUBDIR += ruby-rake
  SUBDIR += ruby-rake-compiler
  SUBDIR += ruby-rake-remote_task
- SUBDIR +=