Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jan 2026 14:23:59 +0000
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: bf62e93560d5 - main - shells/powershell: Install the lib/powershell/ref symlink
Message-ID:  <697e107f.314d4.1f4dd911@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bf62e93560d587d0adca14bcaf7cf16dfc2979cd

commit bf62e93560d587d0adca14bcaf7cf16dfc2979cd
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2026-01-31 14:21:08 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2026-01-31 14:23:54 +0000

    shells/powershell: Install the lib/powershell/ref symlink
    
    This fixes a error that happens when typing
    
    Add-Type -TypeDefinition @"
    using System;
    "@ -Language CSharp
    
    into PowerShell's prompt.
    
    It is yet unclear if all .NET DLLs should actually be installed under /ref,
    but this is still better than non-working Add-Type command.
    
    Reported by:    Luke Brennan <lukebrennan@outlook.com>
---
 shells/powershell/Makefile  | 2 ++
 shells/powershell/pkg-plist | 1 +
 2 files changed, 3 insertions(+)

diff --git a/shells/powershell/Makefile b/shells/powershell/Makefile
index 95285aee2f4f..05e00fc20874 100644
--- a/shells/powershell/Makefile
+++ b/shells/powershell/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	powershell
 DISTVERSIONPREFIX=v
 DISTVERSION=	7.5.4
+PORTREVISION=	1
 CATEGORIES=	shells
 
 MAINTAINER=	arrowd@FreeBSD.org
@@ -187,6 +188,7 @@ do-build:
 do-install:
 	${CP} -r ${WRKSRC}/src/powershell-unix/bin/publish \
 		${STAGEDIR}${PREFIX}/lib/powershell
+	${RLN} ${STAGEDIR}${PREFIX}/lib/powershell ${STAGEDIR}${PREFIX}/lib/powershell/ref
 	${LN} -s ../lib/powershell/pwsh ${STAGEDIR}${PREFIX}/bin
 
 post-install:
diff --git a/shells/powershell/pkg-plist b/shells/powershell/pkg-plist
index c46b8061b02a..d1d3a4fbc483 100644
--- a/shells/powershell/pkg-plist
+++ b/shells/powershell/pkg-plist
@@ -390,6 +390,7 @@ lib/powershell/pwsh.dll
 lib/powershell/pwsh.pdb
 lib/powershell/pwsh.runtimeconfig.json
 lib/powershell/pwsh.xml
+lib/powershell/ref
 lib/powershell/ru/Microsoft.CodeAnalysis.CSharp.resources.dll
 lib/powershell/ru/Microsoft.CodeAnalysis.resources.dll
 lib/powershell/ru/System.Private.ServiceModel.resources.dll


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?697e107f.314d4.1f4dd911>