Your message dated Sun, 26 Feb 2012 22:03:44 +0100
with message-id <20120226220344.69feae72@local>
and subject line Closing bug
has caused the Debian Bug report #630914,
regarding osm2pgsql: wrong searchpath for default.style
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
630914: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=630914
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Version: 0.80.0+r27899-1
Hello,
it seems like this was already fixed upstream.
In fact, in the Makefile, there is:
osm2pgsqldir = $(datadir)/osm2pgsql
This is reflected in the code, and thus osm2pgsql should find its style
in the correct directory.
Please feel free to reopen if this is not fixed in the indicated version.
Kindly,
David
--
. ''`. Debian developer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|---- http://deb.li/dapal
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
signature.asc
Description: PGP signature
--- End Message ---