#620: Platform.make odd variables settings
--------------------------+-------------------------------------------------
 Reporter:  frankie       |       Owner:  grass-...@…              
     Type:  defect        |      Status:  new                      
 Priority:  normal        |   Milestone:  6.4.1                    
Component:  Installation  |     Version:  6.4.0 RCs                
 Keywords:  g.extension   |    Platform:  Linux                    
      Cpu:  Unspecified   |  
--------------------------+-------------------------------------------------

Comment(by hamish):

 latest g.extension from 6.5svn, built from source and 'make installed' to
 /usr/local/ on linux:
 {{{
 GRASS65> g.extension i.landsat.toar
 Fetching <i.landsat.toar> from GRASS-Addons SVN (be patient)...
 A    i.landsat.toar/landsat_set.c
 A    i.landsat.toar/local_proto.h
 A    i.landsat.toar/main.c
 A    i.landsat.toar/description.html
 A    i.landsat.toar/landsat.c
 A    i.landsat.toar/earth_sun.c
 A    i.landsat.toar/landsat.h
 A    i.landsat.toar/landsat_met.c
 A    i.landsat.toar/Makefile
 A    i.landsat.toar/earth_sun.h
 Checked out revision 43842.
 Compiling <i.landsat.toar>...
 /usr/local/grass-6.5.svn/include/Make/Module.make:25: warning: overriding
 commands for target `install'
 /usr/local/grass-6.5.svn/include/Make/Rules.make:90: warning: ignoring old
 commands for target `install'
 mkdir -p /usr/local/grass-6.5.svn/bin.x86_64-unknown-linux-gnu
 mkdir: cannot create directory `/usr/local/grass-6.5.svn/bin.x86_64
 -unknown-linux-gnu': Permission denied
 make: *** [/usr/local/grass-6.5.svn/bin.x86_64-unknown-linux-gnu] Error 1
 ERROR: Compilation failed, sorry. Please check above error messages.
 }}}

 the problem is that the end-user doesn't have write permission to
 /usr/local/grass-6.x/.

 the goal is for the addon to compile in the .tmp/ dir where the source
 code was downloaded, then be installed to the ~user/$ADDON_DIR later on.
 but the current `make` request is trying to install it to (what we've
 tricked it into thinking is) the build dir.

 I'm not sure how to proceed; hopefully something can be passed on the
 `make` command line to avoid this.

 It works ok if grass was built from source (and that source tree still
 exists, user can write to it, etc).


 Hamish

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/620#comment:19>
GRASS GIS <http://grass.osgeo.org>

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to