From ef6ba723bbae541c8444106a8b52e8ad2692b13d Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Thu, 2 Jan 2020 11:44:42 -0800 Subject: [PATCH] Fix symoblic links on Debian 10 packages --- build.psm1 | 1 + tools/packaging/packaging.psm1 | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.psm1 b/build.psm1 index b7b4b898402..c9bdf4c689f 100644 --- a/build.psm1 +++ b/build.psm1 @@ -502,6 +502,7 @@ Fix steps: } if ($Environment.IsRedHatFamily -or $Environment.IsDebian) { + # Symbolic links added here do NOT affect packaging as we do not build on Debian. # add two symbolic links to system shared libraries that libmi.so is dependent on to handle # platform specific changes. This is the only set of platforms needed for this currently # as Ubuntu has these specific library files in the platform and macOS builds for itself diff --git a/tools/packaging/packaging.psm1 b/tools/packaging/packaging.psm1 index 59218e6a733..d75798c32eb 100644 --- a/tools/packaging/packaging.psm1 +++ b/tools/packaging/packaging.psm1 @@ -1261,11 +1261,11 @@ function New-AfterScripts # add two symbolic links to system shared libraries that libmi.so is dependent on to handle # platform specific changes. This appears to be a change in Debian 9; Debian 8 did not need these # symlinks. - 'debian\.(9|10)' { + 'debian\.9' { 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 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 } - 'debian\.11' { + 'debian\.(10|11)' { New-Item -Force -ItemType SymbolicLink -Target "/usr/lib/x86_64-linux-gnu/libssl.so.1.1" -Path "$Staging/libssl.so.1.0.0" > $null New-Item -Force -ItemType SymbolicLink -Target "/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1" -Path "$Staging/libcrypto.so.1.0.0" > $null }