From owner-freebsd-mono@freebsd.org Sat Sep 2 11:55:17 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 4035DE0F10F for ; Sat, 2 Sep 2017 11:55:17 +0000 (UTC) (envelope-from eralegrid@hotmail.com) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-oln040092001020.outbound.protection.outlook.com [40.92.1.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0748A83AAC; Sat, 2 Sep 2017 11:55:16 +0000 (UTC) (envelope-from eralegrid@hotmail.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Q/ReHfRi/Y4RqvKUrypFTR+42NwCLAJ0aXhP+CgIqeM=; b=pvHKb8mRBo8xn1NdonuutwVnxCZhNKIvlQxvv0wmDWddeYM2hyx1PuOAgsvI+ftLblwEMMoUyUW5+yNAJpLpw0IpKK0txEiCqehnuaByAOcxt97PbM3CJ0YCBfQ46dBht1oEk9DeYBwE+B8zMVr7IhPhqzY07LuVJSb83Mxswtz/wacuF/n8dey62NtbaMAudx04LUAF1MUfrsMm7fcjuKRDZ+7VyN54zrtR2Qefjo7SFxAL0eWvQjib57SjC9Xw2GCnMUSXsQwlVYxGY9FBCsnnDBs3mmdZtCsYdQsL/vFPKABEQz9xKsSi8stthUH2pPhrDX7KGWTHZSiom1bolw== Received: from BY2NAM01FT034.eop-nam01.prod.protection.outlook.com (10.152.68.59) by BY2NAM01HT146.eop-nam01.prod.protection.outlook.com (10.152.68.211) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1385.11; Sat, 2 Sep 2017 11:55:15 +0000 Received: from RO1P15201MB2187.LAMP152.PROD.OUTLOOK.COM (10.152.68.54) by BY2NAM01FT034.mail.protection.outlook.com (10.152.69.3) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1385.11 via Frontend Transport; Sat, 2 Sep 2017 11:55:15 +0000 Received: from RO1P15201MB2187.LAMP152.PROD.OUTLOOK.COM ([10.164.236.147]) by RO1P15201MB2187.LAMP152.PROD.OUTLOOK.COM ([10.164.236.147]) with mapi id 15.20.0013.018; Sat, 2 Sep 2017 11:55:15 +0000 From: Robert Alegrid To: =?Windows-1252?Q?Romain_Tarti=E8re?= , "freebsd-mono@freebsd.org" Subject: Re: Update on porting mono 5 Thread-Topic: Update on porting mono 5 Thread-Index: AQHTI8pxfdWvWT4QFUuqnwnvNPS3VaKhfEu4 Date: Sat, 2 Sep 2017 11:55:15 +0000 Message-ID: References: <17078253.u2dgjZK1Z6@dragon.local> <20170815102120.GA29251@blogreen.org> <3186981.TyGdqNibkJ@dragon.local>,<20170902090359.GA47675@blogreen.org> In-Reply-To: <20170902090359.GA47675@blogreen.org> Accept-Language: en-AU, en-US Content-Language: en-AU X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: FreeBSD.org; dkim=none (message not signed) header.d=none;FreeBSD.org; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:E718EF3A6B94831D3B44E5F567966A9B99E85AA3B8CF9B7C4A79C0EE4C6E6846; UpperCasedChecksum:CAADB99D937858113A3C2A519E8439B507494C3F3ABDAE21C89819E74D32E35D; SizeAsReceived:7119; Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [+0Ju+1SHrO1yQFlC/COulrZfLBQdsLVz] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BY2NAM01HT146; 6:aldrQOcaANKchYmJ+Pd8dDful/5CbCR6IktMNO0CxB6yQzQ7F3qGvLYrwMmsfUxWr0Y2JEZUClktNGwILP8JFTLOZuVYUl9O7IbhbVW9OYGG+nSvOJ8DCTdRX24+aWcZ/2/98Mppsy2kTndMORkIS+KfhB1IHl+fh7WUygOzNVCXMroXw+a2mG35/dAsOYOfWXbRpc83fdjJwDq4J+h+Bo21zt9F3l4T+rR8sZ3IExQc/1zmXmyWQz+/RXD34/2VytWVzCoJAjuOCJ+elZp1YUR9pgZnSc5xiRmHSchFLQRE9d3TtM5z48ZTcsbpwTCMqQGxrj378WZnw3pjICN4GA==; 5:SPXIFZ5eSbdsY8VtaVV603xutWXMUn3XZ8HP4Y2ZaB421Ov8XKY5Q4B4HiIUCJ+HVvIgxucYsKI2VtTJwSXVABPEEIpd87lm49dCzh9ZIwWuQLrO8aOi361P0WDCTBNHFtmJRxj5Qc96aO7vG9FPbg==; 24:2nhjLCzt4REPMFWQcF7ezcJBQrch+9BsI3wW/v8t4x8tKcsarQ6S1nZ843mQ4tK85bzL4autRT7JUedE7V0v0HM0sbKhdKA8onOV9sbPXBw=; 7:cYB+kAPbrIEOo33N1xCoxg4rNWPhbrTgTeR051BZwZWR79aQLSmgzrt5u38A1b+2K/yJel+KPzOdADArSS/tx+45whEdaJpL6URR/PNyE/ZAZwGcwr+TImb+qpxX7Tatro46CORnonNzvrpr61Rs4z8dyErKYq+Za744Q1fQPe+50IB5qdzsKSo3DZhsj11C6sK6qqB1SOssGHMpg9OLr0NKdbdYtDIIlbMMgoZODM8= x-incomingheadercount: 46 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 2fdf34c8-45a9-432e-ccaf-08d4f1f97972 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1601125374)(1603101448)(1701031045)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BY2NAM01HT146; x-ms-traffictypediagnostic: BY2NAM01HT146: x-exchange-antispam-report-test: UriScan:(278428928389397)(5213294742642)(94056789713001); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(444000031); SRVR:BY2NAM01HT146; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2NAM01HT146; x-forefront-prvs: 04180B6720 x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(98901004); DIR:OUT; SFP:1901; SCL:1; SRVR:BY2NAM01HT146; H:RO1P15201MB2187.LAMP152.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Sep 2017 11:55:15.1706 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2NAM01HT146 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: Sat, 02 Sep 2017 11:55:17 -0000 I apologize in advance if I formatted this message incorrectly or addressed= it incorrectly. This is the first time I'm posting to a mailing list, so I hav= e no real idea how I should be doing it. I also just program as a hobby (and mostly on Windows at that), so that sho= uld be taken in consideration as well. On Saturday, 2 September 2017 7:03 PM, Romain Tarti=E8re 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.=A0 How d= o we=20 >> consume them? >>=A0=A0 i) as downloads with each port containing a copy >>=A0 ii) local ports with consistency across the Ports Collections >> iii) A mixture of the above (i.e. (ii) is there is a native component,=20 >> otherwise (i)) >> I prefer (ii) as I think it gives the end user the best leverage to patc= h=20 >> issues with nuget packages locally (and to get updates without waiting o= n a)=20 >> upstream, and b) us/ports maintainer).=A0 However, at this point that op= tion is=20 >> at 0% progress.=A0=20 It's possible for NuGet to use a local directory as a feed: https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds If you add the local feed earlier in the list of sources, it should pick up= your locally built packages instead of fetching it from the internet. NuGet also maintains a cache of packages that it uses to restore from when = it doesn't have an internet connection to work with. >Yeah, it's a problem that is broader and broader=85=A0 and for which I don= 't >think a universal solution works :-/ > >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. When building a prgram, you can save=20 You're going to end up with a lot of duplication either way, given how asse= mbly locations are resolved: http://www.mono-project.com/docs/advanced/assemblies-and-the-gac/ >I only have experience with programming with Ruby as a language that has >similar problem.=A0 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.=A0 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. Aside from a few special assemblies which live in the GAC, yes, that's basi= cally what you're supposed to do. >Another problem with nugets packages is that you only get binaries, >right?=A0 That means that is something goes really wrong, there is no way >to audit the source code of what led to disaster.=A0 The problem is >similar with the few Java projects I gave a look at.=A0 My feeling is that >this is even worst :-(=A0 Ruby being interpreted, there is no such >problems. NuGet packages have in their manifest a field to specify where the source c= ode lives. However, since it's optional and is just a URL to the repository, it probably doesn't help much for this use case. Regards, Robert Alegrid=