Bug 155885

Summary: mail/postfix: fix pkg-plist
Product: Ports & Packages Reporter: Helmut Schneider <jumper99>
Component: Individual Port(s)Assignee: Sahil Tandon <sahil>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Helmut Schneider 2011-03-23 10:20:03 UTC
The pkg-plist seems to have orphaned entries:

[helmut@BSDHelmut ~]$ sudo pkg_create -b postfix-2.8.2,1
tar: bin/mailq: Cannot stat: No such file or directory
tar: bin/newaliases: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
pkg_create: make_dist: tar command failed with code 256
[helmut@BSDHelmut ~]$ ls -la $(which mailq)
lrwxr-xr-x  1 root  wheel  21 Jul 19  2010 /usr/bin/mailq -> /usr/sbin/mailwrapper
[helmut@BSDHelmut ~]$ ls -la $(which newaliases)
lrwxr-xr-x  1 root  wheel  29 Oct  4 13:54 /usr/bin/newaliases -> ../../usr/local/sbin/sendmail
[helmut@BSDHelmut ~]$
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-03-23 10:20:20 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sahil

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Sahil Tandon freebsd_committer freebsd_triage 2011-03-29 01:06:51 UTC
You must have set newaliases_path and mail_path to some non-default
values in your main.cf which was then respected by the postfix-install
script.  If you do not fiddle with those values, then those so-called
'orphaned' files are indeed installed under PREFIX/bin and the package
is created just fine (as evidenced by my tests as well as the pointyhat
cluster).

I will think about how to more gracefully handle this, but I do not have
the cycles for it at the moment.  Feel free to send a patch and I will
consider it.

-- 
Sahil Tandon <sahil@FreeBSD.org>
Comment 3 Sahil Tandon freebsd_committer freebsd_triage 2011-03-29 02:05:35 UTC
Thinking about this a bit more, it has everything to do with
INSTALLATION PARAMETER INPUT METHODS as described in upstream docs.
I'll try to address this over the weekend.

-- 
Sahil Tandon <sahil@FreeBSD.org>
Comment 4 Sahil Tandon freebsd_committer freebsd_triage 2011-03-29 03:11:58 UTC
State Changed
From-To: open->feedback

Awaiting submitter feedback.
Comment 5 Helmut Schneider 2011-03-29 10:10:44 UTC
> You must have set newaliases_path and mail_path to some non-default
> values in your main.cf which was then respected by the postfix-install

You're right, seems I "transferred" those paths from OpenBSD into FreeBSD a 
few years ago.

> I will think about how to more gracefully handle this, but I do not have
> the cycles for it at the moment.  Feel free to send a patch and I will
> consider it.

Will do so.

Thanks, Helmut
Comment 6 Sahil Tandon freebsd_committer freebsd_triage 2011-04-03 07:11:31 UTC
State Changed
From-To: feedback->open

Submitter has provided necessary feedback.
Comment 7 Sahil Tandon freebsd_committer freebsd_triage 2011-05-09 14:29:15 UTC
State Changed
From-To: open->closed

Fixed, thanks for the report.