Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Sep 2017 21:06:08 +0200
From:      David Naylor <naylor.b.david@gmail.com>
To:        freebsd-mono@freebsd.org
Cc:        Romain =?ISO-8859-1?Q?Tarti=E8re?= <romain@freebsd.org>
Subject:   Re: Update on porting mono 5
Message-ID:  <1884750.4JRtOyePTJ@dragon.local>
In-Reply-To: <20170902090359.GA47675@blogreen.org>
References:  <17078253.u2dgjZK1Z6@dragon.local> <3186981.TyGdqNibkJ@dragon.local> <20170902090359.GA47675@blogreen.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Saturday, 2 September 2017 11:03:59 Romain Tartière wrote:
> On Fri, Aug 25, 2017 at 09:41:43PM +0200, David Naylor wrote:
> > [2] A general discussion needs to be had around nuget packages.  How do we
> > consume them?
> > 
> >   i) as downloads with each port containing a copy
> >  
> >  ii) local ports with consistency across the Ports Collections
> > 
> > iii) A mixture of the above (i.e. (ii) is there is a native component,
> > otherwise (i))
> > I prefer (ii) as I think it gives the end user the best leverage to patch
> > issues with nuget packages locally (and to get updates without waiting on
> > a) upstream, and b) us/ports maintainer).  However, at this point that
> > option is at 0% progress.
> 
> Yeah, it's a problem that is broader and broader…  and for which I don't
> think a universal solution works :-/

At a minimum, any nuget package that contains a native (i.e. compiled) portion 
needs to be a Port.  

> With local copies (i) you end-up with a lot of duplication (Go
> applications are a good example of how this can become quite stupid, I
> recently created a port for a go application, the source tarball
> includes the source of all dependencies, and everything is bundled in a
> 13MB executable (that only depends on libc.so and libthr.so).
> 
> With a port per dependency (ii), you sooner or later have to handle
> conflicts between dependencies (port A needs foo-1.0.0 but port B needs
> foo-2.0.0) and it can get tricky.

I think we can already handle that (see all the Qt ports).  I'm not sure what 
currently happens when A depends on B and C but B and C depend on different 
versions of D.  Does .NET just use the latest version of D?

> I only have experience with programming with Ruby as a language that has
> similar problem.  I ended at only installing system tools using the
> FreeBSD ports (e.g. puppet, vagrant, passenger), and for applications I
> actually use, I just grab the source, and use bundler to gather all
> dependencies as the user running the software, therefore I end up having
> something similar to (i) without using the port system.
> 
> My weak Windows development experience learned me to put all dll of an
> application in the application directory.  If it's still a good advice,
> I guess that each application should have it's copy of all it's
> dependencies, and therefore each port should install a bundle of all
> what is required by it.

In my ideal situation all dlls will be installed in the GAC (or just linked to 
where they are installed).  If I read this [1] correctly, Debian advocates for 
all dlls to be registered in the GAC.  
 
> Another problem with nugets packages is that you only get binaries,
> right?  That means that is something goes really wrong, there is no way
> to audit the source code of what led to disaster.  The problem is
> similar with the few Java projects I gave a look at.  My feeling is that
> this is even worst :-(  Ruby being interpreted, there is no such
> problems.
> 
> I am not enough involved in Java nor .Net to think about mitigations of
> this issue.

This is my primary concern, how does one take control when each port manages 
its own private dependencies.  

[1] https://pkg-mono.alioth.debian.org/cli-policy/
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iQKTBAABCgB9FiEElI7FEaJ/AwLnmbU6rWP6jday2lUFAlmu9aBfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDk0
OEVDNTExQTI3RjAzMDJFNzk5QjUzQUFENjNGQThERDZCMkRBNTUACgkQrWP6jday
2lWmEA/+M8r2PpJiDPox6EZQ/ke6LLM6TMrD/G3jZTbSSPRKfLChxhJj2F73/dnY
CZQOSAfLuSEkHnjdeIfQWH5F1ktw46KUNSOOrnXi5Snn2088UTS/78zFei2vXkV0
xrhC1GuLYM+DLClbIw9NdfxoSM5lx8ngZ3fAOYW/5kT2BC/9a6JGIkFZSHKxyoCf
T+n2AzlwWUZr0VbJSyI/QviApltF77CXcIo6p8XiK1QyMSBGKYikyBiOkVsIXw/u
1jD7RHNnR4IaVRgRDP7UKV5XRDbbehSKbw3MUITmlT68O57jKE3CZefdt/uGhGjo
WrxwauXPZ7cFwGYJAryZGUfWJmx7+D6wMlww//R4GchADuoDI2n7c87KBOco0axC
A7x68trXazXUHK7Ehdjcb3VmhQhFQ1nOue2Bht2hCN7De6Mp3PLdGB3mXSgLxO0D
jILyXFTLSeJ20eTTb1eUiYEf3F3XATANWhRGKLsxGygd4LLpo2t7ejLiJ9XiroEk
OxiBic7FUh6Z3+J0B9hApwm+bXA3/BcMElZyqMDAhAYhPlnBgd1yiFKqyklhAtpR
hQqX7F1DuGHi6QZJZStSK0u2yebV3LuzaKAnIxkLvlwW7Nnh/Dzj5/BYfpN8IQ5C
oS448SW8ssQe/5IgOMz6RLxvNZwilomMHLzeisJss7LQAKXuU3Q=
=2KBW
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1884750.4JRtOyePTJ>