Re: errors rebuilding binaries after sysupgrade to 7.5

2024-04-22 Thread Otto Moerbeek
On Mon, Apr 22, 2024 at 10:09:51PM +0100, Steve Fairhead wrote:

> Hi folks,
> 
> (Apologies if this is a dupe. Looks to me like this didn't originally get
> far.)
> 
> Pretty sure this is pilot error, so please be gentle.
> 
> I sysupgraded 3 machines (all different) to 7.5; no problems. I then
> updated installed packages; again no problem.
> 
> Then I updated the source trees:
> 
> cd /usr/src
> cvs -q -d anon...@anoncvs.spacehopper.org:/cvs up -rOPENBSD_7_5 -Pd
> cd /usr/ports
> cvs -q -d anon...@anoncvs.spacehopper.org:/cvs up -rOPENBSD_7_5 -Pd
> 
> I then (following https://man.openbsd.org/release) rebuilt the kernel:
> 
> cd /sys/arch/amd64/compile/GENERIC.MP
> make obj
> make config
> make && make install
> reboot
> 
> Still no problem. Then I started to rebuild the binaries:
> 
> cd /usr/src
> make obj && make build
> 
> ... but eventually ran into shedloads of errors until it bailed. The first
> few errors are:
> 
> c++ -O2 -pipe  -fno-ret-protector -mno-retpoline -ffunction-sections
> -fdata-sections -std=c++17 -fvisibility-inlines-hidden -fno-exceptions
> -fno-rtti -fno-semantic-interposition -Wall -Wc++98-compat-extra-semi
> -Wcast-qual  -Wcovered-switch-default -Wctad-maybe-unsupported
> -Wdelete-non-virtual-dtor -Werror=date-time
> -Werror=unguarded-availability-new -Wextra  -Wimplicit-fallthrough
> -Wmisleading-indentation  -Wmissing-field-initializers -Wno-long-long
> -Wno-noexcept-type  -Wno-unused-parameter -Wnon-virtual-dtor
> -Wstring-conversion  -Wsuggest-override -Wwrite-strings -fno-pie  -MD -MP
>  -I/usr/src/gnu/usr.bin/clang/libclangAST/obj/../include/clang/AST
> -I/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/include
> -I/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/llvm/include
> -I/usr/src/gnu/usr.bin/clang/libclangAST/../include
> -I/usr/src/gnu/usr.bin/clang/libclangAST/obj
> -I/usr/src/gnu/usr.bin/clang/libclangAST/obj/../include -DNDEBUG
> -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS  -D__STDC_FORMAT_MACROS -c
> /usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp
> -o ByteCodeExprGen.o
> /usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:119:18:
> error: no member named 'emitCast' in
> 'clang::interp::ByteCodeExprGen'
> return this->emitCast(*FromT, *ToT, CE);
>  ^
> /usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:1428:16:
> note: in instantiation of member function
> 'clang::interp::ByteCodeExprGen::VisitCastExpr'
> requested here
> template class ByteCodeExprGen;
>^
> /usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:204:26:
> error: no member named 'emitRem' in
> 'clang::interp::ByteCodeExprGen'
> return Discard(this->emitRem(*T, BO));
>  ^
> /usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:1428:16:
> note: in instantiation of member function
> 'clang::interp::ByteCodeExprGen::VisitBinaryOperator'
> requested here
> template class ByteCodeExprGen;
>^
> 
> What did I do wrong?

What you normally do in these cases of build errors:

- Make sure that you do not have sticky tags in your tree (use -A with cvs up)
- Double check that the cvs update did not produce a report line on
any file
- Clean your object dir: rm -rf /usr/obj/*

Then try again.

-Otto
> 
> Thanks,
> 
> Steve
> 
> 
> 
> Virus-free.www.avg.com
> 
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>



Getting "Boot error" after replacing a disk in softraid

2024-04-22 Thread iio7
I have a softraid mirror setup with two old spinning disks. I have detached one 
of the disks from the mirror and attached a new SSD. I then wanted to rebuild 
the mirror, using one old spinning drive and the new SSD, and then afterwards, 
remove the old spinning drive and replace with yet another SSD, ending up with 
a mirror of two new SSDs.

After I attached the new SSD to the box, I did:

  fdisk -iy sd1 (the new disk)

Then I cloned the layout of the old drive onto the new:

  disklabel sd0 > layout
  disklabel -R sd1 layout

Then I used installboot:

  installboot sd1

And started rebuilding the mirror:

  bioctl -R /dev/sda1 sd2 (sd2 being the RAID device)

This worked fine and the mirror is up.

However, when I now dettach the old drive and boot from only the new SSD, I get 
"Boot error".

What am I missing?



cdce issues with upgrade from OpenBSD 7.4 to 7.5

2024-04-22 Thread Joseph Olatt


Hello.

I am seeing a possible issue with the cdce driver since I upgraded from
7.4 to 7.5. I was using a u-blox modem connected via a PCIe-USB board
that worked under OpenBSD 7.4. See following link for pertinent info:

  https://www.eskimo.com/~joji/cdce/obsd74 

Once I upgraded to 7.5, the board is being detected. However, network
access (ping, dns resolution, etc. is hanging). I ran tcpdump on the
cdce0 interface and I see, for example, queries going out to a DNS
server and responses coming back. However, "host " and "ping
" hangs. See for more info:

  https://www.eskimo.com/~joji/cdce/obsd75


I'm reaching out to see if there are others using the cdce interface
that are seeing issues with the cdce interface after upgrade.

Thank you.
joseph



Re: errors rebuilding binaries after sysupgrade to 7.5

2024-04-22 Thread Jose Maldonado




El 22/4/24 a las 17:09, Steve Fairhead escribió:

Hi folks,

(Apologies if this is a dupe. Looks to me like this didn't originally get
far.)

Pretty sure this is pilot error, so please be gentle.

I sysupgraded 3 machines (all different) to 7.5; no problems. I then
updated installed packages; again no problem.

Then I updated the source trees:

cd /usr/src
cvs -q -d anon...@anoncvs.spacehopper.org:/cvs up -rOPENBSD_7_5 -Pd
cd /usr/ports
cvs -q -d anon...@anoncvs.spacehopper.org:/cvs up -rOPENBSD_7_5 -Pd

I then (following https://man.openbsd.org/release) rebuilt the kernel:

cd /sys/arch/amd64/compile/GENERIC.MP
make obj
make config
make && make install
reboot

Still no problem. Then I started to rebuild the binaries:

cd /usr/src
make obj && make build

... but eventually ran into shedloads of errors until it bailed. The first
few errors are:

c++ -O2 -pipe  -fno-ret-protector -mno-retpoline -ffunction-sections
-fdata-sections -std=c++17 -fvisibility-inlines-hidden -fno-exceptions
-fno-rtti -fno-semantic-interposition -Wall -Wc++98-compat-extra-semi
-Wcast-qual  -Wcovered-switch-default -Wctad-maybe-unsupported
-Wdelete-non-virtual-dtor -Werror=date-time
-Werror=unguarded-availability-new -Wextra  -Wimplicit-fallthrough
-Wmisleading-indentation  -Wmissing-field-initializers -Wno-long-long
-Wno-noexcept-type  -Wno-unused-parameter -Wnon-virtual-dtor
-Wstring-conversion  -Wsuggest-override -Wwrite-strings -fno-pie  -MD -MP
  -I/usr/src/gnu/usr.bin/clang/libclangAST/obj/../include/clang/AST
-I/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/include
-I/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/llvm/include
-I/usr/src/gnu/usr.bin/clang/libclangAST/../include
-I/usr/src/gnu/usr.bin/clang/libclangAST/obj
-I/usr/src/gnu/usr.bin/clang/libclangAST/obj/../include -DNDEBUG
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS  -D__STDC_FORMAT_MACROS -c
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp
-o ByteCodeExprGen.o
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:119:18:
error: no member named 'emitCast' in
'clang::interp::ByteCodeExprGen'
 return this->emitCast(*FromT, *ToT, CE);
  ^
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:1428:16:
note: in instantiation of member function
'clang::interp::ByteCodeExprGen::VisitCastExpr'
requested here
template class ByteCodeExprGen;
^
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:204:26:
error: no member named 'emitRem' in
'clang::interp::ByteCodeExprGen'
 return Discard(this->emitRem(*T, BO));
  ^
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:1428:16:
note: in instantiation of member function
'clang::interp::ByteCodeExprGen::VisitBinaryOperator'
requested here
template class ByteCodeExprGen;
^

What did I do wrong?

Thanks,

Steve



Virus-free.www.avg.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>



Do you sysupgrade to 7.5 (all OK here), and then you want to build the 
kernel and the base using the src for 7.5?


For what purpose do you do that?


--
*
Dios en su cielo, todo bien en la Tierra



errors rebuilding binaries after sysupgrade to 7.5

2024-04-22 Thread Steve Fairhead
Hi folks,

(Apologies if this is a dupe. Looks to me like this didn't originally get
far.)

Pretty sure this is pilot error, so please be gentle.

I sysupgraded 3 machines (all different) to 7.5; no problems. I then
updated installed packages; again no problem.

Then I updated the source trees:

cd /usr/src
cvs -q -d anon...@anoncvs.spacehopper.org:/cvs up -rOPENBSD_7_5 -Pd
cd /usr/ports
cvs -q -d anon...@anoncvs.spacehopper.org:/cvs up -rOPENBSD_7_5 -Pd

I then (following https://man.openbsd.org/release) rebuilt the kernel:

cd /sys/arch/amd64/compile/GENERIC.MP
make obj
make config
make && make install
reboot

Still no problem. Then I started to rebuild the binaries:

cd /usr/src
make obj && make build

... but eventually ran into shedloads of errors until it bailed. The first
few errors are:

c++ -O2 -pipe  -fno-ret-protector -mno-retpoline -ffunction-sections
-fdata-sections -std=c++17 -fvisibility-inlines-hidden -fno-exceptions
-fno-rtti -fno-semantic-interposition -Wall -Wc++98-compat-extra-semi
-Wcast-qual  -Wcovered-switch-default -Wctad-maybe-unsupported
-Wdelete-non-virtual-dtor -Werror=date-time
-Werror=unguarded-availability-new -Wextra  -Wimplicit-fallthrough
-Wmisleading-indentation  -Wmissing-field-initializers -Wno-long-long
-Wno-noexcept-type  -Wno-unused-parameter -Wnon-virtual-dtor
-Wstring-conversion  -Wsuggest-override -Wwrite-strings -fno-pie  -MD -MP
 -I/usr/src/gnu/usr.bin/clang/libclangAST/obj/../include/clang/AST
-I/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/include
-I/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/llvm/include
-I/usr/src/gnu/usr.bin/clang/libclangAST/../include
-I/usr/src/gnu/usr.bin/clang/libclangAST/obj
-I/usr/src/gnu/usr.bin/clang/libclangAST/obj/../include -DNDEBUG
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS  -D__STDC_FORMAT_MACROS -c
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp
-o ByteCodeExprGen.o
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:119:18:
error: no member named 'emitCast' in
'clang::interp::ByteCodeExprGen'
return this->emitCast(*FromT, *ToT, CE);
     ^
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:1428:16:
note: in instantiation of member function
'clang::interp::ByteCodeExprGen::VisitCastExpr'
requested here
template class ByteCodeExprGen;
   ^
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:204:26:
error: no member named 'emitRem' in
'clang::interp::ByteCodeExprGen'
return Discard(this->emitRem(*T, BO));
     ^
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:1428:16:
note: in instantiation of member function
'clang::interp::ByteCodeExprGen::VisitBinaryOperator'
requested here
template class ByteCodeExprGen;
   ^

What did I do wrong?

Thanks,

Steve



Virus-free.www.avg.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


Re: [PATCH] [cwm] config option to run all apps maximized

2024-04-22 Thread prx
Great, looks like something to completely replace dwm. Thanks

Le 22 avril 2024 16:04:19 GMT+02:00, Slava Voronzoff 
 a écrit :
>Hello, list!
>
>I wrote little patch that add option "maximizeall" to cwmrc (default
>is no) so new windows created maximized.



Re: mongo shell on openBSD

2024-04-22 Thread Carsten Reith
The mongo shell is installed as /usr/local/bin/mongo.

$ mongo
MongoDB shell version v4.4.29
connecting to: 
mongodb://127.0.0.1:27017/?compressors=disabled=mongodb
Implicit session: session { "id" :
UUID("666a27c9-2944-4b54-9d27-10c999dfdaf6") }
MongoDB server version: 4.4.29
Welcome to the MongoDB shell.
For interactive help, type "help".


You can find which files are installed by a package with pkg_info(1) - or the
pkglocatedb(1) port which allows many more search options.

$ pkg_info -L mongodb
Information for inst:mongodb-4.4.29

Files:
/etc/rc.d/mongod
/usr/local/bin/mongo
/usr/local/bin/mongod
/usr/local/bin/mongos
/usr/local/man/man1/mongo.1
/usr/local/man/man1/mongod.1
/usr/local/man/man1/mongos.1
/usr/local/man/man5/mongodb-parameters.5
/usr/local/share/examples/mongodb/mongodb.conf

On Mon, Apr 22, 2024 at 05:40:22PM GMT, Luca Leone wrote:
> hi Everybody :)
> 
> I successfully installed the mongodb-4.4.2 package on the server which run
> openBSD 7.4. It's the db of a node js app.
> Locally on my Mac, I interact with the local mongo db through the mongo shell.
> I'd like to do the same on the server with the installed mongo db BUT there's
> no "mongo shell" package and I could not find any doc explaining how to 
> install
> the mongo shell on openBSD. Is there a way? Or is there an alternative way to
> interact directly with the db?
> 
> Thanks
> Luca



Re: mongo shell on openBSD

2024-04-22 Thread Stuart Henderson
On 2024-04-22, Luca Leone  wrote:
> --51d7aa8ca551402d8b2dd0ebb50142e8
> Content-Type: text/plain
>
> Thanks again Kirill, top!
>
> Typing `$ mongo` in the terminal confirmed you're right of course: it starts 
> the interactive section with mongo db. Before asking here I typed `$ mongosh` 
> which is the command that works locally, but it does not on the server. I 
> guess it depends on the mongo version, locally I have version 7.0.2, on the 
> server version 4.4.2.
>
> Anyway, I need to improve my reading skills, it was all there in the mongo 
> docs! 

MongoDB Shell is a different thing, it's a node.js based program that
has some different features than the basic "mongo" CLI tool.

We don't have a good way to package software written in node (typically
it wants to fetch filea from the internet during build.)


-- 
Please keep replies on the mailing list.



Re: mongo shell on openBSD

2024-04-22 Thread Luca Leone
Thanks again Kirill, top!

Typing `$ mongo` in the terminal confirmed you're right of course: it starts 
the interactive section with mongo db. Before asking here I typed `$ mongosh` 
which is the command that works locally, but it does not on the server. I guess 
it depends on the mongo version, locally I have version 7.0.2, on the server 
version 4.4.2.

Anyway, I need to improve my reading skills, it was all there in the mongo 
docs! 

Thanks also Odhiambo, very useful information.



On Mon, Apr 22, 2024, at 5:54 PM, Kirill A. Korinsky wrote:
> On Mon, 22 Apr 2024 17:40:22 +0200,
> Luca Leone wrote:
> > 
> > I successfully installed the mongodb-4.4.2 package on the server which run 
> > openBSD 7.4. It's the db of a node js app.
> > Locally on my Mac, I interact with the local mongo db through the mongo 
> > shell. I'd like to do the same on the server with the installed mongo db 
> > BUT there's no "mongo shell" package and I could not find any doc 
> > explaining how to install the mongo shell on openBSD. Is there a way? Or is 
> > there an alternative way to interact directly with the db?
> > 
> 
> Base on doc [1] you're looking for binary with name mongo which is part of
> port mongodb version 44 [2]. So, I assume that if you install mongodb,
> you'll have that you're looking for.
> 
> Footnotes:
> [1]  https://www.mongodb.com/docs/v4.4/mongo/
> 
> [2]  
> https://github.com/openbsd/ports/blob/master/databases/mongodb/44/pkg/PLIST
> 
> -- 
> wbr, Kirill
> 
> 


Re: sndioctl not switching device in 7.5 and current

2024-04-22 Thread Alexandre Ratchov
On Mon, Apr 22, 2024 at 01:14:43PM -0300, Thanos Tsouanas wrote:
> Hello,
> 
> I have just sysupgraded from 7.4 to 7.5 on my thinkpad X1C9
> in which I was using an external audio interface (OL DAC by
> JDS Labs), but I cannot get it to work anymore.
> 
> Using sndioctl to change server.device from 0 to 1 gives the
> impression that it worked (no error shown and its output
> indicates success), but as soon as check sndioctl's output
> it's back to server.device=0:
> 
> # sndioctl server.device=1
> server.device=1
> # sndioctl server.device
> server.device=0
> 
> dmesg shows nothing relevant, and I was not able to find any
> error logged under /var/log files.  (Should I be looking
> somewhere else for sndiod/sndioctl error messages?)
> 
> My audio interface is recognized by the 7.5 kernel:
> 
> uaudio0 at uhub1 port 1 configuration 1 interface 3 "JDS Labs Inc JDS
> Labs DAC" rev 1.10/0.01 addr 7
> uaudio0: class v1, full-speed, sync, channels: 0 play, 0 rec, 3 ctls


0 channels seems wrong.  So, you confirm that this device used to work?



sndioctl not switching device in 7.5 and current

2024-04-22 Thread Thanos Tsouanas
Hello,

I have just sysupgraded from 7.4 to 7.5 on my thinkpad X1C9
in which I was using an external audio interface (OL DAC by
JDS Labs), but I cannot get it to work anymore.

Using sndioctl to change server.device from 0 to 1 gives the
impression that it worked (no error shown and its output
indicates success), but as soon as check sndioctl's output
it's back to server.device=0:

# sndioctl server.device=1
server.device=1
# sndioctl server.device
server.device=0

dmesg shows nothing relevant, and I was not able to find any
error logged under /var/log files.  (Should I be looking
somewhere else for sndiod/sndioctl error messages?)

My audio interface is recognized by the 7.5 kernel:

uaudio0 at uhub1 port 1 configuration 1 interface 3 "JDS Labs Inc JDS
Labs DAC" rev 1.10/0.01 addr 7
uaudio0: class v1, full-speed, sync, channels: 0 play, 0 rec, 3 ctls
audio1 at uaudio0

Same problem under the latest current snapshot.
Also, trying a different USB audio interface everything works
fine (Allen & Heath ZED-14).

Any clues what may cause this or how to fix?

Cheers,

--
Thanos Tsouanas
http://www.tsouanas.org/



Re: mongo shell on openBSD

2024-04-22 Thread Odhiambo Washington
On Mon, Apr 22, 2024 at 6:44 PM Luca Leone  wrote:

> hi Everybody :)
>
> I successfully installed the mongodb-4.4.2 package on the server which run
> openBSD 7.4. It's the db of a node js app.
> Locally on my Mac, I interact with the local mongo db through the mongo
> shell. I'd like to do the same on the server with the installed mongo db
> BUT there's no "mongo shell" package and I could not find any doc
> explaining how to install the mongo shell on openBSD. Is there a way? Or is
> there an alternative way to interact directly with the db?
>
> Thanks
> Luca
>

Maybe you have to compile it manually?

openbsd$ pkg_info -Q mongo
mongo-tools-4.3.2
mongodb-3.6.23p2
mongodb-4.4.29
py3-mongo-4.6.3
openbsd$ pkg_info mongo-tools-4.3.2
Information for
https://cdn.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/mongo-tools-4.3.2.tgz

Comment:
tools for the MongoDB database

Description:
Tools for use with MongoDB:

- bsondump: display BSON files in a human-readable format
- mongoimport: Convert data from JSON, TSV or CSV and insert them
into a collection
- mongoexport: Write an existing collection to CSV or JSON format
- mongodump/mongorestore: Dump MongoDB backups to disk in .BSON format,
or restore them to a live database
- mongostat: Monitor live MongoDB servers, replica sets, or sharded clusters
- mongofiles: Read, write, delete, or update files in GridFS
- mongotop: Monitor read/write activity on a mongo server
- mongoreplay: Capture, observe, and replay traffic for MongoDB

Maintainer: The OpenBSD ports mailing-list 

WWW: https://www.mongodb.com/docs/database-tools/



-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
 In an Internet failure case, the #1 suspect is a constant: DNS.
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
[How to ask smart questions:
http://www.catb.org/~esr/faqs/smart-questions.html]


Re: mongo shell on openBSD

2024-04-22 Thread Kirill A . Korinsky
On Mon, 22 Apr 2024 17:40:22 +0200,
Luca Leone wrote:
> 
> I successfully installed the mongodb-4.4.2 package on the server which run 
> openBSD 7.4. It's the db of a node js app.
> Locally on my Mac, I interact with the local mongo db through the mongo 
> shell. I'd like to do the same on the server with the installed mongo db BUT 
> there's no "mongo shell" package and I could not find any doc explaining how 
> to install the mongo shell on openBSD. Is there a way? Or is there an 
> alternative way to interact directly with the db?
> 

Base on doc [1] you're looking for binary with name mongo which is part of
port mongodb version 44 [2]. So, I assume that if you install mongodb,
you'll have that you're looking for.

Footnotes:
[1]  https://www.mongodb.com/docs/v4.4/mongo/

[2]  https://github.com/openbsd/ports/blob/master/databases/mongodb/44/pkg/PLIST

-- 
wbr, Kirill



mongo shell on openBSD

2024-04-22 Thread Luca Leone
hi Everybody :)

I successfully installed the mongodb-4.4.2 package on the server which run 
openBSD 7.4. It's the db of a node js app.
Locally on my Mac, I interact with the local mongo db through the mongo shell. 
I'd like to do the same on the server with the installed mongo db BUT there's 
no "mongo shell" package and I could not find any doc explaining how to install 
the mongo shell on openBSD. Is there a way? Or is there an alternative way to 
interact directly with the db?

Thanks
Luca

[PATCH] [cwm] config option to run all apps maximized

2024-04-22 Thread Slava Voronzoff
Hello, list!

I wrote little patch that add option "maximizeall" to cwmrc (default
is no) so new windows created maximized.


cwm.maximize_patch
Description: Binary data


Re: Guidance for booting NanoPi R6S?

2024-04-22 Thread Dan Jones
On Sun Apr 21, 2024 at 9:21 PM MDT, Stephan Somogyi wrote:
> On Sun, Apr 21, 2024 at 9:20 AM Mihai Dragan 
> wrote:
>
>
> > You need to follow a few additional steps to get R6S image to boot after
> > flashing the initial image:
> > On an OpenBSD desktop system, install "u-boot-rk3588" package. The one I
> > tested with is u-boot-rk3588-2024.01rc3p1.
> > Insert the sdcard you flashed with the install/miniroot image.
> > Copy the uboot binary for your specific board on the sdcard as described
> > in the "For systems based on Rockchip RK356x SoCs:" of this page
> > https://ftp.openbsd.org/pub/OpenBSD/7.5/arm64/INSTALL.arm64
> >
> > For the R6S this should be:
> > dd if=/usr/local/share/u-boot/nanopi-r6s-rk3588s/u-boot-rockchip.bin
> > of=/dev/sdXc seek=64
> >
> > Then plug the sdcard back in the board, connect a usb-to-serial adapter at
> > 115200 baud rate (this differs from the default rockchip settings) and
> > power the board on.
> > Everything's standard from here, follow the instructions on the arm64
> > installation page.
> >
> > Hope this helps
> >
>
> Yes, thanks, that was very helpful.
>
> I got some oob help as well and am in the process of debugging some of the
> hardware support.
>
> In case anyone else is interested, the kernel (both 7.5-stable and
> -current) hangs during boot at ohci; disabling that allows boot and install
> to proceed. I'm seeing unexpectedly poor performance with dwqe, and neither
> of the rge interfaces seems able to acquire a dhcp lease. I also am seeing
> unexpectedly low performance compared with an rpi4 in the LibreSSL speed
> test; AES, SHA1, and SHA2 are only ~clock-speed faster, and not Using ARMv8
> ISA faster.
>
> Thanks again for the reply.
>
> s.


If I remember correctly, both the NanoPi R5 and R6 require that you manually
set the MAC address for the rge interface via 'ifconfig lladdr etheraddr'.  
This is at least what I needed to do on my R5S.
 
Best, 

Dan



Re: Guidance for booting NanoPi R6S?

2024-04-22 Thread Mihai Dragan
On 04/22, Dan Jones wrote:
> On Sun Apr 21, 2024 at 9:21 PM MDT, Stephan Somogyi wrote:
> > On Sun, Apr 21, 2024 at 9:20 AM Mihai Dragan 
> > wrote:
> >
> >
> > > You need to follow a few additional steps to get R6S image to boot after
> > > flashing the initial image:
> > > On an OpenBSD desktop system, install "u-boot-rk3588" package. The one I
> > > tested with is u-boot-rk3588-2024.01rc3p1.
> > > Insert the sdcard you flashed with the install/miniroot image.
> > > Copy the uboot binary for your specific board on the sdcard as described
> > > in the "For systems based on Rockchip RK356x SoCs:" of this page
> > > https://ftp.openbsd.org/pub/OpenBSD/7.5/arm64/INSTALL.arm64
> > >
> > > For the R6S this should be:
> > > dd if=/usr/local/share/u-boot/nanopi-r6s-rk3588s/u-boot-rockchip.bin
> > > of=/dev/sdXc seek=64
> > >
> > > Then plug the sdcard back in the board, connect a usb-to-serial adapter at
> > > 115200 baud rate (this differs from the default rockchip settings) and
> > > power the board on.
> > > Everything's standard from here, follow the instructions on the arm64
> > > installation page.
> > >
> > > Hope this helps
> > >
> >
> > Yes, thanks, that was very helpful.
> >
> > I got some oob help as well and am in the process of debugging some of the
> > hardware support.
> >
> > In case anyone else is interested, the kernel (both 7.5-stable and
> > -current) hangs during boot at ohci; disabling that allows boot and install
> > to proceed. I'm seeing unexpectedly poor performance with dwqe, and neither
> > of the rge interfaces seems able to acquire a dhcp lease. I also am seeing
> > unexpectedly low performance compared with an rpi4 in the LibreSSL speed
> > test; AES, SHA1, and SHA2 are only ~clock-speed faster, and not Using ARMv8
> > ISA faster.
> >
> > Thanks again for the reply.
> >
> > s.
> 
> 
> If I remember correctly, both the NanoPi R5 and R6 require that you manually
> set the MAC address for the rge interface via 'ifconfig lladdr etheraddr'.  
> This is at least what I needed to do on my R5S.
>  
> Best, 
> 
> Dan

That's right, the lladdr of both rge0 and rge1 is 0 on boot. I think
The dhcp servers don't like that. To the same effect, I added this to
my /etc/hostname.rgeX:
lladdr random
inet autoconf
Alternatively you can give it a fixed MAC address so you'll
get the same IP lease most of the time (e.g. 'lladdr 44:ef:76:9c:03:3a')

The low performance might be because of the 816 MHz the CPUs run at.
The frequency is fixed and I haven't found a way to change it.
'apm' returns
Battery state: unknown, 0% remaining, unknown life estimate
AC adapter state: not known
Performance adjustment mode: invalid (816 MHz)

Starting apmd with "-H" flag doesn't change anything.
Probably the platform support is in early stages.
I asked about this on a...@openbsd.org.

Thanks,
M

-- 



Re: [Raspberry Pi 4] Installing OpenBSD 7.5 with difficulty

2024-04-22 Thread Douglas Silva
I've upgraded from 7.4 to 7.5 and had no issues with the Raspberry Pi 4 model 
B. Ethernet works for me - during the installation and afterwards. I use it as 
a home server.

To connect to it, I use the serial console. The root storage device is a USB 
(v3.X) stick, and it's encrypted with a keydisk. No SD card (it broke some time 
ago).



Re: openvpn with ed25519 ca cert

2024-04-22 Thread Theo Buehler
On Sun, Apr 21, 2024 at 02:34:48PM +0200, Peter Wens wrote:
> Hi,
> 
> Does libressl 3.9.0 on 7.5 lacks support for ed25519 certs
> using tls 1.3?

Yes, it's not currently supported. Adding support for that isn't hard,
but hasn't been done.