ports/76422: devel/automake ports fail to install when built as non-root

John Baldwin jhb at FreeBSD.org
Tue Jan 18 17:50:33 UTC 2005


>Number:         76422
>Category:       ports
>Synopsis:       devel/automake ports fail to install when built as non-root
>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:   Tue Jan 18 17:50:32 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     John Baldwin
>Release:        5.3-STABLE and 6.0-CURRENT
>Organization:
>Environment:
N/A      
>Description:
The pre-install and post-install targets are not run with elevated privileges, so the mkdir commands in the pre-install target fail when trying to install as non-root (in other words, su seems to only be applied for do-install)
>How-To-Repeat:
Run 'make install' for one of the devel/automake* ports
>Fix:
Change the automake ports to use the pre-su-install and post-su-install targets rather than pre-install and post-install.  Example change for automake19:

Index: Makefile
===================================================================
RCS file: /usr/cvs/ports/devel/automake19/Makefile,v
retrieving revision 1.57
diff -u -r1.57 Makefile
--- Makefile    28 Dec 2004 06:43:00 -0000      1.57
+++ Makefile    18 Jan 2005 17:49:27 -0000
@@ -38,13 +38,13 @@
        )
        @${REINPLACE_CMD} -e 's,%%X11BASE%%,${X11BASE},g' ${WRKSRC}/aclocal.in

-pre-install:
+pre-su-install:
        @${RM} -fr ${PREFIX}/share/automake${BUILD_VERSION}
        @${MKDIR} ${PREFIX}/share/automake${BUILD_VERSION}
        @${MKDIR} ${PREFIX}/share/aclocal${BUILD_VERSION}
        @${MKDIR} ${PREFIX}/libexec/automake${BUILD_VERSION}

-post-install:
+post-su-install:
 .for i in aclocal automake
        @${LN} -sf ${PREFIX}/bin/${i}${BUILD_VERSION} \
                ${PREFIX}/libexec/automake${BUILD_VERSION}/${i}

Note that all automake ports seem affected however.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list