How can I make Pinta use mono-6.x

I need mono 6.x for ArduPilot and I have a program that uses mono 5.x. /graphics/pinta that I had to un-install.

How can I force Pinta to use mono 6.x ?

Makefile for the port just has "USES=mono"
No versioning.

Is this a mono.mk thing? Like python versioning....
How can I force it? I tried locking mono6.8 and then forcing pinta but no luck.
 
I tried to take the opposite path and I unlocked mono6.8 and then installed pinta. It removed mono6 and installed mono5. Pinta works then.
So I pkg lock pinta and pkg install mono6.8 and it seems to work fine.

Then I run the pinta executable and it fails:
pinta

Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' or one of its dependencies.
File name: 'glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' or one of its dependencies.
File name: 'glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f'
glib-sharp failing
 
This don't look good for me:

pkg-message
Message from gtk-sharp20-2.12.45_7:

--
===> NOTICE:

The gtk-sharp20 port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

 
You are correct. Trying to bring it up to date has been problematic.
gtk-sharp30 needs mono-addins
But mono-addins is try to suck in mono5
Need to add automake and autoconf to dependencies for 3.1.2

I guess I will try and rework mono-addins.

Can't help to notice that mono6.8 has no maintainer.

The Makefile for Pinta has a direct link to the Github repository and that is usually handled differently.
USES=GH
 
I have Krita installed for high end needs.
But it can't do desktop screenshots.
ViewNior is nice and light but no resizing and cropping or screenshots. I like viewing folders with images and spacebar for next photo.
So I use Pinta as my in-between....
VuePrint Pro was my 10 years Windows image viewer and manipulator. Photoshop for editing.
 
How about making Pinta 3.1.2 depend on lang/dotnet instead of mono?
When I tried it, it wouldn't start due to an error, but I didn't investigate any further.
 
Thanks Charlie I will work on a new port for Pinta3 from scratch. Start over.

Can you give me the philosophical/and or technical reasoning? dotNet versus mono. I am trying to learn some along the way.
Is mono dead upstream? Unkept on FreeBSD? I see a hotmail email in pinta port and have to snicker.
 
It appears that Pinta 3.1.2 requires .NET 8 or later.

I don't know the details either, but
Mono is currently owned by WineHQ.
.NET is the successor to .NET Framework and Mono.
 
Since Pinta 1.7.1 appears to run on Mono 6.14 in the OpenBSD ports,
I tried running it with Mono 6.8.
pkg fetch gtk-sharp20 mono-addins
cd /var/cache/pkg
pkg add -M gtk-sharp20-2.12.45_7.pkg
pkg add -M mono-addins-1.3_5.pkg
If anything other than mono5.20 appears under "Missing dependency", install it.
Code:
diff --git a/graphics/pinta/Makefile b/graphics/pinta/Makefile
index ce732391370d..a791eef2fea7 100644
--- a/graphics/pinta/Makefile
+++ b/graphics/pinta/Makefile
@@ -12,10 +12,12 @@ LICENSE=    MIT
 LICENSE_FILE=  ${WRKSRC}/license-mit.txt

 BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/mono-addins.pc:devel/mono-addins \
-               intltool-update:textproc/intltool
-RUN_DEPENDS=   mono-addins>0:devel/mono-addins
+               intltool-update:textproc/intltool \
+               mono6.8>0:lang/mono6.8
+RUN_DEPENDS=   mono-addins>0:devel/mono-addins \
+               mono6.8>0:lang/mono6.8

-USES=          desktop-file-utils gmake gnome mono pkgconfig gettext-tools:build
+USES=          desktop-file-utils gmake gnome pkgconfig gettext-tools:build
 USE_GNOME=     gtksharp20
 GNU_CONFIGURE= yes
 GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
make -C /usr/ports/graphics/pinta install
It seems to be going well.
I took a shortcut, but it would probably be better to rebuild gtk-sharp20
and mono-addins with mono6.8 as well.
 
Back
Top