From 294007e733b6b6ec16c1623065ca30a673a31f93 Mon Sep 17 00:00:00 2001 From: Hailiang Date: Mon, 10 Mar 2025 17:03:23 +0800 Subject: [PATCH] update sw_64 patch (cherry picked from commit c63fdd0d2447368e607a0ae470efa6d6a07d657e) --- Systemd-Add-sw64-architecture.patch | 11 ++++++++++- systemd.spec | 14 +++++--------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/Systemd-Add-sw64-architecture.patch b/Systemd-Add-sw64-architecture.patch index 2de2125..641b12d 100644 --- a/Systemd-Add-sw64-architecture.patch +++ b/Systemd-Add-sw64-architecture.patch @@ -132,6 +132,15 @@ index 402fdd0..9680923 100644 # elif defined(__arc__) || defined(__tilegx__) # define systemd_NR_getrandom 278 # elif defined(__arm__) +@@ -258,6 +258,8 @@ assert_cc(__NR_copy_file_range == systemd_NR_copy_file_range); + # define systemd_NR_fchmodat2 452 + # elif defined(__alpha__) + # define systemd_NR_fchmodat2 562 ++# elif defined(__sw_64__) ++# define systemd_NR_fchmodat2 191 + # elif defined(__arc__) || defined(__tilegx__) + # define systemd_NR_fchmodat2 452 + # elif defined(__arm__) @@ -319,6 +328,8 @@ assert_cc(__NR_getrandom == systemd_NR_getrandom); # define systemd_NR_memfd_create 279 # elif defined(__alpha__) @@ -146,7 +155,7 @@ index 402fdd0..9680923 100644 # elif defined(__alpha__) # define systemd_NR_mount_setattr 552 +# elif defined(__sw_64__) -+# define systemd_NR_mount_setattr 552 ++# define systemd_NR_mount_setattr 181 # elif defined(__arc__) || defined(__tilegx__) # define systemd_NR_mount_setattr 442 # elif defined(__arm__) diff --git a/systemd.spec b/systemd.spec index 054324a..dd04c3e 100644 --- a/systemd.spec +++ b/systemd.spec @@ -25,7 +25,7 @@ Name: systemd Url: https://systemd.io/ Version: 255 -Release: 37 +Release: 38 License: MIT and LGPLv2+ and GPLv2+ Summary: System and Service Manager @@ -348,14 +348,7 @@ systemd-cryptsetup is used to set up (with attach) and tear down (with detach) a %package_help %prep -%autosetup -n %{name}-%{version} -p1 -Sgit -N -# DO NOT USE "%patch -R" TO REVERT A PATCH. If your patch is only used in -# specific scenarios or architectures, please put it after Patch9800 and -# use "%ifarch" to patch it after applying all other patches. -%autopatch -M 9800 -%ifarch sw_64 -%autopatch 9801 -%endif +%autosetup -n %{name}-%{version} -p1 -Sgit %build @@ -1691,6 +1684,9 @@ fi %{_unitdir}/veritysetup.target %changelog +* Mon Mar 10 2025 mahailiang - 255-38 +- update sw_64 patch + * Thu Jan 9 2025 huyubiao - 255-37 - delete Assertion o->object.type == OBJECT_ENTRY_ARRAY from the bump_entry_array -- Gitee