[Gdal-dev] Re: gdal for ubuntu

Neil Best nbest at speakeasy.net
Fri Aug 25 09:30:12 EDT 2006

Hey, Debian and Ubuntu lovers, remember this thread?  I thought I would
spend some time researching package management again recently to see 
what I could learn about the status of bleeding edge gdal with respect 
to Ubuntu Dapper with an eye on Perl bindings.  Here's a report:

Downloaded gdal-cvs-2006.08.11 from maptools.org

neil at gandalf:~/src/gdal/gdal-cvs-2006.08.11$ debuild -us -uc -b
dpkg-buildpackage: source package is gdal
dpkg-buildpackage: source version is 1.3.2-1
dpkg-buildpackage: source changed by Francesco Paolo Lovergine
<frankie at debian.org>
dpkg-buildpackage: host architecture i386
  fakeroot debian/rules clean
# reminiscence to old procedure of building man pages, will now created
# by doxygen. This rm will be deleted in further releases of gdal
sh -c "if (test -d man/man1) then rm -r man/man1; fi"
/usr/bin/make distclean
make[1]: Entering directory `/home/neil/src/gdal/gdal-cvs-2006.08.11'
GNUmakefile:4: GDALmake.opt: No such file or directory
make[1]: *** No rule to make target `config.status', needed by
`GDALmake.opt'. Stop.
make[1]: Leaving directory `/home/neil/src/gdal/gdal-cvs-2006.08.11'
make: [clean-unpatched] Error 2 (ignored)
dh_clean build-stamp configure-stamp
dpatch  deapply-all
ogrili2layer.cpp not applied to ./ .
libname not applied to ./ .
rm -rf patch-stamp patch-stampT debian/patched
  debian/rules build
test -d debian/patched || install -d debian/patched
dpatch  apply-all
applying patch libname to ./ ... ok.
applying patch ogrili2layer.cpp to ./ ...patch: **** malformed patch at
line 18:   * Revision 1.2  2006/06/22 09:26:42  frankie

make: *** [patch-stamp] Error 1
debuild: fatal error at line 768:
dpkg-buildpackage failed!

[ Maybe this has been fixed since I tried it.  --NB ]

Downloaded gdal-1.3.2 and downgraded libxerces

neil at gandalf:~/src/gdal/gdal-1.3.2$ debuild -us -uc -b
. . .
dh_movefiles: debian/tmp/usr/share/man/man1/gdal_merge.py.1 not found
(supposed to put it in python-gdal)
dh_movefiles: debian/tmp/usr/share/man/man1/pct2rgb.py.1 not found
(supposed to put it in python-gdal)
make: *** [binary-arch] Error 1
debuild: fatal error at line 768:
dpkg-buildpackage failed!

neil at gandalf:~/src/gdal/gdal-1.3.2$ ./configure --with-perl
--with-grass=/usr/lib/grass  # GRASS from Dapper repos
. . .
neil at gandalf:~/src/gdal/gdal-1.3.2$ make
. . .
neil at gandalf:~/src/gdal/gdal-1.3.2$ sudo checkinstall -D make install
. . .
neil at gandalf:~/src/gdal/gdal-1.3.2$ gdalinfo --version
GDAL, released 2006/05/02

So building from source seems to be fine, but the debian/ files have
some problems, it seems.  I am interested in helping address these
issues, but I'm not really sure where to start.  Maybe my experience
exposes the problems to those who can read the signs.  In general I am
interested in bringing the latest-and-greatest GIS tools to Ubuntu.
Please let me know how I can help.


Steve Halasz wrote:
> I offered some time ago to keep the debian/ control files reasonably
> up-to-date with respect to the official debian packages. Life has been
> busy, but I'll try to find time for this soon.
> Steve
> On Thu, 2006-06-08 at 09:39 -0500, Neil Best wrote:
>> Yes, Mateusz, I was referring to the 'debian' directory in GDAL source
>> tree.  When I tried to build a package for 1.3.1 the dpkg-buildpackage
>> way I got .debs named with version 1.2.1 or something and had
>> dependencies that didn't make any sense.  I presume that these
>> parameters are embedded in the control files somewhere.  The same
>> procedure under 1.3.2 bombed out in similar fasion as Eric Patton
>> reported to the list.  Surprisingly I was able to install gdal using
>> checkinstall. (Yay! Perl bindings!)  This suggests that the debian/
>> files have fallen out of date.  I will attempt to contact the Debian
>> package maintainer, Silke Reimer, but other suggestions are certainly
>> welcome.  I am willing to help move this along, but hearing from someone
>> with more familiarity with the history of the debian/ files would be
>> helpful and encouraging.
>> Neil
>> On Fri, 2006-06-02 at 17:54 +0000, an Mateusz Loskot wrote:
>>> Neil Best wrote:
>>>> Hello, everybody.  I have been trying to build gdal from source for 
>>>> my ubuntu breezy box and have had some problems building .debs for 
>>>> both 1.3.1 and 1.3.2.
>>> Does it mean your problem is with building Debian packages (deb) or
>>> building GDAL binaries from source?
>>>> How can I learn more about the status of the debian/ sub-directory
>>>> and the possibility of getting upgraded packages into the ubuntu
>>>> repositories?
>>> Do you mean 'debian' directory in GDAL sources tree?
>>>> Anyone here involved with UbuntuGIS? 
>>>> https://wiki.ubuntu.com/UbuntuGIS
>>> I was involved for a while (2 months ago) as I'm Ubuntu user
>>> but I had to break for a (longer) while. I'll try to be back in a 2-3
>>> months.
>>> Cheers
>>> -- 
>>> Mateusz Loskot
>>> http://mateusz.loskot.net
>> _______________________________________________
>> Gdal-dev mailing list
>> Gdal-dev at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/gdal-dev

More information about the Gdal-dev mailing list