Page MenuHomeDevCentral

Supersede portsnap by a Git repository
Closed, ResolvedPublic

Description

Per https://cgit.freebsd.org/src/commit/?id=df53ae0fdd98e9452095ac2fdaf95fcfac8c9c7f portsnap has been deprecated.

The new recommended way is to use a Git repository.

As ports can or can't be installed, I suggest:

  • to run git init . in /usr/ports, then add https://git.FreeBSD.org/ports.git as remote
  • NOT TO BE DEPLOYED ON LEGACY WINDRIVER git reset --hard origin/main
  • add /var/db/portsnap to old files to prune

As WindRiver have ports modification working on, we can use portsnap to get to the last Latest version, then git reset origin/main to identify the differences.

Event Timeline

dereckson triaged this task as Normal priority.EditedSep 13 2024, 18:49
dereckson created this task.

Per T1944, the repository must be available BEFORE the first port build, so should be provided as part of the core role.

Salt deployment of /usr/ports as Git repository done.

Next step is to check a diff for WindRiver to identify previous work on the server.

Next step is to check a diff for WindRiver to identify previous work on the server.

If needed, old /usr/ports content is available at /arcology/sortme/usr/ports