Debian packages for PostGIS 2.0.0

Volker Grabsch vog at m-click.de
Thu May 31 20:43:58 UTC 2012


Dear PostGIS maintainers,

(Please CC to me as I'm not subscribed the list.)

I just succeeded in producing working Debian packages
for PostGIS 2.0.0 on Debian/Wheezy. Those are currently
targeted at PostgreSQL 9.1, but I also plan to produce
some for PostgreSQL 9.2.

I'm not completely happy with my work, but it might
be a good starting point for someone who wants to
create "official" Debian packages for PostGIS.

Attached you'll find two patch files which are meant
to be applied to the current unstable Debian files
(postgis_1.5.3-2.debian.tar.gz).

The *-stable.patch contains changes I'm confident with.

The *-hacks.patch contains changes which were necessary
to make the build working, but for which I think there
must be a better way.

Note that the build currently requires root privileges,
i.e. it doesn't work with fakeroot. The reason is that
Maven needs to download various packages into /root/.m2/
which of course isn't accessible by fakeroot. Also, I
don't think that build scripts which download packages
are acceptable for Debian. So this issue has to be solved,
but I don't have a clue how to do that.

I confirmed that my patches produce working Debian
packages on a Debian/Wheezy amd64 system using the
following steps:

------------------------------------------------
# Download packages
wget http://ftp.de.debian.org/debian/pool/main/p/postgis/postgis_1.5.3-2.debian.tar.gz
wget http://postgis.org/download/postgis-2.0.0.tar.gz

# Rename source tarball
mv postgis-2.0.0.tar.gz postgis_2.0.0.orig.tar.gz

# Unpack sources
tar xf postgis_2.0.0.orig.tar.gz
cd postgis-2.0.0
tar xf ../postgis_1.5.3-2.debian.tar.gz

# Apply patches
patch -p1 < ../debian-postgis-2.0.0-stable.patch
patch -p1 < ../debian-postgis-2.0.0-hacks.patch

# Run build as root, because fakeroot doesn't work yet :-(
sudo dpkg-buildpackage
------------------------------------------------


Regards,
Volker

-- 
Volker Grabsch
---<<(())>>---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debian-postgis-2.0.0-stable.patch
Type: text/x-diff
Size: 6642 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20120531/1f9ccb24/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debian-postgis-2.0.0-hacks.patch
Type: text/x-diff
Size: 737 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20120531/1f9ccb24/attachment-0001.patch>


More information about the Pkg-grass-devel mailing list