Bug 227467 - net/freebsd-uucp: package installation still has mtree errors
Summary: net/freebsd-uucp: package installation still has mtree errors
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-12 13:47 UTC by Samuel Chow
Modified: 2018-04-14 08:58 UTC (History)
0 users

See Also:
dinoex: maintainer-feedback+


Attachments
Change @preexec to @postexec (869 bytes, patch)
2018-04-12 13:55 UTC, Samuel Chow
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Chow 2018-04-12 13:47:00 UTC
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
Comment 1 Samuel Chow 2018-04-12 13:55:38 UTC
Created attachment 192455 [details]
Change @preexec to @postexec

With this patch, the package installed okay.
Comment 2 Samuel Chow 2018-04-12 13:57:50 UTC
I believe the error was introduced in r433532 when @exec was changed to @preexec.
Comment 3 Dirk Meyer freebsd_committer freebsd_triage 2018-04-14 08:46:30 UTC
Thanks, I will a commit a fix that handles some more corner cases.
Comment 4 commit-hook freebsd_committer freebsd_triage 2018-04-14 08:47:40 UTC
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