zirias,

Goal: Get some certificate obtained with deployed on some box

Step 1: Ok, this probably works best with (which I don't really like ...)

Step 2: There's no port ... but hey, there's now a FreeBSD port of , let's try to "just" build Powershell using that.

Step 3: Hell why does it fail to build. Oh, System.Security.Cryptography.Native doesn't play well with

Patch and retry, I guess I'll take some sleep now first. Bah!

(there's some irony in running into OpenSSL/LibreSSL issues when trying to deploy TLS certificates ...)

zirias,

I guess that's progress ... some on at least starting up. Creating a out of this will be a lot of work 😞 had to patch quite some code, e.g. completely disable the "login shell" functionality, the implementations only work on either or ....

And the whole build system fails completely if not built from within a working copy ... WTF? This will be another challenge for porting.

Ah, this messy version is probably a result of the mess in the upstream repo, a tag v7.4.1 exists, but refers to a commit that is gone.

Oh what did I expect ... 😂

zirias,

This will be though.

Well, I can certainly build for now. I might be able to just "fake" a working copy for its stupid build system. This still doesn't fully solve the version issue, it insists on appending the git hash -> TODO.

The "login shell" feature can be added, an exercise left for later, the code will look pretty similar to the existing MacOS-X implementation. Maybe upstream would even accept it 😎

For a , it should probably be "published" as "" (I hope this has no negative impact), otherwise lang/dotnet would become a hard run dependency ... This works now as well, but requires changes in lang/dotnet ... requires some platform-specific packages that don't exist on MS servers for FreeBSD. They are created during build of dotnet itself, but not installed anywhere by default ... I'll suggest an "on by default" port option to bundle these with lang/dotnet.

[…]

zirias,

The biggest issue will probably be to find some at least somewhat sane way to download the required #NuGet packages during #port fetch phase, so they can be used "offline" during build later. Of course if ever possible with correct checksumming in distinfo.

This is always the same annoying crap with all these languages and frameworks inventing their own package management. Sucks.

For #NuGet, I tought the commandline client could maybe help with the task. Well if anyone can tell me how to even build that thing ... I guess I'll give up and look for other ideas. Should be possible to somehow automate the process to get the correct uris for package downloads? And then maybe patch the build files of #PowerShell to exclusively use a local directory as the "package source" ... we will see.

zirias,

A working of is certainly getting closer 😉

zirias,

And now, "staging" and packaging for works as well 😎

But this is just the "base" with no bundled modules. Next step, find out how to build and bundle some "essential" Modules, e.g. and/or (for Install-Module), and (for sane commandline editing and stuff) ... any more that absolutely NEED to be bundled? 🤔

zirias,

Next "milestone", bundling modules with the package (using the nupkg files available from powershellgallery) works! 🥳

One little thing missing, some of these are auto-imported, others are not ... why? 🤔

Edit: They are auto-imported as soon as you invoke a commandlet ... nice! 😎

Ok, time to commit to my local branch of ports. Can't go to main yet because building still requires some patches to lang/dotnet ...

zirias,

In case you want to test on NOW ... here's a patch for :
https://people.freebsd.org/~zirias/patches/0001-shells-powershell-Add-new-port.patch

It currently requires at least these patches applied before:
https://reviews.freebsd.org/D44560
https://reviews.freebsd.org/D44561

Note they will probably change, the maintainer of lang/dotnet is looking for better options to solve these issues.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • windows
  • DreamBathrooms
  • ethstaker
  • thenastyranch
  • magazineikmin
  • normalnudes
  • rosin
  • khanakhh
  • osvaldo12
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • everett
  • ngwrru68w68
  • provamag3
  • tacticalgear
  • InstantRegret
  • anitta
  • GTA5RPClips
  • mdbf
  • tester
  • cubers
  • cisconetworking
  • megavids
  • modclub
  • Leos
  • JUstTest
  • lostlight
  • All magazines