Bug 195315 - net/freebsd-uucp: Package installation has mtree errors
Summary: net/freebsd-uucp: Package installation 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: 2014-11-23 21:42 UTC by Samuel Chow
Modified: 2015-01-26 20:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Chow 2014-11-23 21:42:45 UTC
# pkg install freebsd-uucp
Updating FreeBSD repository catalogue...
Fetching meta.txz: 100%   968 B   1.0k/s    00:01
Fetching digests.txz: 100%    2 MB 685.3k/s    00:03
Fetching packagesite.txz: 100%    5 MB 758.4k/s    00:07
Removing expired repository entries: 100%
Processing new repository entries: 100%
FreeBSD repository update completed. 23640 packages processed:
  6162 updated, 19 removed and 22 added.
The following 1 packages will be affected (of 0 checked):

New packages to be INSTALLED:
        freebsd-uucp: 1.07.3_1

The process will require 1 MB more space.
355 kB to be downloaded.

Proceed with this action? [y/N]: y
Fetching freebsd-uucp-1.07.3_1.txz: 100%  355 kB 363.5k/s    00:01
Checking integrity... done (0 conflicting)
[1/1] Installing freebsd-uucp-1.07.3_1: 100%
mtree: etc/mtree/uucp-var.mtree: No such file or directory
mtree: etc/mtree/uucp-local.mtree: No such file or directory
updating /etc/services

After the installation, the missing mtree files caused the permission to be set incorrectly.

# ls -la /usr/local/libexec/uucp
total 530
drwxr-xr-x  2 root  wheel        4 Oct  6 06:22 .
drwxr-xr-x  4 root  wheel        5 Nov 23 14:03 ..
-r-sr-sr-x  1 root  dialer  267336 Oct  6 06:22 uucico
-r-sr-s---  1 root  uucp    122784 Oct  6 06:22 uuxqt

The correct permission should have been uucp:dialer and uucp:uucp for uucico and uuxqt respectively. This caused uucico failed to execute uuxqt after calling another system.
Comment 1 John Marino freebsd_committer freebsd_triage 2015-01-25 18:10:50 UTC
this PR didn't get auto-assigned, give it to maintainer-committer now.
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-01-26 20:08:07 UTC
A commit references this bug:

Author: dinoex
Date: Mon Jan 26 20:07:21 UTC 2015
New revision: 377948
URL: https://svnweb.freebsd.org/changeset/ports/377948

Log:
  - fix cwd regression in @exec
  PR:		195315

Changes:
  head/net/freebsd-uucp/Makefile
  head/net/freebsd-uucp/pkg-plist