This was hard to debug. The problem is that the lunar plugin path is hardcoded in liblunar.so. When building the packages DESTDIR is set to the debian build directory, and this value is passed to the compiler, so liblunar.so tries to find lunar plugins in the debian build directory. As gimmeapill and me had build directories as we built the packages lunar plugins are loaded alright, but if I delete this dir, lunar plugins are not found by liblunar.so.
I attach a patch that omits passing DESTDIR to the compiler when liblunar.so is built. Now lunar plugins are found by liblunar.so. This is ugly, as it is recommended not to modify the sources in order to build debian packages, so if you find a better way to fix this tell me.
The wrong site-packages path in /etc/aldrin/path.cfg does not affect aldrin (it does not in my system), and I think it can be ignored, though I can try to fix the SConstruct script so this path is correct.
Hope now we can build correct packages.
- Code: Select all
--- armstrong-0.2.6+hg20090517.orig/src/plugins/lunar/SConscript
+++ armstrong-0.2.6+hg20090517/src/plugins/lunar/SConscript
@@ -58,7 +58,9 @@
])
pluginenv.Append(CCFLAGS=[
'-DZZUB_SHARE_DIR_PATH="\\"%s\\""' % str(pluginenv.Dir("${DESTDIR}${PREFIX}/share/zzub")),
- '-DZZUB_LIB_DIR_PATH="\\"%s\\""' % str(pluginenv.Dir("${DESTDIR}${PREFIX}${LIBDIR}/zzub")),
+# Fixes installation in Ubuntu
+ '-DZZUB_LIB_DIR_PATH="\\"%s\\""' % str(pluginenv.Dir("${PREFIX}${LIBDIR}/zzub")),
+# '-DZZUB_LIB_DIR_PATH="\\"%s\\""' % str(pluginenv.Dir("${DESTDIR}${PREFIX}${LIBDIR}/zzub")),
'-DSHLIBSUFFIX="\\"%s\\""' % pluginenv['SHLIBSUFFIX'],
'-DUSE_LUNAR',
])