Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Oct 2022 09:53:50 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        void <void@f-m.fm>, freebsd-current <freebsd-current@freebsd.org>
Subject:   RE: pkg won't bootstrap on -current
Message-ID:  <15240B12-7B81-42B1-BA8E-170021D0B8E4@yahoo.com>
References:  <15240B12-7B81-42B1-BA8E-170021D0B8E4.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
void <void_at_f-m.fm> wrote on
Date: Mon, 17 Oct 2022 14:08:11 UTC :

> It seems pkg won't bootstrap on -current, at least not for me on =
arm64.aarch64
> I've not tried yet with just a snapshot.
>=20
> version is main-n258626-865f46b25559 built today 17th Oct 22.
>=20
> The error is
> # pkg bootstrap
> The package management tool is not yet installed on your system.
> Do you want to fetch and install it now? [y/N]: y
> Bootstrapping pkg from =
pkg+http://pkg.FreeBSD.org/FreeBSD:14:aarch64/latest, please wait...
> Verifying signature with trusted certificate =
pkg.freebsd.org.2013102301... done
> Child process pid=3D10086 terminated abnormally: Segmentation fault
>=20
> tried installing the port
>=20
> /usr/ports/ports-mgmt/pkg# make install
> =3D=3D=3D>  Installing for pkg-1.18.4
> =3D=3D=3D>  Checking if pkg is already installed
> =3D=3D=3D>   Registering installation for pkg-1.18.4
> Child process pid=3D37844 terminated abnormally: Segmentation fault
> *** Error code 139
>=20
> Stop.
> make[2]: stopped in /usr/ports/ports-mgmt/pkg
> *** Error code 1
>=20
> # which pkg-static
> /usr/local/sbin/pkg-static
>=20
> # /usr/local/sbin/pkg-static bootstrap
> Child process pid=3D39006 terminated abnormally: Segmentation fault
>=20
> There's a core file. lldb is installed. if someone can clue me in to =
how it's used,
> i can supply more info
>=20
> There's nothing in /var/db/pkg


[Summary: I got no problems bootstrapping pkg via
the snapshot dated 20221014 in its .img file name.]

I dd'd over the most recent aarch64-RPI snapshot:

FreeBSD-14.0-CURRENT-arm64-aarch64-RPI-20221014-2e0e2739273-258600.img

and booted it in an 8 GiByte RPI4B (with an EtherNet
connection in place):

# uname -apKU
FreeBSD generic 14.0-CURRENT FreeBSD 14.0-CURRENT #0 =
main-n258600-2e0e2739273: Fri Oct 14 09:50:23 UTC 2022     =
root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC =
arm64 aarch64 1400072 1400072

I tried bootstrapping pkg:

# pkg bootstrap
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from =
pkg+http://pkg.FreeBSD.org/FreeBSD:14:aarch64/latest, please wait...
Verifying signature with trusted certificate =
pkg.freebsd.org.2013102301... done
Installing pkg-1.18.4...
Extracting pkg-1.18.4: 100%

It executes just fine:

/usr/local/sbin/pkg-static info pkg
pkg-1.18.4
Name           : pkg
Version        : 1.18.4
Installed on   : Fri Oct 14 10:49:12 2022 UTC
Origin         : ports-mgmt/pkg
Architecture   : FreeBSD:14:aarch64
Prefix         : /usr/local
Categories     : ports-mgmt
Licenses       : BSD2CLAUSE
Maintainer     : pkg@FreeBSD.org
WWW            : https://github.com/freebsd/pkg
Comment        : Package manager
Options        :
        DOCS           : on
Shared Libs provided:
        libpkg.so.4
Annotations    :
        FreeBSD_version: 1400072
Flat size      : 31.8MiB
Description    :
Package management tool

WWW: https://github.com/freebsd/pkg

# pkg info pkg
pkg-1.18.4
Name           : pkg
Version        : 1.18.4
Installed on   : Fri Oct 14 10:49:12 2022 UTC
Origin         : ports-mgmt/pkg
Architecture   : FreeBSD:14:aarch64
Prefix         : /usr/local
Categories     : ports-mgmt
Licenses       : BSD2CLAUSE
Maintainer     : pkg@FreeBSD.org
WWW            : https://github.com/freebsd/pkg
Comment        : Package manager
Options        :
        DOCS           : on
Shared Libs provided:
        libpkg.so.4
Annotations    :
        FreeBSD_version: 1400072
Flat size      : 31.8MiB
Description    :
Package management tool

WWW: https://github.com/freebsd/pkg


=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15240B12-7B81-42B1-BA8E-170021D0B8E4>