From owner-freebsd-mono@freebsd.org Mon Nov 27 06:49:15 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 612BEDFA967 for ; Mon, 27 Nov 2017 06:49:15 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-lf0-x229.google.com (mail-lf0-x229.google.com [IPv6:2a00:1450:4010:c07::229]) (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 D71BA66556 for ; Mon, 27 Nov 2017 06:49:14 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-lf0-x229.google.com with SMTP id y2so30486967lfj.4 for ; Sun, 26 Nov 2017 22:49:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vCbUTFSPYXWcyOmDOZr8BhKZ9L/lsTIcI2MAaSoCQEc=; b=jl5N89czHaK2l6+aOBEwKzCoKrMP+HfXfFrNkWqS/Dsg8nGqxtAzMEJs2C+pNWT01J lRtjiW+DD584W5XVSaA/LpXs83JjH7jJv5AGJzq/72y/jwMPD2bCuXfmSjw5ZjiowMJ5 fl6Sq4RvGUDcrY1mHfpIt6ERxne5GqtBoZmTdp5xpPNY+AIIuE1GErBis6KrH4Nct00i ynrpcuZVcA06Rh7Ykhw4PlIE7O88RhSf2vCFHYzXz28qbKx4ItGCc+1FHfj47OQXatPD tYL64khdMUhd0oc7x9t3dPUgK8/6XHH1c7eOXwRdE+dN3hT/L/jd0o2L2gSGz47vcgPB zsOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vCbUTFSPYXWcyOmDOZr8BhKZ9L/lsTIcI2MAaSoCQEc=; b=ZQOoMcz8hBOvc+tmmCAv5r3DcFpMSRv1SSxxg0o20yn7NeMyW6T3GVEoimlbNOZiqj shZ6EQRSw/HIk7kdpq+1oFr0CKlDHzoAK/8OoQ1IclH4xgDPVhsrxxw278OBUy6kAg6q wLRK20esZZ35fks6MNAtSepNEC3IAsTXAI1d1CU8DvZHtKaRTZe1m12hFtUpThRgl5ro TyrHNhhwjhguY7mxlE67/5p7dgkJoWjEuXdMy6XIm0ejtlE+AGUFVXMt4fvqGpDS1JXx 5unjoCal1+cZyU0nfDB0WcJqfsCI3x//t9KsfR3zCEM/FFK2E63QYcC/bFkOVnUMCf7p mOkA== X-Gm-Message-State: AJaThX7vsT5Svv4Ngcptg4A/0/lPKvtz/YDS7bFoAkFT0cyz+JPzHytu /c+X9P4iOlm7dTNaELBt4YeYQJ+r2y8yrsKohx8= X-Google-Smtp-Source: AGs4zMYVYpFWvf9U6/69KVFg2FXWxODOzNPCuCFjHbLxrPJKq8ZUDK+cUQD64IGopqM2Y65sdft5QFloo7GjY2tvvYw= X-Received: by 10.25.19.213 with SMTP id 82mr10701086lft.221.1511765352713; Sun, 26 Nov 2017 22:49:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.46.19.25 with HTTP; Sun, 26 Nov 2017 22:49:12 -0800 (PST) In-Reply-To: References: <17078253.u2dgjZK1Z6@dragon.local> <1723656.WBGSMfOCjc@dragon.local> <1794151.yOGvER6fHk@dragon.local> From: Russell Haley Date: Sun, 26 Nov 2017 22:49:12 -0800 Message-ID: Subject: Re: Update on porting mono 5 To: David Naylor Cc: Freebsd-mono , Tomas Weinfurt Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-mono@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Mono and C# applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 06:49:15 -0000 Hi David, your patch applied cleanly but failed to find a file. Complete output here:https://pastebin.com/0Q92wURs . The interesting part follows. russellh@prescott:~/FreeBSD/ports% cd lang/mono russellh@prescott:~/FreeBSD/ports/lang/mono% make ===> License MIT accepted by the user ===> mono-5.2.0.215 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by mono-5.2.0.215 for building ===> Extracting for mono-5.2.0.215 => SHA256 Checksum OK for nuget.31.zip. => SHA256 Checksum OK for monolite-1050200001-latest.tar.gz. => SHA256 Checksum OK for mono-mono-mono-5.2.0.215_GH0.tar.gz. => SHA256 Checksum OK for mono-Lucene.Net.Light-85978b7_GH0.tar.gz. => SHA256 Checksum OK for mono-NUnitLite-690603b_GH0.tar.gz. => SHA256 Checksum OK for mono-Newtonsoft.Json-471c3e0_GH0.tar.gz. => SHA256 Checksum OK for mono-NuGet.BuildTasks-8d30747_GH0.tar.gz. => SHA256 Checksum OK for mono-aspnetwebstack-e77b12e_GH0.tar.gz. => SHA256 Checksum OK for mono-buildtools-b5cc6e6_GH0.tar.gz. => SHA256 Checksum OK for mono-cecil-1003fcb_GH0.tar.gz. => SHA256 Checksum OK for mono-cecil-33d50b8_GH0.tar.gz. => SHA256 Checksum OK for mono-corefx-78360b2_GH0.tar.gz. => SHA256 Checksum OK for mono-corert-ed6296d_GH0.tar.gz. => SHA256 Checksum OK for mono-ikdasm-88b67c4_GH0.tar.gz. => SHA256 Checksum OK for mono-ikvm-fork-7c1e61b_GH0.tar.gz. => SHA256 Checksum OK for mono-linker-c7450ca_GH0.tar.gz. => SHA256 Checksum OK for mono-reference-assemblies-142cbeb_GH0.tar.gz. => SHA256 Checksum OK for mono-roslyn-binaries-dcb0a05_GH0.tar.gz. => SHA256 Checksum OK for mono-rx-b29a4b0_GH0.tar.gz. => SHA256 Checksum OK for xamarin-benchmarker-97f618c_GH0.tar.gz. => SHA256 Checksum mismatch for dotnet-coreclr-c7da48a_GH0.tar.gz. => SHA256 Checksum mismatch for dotnet-roslyn-322bd5b_GH0.tar.gz. ===> Refetch for 1 more times files: dotnet-coreclr-c7da48a_GH0.tar.gz dotnet-roslyn-322bd5b_GH0.tar.gz ===> License MIT accepted by the user ===> mono-5.2.0.215 depends on file: /usr/local/sbin/pkg - found => dotnet-coreclr-c7da48a_GH0.tar.gz doesn't seem to exist in /usr/home/russellh/FreeBSD/ports/distfiles/. => Attempting to fetch https://codeload.github.com/dotnet/coreclr/tar.gz/c7da48a?dummy=/dotnet-coreclr-c7da48a_GH0.tar.gz fetch: https://codeload.github.com/dotnet/coreclr/tar.gz/c7da48a?dummy=/dotnet-coreclr-c7da48a_GH0.tar.gz: size unknown fetch: https://codeload.github.com/dotnet/coreclr/tar.gz/c7da48a?dummy=/dotnet-coreclr-c7da48a_GH0.tar.gz: size of remote file is not known dotnet-coreclr-c7da48a_GH0.tar.gz 30 MB 2657 kBps 00m12s => Fetched file size mismatch (expected 31762122, actual 31762105) => Trying next site => Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/dotnet-coreclr-c7da48a_GH0.tar.gz fetch: http://distcache.FreeBSD.org/ports-distfiles/dotnet-coreclr-c7da48a_GH0.tar.gz: Not Found => Couldn't fetch it - please try to retrieve this => port manually into /usr/home/russellh/FreeBSD/ports/distfiles/ and try again. *** Error code 1 Stop. make[2]: stopped in /usr/home/russellh/FreeBSD/ports/lang/mono *** Error code 1 Stop. make[1]: stopped in /usr/home/russellh/FreeBSD/ports/lang/mono *** Error code 1 Stop. make: stopped in /usr/home/russellh/FreeBSD/ports/lang/mono russellh@prescott:~/FreeBSD/ports/lang/mono% Night, Russ On Thu, Nov 23, 2017 at 10:58 PM, Russell Haley wrote: > On Thu, Nov 23, 2017 at 9:33 PM, Russell Haley wrote: >> On Thu, Nov 23, 2017 at 1:01 PM, David Naylor wrote: >>> On Monday, 13 November 2017 23:11:03 David Naylor wrote: >>>> In the interim, I tried my hand at my own exp-run [1][2][3]. And things >>>> didn't go well (well the exp-run was a success, but the results...). >>>> >>>> It appears that somehow the assemblies are being delay signed during build, >>>> instead of signed. It appears csc(1) [the replacement for mcs(1)] does not >>>> support signing on non-Windows machines [4]. Mono recommends sn(1) should >>>> be used to sign the dll after build. I suggest we patch >>>> Microsoft.Common.CurrentVersion.target to restore signing functionality. >>> >>> I've fixed signing of assemblies by using sn(1) after the compile step in the >>> CoreCompile target. This fixed one port and pushed post packages to breaking >>> due to changes from mdb to pdb debug info. >> Wow. I haven't seen sn or SigningTool in a long time. Nice job. I >> didn't even think of it. >> >>>> Any help with the above or the following will be most appreciated: >>>> - Bumping the PORTREVISION of all ports that depend on mono >>>> - Patching security/ca_root_nss to update/sync/clear the mono certificate >>>> (see cet-sync(1)) >>>> - (Optional) Patch mono to store the certificates in $PREFIX, instead of >>>> /usr/local/ >>> - fix the follow port's pkg-plist: >>> - devel/dbus-sharp >>> - devel/mono-addins >>> - devel/newtonsoft-json >>> - multimedia/emby-server >>> - investigate why the following ports do not build: >>> - games/openra >>> - security/gnome-keyring-sharp >> >> I'm perusing your review right now. I haven't absorbed enough to >> comment yet. You seem to have added a new make variable for >> nuget_depends. Can you speak a little about that? I am wondering if >> leverage that in dotnet core to pull in the managed assemblies that we >> can't build on FreeBSD? >> >> Russ > > I submitted some comments on the patch. You've put in quite a bit of work! > > It seem that you are pulling binaries for Nuget, Rosyln and a big > chunk of the dotnet framework. I can't help but think we could > directly use this port as a framework to build the managed assemblies > for core2 if we have all that working in order to build mono. > > I also see nuget3000 and paket are used. Can you describe where these > are needed and what they are used for? I could have asked this on the > review but thought this is a better for others on the list that don't > want to wade through a review. :) > > Night, > Russ