View | Details | Raw Unified | Return to bug 51325
Collapse All | Expand All

(-)a/cosmic-greeter-1.0.0-alt-0.26-nix-loongarch64.patch (+15 lines)
Line 0 Link Here
1
Bring support of loongarch64 to nix 0.26
2
3
diff --git a/cosmic-session-1.0.0.alpha.1-cargo/vendor/nix-0.26.4/src/sys/ioctl/linux.rs b/cosmic-session-1.0.0.alpha.1-cargo/vendor/nix-0.26.4/src/sys/ioctl/linux.rs
4
--- a/cosmic-session-1.0.0.alpha.1-cargo/vendor/nix-0.26.4/src/sys/ioctl/linux.rs
5
+++ b/cosmic-session-1.0.0.alpha.1-cargo/vendor/nix-0.26.4/src/sys/ioctl/linux.rs
6
@@ -42,7 +42,8 @@ mod consts {
7
     target_arch = "x86_64",
8
     target_arch = "aarch64",
9
     target_arch = "riscv32",
10
-    target_arch = "riscv64"
11
+    target_arch = "riscv64",
12
+    target_arch = "loongarch64"
13
 ))]
14
 mod consts {
15
     #[doc(hidden)]
(-)a/cosmic-greeter.spec (-3 / +8 lines)
Lines 8-14 Link Here
8
8
9
Name: cosmic-greeter
9
Name: cosmic-greeter
10
Version: %ver_major.0
10
Version: %ver_major.0
11
Release: alt0.1%beta
11
Release: alt0.2%beta
12
12
13
Summary: COSMIC Greeter
13
Summary: COSMIC Greeter
14
License: GPL-3.0
14
License: GPL-3.0
Lines 24-29 Source: %name-%version%beta.tar Link Here
24
%endif
24
%endif
25
Source1: %name-%version%beta-cargo.tar
25
Source1: %name-%version%beta-cargo.tar
26
Patch10: cosmic-term-1.0.0-alt-linux-raw-sys-char-loongarch64.patch
26
Patch10: cosmic-term-1.0.0-alt-linux-raw-sys-char-loongarch64.patch
27
Patch11: cosmic-greeter-1.0.0-alt-0.26-nix-loongarch64.patch
27
28
28
Requires: greetd cosmic-comp
29
Requires: greetd cosmic-comp
29
30
Lines 48-55 cargo vendor | sed 's/^directory = ".*"/directory = "vendor"/g' > .cargo/config. Link Here
48
tar -cf %_sourcedir/%name-%version%beta-cargo.tar .cargo/ vendor/}
49
tar -cf %_sourcedir/%name-%version%beta-cargo.tar .cargo/ vendor/}
49
50
50
%patch10 -p1
51
%patch10 -p1
52
%patch11 -p2
51
sed -i -e 's/"files":{[^}]*}/"files":{}/' \
53
sed -i -e 's/"files":{[^}]*}/"files":{}/' \
52
    vendor/linux-raw-sys/.cargo-checksum.json
54
    vendor/linux-raw-sys/.cargo-checksum.json \
55
    vendor/nix-0.26.4/.cargo-checksum.json
53
56
54
%build
57
%build
55
export RUSTFLAGS="${RUSTFLAGS} -g"
58
export RUSTFLAGS="${RUSTFLAGS} -g"
Lines 71-76 just rootdir=%buildroot install Link Here
71
%doc README*
74
%doc README*
72
75
73
%changelog
76
%changelog
77
* Thu Aug 22 2024 Ilya Sorochan <k0tran@altlinux.org> 1.0.0-alt0.2.alpha.1
78
- Add patch for old nix crate version
79
74
* Sun Aug 18 2024 Yuri N. Sedunov <aris@altlinux.org> 1.0.0-alt0.1.alpha.1
80
* Sun Aug 18 2024 Yuri N. Sedunov <aris@altlinux.org> 1.0.0-alt0.1.alpha.1
75
- first build for Sisyphus (epoch-1.0.0-alpha.1-5-g3679ee5)
81
- first build for Sisyphus (epoch-1.0.0-alpha.1-5-g3679ee5)
76
82
77
- 

Return to bug 51325