After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 668307 - Support for other compilers - specifically Ubuntu compile issues for .net 4.0 support (mono 4.0)
Support for other compilers - specifically Ubuntu compile issues for .net 4.0...
Status: RESOLVED FIXED
Product: tomboy
Classification: Applications
Component: General
1.8.x
Other Linux
: High normal
: 1.12.0
Assigned To: Jared Jennings
Tomboy Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-01-19 22:57 UTC by Jared Jennings
Modified: 2012-05-23 14:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Chow Loong Jin provide a patch that defaults to dmcs (1.23 KB, patch)
2012-05-20 04:56 UTC, Jared Jennings
committed Details | Review

Description Jared Jennings 2012-01-19 22:57:29 UTC
The issue show's it's head when compiling Tomboy on Ubuntu 11.10 or greater.

More can be found about the issue here [1]

From IRC
22:04 < adborden2> max: even if you install dbus-sharp from ubuntu's repo 
                   you'll still run into this error within the tomboy codew
22:04 < adborden2> quick fix is to edit the tomboy shell script (should be in 
                   the repo root)
22:05 < adborden2> i don't have the source in front of me, but there should be 
                   a MONO_OPTIONS variable or something
22:05 < adborden2> to which you should add --runtime=v4.0


22:16 < adborden2> agreed that ubuntu is popular, but this only affects 
                   developers. we can change the build process in a way that we 
                   just search for teh different compilers and use the first 
                   one we find.
22:16 < adborden2> that way everyone is happy

[1] http://orangesquash.org.uk/~laney/blog/posts/2011/10/mono-gotcha/
Comment 1 Luís 2012-05-17 09:23:37 UTC
Hello everyone,

I not a developed but this bug affects me. I had to manually install Tomboy 1.10 after version 1.8 stopped synchronising my notes.

I changed the definition of the MONO_OPTIONS variable to this:

MONO_OPTIONS="$TOMBOY_DEBUG $TOMBOY_TRACE $TOMBOY_PROFILE $MONO_EXTRA_ARGS --runtime=v4.0"

But I still get the same exception when running tomboy. Any other information on how to run Tomboy 1.10 on Ubuntu would be pretty welcome.

Thank you.
Comment 2 Jared Jennings 2012-05-17 23:00:19 UTC
For me, I had to fix the issue at compile time.

./configure GMCS=/usr/bin/mono-csc

Seems like something that can be fixed though I haven't found out how yet.
Comment 3 Jared Jennings 2012-05-17 23:03:49 UTC
I would like to see us get this fixed for the next development or stable release. It's critical that we support Ubuntu users.
Comment 4 Jared Jennings 2012-05-20 04:56:08 UTC
Created attachment 214477 [details] [review]
Chow Loong Jin provide a patch that defaults to dmcs

Chow Loong Jin
"How about defaulting to dmcs and falling back to gmcs if dmcs doesn't exist?
Applications compiled against the 4.0 profile (dmcs) can use libraries compiled
against the 2.0 profile (gmcs), but not vice versa.

The downstream packages are still going to be compiled using /usr/bin/mono-csc
to ease transitions in the case of a change of the default C# compiler."
Comment 5 Jared Jennings 2012-05-20 05:01:36 UTC
Review of attachment 214477 [details] [review]:

Commit b928b493da170637c3441f9e9f4c1cbc481f106b
Comment 6 Jared Jennings 2012-05-20 05:03:25 UTC
Pushed to master. I would like to see if we could get a couple positive reports back. So if someone would like to try compiling against the last MASTER on Linux and Ubuntu.
Comment 7 Alemann Massho 2012-05-23 00:12:39 UTC
I can verify that this works in Ubuntu without a hitch.
Comment 8 Jared Jennings 2012-05-23 14:40:43 UTC
Great!
I'm going to close the bug. Someone feel free to re-open if they want.