[GRASS-dev] GRASS 7 - Ubuntu package build problem on Launchpad

Markus Neteler neteler at osgeo.org
Tue Dec 30 06:29:50 PST 2014


On Tue, Dec 30, 2014 at 3:13 PM, Ivan Mincik <ivan.mincik at gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 30.12.2014 15:00, Markus Neteler wrote:
>> GRASS 7.0.0 (latlong):~ > Unable to get GRASS version Unable to get
>> GRASS version
>>
>> GRASS 7.0.0 (latlong):~ > g.version -g version=7.0.0svn date=2014
>> revision= build_date=2014-12-13 build_platform=x86_64-pc-linux-gnu
>
> Fine, I have also seen this error. I was not sure if it is bug or some
> build configuration problem, so I was not sure if I should report it.

It only occurs on Ubuntu and will render GRASS (partially) unusable.

> My earlier note to packages versioning:
> For Ubuntu PPA builds I strongly suggest to update build recipe with
> SVN revision number instead of meaningless BZR one, which has no
> relation to SVN and is confusing:
>
>
> Proposed recipe:
> # bzr-builder format 0.4 deb-version 7.0.0+1svn{svn-revno}
> lp:grass/7.0
> nest debianfiles lp:~grass/grass/grass70_release_debian debian

Not really being an Ubuntu user I have no opinion here.

But this is how the version is generated:

# original source code
include/Make/Platform.make.in:GRASS_VERSION_SVN   = @GRASS_VERSION_SVN@

# --> configure -->
include/Make/Platform.make:GRASS_VERSION_SVN   = 63869M

# g.version:
general/g.version/Makefile
EXTRA_CFLAGS = $(PROJINC) $(GEOSCFLAGS) \
...
        -DGRASS_VERSION_SVN=\"'$(GRASS_VERSION_SVN)'\" \

general/g.version/main.c
# line 99:
         fprintf(stdout, "revision=%s\n", GRASS_VERSION_SVN);

So, when running "configure" before compilation, the version number is
picked up:
In "configure" line 1281 and later, it executes

svnversion

which reports the SVN revision number.  Could you please execute
"svnversion" in your GRASS 7.0.svn source code main directory?

Markus


More information about the grass-dev mailing list