Bug 211981

Summary: FBSD 11.0 RC1 package URL info incorrect for RPI-B image
Product: Ports & Packages Reporter: Bob Frazier <bobf>
Component: Ports FrameworkAssignee: Port Management Team <portmgr>
Status: Closed Overcome By Events    
Severity: Affects Many People CC: ports-bugs
Priority: ---    
Version: Latest   
Hardware: arm   
OS: Any   

Description Bob Frazier 2016-08-19 06:34:59 UTC
After downloading and copying FreeBSD 11.0 RC1 image for RPI-B onto an SD card, and successfully booting it up, I attempted to use 'pkg' and it was unable to locate the package information.

After going through the trouble of getting the ports collection and installing it via the port, I discovered the cause:  it was looking in the wrong place.

The path it was attempting to use was (similar to)

  http://pkg.FreeBSD.org/freebsd11:armv6/quarterly

(this may not be the exact one but it illustrates the point)

But the correct path should be

  http://pkg.FreeBSD.org/freebsd:11:armv6:32:el:eabi:softfp/latest

To correct for this, I made two modifications to configuration files as a workaround.

The first was to the /etc/pkg/FreeBSD.conf file

(removed this line)
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly",
(added this line)
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",


The second was to the /usr/local/etc/pkg.conf file

(line added)
ABI = "freebsd:11:armv6:32:el:eabi:softfp"


Making these changes caused the pkg application to correctly install packages.

I would do this as a 'diff' but I didn't keep the originals and don't really want to re-generate them just to do a diff.  Since the changes are simple enough, I described them here.