From nobody Tue Apr 02 16:42:42 2024 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V8DFj1s9Rz5GyZ5 for ; Tue, 2 Apr 2024 16:42:49 +0000 (UTC) (envelope-from felix@palmen-it.de) Received: from stef.palmen-it.de (stef.palmen-it.de [IPv6:2001:470:1f0b:bbb:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4V8DFh1zxDz4c0V for ; Tue, 2 Apr 2024 16:42:48 +0000 (UTC) (envelope-from felix@palmen-it.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=palmen-it.de header.s=20200414 header.b=j+TmNQcP; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=freebsd.org (policy=none); spf=pass (mx1.freebsd.org: domain of felix@palmen-it.de designates 2001:470:1f0b:bbb:1::1 as permitted sender) smtp.mailfrom=felix@palmen-it.de DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=palmen-it.de; s=20200414; h=Content-Type:MIME-Version:Message-ID:Subject:To :From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=vKqKNFe0x74K7NGmcwsqkmDohEWxVQeL9zTcLhxI2hA=; b=j+TmNQcPB2qJ7/gU9FR4XP7x7y onCWfPRDofm4o2PLEsCAMqc54d9JyoozwgYs3vIaBh4atTl2EmI5usMMLrASElQEU3pdaSw82OUGs C6rrEXotpBfL4xTmcL6SQGOuanWcGbQ+PBDMBaGd+MOxal3yUgvpgDRqc5V5bm3Dsdug/CwUwvPa7 WgeHqhjzDA9rEoOhoQPq88GPDzQLBBGyMOS55rkm4fR0LX770jIHO9LcZjHtleGxce6JECQIdBQuD SuKf+hPkq0epvSAsorkrg0dB6ORPSXDy+sxLV0Vp02/68CLxj7gZxkmkMl/zAccv7PJW7Mx4/q+SK 5/nA9Btw==; Received: from [192.168.71.101] (helo=mail.home.palmen-it.de) by stef.palmen-it.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rrhDf-006Oms-1d for ports@freebsd.org; Tue, 02 Apr 2024 18:42:43 +0200 Received: from nexus.home.palmen-it.de ([192.168.99.2]) by mail.home.palmen-it.de with esmtpsa (TLS1.3) tls TLS_CHACHA20_POLY1305_SHA256 (Exim 4.97.1 (FreeBSD)) (envelope-from ) id 1rrhDf-00000000Ko4-0zwL for ports@freebsd.org; Tue, 02 Apr 2024 16:42:43 +0000 Date: Tue, 2 Apr 2024 18:42:42 +0200 From: Felix Palmen To: ports@freebsd.org Subject: Porting PowerShell to FreeBSD, first working poc Message-ID: <4v7dvpgm64gz6dod4krllcwmtzfcpj5ysbcre2wvuwfhoayjzq@atw62vkevrcb> Mail-Followup-To: ports@freebsd.org X-Face: /1K@t"h.}e~pR@]c7HorQ!T`F^RJCa'BCr#e>IKA{>C/9OTGB4|xh"y2{?1Z5M i2w"AH^pN_LlHR^{+f',_Np~;.B;!M/bL}*qk]p5*r7F5vW};{:@4u5S?T&f0$7BJ-71Q5SV]:v$`5 A0[DZ:=?S52x8HJ~5@^P_\T@MsjG{R( Organization: FreeBSD.org List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="igmwgzvv7votroxx" Content-Disposition: inline User-Agent: NeoMutt/20240201 X-Spamd-Bar: ------- X-Spamd-Result: default: False [-7.40 / 15.00]; SIGNED_PGP(-2.00)[]; DWL_DNSWL_MED(-2.00)[palmen-it.de:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; FORGED_SENDER(0.30)[zirias@freebsd.org,felix@palmen-it.de]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; RCVD_IN_DNSWL_MED(-0.20)[2001:470:1f0b:bbb:1::1:from]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:1f0b:bbb:1::1]; R_DKIM_ALLOW(-0.20)[palmen-it.de:s=20200414]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), DKIM not aligned (relaxed),none]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[zirias@freebsd.org,felix@palmen-it.de]; RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MLMMJ_DEST(0.00)[ports@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; TO_DN_NONE(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DKIM_TRACE(0.00)[palmen-it.de:+]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4V8DFh1zxDz4c0V --igmwgzvv7votroxx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all, for background, there was a previous attempt to bring PowerShell to FreeBSD, but it seems it got stuck somewhere: https://wiki.freebsd.org/SummerOfCode2018Projects/PortingPowerShellPorting Now that we have dotnet 8 in ports, I started a new attempt. Currently, it still needs patches to lang/dotnet, see these reviews: https://reviews.freebsd.org/D44560 https://reviews.freebsd.org/D44561 They will most likely change, arrowd wants to look for better ways to fix the underlying issues, but one or the other way, it will be possible to build and package PowerShell. Here's my current patch (which will probably be updated in place): https://people.freebsd.org/~zirias/patches/0001-shells-powershell-Add-new-p= ort.patch Or, if you prefer to "browse" the port, you can do so here: https://github.com/Zirias/zfbsd-ports/tree/local/shells/powershell Especially the inlcuded "nuget.mk" for fetching required nuget packages most certainly needs a lot of work. I'm aware mono.mk already has fetching nuget packages implemented, but I don't need mono and how it's doing it isn't a perfect fit either. In the long run, we'll probably need a separate USES=3Dnuget (which can then be included by both mono and dotnet). Anyways, the shell seems to work, from the few very basic tests I did so far. So, please test if you're interested :) In case anyone would like to have a review on Phabricator at this stage, I could upload it there as well, just let me know. Cheers, Felix --=20 Felix Palmen {private} felix@palmen-it.de -- ports committer -- {web} http://palmen-it.de {pgp public key} http://palmen-it.de/pub.txt {pgp fingerprint} 6936 13D5 5BBF 4837 B212 3ACC 54AD E006 9879 F231 --igmwgzvv7votroxx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iNUEABYKAH0WIQRpNhPVW79IN7ISOsxUreAGmHnyMQUCZgw1eV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0Njkz NjEzRDU1QkJGNDgzN0IyMTIzQUNDNTRBREUwMDY5ODc5RjIzMQAKCRBUreAGmHny MQgTAQDbmEYDYYWU3/Qa8PFT7SutOzIgwq3yXGmqEVwvr32bLAEAlyEtRBCqyE3K 9liMu0WNyhqV3AVSiz7op/XVuTcScAU= =gjI3 -----END PGP SIGNATURE----- --igmwgzvv7votroxx--