Package: gpsdrive-scripts
Version: 2.10~pre4-1
Severity: normal
Tags: patch

--- Please enter the report below this line. ---
For what is written in the README.Debian from package gpsdrive (~ line
40), gpsdrive_mapnik_gentiles should search osm.xml in user's home
directory, when trying to generate tiles. But the hard-coded path
present in the script points it to system wide DATA_DIR, which, I
think, could be problematic in multi-user environments.

Moreover, there is a little problem in osm-in.xml: a color in
hexadecimal form lacks of the '#' before.

A patch is attached, which should fix these two little issues.

Thank you for your work and happy Debianing!
Giovanni.

--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.22-3-686

Debian Release: lenny/sid
  500 unstable        www.debian-multimedia.org 
  500 unstable        ftp.it.debian.org 
  500 testing         security.debian.org 
  500 testing         ftp.it.debian.org 
  500 stable          wine.budgetdedicated.com 
  500 stable          ftp.it.debian.org 

--- Package information. ---
Depends                       (Version) | Installed
=======================================-+-==============
gpsdrive                                | 2.10~pre4-1
perl                      (>= 5.6.0-16) | 5.8.8-12
python2.5                               | 2.5.1-7
python-imaging                          | 1.1.6-2
python-mapnik                           | 0.5.0-1
libdbi-perl                             | 1.602-1
libdbd-mysql-perl                       | 4.006-1
libdate-manip-perl                      | 5.48-3
libfile-slurp-perl                      | 9999.12-2
libmime-base64-perl                     | 
libtext-query-perl                      | 0.07-4
libtime-local-perl                      | 1.18-1
libwww-curl-perl                        | 3.02-3
libwww-mechanize-perl                   | 1.34-1
libxml-parser-perl                      | 2.36-1
libxml-simple-perl                      | 2.18-1
libxml-twig-perl                        | 1:3.32-1
libxml-writer-perl                      | 0.603-1
perlmagick                              | 
perl-tk                                 | 1:804.027-8
-- 
Giovanni Mascellani <[EMAIL PROTECTED]>
Pisa, Italy

Web: http://giomasce.altervista.org
SIP: [EMAIL PROTECTED]
Jabber: [EMAIL PROTECTED] / [EMAIL PROTECTED]
GPG: 0x5F1FBF70 (FP: 1EB6 3D43 E201 4DDF 67BD  003F FCB0 BB5C 5F1F BF70)

diff -r gpsdrive-2.10~pre4.orig/debian/patches/10-mapnikdir.dpatch gpsdrive-2.10~pre4/debian/patches/10-mapnikdir.dpatch
8,9c8,9
< --- gpsdrive-2.10~pre4~/scripts/mapnik/Makefile.am	2007-09-14 21:47:06.000000000 +0000
< +++ gpsdrive-2.10~pre4/scripts/mapnik/Makefile.am	2007-10-16 08:22:45.000000000 +0000
---
> --- gpsdrive-2.10~pre4~/scripts/mapnik/Makefile.am	2007-09-14 23:47:06.000000000 +0200
> +++ gpsdrive-2.10~pre4/scripts/mapnik/Makefile.am	2008-02-17 11:24:31.000000000 +0100
30,31c30,31
< --- gpsdrive-2.10~pre4~/scripts/mapnik/osm-in.xml	2007-09-14 21:47:06.000000000 +0000
< +++ gpsdrive-2.10~pre4/scripts/mapnik/osm-in.xml	2007-10-16 08:24:20.000000000 +0000
---
> --- gpsdrive-2.10~pre4~/scripts/mapnik/osm-in.xml	2007-09-14 23:47:06.000000000 +0200
> +++ gpsdrive-2.10~pre4/scripts/mapnik/osm-in.xml	2008-02-17 11:25:02.000000000 +0100
130a131,139
> @@ -346,7 +346,7 @@
>        <Filter>[amenity] = 'parking'</Filter>
>        <MaxScaleDenominator>25000</MaxScaleDenominator>
>        <LineSymbolizer>
> -        <CssParameter name="stroke">eeeed1</CssParameter>
> +        <CssParameter name="stroke">#eeeed1</CssParameter>
>  	<CssParameter name="stroke-width">0.3</CssParameter>
>        </LineSymbolizer>
>      </Rule>
242,243c251,252
< --- gpsdrive-2.10~pre4~/src/mapnik.cpp	2007-09-14 21:47:13.000000000 +0000
< +++ gpsdrive-2.10~pre4/src/mapnik.cpp	2007-10-16 08:22:45.000000000 +0000
---
> --- gpsdrive-2.10~pre4~/src/mapnik.cpp	2007-09-14 23:47:13.000000000 +0200
> +++ gpsdrive-2.10~pre4/src/mapnik.cpp	2008-02-17 11:24:31.000000000 +0100
diff -r gpsdrive-2.10~pre4.orig/debian/patches/50-scripts.dpatch gpsdrive-2.10~pre4/debian/patches/50-scripts.dpatch
8,9c8,9
< --- gpsdrive-2.10~pre4~/scripts/mapnik/gpsdrive_mapnik_gentiles-in.py	2007-09-15 15:11:59.000000000 +0000
< +++ gpsdrive-2.10~pre4/scripts/mapnik/gpsdrive_mapnik_gentiles-in.py	2007-10-03 13:59:45.000000000 +0000
---
> --- gpsdrive-2.10~pre4~/scripts/mapnik/gpsdrive_mapnik_gentiles-in.py	2007-09-15 17:11:59.000000000 +0200
> +++ gpsdrive-2.10~pre4/scripts/mapnik/gpsdrive_mapnik_gentiles-in.py	2008-02-17 11:23:01.000000000 +0100
15a16,24
> @@ -166,7 +166,7 @@
>  
>      home = os.environ['HOME']
>      data = "@DATA_DIR@/mapnik"
> -    mapfile = data + "/osm.xml"
> +    mapfile = home + "/.gpsdrive/osm.xml"
>      tile_dir = home + "/.gpsdrive/maps/mapnik/"
>      mapkoordfile = home + "/.gpsdrive/maps/map_koord.txt"
>      

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel

Reply via email to