Bug#630914: osm2pgsql: wrong searchpath for default.style
Martin Krüger
martin.krueger at gmx.com
Sat Jun 18 17:41:24 UTC 2011
Package: osm2pgsql
Version: 0.70.5+r25090-2
Severity: minor
The binary expects the default.style file in /usr/share/ .
The debian package-build-script places it in /usr/share/osm2pgsql/
So the programm fails if not given on the command-line:
-S /usr/share/osm2pgsql/default.style
Wrote a little patch solving the problem for me:
diff -r 28e4eb5474dd osm2pgsql.c
--- a/osm2pgsql.c Sat Jun 18 17:46:59 2011 +0200
+++ b/osm2pgsql.c Sat Jun 18 17:59:04 2011 +0200
@@ -152,7 +152,7 @@
printf(" \t\texceptions during import, you should try this switch.\n");
}
- printf(" -S|--style\t\tLocation of the style file. Defaults to " OSM2PGSQL_DATADIR "/default.style\n");
+ printf(" -S|--style\t\tLocation of the style file. Defaults to /usr/share/osm2pgsql/default.style\n");
printf(" -C|--cache\t\tOnly for slim mode: Use upto this many MB for caching nodes\n");
printf(" \t\tDefault is 800\n");
printf(" -U|--username\tPostgresql user name.\n");
@@ -311,7 +311,7 @@
const char *tblsindex = "pg_default"; // default TABLESPACE for index
const char *conninfo = NULL;
const char *prefix = "planet_osm";
- const char *style = OSM2PGSQL_DATADIR "/default.style";
+ const char *style = "/usr/share/osm2pgsql/default.style";
const char *temparg;
const char *output_backend = "pgsql";
const char *input_reader = "auto";
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.38-2-amd64 (SMP w/6 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages osm2pgsql depends on:
ii libbz2-1.0 1.0.5-6 high-quality block-sorting file co
ii libc6 2.13-4 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.6.0-10 GCC support library
ii libgeos-3.2.2 3.2.2-2 Geometry engine for Geographic Inf
ii libpq5 9.0.4-1+b1 PostgreSQL C client library
ii libproj0 4.7.0-1 Cartographic projection library
ii libprotobuf-c0 0.14-1+b1 Protocol Buffers C library
ii libstdc++6 4.6.0-10 The GNU Standard C++ Library v3
ii libxml2 2.7.8.dfsg-3 GNOME XML library
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages osm2pgsql recommends:
ii postgis 1.5.2-1 geographic objects support for Pos
ii postgresql-8.4-postgis 1.5.2-1 geographic objects support for Pos
Versions of packages osm2pgsql suggests:
pn gosmore <none> (no description available)
ii josm 0.0.svn4064-2 Editor for OpenStreetMap
-- no debconf information
More information about the Pkg-grass-devel
mailing list