[GRASS-dev] [GRASS GIS] #620: Platform.make odd variables settings

#620: Platform.make odd variables settings
--------------------------+-------------------------------------------------
Reporter: frankie | Owner: grass-dev@…
     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 martinl):

What is status of this ticket?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/620#comment:20&gt;
GRASS GIS <http://grass.osgeo.org>

#620: Platform.make odd variables settings
--------------------------+-------------------------------------------------
Reporter: frankie | Owner: grass-dev@…
     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):

Replying to [comment:20 martinl]:
> What is status of this ticket?

Open.

see also #854, #1178, #1180, r45804, r45796.

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/620#comment:21&gt;
GRASS GIS <http://grass.osgeo.org>

#620: Platform.make odd variables settings
--------------------------+-------------------------------------------------
Reporter: frankie | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: Installation | Version: 6.4.0 RCs
Keywords: g.extension | Platform: All
      Cpu: Unspecified |
--------------------------+-------------------------------------------------
Changes (by neteler):

  * platform: Linux => All
  * milestone: 6.4.1 => 6.4.2

Comment:

Please try fix in r46314.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/620#comment:22&gt;
GRASS GIS <http://grass.osgeo.org>

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

Comment(by manu):

The fix worked for me (after compiling the grass-6.4.2svn from the
releasebranch on Ubuntu 10.10

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/620#comment:23&gt;
GRASS GIS <http://grass.osgeo.org>

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

Comment(by manu):

Broken again on Ubuntu 11.10 and still "the Variable LOCATION_NAME not
set" problem

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/620#comment:24&gt;
GRASS GIS <http://grass.osgeo.org>

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

Comment(by hamish):

Replying to [comment:24 manu]:
> Broken again on Ubuntu 11.10 and still "the Variable LOCATION_NAME not
set" problem

if you can, please try the debian build rules from DebianGIS git, and the
g.extension from devbr6, I just sync'd that to the latest behaviour of the
g.extension script yesterday. I would not be surprised if earlier versions
and combinations fail.

afair the "the Variable LOCATION_NAME not set" message does no harm and
can be ignored. can you attach the full output?

how are you building? manually or in a .deb package?
where are you running it from? directly from the build dir or after 'make
install', or from the .deb?

I tested 6.4.2rc2 on ubuntu 11.10 yesterday (debian sid too) while helping
Helmut, g.extension worked for me from the .deb, and from the build dir
for 6.5svn, but I will have another try in case I missed something.

thanks,
Hamish

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/620#comment:25&gt;
GRASS GIS <http://grass.osgeo.org>

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

Comment(by manu):

I'm on Ubuntu 11.10.

I tried to compile 6.4.2 (release_20111115_grass_6_4_2RC2) with the build
rules from DebianGIS http://anonscm.debian.org/gitweb/?p=pkg-
grass/grass.git;a=blob_plain;f=debian/rules;hb=HEAD but as with the
package Makefile, compilation yielded some errors although final error
message was "No errors detected." .

Grass startup then crashes as discribed on other plateform
https://bugzilla.redhat.com/show_bug.cgi?id=694956, see below.

Any hints?

Cheers

I run ./configure with the -with-tcltk-includes=/usr/include/tcl8.4
option.

Starting GRASS ... Traceback (most recent call last):

     File "/usr/local/grass-6.4.2RC2/etc/wxpython/gis_set.py", line 894, in
<module>

         GRASSStartUp = StartUp?(0)

     File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7978, in init

         self._BootstrapApp()

     File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7552, in _BootstrapApp

         return _core_.PyApp?BootstrapApp(*args, **kwargs)

     File "/usr/local/grass-6.4.2RC2/etc/wxpython/gis_set.py", line 865, in
OnInit?

         StartUp? = GRASSStartup()

     File "/usr/local/grass-6.4.2RC2/etc/wxpython/gis_set.py", line 166, in
init

         self._set_properties()

     File "/usr/local/grass-6.4.2RC2/etc/wxpython/gis_set.py", line 213, in
_set_properties

         self.OnSetDatabase?(None)

     File "/usr/local/grass-6.4.2RC2/etc/wxpython/gis_set.py", line 686, in
OnSetDatabase?

         self.UpdateLocations?(self.gisdbase)

     File "/usr/local/grass-6.4.2RC2/etc/wxpython/gis_set.py", line 568, in
UpdateLocations?

         self.listOfLocations = utils.GetListOfLocations?(dbase)

     File "/usr/local/grass-6.4.2RC2/etc/wxpython/gui_modules/utils.py",
line 602, in GetListOfLocations?

         for location in glob.glob(os.path.join(dbase, "*")):

     File "/usr/lib/python2.7/glob.py", line 16, in glob

         return list(iglob(pathname))

     File "/usr/lib/python2.7/glob.py", line 43, in iglob

         yield os.path.join(dirname, name)

     File "/usr/lib/python2.7/posixpath.py", line 71, in join

         path += '/' + b

UnicodeDecodeError?: 'ascii' codec can't decode byte 0xa3 in position 1:
ordinal not in range(128) Error in GUI startup. If necessary, please
report this error to the GRASS developers. Switching to text mode now.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/620#comment:26&gt;
GRASS GIS <http://grass.osgeo.org>

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

Comment(by manu):

Replying to [comment:26 manu]:
> I'm on Ubuntu 11.10.
>
> I tried to compile 6.4.2 (release_20111115_grass_6_4_2RC2) with the
build rules from DebianGIS http://anonscm.debian.org/gitweb/?p=pkg-
grass/grass.git;a=blob_plain;f=debian/rules;hb=HEAD but as with the
package Makefile, compilation yielded some errors although final error
message was "No errors detected." .
>
> Grass startup then crashes as discribed on other plateform
https://bugzilla.redhat.com/show_bug.cgi?id=694956, see below.

I just solved this problem by starting grass straight into a location and
then starting the wxpython gui manually.

Regarding the g.extension problem, still some errors when compiling
modules such as r.out.gmt2 but installation succeeds despite these, after
a make MODULE_TOPDIR=/usr/local/grass-6.4.2RC2/ within the module
directory

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/620#comment:27&gt;
GRASS GIS <http://grass.osgeo.org>

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

Comment(by hamish):

Replying to [comment:27 manu]:
> Regarding the g.extension problem, still some errors when
> compiling modules such as r.out.gmt2 but installation succeeds
> despite these,

`ERROR: G_getenv(): Variable LOCATION_NAME not set` now fixed in devbr6
and 6.4svn with r49341,2. It was harmless except that the --html-
description usage part was not being added to the help pages because the
dummy location was missing.

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/620#comment:28&gt;
GRASS GIS <http://grass.osgeo.org>

#620: Platform.make odd variables settings
---------------------------+------------------------------------------------
  Reporter: frankie | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.2
Component: Installation | Version: 6.4.0 RCs
Resolution: fixed | Keywords: g.extension
  Platform: All | Cpu: Unspecified
---------------------------+------------------------------------------------
Changes (by hamish):

  * status: new => closed
  * resolution: => fixed

Comment:

I believe this has been fixed by a combination of recent changes to the
grass build/install scripts and the debian packaging rules script.

Hamish

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/620#comment:29&gt;
GRASS GIS <http://grass.osgeo.org>