From owner-freebsd-mono@freebsd.org Fri Nov 24 06:58:18 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 6EE1ADBB4DE for ; Fri, 24 Nov 2017 06:58:18 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-lf0-x22f.google.com (mail-lf0-x22f.google.com [IPv6:2a00:1450:4010:c07::22f]) (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 E5D1E68372 for ; Fri, 24 Nov 2017 06:58:17 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-lf0-x22f.google.com with SMTP id c188so16796320lfd.5 for ; Thu, 23 Nov 2017 22:58:17 -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=kvVbmaQMII/8m3au6VSuaPl0j//8vYRVqHxj+xDWHck=; b=Mhv2iBFocLtpqGOg75hD1hGssvtdNaAB8BdZ341W8lquIPZ/lMQTNp5W86+PZrN8HS naN4zuqXL+BJEwygjpC3wxfsZqqCAD22d2c72yfxc6khkhOKjJFKAbt2jiAJKVuGk5SH Ewi/2wOhtlEysWQkoEDDRTjXwiMp1ds+eK8cSXD9eKjWAXU6ApnGWwxXVoD89NTQ207B P8SoAjkHTsBep59lrnvKftsnbrRl4yME0peLMyH7ru4lXB866tjIzhfECSgn/c+yKCAY INIJoxkkSEGkFC1cK7hcaw1Eyz+lAKLb3BP/amulNLTW6rTOh95NHrZ7gb4vWqkngQ/9 QgFg== 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=kvVbmaQMII/8m3au6VSuaPl0j//8vYRVqHxj+xDWHck=; b=P6Go8ineElIUoNHnXxcc+ce4VD4ZX12mF8Nh2P/EuyNrYv9+S7DplOomIegJr4Vn+Y 1MMVhRN38ZcxeFWB7r2xngiscwTHOfMJ5TF6ELTVxlzTAOMqyMJDysHNeRQOxVnuyfoV JlpHsZ44eAcooiv6HZWed+KpoJg2cgq8rrupQX6bSzth5KuyQamFxSEk2nyYyxcF0Hzc ievsQF8nzXh4QVbh/GfkwidcfIQAnaqi55ZgYIszSSDO/KXD7BUXg/zdv+9GXHEjBY7C ZPGlbYBfIXfrkv0lOA4jzQ5V3qri6LoCjj4UIp4zp3Whqf0lMinsSwdXdASeuxjBFEuc 9yVw== X-Gm-Message-State: AJaThX7HKshjfOwVt7zSOHv/8B0lTvXIDylmIoaUkQoPsp6eMa6MAW0Y PDh38xje4lT6xw6VQqhQ+L40Nb1uN9xJTDrguFM= X-Google-Smtp-Source: AGs4zMaVgVSflD+ErfFVe+sQu4lkPZYcQlCb1yOGhEjM+D+mQqpNWPC481uHFZ5a2kEXqPCiUNA5+Fk5cJnqiZSDm3A= X-Received: by 10.25.232.17 with SMTP id f17mr9074446lfh.54.1511506696014; Thu, 23 Nov 2017 22:58:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.46.14.1 with HTTP; Thu, 23 Nov 2017 22:58:15 -0800 (PST) In-Reply-To: References: <17078253.u2dgjZK1Z6@dragon.local> <1723656.WBGSMfOCjc@dragon.local> <1794151.yOGvER6fHk@dragon.local> From: Russell Haley Date: Thu, 23 Nov 2017 22:58:15 -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: Fri, 24 Nov 2017 06:58:18 -0000 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