Bug 155885 - mail/postfix: fix pkg-plist
Summary: mail/postfix: fix pkg-plist
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Sahil Tandon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-23 10:20 UTC by Helmut Schneider
Modified: 2011-05-09 14:29 UTC (History)
0 users

See Also:


Attachments
file.diff (323 bytes, patch)
2011-03-23 10:20 UTC, Helmut Schneider
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.