-
Notifications
You must be signed in to change notification settings - Fork 4
Powershell build ? #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I've never done any PowerShell builds, I know @Thefrank did some some time ago. Have you maybe tried to make the build yourself? |
@sec Yes, i tried make yourself but its hard with install nuget packages. |
@sec i have problem with this:
|
Maybe take a look at https://github.com/mateusrodrigues/powershell-freebsd - I know @mateusrodrigues was working on powershell port for FreeBSD some time ago. Here's the project page https://wiki.freebsd.org/SummerOfCode2018Projects/PortingPowerShellPorting - don't know if there's something usuful as this was quite a time ago :) if you have this upstreamed somewhere with some steps on how to reproduce, I could take a look when have some spare time. |
More recent builds (7.1 I think) was done by @jasonpugsley so maybe he could help you out also. |
Thank I looked this link but best is this patch https://people.freebsd.org/~zirias/patches/0001-shells-powershell-Add-new-port.patch. I bumped to 7.4.2 powershell |
TL;DR: Use Zirias's patch. Long reason: Zirias's patches avoid needing the powershell-native library and use a newer upstream than mine. I have two PR's out to add FreeBSD to both powershell-native and powershell itself and both have been stalled for over a year. PowerShell/PowerShell-Native#92 is done, including feedback from review If you are going to use my patches be aware of one issue that I have not had time to address: Thefrank/freebsd-port-sooners#18. This actually came during powershell's test run but I wrote it off as configuration difference between my environment and what the test was expecting. It was the only failure. Oh, and if you want to use it as a login shell...mine might not work for FreeBSD 14 as 14 was not out when I authored the PR. |
I tried zirias patch with version 7.4.2 and I have problem with this: Do you have some idea ? |
Are you trying to build it or dogfood it? Was TypeCatalogGen made ( |
I build with FreeBSD (make) and |
It has been more than year but from what I recall both a "TypeGen" and "ResGen" tasks needed to be executed before pwsh would build. The former being the task that generates your missing powershell.inc file. EDIT: hopefully the |
I tried build PowerShell-7.4.2 with Zirias patches
|
|
Hi all, I have successfully made a build of 7.4.5 for arm64 and x64. My solution was to add the Then transfer the output to the FreeBSD machines and compile the Some minor patching was required but it is all captured in the project. I have used my own packaging of the dotnet runtime so only |
@rhubarb-geek-nz Awesome job! Can you upstream the code? The FreeBSD patch for The repo's checks system also bootstraps which complicates things a bit more too. I am more than happy to close out a nonworking PR for one that is :) |
Already done as rhubarb-geek-nz/powershell-freebsd For libpsl-native I checked out commit Fix FreeBSD build failures. Update tests for FreeBSD. My patch disables the tests. For PowerShell itself my patch contains the changes to src/powershell/Program.cs. I did a slash-and-burn to simply replace the Linux and MacOS code with FreeBSD code. |
@rhubarb-geek-nz I think @Thefrank was asking if you could upstream this with PR into powershell main repo or you already did that? |
you can look to https://github.com/mateusrodrigues/powershell-freebsd how to make freebsd port |
Given the fact, we already have dotnet 8 in ports, port of powershell would be nice |
The code changes I used to patch 7.4.5 are equivalent to what has been submitted to PowerShell 7.5 prerelease. WIP: Add platform support for FreeBSD #20041
Sure, the two problems I had was that
|
I built Powershell for FreeBSD with dotnet 8.0.6 from freshports.
|
@rhubarb-geek-nz @Martinfx Can I get your help in squashing these few test failures? |
hi,
I have a question about the PowerShell build from you. Are you going to build?
The text was updated successfully, but these errors were encountered: