Bug 236172

Summary: mail/mairix: fix prefix != /usr/local
Product: Ports & Packages Reporter: John Hein <jcfyecrayz>
Component: Individual Port(s)Assignee: Koichiro Iwao <meta>
Status: Closed FIXED    
Severity: Affects Some People CC: jjuanino, meta
Priority: --- Flags: jjuanino: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
[patch] fix non-default PREFIX jcfyecrayz: maintainer-approval? (jjuanino)

Description John Hein 2019-03-03 03:49:28 UTC
Created attachment 202515 [details]
[patch] fix non-default PREFIX

Building mail/mairix with a non-default PREFIX fails (or if LOCALBASE != /usr/local):


% make PREFIX=/foo stage
 .
 .
===>  Staging for mairix-0.24
 .
 .
===>   Generating temporary packing list
 .
 .
strip: open /usr/ports/mail/mairix/work/stage/foo/bin/mairix failed: No such file or directory
*** Error code 1


The attached patch fixes that by passing --prefix=${PREFIX} to configure.

While here, appease portlint by reordering the HAS_CONFIGURE line in a different section.

QA:
 poudriere - ok
 portlint - ok
Comment 1 Jose G. Juanino 2019-03-04 21:49:47 UTC
Hi, thanks for reporting this bug.

Please, commit this patch.
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-03-05 02:17:04 UTC
A commit references this bug:

Author: meta
Date: Tue Mar  5 02:16:38 UTC 2019
New revision: 494671
URL: https://svnweb.freebsd.org/changeset/ports/494671

Log:
  mail/mairix: Fix build with non-default prefix

  PR:		236172
  Submitted by:	John Hein <jcfyecrayz@liamekaens.com>
  Approved by:	jjuanino@gmail.com (maintainer)
  MFH:		2019Q1

Changes:
  head/mail/mairix/Makefile
Comment 3 commit-hook freebsd_committer freebsd_triage 2019-03-05 04:06:36 UTC
A commit references this bug:

Author: meta
Date: Tue Mar  5 04:06:00 UTC 2019
New revision: 494675
URL: https://svnweb.freebsd.org/changeset/ports/494675

Log:
  MFH: r494671

  mail/mairix: Fix build with non-default prefix

  PR:		236172
  Submitted by:	John Hein <jcfyecrayz@liamekaens.com>
  Approved by:	jjuanino@gmail.com (maintainer)

  Approved by:	portmgr (miwi)

Changes:
_U  branches/2019Q1/
  branches/2019Q1/mail/mairix/Makefile
Comment 4 Koichiro Iwao freebsd_committer freebsd_triage 2019-03-05 04:07:13 UTC
Committed to both head and quarterly, thanks!