Opened 12 years ago

Closed 12 years ago

#1501 closed defect (fixed)

g.extension fails when addons directory doesn't exists

Reported by: martinl Owned by: hamish
Priority: major Milestone: 6.5.0
Component: Default Version: svn-develbranch6
Keywords: g.extension Cc: grass-dev@…
CPU: Unspecified Platform: Unspecified


rm -rf ~/.grass6/addons/
Installing <>...
mkdir: cannot create directory `': No such file or directory
mkdir: cannot create directory `/docs': Permission denied
mkdir: cannot create directory `/man': Permission denied
/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/include/Make/Module.make:25: warning: overriding commands for target `install'
/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/include/Make/Rules.make:90: warning: ignoring old commands for target `install'
/usr/bin/install -c  /home/martin/grassdata/zod2011/landamar2/.tmp/pierre/5038.0/dist.i686/bin/ /bin/
/usr/bin/install: cannot create regular file `/bin/': Permission denied
make: *** [install] Error 1
ERROR: Installation failed, sorry. Please check above error messages.

Change History (3)

comment:1 by hamish, 12 years ago

Cc: grass-dev@… added
Owner: changed from grass-dev@… to hamish
Status: newassigned

comment:2 by hamish, 12 years ago


fixed in r49451,2. fwiw is an awkward test for it as it doesn't use the standard parser. (one of a number of i.points improvements to be back-ported; is based on a 2004 copy of i.points)

with an empty (or non-existent) addons dir could you try editing line 412 of grass 6.5's g.extension to be [ 0 -eq 1 ] and installing a few addon modules? After seeing it I hope you agree it is a much cleaner way to organize things. If there is a technical reason not to clean that up I'd still like to hear what it is, as I know of none.

thanks, Hamish

comment:3 by hamish, 12 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.