[GRASS-user] Re: g.extension and GRASS 6.4.1

Markus Neteler neteler at osgeo.org
Thu May 12 08:17:14 EDT 2011


On Thu, May 12, 2011 at 11:16 AM, Markus Neteler <neteler at osgeo.org> wrote:
> On Wed, May 11, 2011 at 6:50 PM, William Kyngesburye
> <woklist at kyngchaos.com> wrote:
>> On May 11, 2011, at 11:20 AM, Markus Neteler wrote:
>>
>>> On Wed, May 11, 2011 at 3:48 PM, William Kyngesburye
>>> <woklist at kyngchaos.com> wrote:
>>>> On May 11, 2011, at 3:45 AM, Luca Casagrande wrote:
>>>>
>>>>> Right now the last troubles is related to missing
>>>>> /usr/src/packages/BUILD/grass-6.4.1/tools/g.html2man/g.html2man
>>>>>
>>>>
>>>> I'm the one that fixed g.extension.  I'm waiting on comments whether there might be any problems installing this (security, side effects,...).
>>>
>>> There is one thing: The install script
>>> binaryInstall.src
>>>
>>> should update include/Make/Platform.make for the target
>>> installation. The include/ directory is packaged in the main Makefile
>>> but "as-is" and Platform.make therein needs to be updated in
>>> the installation process accordingly.
>>>
>> So far I haven't touched the include/Make files as currently installed.  The changes to g.extension take care of necessary changes to the makefiles on-the-fly.
>
> Apparently r46240 or related leads to a complete failure of the compilation of
> the modules. Random example:
>
> GRASS_PERL=/usr/bin/perl VERSION_NUMBER=6.4.2svn sh /usr/bin/install
> -c  -m 644/tools/g.html2man/g.html2man
> /home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/docs/html/i.photo.target.html
> /home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/man/man1/i.photo.target.1
> 1
> /usr/bin/install: /usr/bin/install: cannot execute binary file
>
> The problem is
> .... /usr/bin/install -c  -m 644/tools/g.html2man ....

Fixed in r46244.

The next issue is (compiling GRASS the first time):

GRASS_PERL=/usr/bin/perl VERSION_NUMBER=6.4.2svn sh
/usr/local/grass-6.4.2svn/tools/g.html2man/g.html2man
/home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/docs/html/r.buffer.html
/home/neteler/grass64_svn_relbranch_bin_snapshot/grass64_relbranch/dist.x86_64-unknown-linux-gnu/man/man1/r.buffer.1
1
sh: /usr/local/grass-6.4.2svn/tools/g.html2man/g.html2man: No such
file or directory

which is related to
http://trac.osgeo.org/grass/changeset/46243

The only solution will be
- check if $(INSTALL_DATA)/tools/g.html2man/g.html2man is installed,
- otherwise use $(GRASS_HOME)/tools/g.html2man/g.html2man

No idea how to write that in a Makefile...

Markus


More information about the grass-user mailing list