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
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

Debian Bug Tracking System
Contact with problems
--- Begin Message ---
Package: osm2pgsql
Version: 0.70.5+r25090-2
Severity: minor

The binary expects the 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/

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 
-    printf("   -S|--style\t\tLocation of the style file. Defaults to " 
+    printf("   -S|--style\t\tLocation of the style file. Defaults to 
     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 "/";
+    const char *style = "/usr/share/osm2pgsql/";
     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: 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


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.


 . ''`.   Debian developer |
 : :'  : Linuxer #334216 --|--
 `. `'`  GPG: 1392B174 ----|----
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174

Attachment: signature.asc
Description: PGP signature

--- End Message ---
Pkg-grass-devel mailing list

Reply via email to