From nobody Fri Oct 10 13:31:05 2025 X-Original-To: freebsd-pkgbase@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cjnf03HFmz6C2Ws for ; Fri, 10 Oct 2025 13:29:28 +0000 (UTC) (envelope-from md-koch@t-online.de) Received: from mailout09.t-online.de (mailout09.t-online.de [194.25.134.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mailout00.t-online.de", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cjnf00JPHz3Gtl for ; Fri, 10 Oct 2025 13:29:28 +0000 (UTC) (envelope-from md-koch@t-online.de) Authentication-Results: mx1.freebsd.org; none Received: from fwd81.aul.t-online.de (fwd81.aul.t-online.de [10.223.144.107]) by mailout09.t-online.de (Postfix) with SMTP id D9DE3390EB; Fri, 10 Oct 2025 15:29:25 +0200 (CEST) Received: from [192.168.1.3] ([95.223.145.116]) by fwd81.t-online.de with (TLSv1.3:TLS_AES_256_GCM_SHA384 encrypted) esmtp id 1v7DBL-17tzpQ0; Fri, 10 Oct 2025 15:29:15 +0200 Content-Type: multipart/alternative; boundary="------------3X0uU0LR0ha1SBHgQG3P1555" Message-ID: <56d5c9c6-a0e0-4b3f-919e-a5fdd17ac15a@t-online.de> Date: Fri, 10 Oct 2025 15:31:05 +0200 List-Id: Packaging the FreeBSD base system List-Archive: https://lists.freebsd.org/archives/freebsd-pkgbase List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkgbase@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: AW: pkgbase + migrate to FreeBSD15/amd64 To: "lukas.engelhardt@gmx.de" , "FreeBSD-pkgbase@freebsd.org" References: <27d4a7b7-9c85-4fac-b3c4-d1d4e9b303c6@t-online.de> Content-Language: en-US From: Manfred Koch In-Reply-To: X-TOI-EXPURGATEID: 150726::1760102955-35FF8A6C-215D27D8/0/0 CLEAN NORMAL X-TOI-MSGID: ca256ee2-e42a-4777-b11b-54dd8d1aa29a X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:3320, ipnet:194.25.0.0/16, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4cjnf00JPHz3Gtl This is a multi-part message in MIME format. --------------3X0uU0LR0ha1SBHgQG3P1555 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Lukas, I will follow you recommendations and I'm very thankful and reach out to you. Nice day Manfred On 10/10/25 10:56, lukas.engelhardt@gmx.de wrote: > Hi Manfred, > > i got curious and tried it myself in a vm. > > I do not get the same error as you (probably because i am using a root > shell, no doas. > > Here are my markdown notes: > > # pkgbase upgrade on ufs system > Installed vm with uefi, gpt, ufs freebsd 14.3 disc1 > ``` > root@freebsd-ufs:~ # freebsd-version -kru > 14.3-RELEASE > 14.3-RELEASE > 14.3-RELEASE > ``` > > pkgbasify > ``` > fetch > https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua > chmod +x pkgbasify.lua > ./pkgbasify.lua > shutdown -r now > ``` > > check version after pkgbasifying: > ``` > root@freebsd-ufs:~ # freebsd-version -kru > 14.3-RELEASE-p4 > 14.3-RELEASE-p4 > 14.3-RELEASE-p4 > ``` > modify FreeBSD-base.conf > ``` > root@freebsd-ufs:~ # cat /usr/local/etc/pkg/repos/FreeBSD-base.conf > FreeBSD-base: { >   url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_latest", >   mirror_type: "srv", >   signature_type: "fingerprints", >   fingerprints: "/usr/share/keys/pkg", >   enabled: yes > } > ``` > > install vim an tmux, because i like them: > ``` > pkg install vim tmux -y > ``` > > At this stage i shut the vm down and created an snapshot "pkgbasify" > so i could go back in case something goes wrong. > > upgrade like described in mail: > ``` > env ABI="FreeBSD:15:amd64" pkg update -f -r FreeBSD-base > env ABI="FreeBSD:15:amd64" pkg upgrade -r FreeBSD-base > ``` > > when upgrading it tells me, that it will remove pkg, but i go on to > get the error. > > While installing i get "Child process pid=894 terminated abnormally: > Segmentation fault". > trying again: > ``` > root@freebsd-ufs:~ # env ABI="FreeBSD:15:amd64" pkg upgrade -r > FreeBSD-base > ld-elf.so.1: Shared object "libcrypto.so.35" not found, required by "pkg" > ``` > > trying it with pkg-static gets me the segfault too. > > so lets try locking pkg > ``` > pkg-static lock pkg > env ABI="FreeBSD:15:amd64" pkg-static upgrade -r FreeBSD-base > ``` > seems like it worked > > ``` > root@freebsd-ufs:~ # freebsd-version -kru > 15.0-ALPHA5 > 14.3-RELEASE-p4 > 15.0-ALPHA5 > ``` > > so i will try rebooting > > unlock pkg and update packages > ``` > pkg-static unlock pkg > pkg update > pkg upgrade > ``` > > this seems to be working. > > I am happy to hear if that helped you too. > > > Have a great day > > Lukas > ------------------------------------------------------------------------ > *From:* Manfred Koch > *Sent:* Thursday, October 9, 2025 10:16 PM > *To:* Lukas Engelhardt > *Subject:* Re: pkgbase + migrate to FreeBSD15/amd64 > > Hi Lukas, > > I use the ufs filesystem. The pkgbasify has led me to > pkg update -r FreebBSD-base > pkg upgrade -r FreeBSD-base > > Till then all is good. Then the error: > > ld-elf.so.1: Shared object "libutil.so.10" not found required by doas > > I will try with pkg lock pkg. If this doesn't work, > probably a fresh install. > > Thanks > Manfred > > > On 10/9/25 21:25, Lukas Engelhardt wrote: >> Hey, sounds like you are upgrading from 14 to 15, which does not work >> out of the box as far as I know. >> You can lock pkg with 'pkg lock pkg' before upgrading to 15. >> I hope you have created an boot environment before the upgrade (or >> can use the pre pkgbasify boot environment). >> >> Hope that helps. >> >> Lukas >> Am 9. Okt. 2025, um 21:00, Manfred Koch > > schrieb: >> >> Hi, >> >> I am new with pkgbase and have tried with pkgbasify.lua >> to get it. >> pkg update -r FreebBSD-base >> pkg upgrade -r FreeBSD-base >> That performed. >> >> But when I make >> >> |env ABI="FreeBSD:15:amd64" pkg update -f -r FreeBSD-base ||env ABI="FreeBSD:15:amd64" pkg upgrade -r FreeBSD-base| >> >> After pkg update -r FreebBSD-base I get: >> >> ld-elf.so.1: Shared object "libutil.so.10" not found required by doas >> >> >> Any Ideas how one could fix that. >> >> Manfred >> >> >> >> || >> --------------3X0uU0LR0ha1SBHgQG3P1555 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hi Lukas,


I will follow you recommendations and I'm
very thankful and reach out to you.

Nice day
Manfred


On 10/10/25 10:56, lukas.engelhardt@gmx.de wrote:
Hi Manfred,

i got curious and tried it myself in a vm. 

I do not get the same error as you (probably because i am using a root shell, no doas.

Here are my markdown notes:

# pkgbase upgrade on ufs system
Installed vm with uefi, gpt, ufs freebsd 14.3 disc1
```
root@freebsd-ufs:~ # freebsd-version -kru
14.3-RELEASE
14.3-RELEASE
14.3-RELEASE
```

pkgbasify
```
chmod +x pkgbasify.lua
./pkgbasify.lua
shutdown -r now
```

check version after pkgbasifying:
```
root@freebsd-ufs:~ # freebsd-version -kru
14.3-RELEASE-p4
14.3-RELEASE-p4
14.3-RELEASE-p4
```
modify FreeBSD-base.conf
```
root@freebsd-ufs:~ # cat /usr/local/etc/pkg/repos/FreeBSD-base.conf
FreeBSD-base: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
```

install vim an tmux, because i like them:
```
pkg install vim tmux -y
```

At this stage i shut the vm down and created an snapshot "pkgbasify" so i could go back in case something goes wrong.

upgrade like described in mail:
```
env ABI="FreeBSD:15:amd64" pkg update -f -r FreeBSD-base
env ABI="FreeBSD:15:amd64" pkg upgrade -r FreeBSD-base
```

when upgrading it tells me, that it will remove pkg, but i go on to get the error.

While installing i get "Child process pid=894 terminated abnormally: Segmentation fault".
trying again:
```
root@freebsd-ufs:~ # env ABI="FreeBSD:15:amd64" pkg upgrade -r FreeBSD-base
ld-elf.so.1: Shared object "libcrypto.so.35" not found, required by "pkg"
```

trying it with pkg-static gets me the segfault too.

so lets try locking pkg
```
pkg-static lock pkg
env ABI="FreeBSD:15:amd64" pkg-static upgrade -r FreeBSD-base
```
seems like it worked

```
root@freebsd-ufs:~ # freebsd-version -kru
15.0-ALPHA5
14.3-RELEASE-p4
15.0-ALPHA5
```

so i will try rebooting

unlock pkg and update packages
```
pkg-static unlock pkg
pkg update
pkg upgrade
```

this seems to be working.

I am happy to hear if that helped you too.


Have a great day

Lukas

From: Manfred Koch <md-koch@t-online.de>
Sent: Thursday, October 9, 2025 10:16 PM
To: Lukas Engelhardt <lukas.engelhardt@gmx.de>
Subject: Re: pkgbase + migrate to FreeBSD15/amd64
 

Hi Lukas,

I use the ufs filesystem. The pkgbasify has led me to 
pkg update -r FreebBSD-base
pkg upgrade -r FreeBSD-base

Till then all is good. Then the error:

ld-elf.so.1: Shared object "libutil.so.10" not found required by doas

I will try with pkg lock pkg. If this doesn't work,
probably a fresh install.

Thanks
Manfred


On 10/9/25 21:25, Lukas Engelhardt wrote:
Hey, sounds like you are upgrading from 14 to 15, which does not work out of the box as far as I know.
You can lock pkg with 'pkg lock pkg' before upgrading to 15.
I hope you have created an boot environment before the upgrade (or can use the pre pkgbasify boot environment).

Hope that helps.

Lukas
Am 9. Okt. 2025, um 21:00, Manfred Koch <md-koch@t-online.de> schrieb:

Hi,

I am new with pkgbase and have tried with pkgbasify.lua 
to get it.
pkg update -r FreebBSD-base
pkg upgrade -r FreeBSD-base
That performed.

But when I make 

env ABI="FreeBSD:15:amd64" pkg update -f -r FreeBSD-base

env ABI="FreeBSD:15:amd64" pkg upgrade -r FreeBSD-base

After pkg update -r FreebBSD-base I get:

ld-elf.so.1: Shared object "libutil.so.10" not found required by doas


Any Ideas how one could fix that.

Manfred





--------------3X0uU0LR0ha1SBHgQG3P1555--