ports/147797: [patch] textproc/mdocml: inherit port's PREFIX

Anonymous swell.k at gmail.com
Fri Jun 11 20:10:05 UTC 2010


>Number:         147797
>Category:       ports
>Synopsis:       [patch] textproc/mdocml: inherit port's PREFIX
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 11 20:10:05 UTC 2010
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list