ports! I've bulk built a number of packages over the last week, and I often run into the situation where building a package requires a dependency (that ends up either being built or found on a mirror), but when make tries to pkg_add the dependency, pkg_add fails saying it can't find the target package. In testing pkg_add out myself, I experience the same error when I run pkg_add with the full path of the package just created (either grabbed from a mirror or built locally), though all is fine if I use the package's basename (and not full path). pkg_add is also fine to use the full path to the package if the package was not the dependency make just attempted to pkg_add see the following example with xfe):
(chroot) # lls /usr/ports/packages/i386/all/xfe-1.19.2.tgz -rw-r--r-- 1 root wheel 2.0M Nov 8 10:10 /usr/ports/packages/i386/all/xfe-1.19.2.tgz (chroot) # pkg_add fox fox-1.6.28: complete (chroot) # pkg_add /usr/ports/packages/i386/all/xfe-1.19.2.tgz xfe-1.19.2: complete here is the last chunk of the bulk package build, including where pkg_add fails, then my attempts to manually pkg_add the newly available dependency: ===> Returning to build of glib2-2.18.2 ===> glib2-2.18.2 depends on: pcre->=7.2 - found ===> glib2-2.18.2 depends on: gettext->=0.17 - found ===> glib2-2.18.2 depends on: gmake-* - found ===> glib2-2.18.2 depends on: libtool-* - found ===> glib2-2.18.2 depends on: bzip2-* - found ===> Verifying specs: intl.>=4 iconv.>=4 pcre c ===> found intl.4.0 iconv.5.0 pcre.2.2 c.49.0 ===> Installing glib2-2.18.2 from /usr/ports/packages/i386/all/ Can't find /usr/ports/packages/i386/all/glib2-2.18.2.tgz /usr/sbin/pkg_add: /usr/ports/packages/i386/all/glib2-2.18.2.tgz:Fatal error *** Error code 1 Stop in /usr/ports/devel/glib2 (line 1452 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/devel/desktop-file-utils (line 1601 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/devel/desktop-file-utils (line 1998 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/devel/desktop-file-utils (line 1424 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/devel/desktop-file-utils (line 1424 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/devel/desktop-file-utils (line 1961 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/devel/desktop-file-utils (line 1452 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/print/cups (line 1601 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/editors/abiword (line 1998 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/editors/abiword (line 1424 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/editors/abiword (line 1424 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/editors/abiword (line 1964 of /usr/ports/infrastructure/mk/bsd.port.mk). ===> Exiting editors/abiword with an error *** Error code 1 Stop in /usr/ports (line 124 of /usr/ports/infrastructure/mk/bsd.port.subdir.mk). (chroot) # pkg_add /usr/ports/packages/i386/all/glib2-2.18.2.tgz Can't find /usr/ports/packages/i386/all/glib2-2.18.2.tgz /usr/sbin/pkg_add: /usr/ports/packages/i386/all/glib2-2.18.2.tgz:Fatal error (chroot) # pkg_add glib2 glib2-2.18.2: complete I have experienced this same behaviour on both my snapshots workstation from last week, and more recently from inside my chroot bulk build environment based off a snapshot from yesterday (the 13th). please let me know if there is more information I may provide. best, ~Jason