[GRASS-dev] ubuntu/debian packages missing Platform.make?

Hi devs,

I just discovered that the "config" option on grass70 script doesn't
work with ubuntu/debian packages because Platform.make is missing,
anyway to solve it?

grass70 --config path

Traceback (most recent call last):
  File "/usr/bin/grass70", line 1345, in <module>
    parse_cmdline()
  File "/usr/bin/grass70", line 1281, in parse_cmdline
    print_params()
  File "/usr/bin/grass70", line 1194, in print_params
    fileplat = open(plat)
IOError: [Errno 2] No such file or directory:
'/usr/lib/grass70/include/Make/Platform.make'

Should I open a ticket?

--
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org

Hi,

2015-03-12 10:57 GMT+01:00 Luca Delucchi <lucadeluge@gmail.com>:

grass70 --config path

Traceback (most recent call last):
  File "/usr/bin/grass70", line 1345, in <module>
    parse_cmdline()
  File "/usr/bin/grass70", line 1281, in parse_cmdline
    print_params()
  File "/usr/bin/grass70", line 1194, in print_params
    fileplat = open(plat)
IOError: [Errno 2] No such file or directory:
'/usr/lib/grass70/include/Make/Platform.make'

my suggestion is to fix grass.py and suggest something similar as
g.extension does [1]. Martin

[1] http://trac.osgeo.org/grass/browser/grass/trunk/scripts/g.extension/g.extension.py#L786

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

On 12 March 2015 at 11:55, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

2015-03-12 10:57 GMT+01:00 Luca Delucchi <lucadeluge@gmail.com>:

grass70 --config path

Traceback (most recent call last):
  File "/usr/bin/grass70", line 1345, in <module>
    parse_cmdline()
  File "/usr/bin/grass70", line 1281, in parse_cmdline
    print_params()
  File "/usr/bin/grass70", line 1194, in print_params
    fileplat = open(plat)
IOError: [Errno 2] No such file or directory:
'/usr/lib/grass70/include/Make/Platform.make'

my suggestion is to fix grass.py and suggest something similar as
g.extension does [1]. Martin

[1] http://trac.osgeo.org/grass/browser/grass/trunk/scripts/g.extension/g.extension.py#L786

done in trunk r64838, could I backport to 7.0 release branch?

--
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org

2015-03-12 14:13 GMT+01:00 Luca Delucchi <lucadeluge@gmail.com>:

done in trunk r64838, could I backport to 7.0 release branch?

no, first fix it in trunk, it should `if not os.path.exists()` ... Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

On 12 March 2015 at 18:10, Martin Landa <landa.martin@gmail.com> wrote:

2015-03-12 14:13 GMT+01:00 Luca Delucchi <lucadeluge@gmail.com>:

done in trunk r64838, could I backport to 7.0 release branch?

no, first fix it in trunk, it should `if not os.path.exists()` ... Ma

sorry for the mistake... fixed in r64840 and backported in r64841

--
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org