#1180: g.extension fails on install step when GRASS is launched from source directory -------------------------+-------------------------------------------------- Reporter: marisn | Owner: grass-...@… Type: defect | Status: new Priority: normal | Milestone: 6.4.1 Component: Default | Version: svn-releasebranch64 Keywords: g.extension | Platform: Linux Cpu: x86-64 | -------------------------+--------------------------------------------------
Comment(by hamish): when 'make install' (or packaging install rules) copies Platform.make to $(PREFIX)/grass-6.4.0/include/Make, it could replace GRASS_HOME and RUN_GISBASE with ${INST_DIR}. right now the Makefile's `install:` just does: {{{ -cd ${GISBASE} ; tar cBf - include | (cd ${INST_DIR} ; tar xBf - ) 2>/dev/null }}} there are some sed commands on the following lines for the font and monitorcap files which may serve as examples. e.g. after the install by tar: {{{ -sed -i -e "s#^\(GRASS_HOME.[^=]*\).*#\1= ${INST_DIR}#" \ -e "s#^\(RUN_GISBASE.[^=]*\).*#\1= ${INST_DIR}#" \ ${INST_DIR}/include/Make/Platform.make }}} I guess for WinGrass the $INST_DIR wants to be "quoted"? Hamish -- Ticket URL: <https://trac.osgeo.org/grass/ticket/1180#comment:3> GRASS GIS <http://grass.osgeo.org>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev