linuxmint/Cinnamon — Issue #126: Issues with Debian Unstable
Author: Trois-Six
Created: 2012-01-09 22:09:49+00:00
State: open

Hi,

I finally found the way to compile cinnamon on Debian unstable following the changelog of gnome-shell (3.2.1-1) experimental

The final patch :diff --git a/debian/cinnamon.lintian-overrides b/debian/cinnamon.lintian-overrides
index 92bfc89..c221ee2 100644
--- a/debian/cinnamon.lintian-overrides
+++ b/debian/cinnamon.lintian-overrides
@@ -1,4 +1,4 @@
# It's the only way we have to let cinnamon find the private library it
# links against through libcinnamon.so
cinnamon: binary-or-shlib-defines-rpath usr/bin/cinnamon /usr/lib/gnome-bluetooth
-cinnamon: binary-or-shlib-defines-rpath ./usr/bin/cinnamon /usr/lib/gnome-bluetooth
+cinnamon: binary-or-shlib-defines-rpath usr/lib/cinnamon/libcinnamon.so /usr/lib/gnome-bluetooth
diff --git a/js/Makefile.in b/js/Makefile.in
index ea68e07..054cfef 100644
--- a/js/Makefile.in
+++ b/js/Makefile.in
@@ -220,7 +220,6 @@ PYTHON_VERSION = @PYTHON_VERSION@
RANLIB = @RANLIB@
SED = @SED@
SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
STRIP = @STRIP@
ST_CFLAGS = @ST_CFLAGS@
ST_LIBS = @ST_LIBS@
@@ -314,10 +313,10 @@ nobase_dist_js_DATA = \
ui/automountManager.js \
ui/autorunManager.js \
ui/boxpointer.js \
- ui/calendar.js \
- ui/ctrlAltTab.js \
+ ui/calendar.js \
+ ui/ctrlAltTab.js \
ui/dateMenu.js \
- ui/dnd.js \
+ ui/dnd.js \
ui/endSessionDialog.js \
ui/environment.js \
ui/extensionSystem.js \
@@ -341,12 +340,12 @@ nobase_dist_js_DATA = \
ui/panel.js \
ui/panelLaunchers.js \
ui/panelMenu.js \
- ui/placesManager.js \
+ ui/placesManager.js \
ui/polkitAuthenticationAgent.js \
ui/popupMenu.js \
ui/runDialog.js \
ui/scripting.js \
- ui/search.js \
+ ui/search.js \
ui/cinnamonDBus.js \
ui/showDesktopButton.js \
ui/statusIconDispatcher.js \
diff --git a/src/Makefile.am b/src/Makefile.am
index 2b473a2..8d1f14c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -259,7 +259,7 @@ cinnamon-enum-types.c: $(srcdir)/cinnamon-enum-types.c.in stamp-cinnamon-enum-ty
rm -f $(@F).tmp
EXTRA_DIST += cinnamon-enum-types.c.in

-libcinnamon_la_LDFLAGS = -avoid-version
+libcinnamon_la_LDFLAGS = -avoid-version -rpath $(pkglibdir):/usr/lib/gnome-bluetooth -R $(pkglibdir)
libcinnamon_la_LIBADD = \
-lm \
$(CINNAMON_LIBS) \
diff --git a/src/Makefile.in b/src/Makefile.in
index 762b4de..ce5cef4 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -888,7 +888,7 @@ run_js_test_LDFLAGS = -export-dynamic
run_js_test_SOURCES = \
run-js-test.c

-libgnome_cinnamon_la_LDFLAGS = -avoid-version
+libgnome_cinnamon_la_LDFLAGS = -avoid-version -rpath $(pkglibdir):/usr/lib/gnome-bluetooth -R $(pkglibdir)
libgnome_cinnamon_la_LIBADD = \
-lm \
$(CINNAMON_LIBS) \

I was able to produce a package for amd64 on my Debian Unstable... but I am experiencing a SIGSEV because we are missing something in gjs currently in Debian. I have seen too that gjs is built against libmozjs-dev=8.0 instead of libmozjs-dev=9.0 that may be related...

stat("/usr/share/gjs-1.0/overrides/Gdk", 0x7fffd8500200) = -1 ENOENT (No such file or directory)
access("/usr/share/gjs-1.0/overrides/Gdk.js", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/gjs-1.0/overrides/Gdk.so", F_OK) = -1 ENOENT (No such file or directory)
stat("/usr/share/gjs-1.0/overrides/Gdk", 0x7fffd8500200) = -1 ENOENT (No such file or directory)
access("/usr/share/gjs-1.0/overrides/Gdk.js", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/gjs-1.0/overrides/Gdk.so", F_OK) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

Regards,

Trois Six