Opened 13 years ago

Closed 13 years ago

#1207 closed defect (fixed)

installation incomplete/messed

Reported by: hellik Owned by: grass-dev@…
Priority: critical Milestone: 6.4.1
Component: Installation Version: svn-releasebranch64
Keywords: compiling, installing, wingrass Cc:
CPU: x86-32 Platform: All

Description

fresh svn-checkout of releasebranch64

compiled and installed in the osgeo4w-tree (source is in C:\OSGeo4W\usr\src\grass64svn) by package.sh in the source

http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/mswindows/osgeo4w/package.sh

#!/c/OSGeo4W/apps/msys/bin/sh

set -e

if ! [ -d mswindows ]; then
	echo Start from GRASS toplevel dir
	exit 1
fi

export OSGEO4W_ROOT_MSYS=/c/OSGeo4W
export PATH=.:/c/mingw/bin:/usr/local/bin:/bin:$OSGEO4W_ROOT_MSYS/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem

version() {
	(
		read MAJOR
		read MINOR
		read PATCH
		echo $MAJOR.$MINOR.$PATCH
	) <include/VERSION
}

export VERSION=$(version)
export PACKAGE=3


(
echo
echo
echo

if ! [ -f mswindows/osgeo4w/configure-stamp ]; then

	if [ -e include/Make/Grass.make ] ; then
	    echo $(date): STARTING make distclean
	    make distclean
	fi

	echo $(date): STARTING configure
	./configure \
		--with-libs="$OSGEO4W_ROOT_MSYS/apps/gdal-16/lib $OSGEO4W_ROOT_MSYS/lib" \
		--with-includes="$OSGEO4W_ROOT_MSYS/apps/gdal-16/include $OSGEO4W_ROOT_MSYS/include" \
		--exec-prefix=$OSGEO4W_ROOT_MSYS/bin \
		--libexecdir=$OSGEO4W_ROOT_MSYS/bin \
		--prefix=$OSGEO4W_ROOT_MSYS/apps/grass \
		--includedir=$OSGEO4W_ROOT_MSYS/include \
		--disable-x --without-x \
		--with-cxx \
		--enable-shared \
		--enable-largefile \
		--with-opengl=windows \
		--with-fftw \
		--with-freetype \
		--with-proj-share=$OSGEO4W_ROOT_MSYS/share/proj \
		--with-gdal=$OSGEO4W_ROOT_MSYS/bin/gdal-config \
		--with-tcltk \
		--with-sqlite \
		--with-postgres \
		--with-curses \
		--with-regex \
		--with-nls \
		--with-freetype-includes=$OSGEO4W_ROOT_MSYS/include/freetype2 \
		--with-odbc

	touch mswindows/osgeo4w/configure-stamp
fi

echo $(date): STARTING make
make || make

echo $(date): STARTING make install
make install

echo $(date): STARTING cleanup
mv $OSGEO4W_ROOT_MSYS/apps/grass/grass-$VERSION/lib/*.$VERSION.dll $OSGEO4W_ROOT_MSYS/bin
rm $OSGEO4W_ROOT_MSYS/apps/grass/grass-$VERSION/lib/*.dll

mv $OSGEO4W_ROOT_MSYS/apps/grass/grass-$VERSION/include/grass/config.h $OSGEO4W_ROOT_MSYS/apps/grass/grass-$VERSION/include/grass/config.h.mingw
cp mswindows/osgeo4w/config.h.switch $OSGEO4W_ROOT_MSYS/apps/grass/grass-$VERSION/include/grass/config.h
cp mswindows/osgeo4w/config.h.vc $OSGEO4W_ROOT_MSYS/apps/grass/grass-$VERSION/include/grass
cp mswindows/osgeo4w/grass64.bat.tmpl $OSGEO4W_ROOT_MSYS/bin/grass64.bat.tmpl
cp mswindows/osgeo4w/ini.bat.tmpl $OSGEO4W_ROOT_MSYS/etc/ini/grass.bat.tmpl
cp mswindows/osgeo4w/postinstall.bat $OSGEO4W_ROOT_MSYS/etc/postinstall/grass.bat
cp mswindows/osgeo4w/preremove.bat $OSGEO4W_ROOT_MSYS/etc/preremove/grass.bat
#cp /c/mingw/bin/libgnurx-0.dll $OSGEO_ROOT_MSYS/bin
#cp /c/mingw/bin/libiconv-2.dll $OSGEO_ROOT_MSYS/bin
#cp /c/mingw/bin/libintl-8.dll $OSGEO_ROOT_MSYS/bin

P=$(pwd -W)
P=${P//\//\\\\}\\\\dist.i686-pc-mingw32

sed -e "s#$P#@osgeo4w@#" $OSGEO4W_ROOT_MSYS/apps/grass/grass-$VERSION/etc/fontcap >$OSGEO4W_ROOT_MSYS/apps/grass/grass-$VERSION/etc/fontcap.tmpl
sed -e "s#$P#@osgeo4w_msys@#" $OSGEO4W_ROOT_MSYS/apps/grass/bin/grass64 >$OSGEO4W_ROOT_MSYS/apps/grass/bin/grass64.tmpl
rm $OSGEO4W_ROOT_MSYS/apps/grass/grass-$VERSION/etc/fontcap 

echo $(date): END

) | tee -a mswindows/osgeo4w/package.log

(1)after compiling, in C:\OSGeo4W\usr\src\grass64svn\dist.i686-pc-mingw32 there are following files/folders:

AUTHORS
bin
bwidget
CHANGES
COPYING
demolocation
docs
driver
etc
fonts
GPL.TXT
grass64.tmp
include
lib
locale
log.txt
REQUIREMENTS.html
scripts
tools

so contributors.csv and translators.csv seems to be missed and therefore also not in C:\OSGeo4W\apps\grass\grass-6.4.1svn after installing

(2)

in C:\OSGeo4W\usr\src\grass64svn\bin.i686-pc-mingw32 there are following files:

grass64
grass64.bat

a few weeks ago the files, adapted for the path etc., were installed in C:\OSGeo4W\apps\grass\bin.

now there is only an empty grass64.tmpl in C:\OSGeo4W\apps\grass\bin

and in C:\OSGeo4W\bin there is grass64.bat.tmpl and in C:\OSGeo4W\bin\bin there are the two files grass64 and grass64.bat (but not adapted for the path)

and in the installation-log there is following message:

----------------------------------------------------------------------
Following modules are missing the 'description.html' file in src code:
----------------------------------------------------------------------
GRASS GIS compilation log
-------------------------
Started compilation: Sat Oct 30 17:35:17 GMT 2010
--
Errors in:
No errors detected.
--
Finished compilation: Sat Oct 30 18:45:00 GMT 2010
Sat Oct 30 18:45:00 GMT 2010: STARTING make install
include/Make/Doxygen.make:13: warning: overriding commands for target `htmldocs                                                                              -single'
include/Make/Docs.make:11: warning: ignoring old commands for target `htmldocs-                                                                              single'
include/Make/Doxygen.make:19: warning: overriding commands for target `htmldocs                                                                              '
include/Make/Docs.make:38: warning: ignoring old commands for target `htmldocs'
include/Make/Doxygen.make:39: warning: overriding commands for target `pdfdocs'
include/Make/Docs.make:49: warning: ignoring old commands for target `pdfdocs'
include/Make/Doxygen.make:51: warning: overriding commands for target `cleandoc                                                                              s'
include/Make/Docs.make:55: warning: ignoring old commands for target `cleandocs                                                                              '
echo /c/osgeo4w/usr/src/grass64svn/bin.i686-pc-mingw32/grass64
/c/osgeo4w/usr/src/grass64svn/bin.i686-pc-mingw32/grass64
include/Make/Doxygen.make:13: warning: overriding commands for target `htmldocs                                                                              -single'
include/Make/Docs.make:11: make[1]: Entering directory `/c/osgeo4w/usr/src/gras                                                                              s64svn'
warning: ignoring old commands for target `htmldocs-single'
include/Make/Doxygen.make:19: warning: overriding commands for target `htmldocs                                                                              '
include/Make/Docs.make:38: warning: ignoring old commands for target `htmldocs'
include/Make/Doxygen.make:39: warning: overriding commands for target `pdfdocs'
include/Make/Docs.make:49: warning: ignoring old commands for target `pdfdocs'
include/Make/Doxygen.make:51: warning: overriding commands for target `cleandoc                                                                              s'
include/Make/Docs.make:55: warning: ignoring old commands for target `cleandocs                                                                              '
test -d /c/OSGeo4W/apps/grass/grass-6.4.1svn || mkdir -p -m 755 /c/OSGeo4W/apps                                                                              /grass/grass-6.4.1svn
test -d /c/OSGeo4W/bin/bin || mkdir -p -m 755 /c/OSGeo4W/bin/bin
sed -e "s#^GISBASE.*#GISBASE=/c/OSGeo4W/apps/grass/grass-6.4.1svn#" /c/osgeo4w/                                                                              usr/src/grass64svn/bin.i686-pc-mingw32/grass64 > /c/OSGeo4W/bin/bin/grass64
chmod a+x /c/OSGeo4W/bin/bin/grass64
sed -e "s#WINGISBASE=.*#WINGISBASE=/c/OSGeo4W/apps/grass/grass-6.4.1svn#" /c/os                                                                              geo4w/usr/src/grass64svn/bin.i686-pc-mingw32/grass64.bat > /c/OSGeo4W/bin/bin/g                                                                              rass64.bat
chmod a+x /c/OSGeo4W/bin/bin/grass64.bat
cd /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32 ; tar cBf - AUTHORS COPYI                                                                              NG CHANGES REQUIREMENTS.html GPL.TXT | (cd /c/OSGeo4W/apps/grass/grass-6.4.1svn                                                                               ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32 ; tar cBf - bin | (cd /c/                                                                              OSGeo4W/apps/grass/grass-6.4.1svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32 ; tar cBf - bwidget | (cd                                                                               /c/OSGeo4W/apps/grass/grass-6.4.1svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32 ; tar cBf - docs | (cd /c                                                                              /OSGeo4W/apps/grass/grass-6.4.1svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32 ; tar cBf - driver | (cd                                                                               /c/OSGeo4W/apps/grass/grass-6.4.1svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32 ; tar cBf - etc | (cd /c/                                                                              OSGeo4W/apps/grass/grass-6.4.1svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32 ; tar cBf - fonts | (cd /                                                                              c/OSGeo4W/apps/grass/grass-6.4.1svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32 ; tar cBf - man | (cd /c/                                                                              OSGeo4W/apps/grass/grass-6.4.1svn ; tar xBf - ) 2>/dev/null
tar: man: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
cd /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32 ; tar cBf - scripts | (cd                                                                               /c/OSGeo4W/apps/grass/grass-6.4.1svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32 ; tar cBf - tools | (cd /                                                                              c/OSGeo4W/apps/grass/grass-6.4.1svn ; tar xBf - ) 2>/dev/null
if [ 1 -eq 1 ] ; then cd /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32 ; t                                                                              ar cBf - locale | (cd /c/OSGeo4W/apps/grass/grass-6.4.1svn ; tar xBf - ) 2>/dev                                                                              /null ; fi
cd /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32 ; tar cBf - include | (cd                                                                               /c/OSGeo4W/apps/grass/grass-6.4.1svn ; tar xBf - ) 2>/dev/null
cd /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32 ; tar cBf - lib | (cd /c/                                                                              OSGeo4W/apps/grass/grass-6.4.1svn ; tar xBf - ) 2>/dev/null
sed 's#'/c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32'#'/c/OSGeo4W/apps/gr                                                                              ass/grass-6.4.1svn'#g' /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/etc/m                                                                              onitorcap > /c/OSGeo4W/apps/grass/grass-6.4.1svn/etc/monitorcap
sed 's#'/c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32'#'/c/OSGeo4W/apps/gr                                                                              ass/grass-6.4.1svn'#g' /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/etc/f                                                                              ontcap > /c/OSGeo4W/apps/grass/grass-6.4.1svn/etc/fontcap
chmod -R a+rX /c/OSGeo4W/apps/grass/grass-6.4.1svn 2>/dev/null
tar cBf - gem/skeleton | (cd /c/OSGeo4W/apps/grass/grass-6.4.1svn/etc ; tar xBf                                                                               - ) 2>/dev/null
tar: gem/skeleton/.svn/text-base: file changed as we read it
/bin/install -c  gem/gem64 /c/OSGeo4W/bin/bin 2>/dev/null
make[1]: [real-install] Error 1 (ignored)
make[1]: Leaving directory `/c/osgeo4w/usr/src/grass64svn'
Sat Oct 30 18:46:41 GMT 2010: STARTING cleanup
sed: can't read /c/OSGeo4W/apps/grass/bin/grass64: No such file or directory

so the sed-command can't find the file in C:\OSGeo4W\apps\grass\bin, because it's partly in C:\OSGeo4W\bin and in C:\OSGeo4W\bin\bin

sed: can't read /c/OSGeo4W/apps/grass/bin/grass64: No such file or directory

AFAICT a few weeks ago this issues weren't there.

Helmut

Change History (6)

comment:1 by hellik, 13 years ago

Priority: normalcritical

contributors.csv and translators.csv are also missed in the nightly build WinGRASS-6.4.SVN-r44123-1-Setup.exe.

so maybe this is also considerable for other platforms than windows?

Helmut

in reply to:  1 comment:2 by hellik, 13 years ago

Keywords: installing added; wingrass removed
Platform: MSWindows VistaAll

Replying to hellik:

so maybe this is also considerable for other platforms than windows?

it seems so, because both files (contributors.csv, translators.csv) can't be find in the actual weekly linux-snapshot (grass-6.4.1svn-x86_64-unknown-linux-gnu-30_10_2010.tar.gz)

comment:3 by hellik, 13 years ago

Summary: wingrass - installation incomplete/messedinstallation incomplete/messed

comment:4 by neteler, 13 years ago

Fixed in SVN for 6.4 (will go into RC2), 6.5 and 7: contributors.csv, contributors_extra.csv, and translators.csv will now be installed.

No idea about the sed error though, perhaps the .svn/ directories needs to be masked in the tar job?

comment:5 by hellik, 13 years ago

Keywords: wingrass added

in reply to:  4 comment:6 by hellik, 13 years ago

Resolution: fixed
Status: newclosed

Replying to neteler:

Fixed in SVN for 6.4 (will go into RC2), 6.5 and 7: contributors.csv, contributors_extra.csv, and translators.csv will now be installed.

No idea about the sed error though, perhaps the .svn/ directories needs to be masked in the tar job?

fixed with changes based upon ticket #1271

Helmut

Note: See TracTickets for help on using tickets.