From 9e3c8cacebab383b8cacee5c3f6ad5fc993a2956 Mon Sep 17 00:00:00 2001
From: Sonic Build Admin <sonicbld@microsoft.com>
Date: Fri, 7 Mar 2025 10:13:29 +0000
Subject: [PATCH] sonicbuildimage: Update openssh to openssh_9.2p1-2+deb12u5

Update the openssh-server version to match the newly released version on the debian mirror. https://security.debian.org/pool/updates/main/o/openssh/

<!--
     Please make sure you've read and understood our contributing guidelines:
     https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

     ** Make sure all your commits include a signature generated with `git commit -s` **

     If this is a bug fix, make sure your description includes "fixes #xxxx", or
     "closes #xxxx" or "resolves #xxxx"

     Please provide the following information:
-->

#### Why I did it
The previous version openssh_9.2p1-2+deb12u3 has been removed from https://security.debian.org/pool/updates/main/o/openssh/ and a new version openssh_9.2p1-2+deb12u5 is now present.

The build will fail as it tries to fetch a non existent file. This change allows the build to pass by fetching the available file.

This fixes issue https://github.com/sonic-net/sonic-buildimage/issues/21921

#### How I did it
Update rules/openssh.mk to use the new file name deb12u5

#### How to verify it
The build passes with fetching the new file.

<!--
If PR needs to be backported, then the PR must be tested against the base branch and the earliest backport release branch and provide tested image version on these two branches. For example, if the PR is requested for master, 202211 and 202012, then the requester needs to provide test results on master and 202012.
-->

#### Which release branch to backport (provide reason below if selected)

<!--
- Note we only backport fixes to a release branch, *not* features!
- Please also provide a reason for the backporting below.
- e.g.
- [x] 202006
-->

- [ ] 201811
- [ ] 201911
- [ ] 202006
- [ ] 202012
- [ ] 202106
- [ ] 202111
- [ ] 202205
- [ ] 202211
- [x] 202305
- [x] 202411

#### Tested branch (Please provide the tested image version)
- [x] master <!-- image version 1 -->
- [x] 202411 <!-- image version 2 -->

#### Description for the changelog
Update openssh to openssh_9.2p1-2+deb12u5
---
 rules/openssh.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/openssh.mk b/rules/openssh.mk
index 87bc2ee5cc02..a96cea8d3f6a 100644
--- a/rules/openssh.mk
+++ b/rules/openssh.mk
@@ -1,7 +1,7 @@
 # openssh package
 
 OPENSSH_VERSION := 9.2p1
-OPENSSH_VERSION_FULL := $(OPENSSH_VERSION)-2+deb12u3
+OPENSSH_VERSION_FULL := $(OPENSSH_VERSION)-2+deb12u5
 
 export OPENSSH_VERSION OPENSSH_VERSION_FULL