fwd: [GRASS-user] Re: compile addon module with debian grass-dev package

2 messages Options
Embed this post
Permalink
hamish-2

fwd: [GRASS-user] Re: compile addon module with debian grass-dev package

Reply Threaded More More options
Print post
Permalink
Fwd'd from the grass-user list; the grass-dev package needs --prefix
adjusted from the build chroot apparently..

this is for building addons as described here:
  http://grass.osgeo.org/wiki/Compile_and_Install#If_binary_comes_with_a_-dev_package


Hamish

=================================================================

Hamish wrote:
[...]
> it should be there,
> http://packages.debian.org/sid/i386/grass-dev/filelist

> ls will confirm :)

Yes, these files are certainly there, but somehow are not found when
building.

>> where the /build path doesn't exist.  What variable needs to be
>> passed to 'make' to set that /build path so as not to create such top
>> level directories beyond GRASS that might pollute the system? Thanks.

> is some enviro variable missing so that $VARIABLE/build/.../ becomes
> ""/build/... which tries to create a subdir off the root dir which
> fails for a normal user account?

Digging a bit, I found:

,-----[ /usr/lib/grass64/include/Make/Platform.make (lines: 66 - 70) ]
| # GRASS dirs
| GRASS_HOME          = /build/buildd/grass-6.4.0~rc4
| RUN_GISBASE         = /build/buildd/grass-6.4.0~rc4/dist.x86_64-pc-linux-gnu
| RUN_GISRC           = ${ARCH_DISTDIR}/demolocation/.grassrc${GRASS_VERSION_MAJOR}${GRASS_VERSION_MINOR}
`-----

so this seems hard-coded, unless something like:

make MODULE_TOPDIR=/usr/lib/grass64 GRASS_HOME=/usr/lib/grass64 \
    RUN_GISBASE=/usr/lib/grass64

could actually work?


> (and since it is broken, please don't try as root because who knows
> what will happen :)

... I was a bit reckless there, but it seems the only wild stuff was the
creation of the /build tree!  Thanks.


Cheers,

--
Seb

_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user

_______________________________________________
Pkg-grass-general mailing list
[hidden email]
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-general
Francesco P. Lovergine

Re: fwd: [GRASS-user] Re: compile addon module with debian grass-dev package

Reply Threaded More More options
Print post
Permalink
On Thu, May 28, 2009 at 12:16:13PM +1200, Hamish wrote:
> Fwd'd from the grass-user list; the grass-dev package needs --prefix
> adjusted from the build chroot apparently..
>
> this is for building addons as described here:
>   http://grass.osgeo.org/wiki/Compile_and_Install#If_binary_comes_with_a_-dev_package
>

This seems a bug in the GRASS building system: I would expect those values
would automagically set by the building scripts.

>
> ,-----[ /usr/lib/grass64/include/Make/Platform.make (lines: 66 - 70) ]
> | # GRASS dirs
> | GRASS_HOME          = /build/buildd/grass-6.4.0~rc4
> | RUN_GISBASE         = /build/buildd/grass-6.4.0~rc4/dist.x86_64-pc-linux-gnu
> | RUN_GISRC           = ${ARCH_DISTDIR}/demolocation/.grassrc${GRASS_VERSION_MAJOR}${GRASS_VERSION_MINOR}
> `-----
>
> so this seems hard-coded, unless something like:
>
> make MODULE_TOPDIR=/usr/lib/grass64 GRASS_HOME=/usr/lib/grass64 \
>     RUN_GISBASE=/usr/lib/grass64
>
> could actually work?
>

--
Francesco P. Lovergine

_______________________________________________
Pkg-grass-general mailing list
[hidden email]
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-general