Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 May 2010 03:50:56 +0400
From:      Anonymous <swell.k@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/146505: [patch] textproc/mdocml: invoke su(1) in pre-install
Message-ID:  <86tyqe0zhb.fsf@gmail.com>
Resent-Message-ID: <201005120000.o4C00AHx028394@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86tyqe0zhb.fsf>