Re: vmm computer freeze

2024-06-21 Thread Dave Voutila


Justin Yates Fletcher  writes:

> Hi all,
>
> Occasionally when I start a VM (Alpine v3.19) the host computer freezes
> solid and requires a hard power off.
>
> It is not consistent but it does seem more stable when I have fewer
> things running on the computer. If I have a desktop running, web
> browser, video player, editor, etc. then starting a VM seems to cause
> the freeze more often... I can't say that with certainty though but
> maybe I am running into some kernel limit?
>
> The computer is running -current but the issue has been there since I
> first installed OpenBSD on the computer with the 7.5 release.
>
> Any input on how to debug this? Or other pointers?

The freeze could be the kernel panicking. If you're running X at the
time, you will most likely not see the panic message or ddb prompt.

If you're able to reproduce this consistently, try switching to another
console (e.g. alt-ctrl-F1) and starting the vm there. That way if
there's a panic you should see it and we can better dig into the issue.

>
> dmesg, vm.conf, and sysctl.conf attached.
>

I didn't see anything abnormal in dmesg or vm.conf. I'm not familiar
with the sysv_shmem kernel stuff, so no idea if those settings make
sense.

-dv



Re: epub reader

2024-06-21 Thread Tomasz Rola
On Wed, Jun 19, 2024 at 06:18:26PM +0200, Dan wrote:
> Hello,
> 
> I'm here asking for an epub ebook reader port as Foliate (almost
> under my XFCE) appears broken from a while and Calibre is not
> exactly a light ebook reader.

I quite often open (i.e. view-open, not edit-open) epubs inside emacs
(from directory view mode, using "v" to view the file) editor, with
nov package installed. This is stated in the file nov.el:

;; nov.el provides a major mode for reading EPUB documents.
;;
;; Features:
;;
;; - Basic navigation (jump to TOC, previous/next chapter)
;; - Remembering and restoring the last read position
;; - Jump to next chapter when scrolling beyond end
;; - Storing and following Org links to EPUB files
;; - Renders EPUB2 (.ncx) and EPUB3 () TOCs
;; - Hyperlinks to internal and external targets
;; - Supports textual and image documents
;; - Info-style history navigation
;; - View source of document files
;; - Metadata display
;; - Image rescaling

Also, if you have pandoc installed (I do), you could do something
like:

pandoc -r epub path-to/The_Exege.epub -w plain | less

Pandoc is a multitool for dealing with all kind of borked situations
involving my e-ink reader, whose software gets, in my opinion,
increasingly fscked. As sign of, probably, developers not eating their
own dogfood, but instead, as workday ends, opening their beer and
android app and enjoing themselves. Rather than reading a damn book
with their own software. So I end up converting each problematic epub
into fb2 format, because this gives me the least problems.

-- 
Regards,
Tomasz Rola

--
** A C programmer asked whether computer had Buddha's nature.  **
** As the answer, master did "rm -rif" on the programmer's home**
** directory. And then the C programmer became enlightened...  **
** **
** Tomasz Rola  mailto:tomasz_r...@bigfoot.com **



installing packages mentioned as dependency in ports package

2024-06-21 Thread Sandeep Gupta
I am trying to compile and build a branch of libreoffice (for collabra
online tools).
The dependencies are numerous  to list out manually. I am using the
dependencies listed in the ports folder : /usr/ports/editors/libreoffice
(downloaded from ftp https://cdn.openbsd.org/pub/OpenBSD/$(uname
-r)/{ports.tar.gz,SHA256.sig}).
Using the command: `make print-build-depends`.

However when I use the output from there to install using pkg_add : `doas
pkg_add jbigkit-2.1p0 javaPathHelper-2.3 metaauto-1.0p4 autoconf-2.52p6
cdparanoia-3.a9.8p5 libdaemon-0.14p1` I get several  can't find messages:
Can't find p5-URI-5.27
Can't find libsodium-1.0.19
Can't find xz-5.4.5

My query is how to install build dependency of a package listed in ports?

Thanks
Sandeep


Re: installing packages mentioned as dependency in ports package

2024-06-21 Thread Stuart Henderson
On 2024-06-21, Sandeep Gupta  wrote:
> --7b80c9061b67819e
> Content-Type: text/plain; charset="UTF-8"
>
> I am trying to compile and build a branch of libreoffice (for collabra
> online tools).
> The dependencies are numerous  to list out manually. I am using the
> dependencies listed in the ports folder : /usr/ports/editors/libreoffice
> (downloaded from ftp https://cdn.openbsd.org/pub/OpenBSD/$(uname
> -r)/{ports.tar.gz,SHA256.sig}).
> Using the command: `make print-build-depends`.
>
> However when I use the output from there to install using pkg_add : `doas
> pkg_add jbigkit-2.1p0 javaPathHelper-2.3 metaauto-1.0p4 autoconf-2.52p6
> cdparanoia-3.a9.8p5 libdaemon-0.14p1` I get several  can't find messages:
> Can't find p5-URI-5.27
> Can't find libsodium-1.0.19
> Can't find xz-5.4.5
>
> My query is how to install build dependency of a package listed in ports?

make sure that your ports tree is up to date for whichever version of
OpenBSD that you're using (cvs head for -current, OPENBSD_7_5 for
7.5, etc - you can use a downloaded ports.tar.gz to start from if
you must, but then do the relevant cvs update), then:

make prepare FETCH_PACKAGES=



Re: installing packages mentioned as dependency in ports package

2024-06-21 Thread Thomas L.
On Fri, 21 Jun 2024 20:16:57 +0530
Sandeep Gupta  wrote:
> My query is how to install build dependency of a package listed in
> ports?

i have FETCH_PACKAGES=-Dsnap in my /etc/mk.conf so that for all dependencies
pkg_add -Dsnap is tried first (see bsd.port.mk(5) for details). you can also
pass that as argument to make(1).



Working towards numpy 2.0 support

2024-06-21 Thread Ronald Dahlgren
I've made incremental progress in getting numpy 2.0 to build and install on
current. Today, older versions must be used as the latest fails during
installation with a compilation problem.

I'm happy to report the first of those dependent items has been updated -
x86-simd-sort. Pull request 157 (
https://github.com/intel/x86-simd-sort/pull/157) adds conditional
compilation flags for our type sizes as well as being behind on Clang major
versions.

If anyone else is working on numpy 2.0 support or has already gone down
this path, I would be happy to coordinate to fix all the upstream
dependencies.

Note that even with this fix in place, numpy still fails. I will report
back when more progress is made.

Respectfully,
Ron


How are default config files populated?

2024-06-21 Thread Jo MacMahon
Hello,

I recently needed to restore the file `/var/unbound/etc/unbound.conf`, which is 
in the base system, to its original version, and assumed I could get it out of 
one of the file sets, most likely `base75.tgz`. However the file is not present 
in base75.tgz and none of the other sets look like they ought to have it in. In 
the end I found the file I needed on GitHub, but I was curious as to how it 
gets put in my system if it's not in a file set.

I noticed the same with `/etc/ssh/sshd_config`.

Are they generated after install time somehow? Or on first run of the service? 
I don't think I had run unbound(8) before.

Jo



Re: installing packages mentioned as dependency in ports package

2024-06-21 Thread Sandeep Gupta
This is working but only partially.  The OS is on the snapshot branch
(sysupgrade -s) .  I checkout out the current branch for ports, configured
the prerequisites, then make prepare FETCH_PACKAGES=-Dsnap
```
make prepare FETCH_PACKAGES=-Dsnap
===> libreoffice-24.2.3.2v0 depends on: kio-* - not found
===>  Verifying install for kio-* in devel/kf5/kio
===>  Looking for kio-5.116.0.tgz in $PKG_PATH - Can't install
gstreamer1-plugins-bad-1.24.4 because of libraries
|library nettle.7.3 not found
| /usr/local/lib/libnettle.so.7.2 (libnettle-3.9.1): minor is too small
Direct dependencies for gstreamer1-plugins-bad-1.24.4 resolve to
soundtouch-2.3.3 libbs2b-3.1.0p5 opus-1.5.2 lcms2-2.16p0 librsvg-2.58.1
gstreamer1-plugins-base-1.24.4 json-glib-1.8.0 libnettle-3.9.1
libass-0.17.1p0
```
I am not sure which branch of ports CVS to use or redo sysupgrade -s?

On Sat, Jun 22, 2024 at 12:19 AM Thomas L.  wrote:

> On Fri, 21 Jun 2024 20:16:57 +0530
> Sandeep Gupta  wrote:
> > My query is how to install build dependency of a package listed in
> > ports?
>
> i have FETCH_PACKAGES=-Dsnap in my /etc/mk.conf so that for all
> dependencies
> pkg_add -Dsnap is tried first (see bsd.port.mk(5) for details). you can
> also
> pass that as argument to make(1).
>


Re: How are default config files populated?

2024-06-21 Thread Otto Moerbeek
On Fri, Jun 21, 2024 at 11:43:14PM +0100, Jo MacMahon wrote:

> Hello,
> 
> I recently needed to restore the file `/var/unbound/etc/unbound.conf`, which 
> is in the base system, to its original version, and assumed I could get it 
> out of one of the file sets, most likely `base75.tgz`. However the file is 
> not present in base75.tgz and none of the other sets look like they ought to 
> have it in. In the end I found the file I needed on GitHub, but I was curious 
> as to how it gets put in my system if it's not in a file set.
> 
> I noticed the same with `/etc/ssh/sshd_config`.
> 
> Are they generated after install time somehow? Or on first run of the 
> service? I don't think I had run unbound(8) before.
> 
> Jo
> 

Once upon a time the config files were in a separate set. These days
they are in the base tarball, packaged in ./var/sysmerge/etc.tgz. So
on installed systems /var/sysmerge has tarballs with the originals.

See sysmerge(8)

-Otto



Re: How are default config files populated?

2024-06-21 Thread Crystal Kolipe
On Fri, Jun 21, 2024 at 11:43:14PM +0100, Jo MacMahon wrote:
> I recently needed to restore the file `/var/unbound/etc/unbound.conf`, which
> is in the base system, to its original version, and assumed I could get it
> out of one of the file sets, most likely `base75.tgz`. However the file is
> not present in base75.tgz and none of the other sets look like they ought to
> have it in.

Within the source tree, the unbound.conf file lives in /etc.  So, for example,
if you browse cvsweb or unpack the source archives, you'll find it there.

For the binary install packages, this file is moved [1] to the location you
are familiar with, /var/unbound/etc/, and it's actually contained in the base
set.

The reason you didn't easily find it is because it's within the file
/var/sysmerge/etc.tgz which is itself part of the base set.

> I noticed the same with `/etc/ssh/sshd_config`.

This file is also in /var/sysmerge/etc.tgz.

[1] See /usr/src/etc/Makefile for the code that does this.