Details Ticket 4758


Comment | Reply | Take | Open


Serial Number 4758
Subject Guarrantee that ${ARCH_DISTDIR} exists before writing to it.
Area grass6
Queue grass
Requestors brook@nmsu.edu
Owner none
Status resolved
Last User Contact Sat Jul 1 22:07:14 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Sat Jul 1 22:07:21 2006 (2 yr ago)
Created Wed Jun 28 16:37:36 2006 (2 yr ago)

Transaction History Ticket 4758


Wed, Jun 28 2006 16:37:36    Request created by guest  
Subject: Guarrantee that ${ARCH_DISTDIR} exists before writing to it.

Platform: other
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: 6.0.2

Under some conditions when building from source the directory ${ARCH_DISTDIR}
may not exist.  If this occurs, the make target 'builddemolocation' will fail.
The following patch will guarrantee that the appropriate directory exists; if
it already exists, the effect is unchanged from the current behavior. 

--- Makefile.orig       2006-01-04 16:45:32.000000000 +0000
+++ Makefile    2006-06-27 22:43:37.000000000 +0000
@@ -328,6 +328,7 @@
 GISRCFILE = ${ARCH_DISTDIR}/demolocation/.grassrc${GRASS_VERSION_MAJOR}${GRASS\
_VERSION_MINOR}

 builddemolocation:
+       @[ -d ${ARCH_DISTDIR} ] || ${MAKE_DIR_CMD} ${ARCH_DISTDIR}
        -tar cBf - demolocation | (cd ${ARCH_DISTDIR}/ ; tar xBfo - ) 2>/dev/nu\
ll
        @ echo "GISDBASE: ${ARCH_DISTDIR}" > ${GISRCFILE}
        @ echo "LOCATION_NAME: demolocation" >> ${GISRCFILE}
Sat, Jul 1 2006 22:07:14    Mail sent by mneteler  
Hi: fixed in CVS.

Markus
Sat, Jul 1 2006 22:07:21    Status changed to resolved by mneteler  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request