Comment 1 for bug 1523739

Revision history for this message
kolAflash (colaflash) wrote :

Bug seems to be still existing in commit ad23dab (2016-04-27).

With master commit ad23dab (2016-04-27) i'm getting errors like these:
DockLibrary/DockItem.cs(34,12): error CS0234: The type or namespace name `Unix' does not exist in the namespace `Mono'. Are you missing an assembly reference?
DockLibrary/DockItemContainer.cs(33,12): error CS0234: The type or namespace name `Unix' does not exist in the namespace `Mono'. Are you missing an assembly reference?
DockLibrary/DockItemTitleTab.cs(33,12): error CS0234: The type or namespace name `Unix' does not exist in the namespace `Mono'. Are you missing an assembly reference?

With Pinta-1.6 i'm getting errors like these:
Actions/WindowActions.cs(30,12): error CS0234: The type or namespace name `Unix' does not exist in the namespace `Mono'. Are you missing an assembly reference?
...
Actions/AddinActions.cs(28,12): error CS0234: The type or namespace name `Unix' does not exist in the namespace `Mono'. Are you missing an assembly reference?

The autogen.sh / configure script probably needs some code to adjust this to the Mono version installed on the build system!

Found an easy way to workaround this here:

http://mono.1490590.n4.nabble.com/Missing-quot-Unix-quot-inside-of-quot-Mono-quot-td4665988.html

Looks like the Fedora people just use two "find ... sed ..." to fix this in their build system.

http://pkgs.fedoraproject.org/cgit/rpms/pinta.git/
http://pkgs.fedoraproject.org/cgit/rpms/pinta.git/commit/?id=2cd055486555c83cbea92915f9183c039e7f9763http://pkgs.fedoraproject.org/cgit/rpms/pinta.git/commit/?id=62c7cfbc9f8df1fa634ecdaf5981e83be5d04628

I Put those "find ... sed ..." commands in a script for you. (see attached Pinta-1.6_mono4-patch-script.sh)
It should work for Pinta-1.6 and master commit ad23dab (2016-04-27).

Be careful when running the script! It will change files without backup and without further notice!