Bug 214219 - mail/procmail: Fix autoconf and assure /usr/local/bin in default PATH
Summary: mail/procmail: Fix autoconf and assure /usr/local/bin in default PATH
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-04 16:44 UTC by Armin Gruner
Modified: 2016-11-30 17:07 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments
metadata patch file (616 bytes, text/plain)
2016-11-04 16:44 UTC, Armin Gruner
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Armin Gruner 2016-11-04 16:44:52 UTC
Created attachment 176632 [details]
metadata patch file

When building mail/procmail under a pristine build environment (e.g. with ports-mgmt/synth), the autoconf configuration system of procmail does not insert /usr/local/bin into the default PATH, because there is no /usr/local/bin at the time when the port is configured and built.

However, $PREFIX/bin should be part of the default path, so that a .procmailrc containing other procmail binaries (such as formail) will work and find these, without explicit need of either using an absolute path, or setting the PATH variable.

The patch assures that $PREFIX/bin is part of the default PATH in procmail, even if there is no /usr/local/bin directory detected during build-time.

Also see: 
https://github.com/jrmarino/synth/issues/63
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-11-29 18:51:54 UTC
A commit references this bug:

Author: sunpoet
Date: Tue Nov 29 18:51:21 UTC 2016
New revision: 427390
URL: https://svnweb.freebsd.org/changeset/ports/427390

Log:
  - Always add PREFIX/bin to procmail path
  - Bump PORTREVISION for package change
  - While I'm here, respect PREFIX and adjust config.h patch

  PR:		214219
  Submitted by:	Armin Gruner <ag-freebsd@muc.de>

Changes:
  head/mail/procmail/Makefile
  head/mail/procmail/files/patch-config.h
  head/mail/procmail/files/patch-src-autoconf
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2016-11-30 17:07:48 UTC
Committed. Thanks!