This bug is different from 195315. See the mtree error in the following installation. It seems mtree is executed in the Installing phase before Extracting phase. --- root@testbox1:/ # pkg install freebsd-uucp Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. Checking integrity... done (0 conflicting) The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED: freebsd-uucp: 1.07.4_1 Number of packages to be installed: 1 The process will require 2 MiB more space. Proceed with this action? [y/N]: y [testbox1.intranet.peyto.ca] [1/1] Installing freebsd-uucp-1.07.4_1... mtree: /usr/local/etc/mtree/uucp-var.mtree: No such file or directory mtree: /usr/local/etc/mtree/uucp-local.mtree: No such file or directory updating /etc/services [testbox1.intranet.peyto.ca] [1/1] Extracting freebsd-uucp-1.07.4_1: 100% Message from freebsd-uucp-1.07.4_1: In order to run the periodic UUCP maintenance tasks, please add the following to your /etc/periodic.conf.local file: # 340.uucp daily_uuclean_enable="YES" # Run uuclean.daily # 410.status-uucp daily_status_uucp_enable="YES" # Check uucp status # 300.uucp weekly_uucp_enable="YES" # Clean uucp weekly # in your sendmail.mc file you need to set the path: define(`UUCP_MAILER_PATH', `/usr/local/bin/uux')dnl
Created attachment 192455 [details] Change @preexec to @postexec With this patch, the package installed okay.
I believe the error was introduced in r433532 when @exec was changed to @preexec.
Thanks, I will a commit a fix that handles some more corner cases.
A commit references this bug: Author: dinoex Date: Sat Apr 14 08:47:16 UTC 2018 New revision: 467299 URL: https://svnweb.freebsd.org/changeset/ports/467299 Log: - fix mtree on clean install PR: 227467 Changes: head/net/freebsd-uucp/Makefile head/net/freebsd-uucp/pkg-plist