ports/177091: www/npm: Attempts to install files at /root

John Marino draco at marino.st
Mon Mar 18 22:40:00 UTC 2013


>Number:         177091
>Category:       ports
>Synopsis:       www/npm: Attempts to install files at /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:   Mon Mar 18 22:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     John Marino
>Release:        
>Organization:
>Environment:
>Description:
The DragonFly version poudriere sets up most of the jail as "read-only" which makes it obvious when ports are trying to install files outside of $LOCALBASE.  In this case, www/npm is trying to write to /root and it fails at the install phase:

===>  Installing for npm-1.2.12
===>   npm-1.2.12 depends on package: node>=0.8.0 - found
===>   Generating temporary packing list
===>  Checking if www/npm already installed
node cli.js install -g -f
npm WARN using --force I sure hope you know what you are doing.
npm ERR! addLocal Could not install .
npm ERR! Error: EROFS, mkdir '/root/.npm'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm- at googlegroups.com>

npm ERR! System DragonFly 3.3-DEVELOPMENT
npm ERR! command "node" "/wrkdirs/www/npm/work/npm-1.2.12/cli.js" "install" "-g" "-f"
npm ERR! cwd /wrkdirs/www/npm/work/npm-1.2.12
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.12
npm ERR! path /root/.npm
npm ERR! code EROFS
npm ERR! errno 56
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /wrkdirs/www/npm/work/npm-1.2.12/npm-debug.log
npm ERR! not ok code 0
*** Error code 56

Stop.
make: stopped in /wrkdirs/www/npm/work/npm-1.2.12
  
>How-To-Repeat:

>Fix:
I suspect the makefile needs patching to prevent mkdir at $HOME


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list