ports/146505: [patch] textproc/mdocml: invoke su(1) in pre-install
Anonymous
swell.k at gmail.com
Wed May 12 00:00:11 UTC 2010
>Number: 146505
>Category: ports
>Synopsis: [patch] textproc/mdocml: invoke su(1) in pre-install
>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: Wed May 12 00:00:10 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Anonymous
>Release: FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
__MAKE_CONF=~/.make.conf
PORTSDIR=/a/freebsd-ports
LOCALBASE=/usr/pkg
SU_CMD=sudo -E -u root sh -c
>Description:
I'm not sure if pre-install target is still required. Looking into
1.9.23 distfile:
EXAMPLEDIR = $(PREFIX)/share/examples/mandoc
...
install:
mkdir -p $(EXAMPLEDIR)
>How-To-Repeat:
$ make install
===> Installing for mdocml-1.9.23
mkdir: /usr/pkg/share/examples/mandoc: Permission denied
*** Error code 1
>Fix:
--- a.diff begins here ---
Index: textproc/mdocml/Makefile
===================================================================
RCS file: /a/.cvsup/ports/textproc/mdocml/Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 Makefile
--- textproc/mdocml/Makefile 9 Apr 2010 05:26:40 -0000 1.14
+++ textproc/mdocml/Makefile 11 May 2010 23:27:40 -0000
@@ -19,7 +19,7 @@ MAN7= man.7 mdoc.7 mandoc_char.7
PLIST_SUB+= EXAMPLESDIR=share/examples/mandoc
-pre-install:
+pre-su-install:
@${MKDIR} ${EXAMPLESDIR:S/mdocml/mandoc/}
.include <bsd.port.mk>
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list