[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Pkg-grass-general] libgdal-grass version



On Mon, Jun 13, 2005 at 12:01:23PM +1200, Hamish wrote:
> > I'm about to send libgdal-grass off to my sponsor for an upload to
> > unstable. But I'm planning to package it as 1.2.3-0 instead of
> > 1.2.5-0. The upstream tarball is versioned 1.2.3. I assume that 1.2.5
> > was chosen to mirror the gdal version and avoid confusion about
> > whether libgdal-grass-1.2.3 could be used with gdal-1.2.5. But now
> > gdal is at 1.2.6. So going backwards might play a little havoc down
> > the road with debian-gis users versioning, but I think it's best. Any
> > objections?
> 
> 
> I don't think so.
> 
> The GRASS plugin code comes with the GDAL source tarball, in frmts/grass/.
> 
> The "upstream tarball" I see in
>  http://pkg-grass.alioth.debian.org/debian-gis/pool/libg/libgdal-grass/
> is libgdal-grass_1.2.5.orig.tar.gz, which contains the C++ code from the
> main GDAL frmts/grass/ directory, plus some added ./configure files.
> 
> "v1.2.3" comes from the fact that the grass driver didn't change between
> 2004/09/24 and the release of 1.2.6. It has changed in CVS since then.
> 
> 
> libgdal-grass should generate itself from the GDAL.orig tarball, not its
> own one.
> ?

It is rather easy to produce a new libgdalgrass-tarball from the the
sources of gdal:
cd gdal-$(VERSION); ./configure (with all options of gdal-1.2.6)
cd gdal-$(VERSION)/frmts/grass; make dist

This is how  libgdal-grass_1.2.5.orig.tar.gz has been created.

Ideally the libgdal1-grass-package would download the sources of the
current gdal-package, configure gdal anew than build  a new
libgdalgrass-tarball and build the libgdal1-grass-library
afterwards. This requires to change the configure-section of the
rules-file.

I once tried to update the debian/rules accordingly but so far I
havn't been successful. This is what I tried so far:

config.status:
        dh_testdir

        apt-get source gdal
        (cd gdal-$(VERSION); ./debian/rules config.status)
        (cd gdal-$(VERSION)/frmts/grass; make dist)
        tar xzf gdal-$(VERSION)/frmts/grass/gdal-grass-$(VERSION).tar.gz \
                --strip-path=2
        ./configure --with-grass=/usr/lib/grass

Unfortunately I can't remember any more what went wrong. Due to lots
of external events (a conference, a course and (last but no least)
the Linuxtag - a very famous Linux-fair in Germany) I I won't have
time to try it again within the next 2 weeks but I hope to come back
to it beginning of July. 

Meanwhile either one of you guys tries to create such a debian/rules
- or we just create the necessary tarball manually as described
above and use this as orig.tar.gz.  Since - as far as I understood
Frank - the grass-plugin hasn't changed between gdal 1.2.3 and 1.2.6
it should be possible just to rename the old tarball to
libgdal-grass_1.2.6.orig.tar.gz.

Many greetings,

	Silke

-- 
Intevation GmbH

Georgstrasse 4                    49074 Osnabrück, Germany
http://intevation.de              http://intevation.de/~silke
FreeGIS.org                       http://freegis.org/

Attachment: pgp4Z2NoVanLM.pgp
Description: PGP signature


Reply to: