This is an automated email from the git hooks/post-receive script.

rubund-guest pushed a commit to branch master
in repository sosi2osm.

commit 2d436c884889de9470e9902fbbe4e81bce667e33
Author: Ruben Undheim <ruben.undh...@gmail.com>
Date:   Mon Jul 7 15:54:06 2014 +0200

    Fixed "not finding lua files" problem
---
 debian/changelog                    |  2 +-
 debian/patches/find_lua_files.patch | 11 +++++++++++
 debian/patches/series               |  1 +
 debian/sosi2osm.install             |  1 +
 4 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 09330b1..25125b0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-sosi2osm (20140707git634fc65-1) unstable; urgency=low
+sosi2osm (20140707git634fc65-1~trusty) trusty; urgency=low
 
   * Initial release
 
diff --git a/debian/patches/find_lua_files.patch 
b/debian/patches/find_lua_files.patch
new file mode 100644
index 0000000..8280b99
--- /dev/null
+++ b/debian/patches/find_lua_files.patch
@@ -0,0 +1,11 @@
+--- sosi2osm-20140707git634fc65.orig/tag.cpp
++++ sosi2osm-20140707git634fc65/tag.cpp
+@@ -37,7 +37,7 @@ void loadLua(char* filename) {
+     luaL_openlibs(state);
+     
+     char library_filename[256];
+-    snprintf(library_filename, 256, "%s/lua/sosi2osm.lua", dirname(execname));
++    snprintf(library_filename, 256, "/usr/share/sosi2osm/lua/sosi2osm.lua");
+     
+     int r = luaL_loadfile(state, library_filename);
+     if (r) {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..54c007a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+find_lua_files.patch
diff --git a/debian/sosi2osm.install b/debian/sosi2osm.install
index db4ea19..753f6a7 100644
--- a/debian/sosi2osm.install
+++ b/debian/sosi2osm.install
@@ -1 +1,2 @@
 sosi2osm usr/bin
+lua usr/share/sosi2osm

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-grass/sosi2osm.git

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

Reply via email to