Skip to content

Commit 0b97d6d

Browse files
adityapatwardhanTravisEz13
authored andcommitted
Fix symbolic links on Debian 10 packages (PowerShell#11474)
1 parent f22bad1 commit 0b97d6d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

build.psm1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ Fix steps:
502502
}
503503

504504
if ($Environment.IsRedHatFamily -or $Environment.IsDebian) {
505+
# Symbolic links added here do NOT affect packaging as we do not build on Debian.
505506
# add two symbolic links to system shared libraries that libmi.so is dependent on to handle
506507
# platform specific changes. This is the only set of platforms needed for this currently
507508
# as Ubuntu has these specific library files in the platform and macOS builds for itself

tools/packaging/packaging.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,11 +1261,11 @@ function New-AfterScripts
12611261
# add two symbolic links to system shared libraries that libmi.so is dependent on to handle
12621262
# platform specific changes. This appears to be a change in Debian 9; Debian 8 did not need these
12631263
# symlinks.
1264-
'debian\.(9|10)' {
1264+
'debian\.9' {
12651265
New-Item -Force -ItemType SymbolicLink -Target "/usr/lib/x86_64-linux-gnu/libssl.so.1.0.2" -Path "$Staging/libssl.so.1.0.0" > $null
12661266
New-Item -Force -ItemType SymbolicLink -Target "/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2" -Path "$Staging/libcrypto.so.1.0.0" > $null
12671267
}
1268-
'debian\.11' {
1268+
'debian\.(10|11)' {
12691269
New-Item -Force -ItemType SymbolicLink -Target "/usr/lib/x86_64-linux-gnu/libssl.so.1.1" -Path "$Staging/libssl.so.1.0.0" > $null
12701270
New-Item -Force -ItemType SymbolicLink -Target "/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1" -Path "$Staging/libcrypto.so.1.0.0" > $null
12711271
}

0 commit comments

Comments
 (0)