ports/154552: portlint fails to INSTALL_AS_USER

Gerald Pfeifer gerald at pfeifer.com
Sun Feb 6 15:00:21 UTC 2011


>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 at 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:



More information about the freebsd-ports-bugs mailing list