From owner-freebsd-mono@freebsd.org Tue Sep 5 19:06:16 2017 Return-Path: Delivered-To: freebsd-mono@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7E428E1978D for ; Tue, 5 Sep 2017 19:06:16 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 495016DF8C; Tue, 5 Sep 2017 19:06:15 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: by mail-wm0-x22b.google.com with SMTP id f199so2697054wme.0; Tue, 05 Sep 2017 12:06:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version; bh=K0aLAq/xgu1IMCvTxTDZNTQgsWBxDhMRJA0GWYnw7xA=; b=vB91rEeNnMZ9OQoA3rKoe0FoFZW7WtprGKcaigAekm8JIAabrfcPBS6NrDdBSoFFpU pwW3J60DWJHAnL5Y/gUENNLoc7FVRxwTxd8Bl7rpiNTgDfb6V76gpTtdjv2TzW8OdBs0 ILYM2k6iLtXqQ2eKYL5bpVmgE1u5pbIhzaUoNEYcawzmqFMaYIvpH4Qb09k0fXjJMWjU dXESE1eQqN9g9uNNHG9aqoX3bWDzITIR6DWPT+PHG1YqYEGhDMz+FU5JdMeSpU0zfKRU FukxALLZMtu22uytPZmJQC4J54xEwG5FGEW42V2UEBngSvfBlnhnRu02wz31WuVoqh1z N1Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version; bh=K0aLAq/xgu1IMCvTxTDZNTQgsWBxDhMRJA0GWYnw7xA=; b=ORRfMMHE+chD++3IWTWeWeNf6L9rmMrYU/V5F54z2kFtQTi4O9xhlhTa0ZIuH4vMvf Ue23aULDVbXk6KsV6n+aMXeEF+Hb1kijLJmAgC5hiQGOYIK2UFBE0GeJXb2T58Z+nSGJ SCGzAz2FYYsfpAXmwO5f/2Pr7qQ52r7B4nl2H2DEgeGDlsn5ukv1BAQUmuB8kGXtLHG3 dmhE4nFTL5Y1fD5uSojqF3WqMowiQv7P8bo61TKWn65fPj7T7Qd/5os3EoBrjVNe1nIg pLQihuy6w+zoN+5yDJOz+iNMeimt0GxXHGopPZJQFGqbUK+qoji6neuscxN4gmlUL1KW TQLQ== X-Gm-Message-State: AHPjjUh7PxRCTLe81oLgqZule76fvGAUO02LlF73zI0CVh9mnYxsJUGw QnrEfz76orCU6zIjzmg= X-Google-Smtp-Source: ADKCNb7onBPDz4ym66KykEDopSnpSxf/nFvsEEntqx53jfGRQUeOhONsCwfgqpCYoKyD/fkXXYhL4w== X-Received: by 10.28.213.21 with SMTP id m21mr27022wmg.145.1504638373016; Tue, 05 Sep 2017 12:06:13 -0700 (PDT) Received: from dragon.local ([41.144.114.114]) by smtp.googlemail.com with ESMTPSA id k52sm1915156wrf.62.2017.09.05.12.06.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Sep 2017 12:06:12 -0700 (PDT) From: David Naylor To: freebsd-mono@freebsd.org Cc: Romain =?ISO-8859-1?Q?Tarti=E8re?= Subject: Re: Update on porting mono 5 Date: Tue, 05 Sep 2017 21:06:08 +0200 Message-ID: <1884750.4JRtOyePTJ@dragon.local> Organization: Private User-Agent: KMail/4.14.10 (FreeBSD/11.1-RELEASE-p1; KDE/4.14.30; amd64; ; ) In-Reply-To: <20170902090359.GA47675@blogreen.org> References: <17078253.u2dgjZK1Z6@dragon.local> <3186981.TyGdqNibkJ@dragon.local> <20170902090359.GA47675@blogreen.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2105988.d62tYlezr9"; micalg="pgp-sha512"; protocol="application/pgp-signature" X-BeenThere: freebsd-mono@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Mono and C# applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Sep 2017 19:06:16 -0000 --nextPart2105988.d62tYlezr9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" On Saturday, 2 September 2017 11:03:59 Romain Tarti=C3=A8re 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. Ho= w do we > > consume them? > >=20 > > i) as downloads with each port containing a copy > > =20 > > ii) local ports with consistency across the Ports Collections > >=20 > > iii) A mixture of the above (i.e. (ii) is there is a native compone= nt, > > 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 wait= ing on > > a) upstream, and b) us/ports maintainer). However, at this point t= hat > > option is at 0% progress. >=20 > Yeah, it's a problem that is broader and broader=E2=80=A6 and for wh= ich I don't > think a universal solution works :-/ At a minimum, any nuget package that contains a native (i.e. compiled) = portion=20 needs to be a Port. =20 > 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). >=20 > 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 nee= ds > foo-2.0.0) and it can get tricky. I think we can already handle that (see all the Qt ports). I'm not sur= e what=20 currently happens when A depends on B and C but B and C depend on diffe= rent=20 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 hav= ing > something similar to (i) without using the port system. >=20 > My weak Windows development experience learned me to put all dll of a= n > application in the application directory. If it's still a good advic= e, > 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 li= nked to=20 where they are installed). If I read this [1] correctly, Debian advoca= tes for=20 all dlls to be registered in the GAC. =20 =20 > Another problem with nugets packages is that you only get binaries, > right? That means that is something goes really wrong, there is no w= ay > 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 t= hat > this is even worst :-( Ruby being interpreted, there is no such > problems. >=20 > 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 ma= nages=20 its own private dependencies. =20 [1] https://pkg-mono.alioth.debian.org/cli-policy/ --nextPart2105988.d62tYlezr9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----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----- --nextPart2105988.d62tYlezr9--