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

(-)a/cosmic-term-1.0.0-alt-linux-raw-sys-char-loongarch64.patch (+14 lines)
Line 0 Link Here
1
Valid util linux-raw-sys 0.6.5 version
2
3
diff --git a/vendor/linux-raw-sys/src/lib.rs b/vendor/linux-raw-sys/src/lib.rs
4
index f1ca8b720..5b6425e5d 100644
5
--- a/vendor/linux-raw-sys/src/lib.rs
6
+++ b/vendor/linux-raw-sys/src/lib.rs
7
@@ -20,6 +20,7 @@ pub mod ctypes {
8
     ))]
9
     pub type c_char = c_uchar;
10
     #[cfg(any(
11
+        target_arch = "loongarch64",
12
         target_arch = "mips",
13
         target_arch = "mips64",
14
         target_arch = "sparc64",
(-)a/cosmic-term.spec (-2 / +9 lines)
Lines 8-14 Link Here
8
8
9
Name: cosmic-term
9
Name: cosmic-term
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 terminal emulator
13
Summary: COSMIC terminal emulator
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
Patch1: %name-1.0.0-alt-no-vergen.patch
26
Patch1: %name-1.0.0-alt-no-vergen.patch
27
Patch2: %name-1.0.0-alt-linux-raw-sys-char-loongarch64.patch
27
28
28
BuildRequires(pre): rpm-build-rust
29
BuildRequires(pre): rpm-build-rust
29
BuildRequires: just
30
BuildRequires: just
Lines 47-52 tar -cf %_sourcedir/%name-%version%beta-cargo.tar .cargo/ vendor/} Link Here
47
sed -i -e 's/"files":{[^}]*}/"files":{}/' \
48
sed -i -e 's/"files":{[^}]*}/"files":{}/' \
48
    vendor/cosmic-files/.cargo-checksum.json
49
    vendor/cosmic-files/.cargo-checksum.json
49
50
51
%patch2 -p1
52
sed -i -e 's/"files":{[^}]*}/"files":{}/' \
53
	vendor/linux-raw-sys/.cargo-checksum.json
54
50
%build
55
%build
51
export VERGEN_GIT_SHA=%version
56
export VERGEN_GIT_SHA=%version
52
export VERGEN_GIT_COMMIT_DATE=%(date --iso-8601)
57
export VERGEN_GIT_COMMIT_DATE=%(date --iso-8601)
Lines 70-75 export VERGEN_GIT_COMMIT_DATE=%(date --iso-8601) Link Here
70
%doc README*
75
%doc README*
71
76
72
%changelog
77
%changelog
78
* Mon Aug 19 2024 Ilya Sorochan <k0tran@altlinux.org> 1.0.0-alt0.2.alpha.1
79
- Add loongarch64 patch for linux-raw-sys crate
80
73
* Thu Aug 15 2024 Yuri N. Sedunov <aris@altlinux.org> 1.0.0-alt0.1.alpha.1
81
* Thu Aug 15 2024 Yuri N. Sedunov <aris@altlinux.org> 1.0.0-alt0.1.alpha.1
74
- first build for Sisyphus (epoch-1.0.0-alpha.1-3-gb397149)
82
- first build for Sisyphus (epoch-1.0.0-alpha.1-3-gb397149)
75
83
76
- 

Return to bug 51325