ALT Linux Bugzilla
– Attachment 16740 Details for
Bug 51325
Cosmic DE 1.0.0 on loongarch64
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
cosmic-session linux-raw-sys crate patch
cosmic-session-alt0.2.patch (text/plain), 3.92 KB, created by
Ilya Sorochan
on 2024-08-29 12:30:57 MSK
(
hide
)
Description:
cosmic-session linux-raw-sys crate patch
Filename:
MIME Type:
Creator:
Ilya Sorochan
Created:
2024-08-29 12:30:57 MSK
Size:
3.92 KB
patch
obsolete
>From d931bc7e98ab9d83fa2252d43cf4c45e481f9979 Mon Sep 17 00:00:00 2001 >From: Ilya Sorochan <k0tran@altlinux.org> >Date: Thu, 22 Aug 2024 16:54:45 +0300 >Subject: [PATCH] 1.0.0-alt0.2.alpha.1 > >- Add patch for old nix crate version >--- > .gear/rules | 1 + > ...c-session-1.0.0-alt-0.23-nix-loongarch64.patch | 14 ++++++++++++++ > ...c-session-1.0.0-alt-0.26-nix-loongarch64.patch | 15 +++++++++++++++ > cosmic-session.spec | 13 ++++++++++++- > 4 files changed, 42 insertions(+), 1 deletion(-) > create mode 100644 cosmic-session-1.0.0-alt-0.23-nix-loongarch64.patch > create mode 100644 cosmic-session-1.0.0-alt-0.26-nix-loongarch64.patch > >diff --git a/.gear/rules b/.gear/rules >index 7562b01..e0b3e0f 100644 >--- a/.gear/rules >+++ b/.gear/rules >@@ -1,2 +1,3 @@ > tar: cosmic-session-1.0.0.alpha.1-cargo name=cosmic-session-1.0.0.alpha.1-cargo base= > tar: cosmic-session name=cosmic-session-1.0.0.alpha.1 >+copy: *.patch >diff --git a/cosmic-session-1.0.0-alt-0.23-nix-loongarch64.patch b/cosmic-session-1.0.0-alt-0.23-nix-loongarch64.patch >new file mode 100644 >index 0000000..5522fb3 >--- /dev/null >+++ b/cosmic-session-1.0.0-alt-0.23-nix-loongarch64.patch >@@ -0,0 +1,14 @@ >+Bring support of loongarch64 to nix 0.23 >+ >+diff --git a/cosmic-session-1.0.0.alpha.1-cargo/vendor/nix-0.23.2/src/sys/ioctl/linux.rs b/cosmic-session-1.0.0.alpha.1-cargo/vendor/nix-0.23.2/src/sys/ioctl/linux.rs >+index 68ebaba..d9a41f9 100644 >+--- a/cosmic-session-1.0.0.alpha.1-cargo/vendor/nix-0.23.2/src/sys/ioctl/linux.rs >++++ b/cosmic-session-1.0.0.alpha.1-cargo/vendor/nix-0.23.2/src/sys/ioctl/linux.rs >+@@ -34,6 +34,7 @@ mod consts { >+ target_arch = "s390x", >+ target_arch = "x86_64", >+ target_arch = "aarch64", >++ target_arch = "loongarch64", >+ target_arch = "riscv64"))] >+ mod consts { >+ #[doc(hidden)] >diff --git a/cosmic-session-1.0.0-alt-0.26-nix-loongarch64.patch b/cosmic-session-1.0.0-alt-0.26-nix-loongarch64.patch >new file mode 100644 >index 0000000..604d1ef >--- /dev/null >+++ b/cosmic-session-1.0.0-alt-0.26-nix-loongarch64.patch >@@ -0,0 +1,15 @@ >+Bring support of loongarch64 to nix 0.26 >+ >+diff --git a/cosmic-session-1.0.0.alpha.1-cargo/vendor/nix-0.26.2/src/sys/ioctl/linux.rs b/cosmic-session-1.0.0.alpha.1-cargo/vendor/nix-0.26.2/src/sys/ioctl/linux.rs >+--- a/cosmic-session-1.0.0.alpha.1-cargo/vendor/nix-0.26.2/src/sys/ioctl/linux.rs >++++ a/cosmic-session-1.0.0.alpha.1-cargo/vendor/nix-0.26.2/src/sys/ioctl/linux.rs >+@@ -42,7 +42,8 @@ mod consts { >+ target_arch = "x86_64", >+ target_arch = "aarch64", >+ target_arch = "riscv32", >+- target_arch = "riscv64" >++ target_arch = "riscv64", >++ target_arch = "loongarch64" >+ ))] >+ mod consts { >+ #[doc(hidden)] >diff --git a/cosmic-session.spec b/cosmic-session.spec >index b2bd0f6..bf2651a 100644 >--- a/cosmic-session.spec >+++ b/cosmic-session.spec >@@ -8,7 +8,7 @@ > > Name: cosmic-session > Version: %ver_major.0 >-Release: alt0.1%beta >+Release: alt0.2%beta > > Summary: COSMIC Session Manager > License: GPL-3.0 >@@ -24,6 +24,9 @@ Source: %name-%version%beta.tar > %endif > Source1: %name-%version%beta-cargo.tar > >+Patch0: cosmic-session-1.0.0-alt-0.23-nix-loongarch64.patch >+Patch1: cosmic-session-1.0.0-alt-0.26-nix-loongarch64.patch >+ > ExcludeArch: %ix86 armh ppc64le > > Requires: cosmic-app-library >@@ -66,6 +69,11 @@ tar -cf %_sourcedir/%name-%version%beta-cargo.tar .cargo/ vendor/} > # fix path > sed -i 's|\/usr\(\/bin\/dbus-run-session\)|\1|' data/start-cosmic > >+%patch0 -p2 >+%patch1 -p2 >+sed -i -e 's/"files":{[^}]*}/"files":{}/' \ >+ ./vendor/nix-*/.cargo-checksum.json >+ > %build > %rust_build > >@@ -83,6 +91,9 @@ just rootdir=%buildroot install > %_datadir/wayland-sessions/cosmic.desktop > > %changelog >+* Thu Aug 22 2024 Ilya Sorochan <k0tran@altlinux.org> 1.0.0-alt0.2.alpha.1 >+- Add patch for old nix crate version >+ > * Sun Aug 18 2024 Yuri N. Sedunov <aris@altlinux.org> 1.0.0-alt0.1.alpha.1 > - first build for Sisyphus > >-- >2.42.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51325
:
16734
|
16735
|
16736
|
16737
|
16738
|
16739
|
16740
|
16741
|
16742
|
16743
|
16744
|
16745
|
16746
|
16747
|
16748
|
16749
|
16750
|
16751
|
16752
|
16934
|
16935
|
16936
|
16937
|
16938
|
16939
|
16940
|
17405
|
17406
|
17407
|
17408
|
17409