Bug 133790 - [PATCH] mail/postfix fails to install as non-root
Summary: [PATCH] mail/postfix fails to install as non-root
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: John Baldwin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-16 21:20 UTC by John Baldwin
Modified: 2009-05-12 12:50 UTC (History)
0 users

See Also:


Attachments
file.diff (532 bytes, patch)
2009-04-16 21:20 UTC, John Baldwin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Baldwin freebsd_committer freebsd_triage 2009-04-16 21:20:01 UTC
During a 'make install' as non-root, certain make targets are performed after using su to switch to root.  Currently, the postfix port attempts to add users before the 'su' occurs which fails.

Fix: Use 'pre-su-install' instead of 'pre-install'.

Patch attached with submission follows:
How-To-Repeat: Run 'make install' as a non-root user (who is in wheel).
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-04-16 22:06:40 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jhb

Submitter has GNATS access (via the GNATS Auto Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2009-04-16 22:06:42 UTC
Maintainer of mail/postfix,

Please note that PR ports/133790 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/133790

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2009-04-16 22:06:44 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 4 Vick Khera 2009-04-16 22:41:53 UTC
I agree with this patch. Please apply it.

Thanks!
Comment 5 Pav Lucistnik freebsd_committer freebsd_triage 2009-05-12 12:40:44 UTC
State Changed
From-To: feedback->closed

Committed, thanks!
Comment 6 dfilter service freebsd_committer freebsd_triage 2009-05-12 12:41:32 UTC
pav         2009-05-12 11:41:17 UTC

  FreeBSD ports repository

  Modified files:
    mail/postfix         Makefile 
  Log:
  - Fix non-root installation (use pre-su-install target)
  
  PR:             ports/133790
  Submitted by:   jhb
  Approved by:    Vick Khera <vivek@khera.org> (maintainer)
  
  Revision  Changes    Path
  1.143     +1 -1      ports/mail/postfix/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"