Change packaging to support Ubuntu 17.10 and 18.04#6769
Change packaging to support Ubuntu 17.10 and 18.04#6769TravisEz13 merged 5 commits intoPowerShell:masterfrom
Conversation
|
I found 58 results by "Ubuntu" string in |
|
@rjmholt Can you add a commit with
I only found one line that needs to be changed. The docs should be moved to PowerShell/PowerShell-Docs Line 137 in e9b045e |
b6e1e4a to
5c01416
Compare
|
Installing PowerShell on Fedora 28 I notice two things so far:
|
|
I think we should rebase to move to .Net Core 2.1 and then check that #6132 was fixed. |
|
Okay I've run successfully installed PowerShell from
Some of the problems I found:
|
|
I built a .deb the other day for Ubuntu 17.10, but it didn't work. Trying again today. |
|
Have verified a working Ubuntu 17.10 package built with this branch. (Can't attach due to size) |
|
Also confirm that the produced Ubuntu 18.04 package works! |
2dfe54a to
62c93ed
Compare
tools/packaging/packaging.psm1
Outdated
| "ubuntu.14.04" { $Dependencies += @("libssl1.0.0", "libicu52") } | ||
| "ubuntu.16.04" { $Dependencies += @("libssl1.0.0", "libicu55") } | ||
| "ubuntu.17.10" { $Dependencies += @("libssl1.0.0", "libicu57") } | ||
| "ubuntu.18.04" { $Dependencies += @("libssl1.0.0", "libssl1.1", "libicu60") } |
There was a problem hiding this comment.
Do we really need both libssl?
|
As for Test-Connection tests I think it is mostly from .Net Core. I have no way to check on other Linux-s. |
|
Fedora 27 related PR #6819. |
tools/packaging/packaging.psm1
Outdated
| "ubuntu.16.04" { $Dependencies += @("libssl1.0.0", "libicu55") } | ||
| "ubuntu.17.04" { $Dependencies += @("libssl1.0.0", "libicu57") } | ||
| "ubuntu.17.10" { $Dependencies += @("libssl1.0.0", "libicu57") } | ||
| "ubuntu.18.04" { $Dependencies += @("libssl1.0.0", "libssl1.1", "libicu60") } |
There was a problem hiding this comment.
I think @iSazonov is correct. We only need libssl1.0.0
|
@anmenaga FYI this will change the package name for ubuntu 17.10 |
|
@TravisEz13 good point, thx. I'll prepare PR to fix dockerfile; and looks like we need to add dockerfiles for new '18.04' config. |
|
@rjmholt I may have an interim solution for installing on 18.04 without downgrading curl or libicu, I was able to successfully install on 18.04 by changing the dependencies for https://github.com/PowerShell/PowerShell/releases/download/v6.1.0-preview.2/powershell_6.1.0-preview.2-1.ubuntu.17.04_amd64.deb dpkg-deb --raw-exatrct powershell_6.1.0-preview.2-1.ubuntu.17.04_amd64.deb 6.1.0_patchedThen alter two patterns, curl and libicu dependencies to current versions; sudo awk '{gsub("curl3","curl4");gsub("libicu57","libicu60");print}' 6.1.0_pathched/DEBIAN/controlRepackage as a debian package; dpkg-deb --build 6.1.0_pathched/ powershell_6.1.0-patched.2-1.ubuntu.18.04_amd64.debNow just install the newly patched .deb package, I like to use gdebi to install; sudo gdebi powershell_6.1.0-patched.2-1.ubuntu.18.04_amd64.debI haven't extensively tested this but seems to be functional and stable so far |
|
@kenk667 The required libraries are determined by DotNet Core. Changing the required libraries could leave you unsupported. |
PR Summary
Ubuntu 17.04 is EOL, so we need to update our packaging for Ubuntu 17.10. This updates the package script and
build.psm1to use 17.10 rather than 17.04.The other things we should change to fully migrate are:
Also, Fedora 25 is now EOL and we should move to 27. This should already be handled, but we need to test on in a Fedora 27 environment.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature tests