Re: building a 14.1 workstation

From: Dave Cottlehuber <dch_at_skunkwerks.at>
Date: Sat, 07 Sep 2024 11:24:16 UTC
On Fri, 6 Sep 2024, at 19:31, Doug Denault wrote:
> Not to bury the headline I can not build a 14.1 workstation and can not 
> believe I am the only one, but have seen nothing on this list.
>
>     1. Installing from pkg
>        This installs 384 packages with the following problems:
>           * there is no chromium
>           * firefox will not run, ending with an error loading a dynamic
>             library

Hi Doug,

This sounds frustrating but I expect something locally is out of sync with
pkg repos. For me, assuming you're using amd64 here:

- starting in a fresh 14.1 amd64 jail
- using either ports quarterly *or* latest repo:
   # sed  -e 's/quarterly/latest/' /etc/pkg/FreeBSD.conf | tee /usr/local/etc/pkg/repos/FreeBSD.conf
- pkg update -f && pkg install -Uyr FreeBSD chromium firefox xauth

this installs with no trouble -- the necessary packages are available.

Depending on what you've got installed on this desktop, I would try first:

# pkg update -f && pkg upgrade

hopefully this brings everything into sync.

You can see what the state of package builds for a given port is, on
freshports (thanks dvl@) e.g. https://www.freshports.org/www/firefox

If that doesn't a slightly more aggressive approach might be needed,
under the assumption that you have some invalid mix of locally built
& pkg.freebsd.org binaries that isn't being cleaned up by pkg.

- switch to console, log in as root shell
- backup the list of packages you have installed
- delete them all
- see what if anything is left in /usr/local and decide what to do
- modify /etc/packages as required
- reinstall everything from the list
- reboot

# cd /
# pkg prime-origins | sort | uniq > /etc/packages
# pkg delete -fy '*'
# find /usr/local -type f
# vi /etc/packages
# pkg install -r FreeBSD `cat /etc/packages`
# shutdown -r now

You shouldn't need to resort to poudriere to deal with this, although
it's a fantastic tool where custom packages are needed.

A+
Dave