Add sw64 architecture

Signed-off-by: wzx <wuzx1226@qq.com>
(cherry picked from commit 0b6048227d09c2f08e74984a9ec333358d94b07e)
This commit is contained in:
wzx 2022-10-25 15:58:52 +08:00 committed by openeuler-sync-bot
parent 34b760683b
commit 6740fe5236
2 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,28 @@
From a3e9c5c1e6646c133b7dbd6d996b4f38a44ae0aa Mon Sep 17 00:00:00 2001
From: wzx <wuzx1226@qq.com>
Date: Tue, 25 Oct 2022 09:06:08 +0800
Subject: [PATCH] Add sw64 architecture
Add sw64 architecture parallel to alpha architecture in file missing_fcntl.h to make it possible on sw64 servers.
Signed-off-by: wzx <wuzx1226@qq.com>
---
src/libnm-systemd-shared/src/basic/missing_fcntl.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libnm-systemd-shared/src/basic/missing_fcntl.h b/src/libnm-systemd-shared/src/basic/missing_fcntl.h
index 00937d2..547891c 100644
--- a/src/libnm-systemd-shared/src/basic/missing_fcntl.h
+++ b/src/libnm-systemd-shared/src/basic/missing_fcntl.h
@@ -43,7 +43,7 @@
*/
#ifndef __O_TMPFILE
-#if defined(__alpha__)
+#if defined(__alpha__) || defined(__sw_64__)
#define __O_TMPFILE 0100000000
#elif defined(__parisc__) || defined(__hppa__)
#define __O_TMPFILE 0400000000
--
2.33.0

View File

@ -50,7 +50,7 @@
Name: NetworkManager
Version: 1.32.12
Epoch: 1
Release: 12
Release: 13
Summary: Network Link Manager and User Applications
License: GPLv2+
URL: https://www.gnome.org/projects/NetworkManager/
@ -66,6 +66,7 @@ Patch6000: backport-libnm-fix-crash-in-_nm_ip_route_validate_all-for-inva
Patch6001: backport-libnm-fix-crash-on-failure-of-nm_vpn_plugin_info_new_from_file.patch
Patch6002: backport-core-reload-config-for-active-devices.patch
Patch6003: backport-libnm-fix-warning-when-setting-wrong-ethtool-ternary-value.patch
Patch6004: NetworkManager-Add-sw64-architecture.patch
BuildRequires: gcc libtool pkgconfig automake autoconf intltool gettext-devel ppp-devel gnutls-devel
BuildRequires: dbus-devel dbus-glib-devel glib2-devel gobject-introspection-devel jansson-devel
@ -485,6 +486,12 @@ fi
%{_datadir}/gtk-doc/html/NetworkManager/*
%changelog
* Mon Oct 24 2022 wuzx<wuzx1226@qq.com> - 1:1.32.12-13
- Type:feature
- CVE:NA
- SUG:NA
- DESC:Add sw64 architecture
* Thu Sep 29 2022 gaoxingwang <gaoxingwang1@huawei.com> - 1:1.32.12-12
- Type:bugfix
- ID:NA