From 18de6cd71f044f5702dfebca1e35e51e22191bf9 Mon Sep 17 00:00:00 2001 From: Wook Song Date: Mon, 3 Jul 2023 11:36:54 +0900 Subject: [PATCH] Dist/Tizen: Fix build breaks on GCC 13 This patch fixes build breaks on Tizen GCC-13 using temporary workarounds. Change-Id: I30a8c645553d37c401328f801a3e42c64094ded8 Signed-off-by: Wook Song --- ...Fix-link-error-related-to-tun_fwd_ifnames.patch | 29 ++++++++++++++++++++++ packaging/openssh.spec | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 packaging/0001-Local-Fix-link-error-related-to-tun_fwd_ifnames.patch diff --git a/packaging/0001-Local-Fix-link-error-related-to-tun_fwd_ifnames.patch b/packaging/0001-Local-Fix-link-error-related-to-tun_fwd_ifnames.patch new file mode 100644 index 0000000..8a32102 --- /dev/null +++ b/packaging/0001-Local-Fix-link-error-related-to-tun_fwd_ifnames.patch @@ -0,0 +1,29 @@ +From 3cbc2261df3074491a9595fb55795f18f89816be Mon Sep 17 00:00:00 2001 +From: Wook Song +Date: Mon, 3 Jul 2023 11:24:05 +0900 +Subject: [PATCH 1/1] Local: Fix link error related to 'tun_fwd_ifnames' + +There is a missing 'extern' keyword for the function 'tun_fwd_ifnames', +which makes a link error. This local patch fixes this bug. + +Signed-off-by: Wook Song +--- + session.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/session.c b/session.c +index 58826db1..4afcb451 100644 +--- a/session.c ++++ b/session.c +@@ -141,7 +141,7 @@ extern int startup_pipe; + extern void destroy_sensitive_data(void); + extern Buffer loginmsg; + extern struct sshauthopt *auth_opts; +-char *tun_fwd_ifnames; /* serverloop.c */ ++extern char *tun_fwd_ifnames; /* serverloop.c */ + + /* original command from peer. */ + const char *original_command = NULL; +-- +2.25.1 + diff --git a/packaging/openssh.spec b/packaging/openssh.spec index 4d0d08d..45dcd47 100644 --- a/packaging/openssh.spec +++ b/packaging/openssh.spec @@ -17,6 +17,7 @@ Source12: sshd.service Source13: sshd.socket Source14: sshd@.service Source1001: openssh.manifest +Patch0: 0001-Local-Fix-link-error-related-to-tun_fwd_ifnames.patch BuildRequires: systemd BuildRequires: autoconf @@ -55,6 +56,7 @@ also be forwarded over the secure channel. %prep %setup -q +%patch0 -p1 cp %{SOURCE1001} . %build -- 2.7.4