Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Feb 2011 14:52:38 GMT
From:      Gerald Pfeifer <gerald@pfeifer.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/154552: portlint fails to INSTALL_AS_USER
Message-ID:  <201102061452.p16Eqc0Y055371@ref9-i386.freebsd.org>
Resent-Message-ID: <201102061500.p16F0Kge093017@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         154552
>Category:       ports
>Synopsis:       portlint fails to INSTALL_AS_USER
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 06 15:00:20 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Gerald Pfeifer
>Release:        
>Organization:
>Environment:
System: FreeBSD ref9-i386.freebsd.org 9.0-CURRENT FreeBSD 9.0-CURRENT #4 r215698: Mon Nov 22 19:21:20 UTC 2010 simon@ref9-i386.freebsd.org:/usr/obj/scratch/src/sys/REF9-I386 i386
>Description:
	For some tests of mine I tried to install portlint on the FreeBSD
	cluster as a user (not root) and failed at the very end, due to
	the following line in Makefile:

        ${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m 555 -d ${EXAMPLESDIR}
        ${INSTALL_SCRIPT} ${WRKSRC}/portlintgrep.pl ${EXAMPLESDIR}/portlintgrep

	I had properly set SHAREOWN and SHAREGRP, alas once the directory
	has been created with -m 555 installing any file there fails for a
	regular user and the port does not offer any way to override this.
>How-To-Repeat:
	cd portlint
	env SHAREOWN=`whoami` SHAREGRP=`whoami` PREFIX=... make INSTALL_AS_USER=1 install
>Fix:
	Omit -m 555?  Or use some macro that can be set like SHAREGRP et al.
>Release-Note:
>Audit-Trail:
>Unformatted:



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