From swell.k@gmail.com  Fri Jun 11 20:06:29 2010
Return-Path: <swell.k@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C37D51065679
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Jun 2010 20:06:29 +0000 (UTC)
	(envelope-from swell.k@gmail.com)
Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54])
	by mx1.freebsd.org (Postfix) with ESMTP id 202888FC15
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Jun 2010 20:06:28 +0000 (UTC)
Received: by bwz2 with SMTP id 2so752785bwz.13
        for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Jun 2010 13:06:27 -0700 (PDT)
Received: by 10.204.83.15 with SMTP id d15mr1660142bkl.41.1276286787204;
        Fri, 11 Jun 2010 13:06:27 -0700 (PDT)
Received: from localhost (denemepc-52-5.ege.edu.tr [155.223.52.5])
        by mx.google.com with ESMTPS id z20sm6348109bkx.15.2010.06.11.13.06.22
        (version=SSLv3 cipher=RC4-MD5);
        Fri, 11 Jun 2010 13:06:24 -0700 (PDT)
Message-Id: <86eigd1gi3.fsf@gmail.com>
Date: Sat, 12 Jun 2010 00:06:12 +0400
From: Anonymous <swell.k@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [patch] textproc/mdocml: inherit port's PREFIX

>Number:         147797
>Category:       ports
>Synopsis:       [patch] textproc/mdocml: inherit port's PREFIX
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    uqs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 11 20:10:05 UTC 2010
>Closed-Date:    Mon Jun 14 08:27:10 UTC 2010
>Last-Modified:  Mon Jun 14 08:27:10 UTC 2010
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
LOCALBASE=/usr/pkg
PREFIX=$HOME/aaa

/usr/local does not exist here
>Description:
Distfile doesn't respect PREFIX in make.conf.
>How-To-Repeat:
define PREFIX and/or LOCALBASE in make.conf

  $ make install
  ...
  ===>  Checking if textproc/mdocml already installed
  mkdir -p /usr/local/bin
  mkdir -p /usr/local/share/examples/mandoc
  mkdir -p /usr/local/man/man1
  mkdir -p /usr/local/man/man7
  install -m 0755 mandoc /usr/local/bin
  install -m 0444 mandoc.1 /usr/local/man/man1
  install -m 0444 man.7 mdoc.7 roff.7 mandoc_char.7 /usr/local/man/man7
  install -m 0444 example.style.css /usr/local/share/examples/mandoc
  ===>   Compressing manual pages for mdocml-1.10.0
  gzip: can't stat: /home/holo/aaa/man/man1/mandoc.1: No such file or directory
  gzip: can't stat: /home/holo/aaa/man/man7/man.7: No such file or directory
  gzip: can't stat: /home/holo/aaa/man/man7/mdoc.7: No such file or directory
  gzip: can't stat: /home/holo/aaa/man/man7/roff.7: No such file or directory
  gzip: can't stat: /home/holo/aaa/man/man7/mandoc_char.7: No such file or directory

  $ find -s /usr/local \! -type d
  /usr/local/bin/mandoc
  /usr/local/man/man1/mandoc.1
  /usr/local/man/man7/man.7
  /usr/local/man/man7/mandoc_char.7
  /usr/local/man/man7/mdoc.7
  /usr/local/man/man7/roff.7
  /usr/local/share/examples/mandoc/example.style.css

>Fix:
Workaround: define PREFIX on command line

--- a.diff begins here ---
Index: textproc/mdocml/Makefile
===================================================================
RCS file: /a/.cvsup/ports/textproc/mdocml/Makefile,v
retrieving revision 1.16
diff -u -p -r1.16 Makefile
--- textproc/mdocml/Makefile	31 May 2010 07:28:16 -0000	1.16
+++ textproc/mdocml/Makefile	11 Jun 2010 20:02:49 -0000
@@ -19,4 +19,7 @@ MAN7=	man.7 mdoc.7 roff.7 mandoc_char.7
 
 PLIST_SUB+=	EXAMPLESDIR=share/examples/mandoc
 
+post-patch:	.SILENT
+	${REINPLACE_CMD} '/PREFIX/s/=/?&/' ${WRKSRC}/Makefile
+
 .include <bsd.port.mk>
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->uqs 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Jun 11 20:10:47 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=147797 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/147797: commit references a PR
Date: Sun, 13 Jun 2010 22:26:43 +0000 (UTC)

 uqs         2010-06-13 22:26:29 UTC
 
   FreeBSD ports repository (src committer)
 
   Modified files:
     textproc/mdocml      Makefile distinfo 
   Log:
   - Update to 1.10.1
   - Fix PREFIX regression introduced in last update [1]
   
   PR:             ports/147797 [1]
   Submitted by:   Anonymous <swell.k@gmail.com> [1]
   
   Revision  Changes    Path
   1.17      +4 -1      ports/textproc/mdocml/Makefile
   1.16      +3 -3      ports/textproc/mdocml/distinfo
 _______________________________________________
 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"
 
State-Changed-From-To: open->closed 
State-Changed-By: uqs 
State-Changed-When: Mon Jun 14 08:27:09 UTC 2010 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=147797 
>Unformatted:
