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

(-)a/.gear/rules (+1 lines)
Lines 1-2 Link Here
1
tar: cosmic-osd-1.0.0.alpha.2-cargo name=cosmic-osd-1.0.0.alpha.2-cargo base=
1
tar: cosmic-osd-1.0.0.alpha.2-cargo name=cosmic-osd-1.0.0.alpha.2-cargo base=
2
tar: cosmic-osd name=cosmic-osd-1.0.0.alpha.2
2
tar: cosmic-osd name=cosmic-osd-1.0.0.alpha.2
3
copy: *.patch
(-)a/cosmic-osd-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-osd.spec (-1 / +10 lines)
Lines 8-14 Link Here
8
8
9
Name: cosmic-osd
9
Name: cosmic-osd
10
Version: %ver_major.0
10
Version: %ver_major.0
11
Release: alt0.2%beta
11
Release: alt0.0.port.2%beta
12
12
13
Summary: COSMIC OSD
13
Summary: COSMIC OSD
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
26
27
Patch: cosmic-osd-1.0.0-alt-linux-raw-sys-char-loongarch64.patch
28
27
BuildRequires(pre): rpm-build-rust
29
BuildRequires(pre): rpm-build-rust
28
BuildRequires: make
30
BuildRequires: make
29
BuildRequires: pkgconfig(xkbcommon)
31
BuildRequires: pkgconfig(xkbcommon)
Lines 41-46 BuildRequires: pkgconfig(libpulse) Link Here
41
cargo vendor | sed 's/^directory = ".*"/directory = "vendor"/g' > .cargo/config.toml
43
cargo vendor | sed 's/^directory = ".*"/directory = "vendor"/g' > .cargo/config.toml
42
tar -cf %_sourcedir/%name-%version%beta-cargo.tar .cargo/ vendor/}
44
tar -cf %_sourcedir/%name-%version%beta-cargo.tar .cargo/ vendor/}
43
45
46
%patch -p1
47
sed -i -e 's/"files":{[^}]*}/"files":{}/' \
48
    vendor/linux-raw-sys/.cargo-checksum.json
49
44
%build
50
%build
45
%rust_build
51
%rust_build
46
52
Lines 54-59 tar -cf %_sourcedir/%name-%version%beta-cargo.tar .cargo/ vendor/} Link Here
54
%_bindir/%name
60
%_bindir/%name
55
61
56
%changelog
62
%changelog
63
* Mon Sep 30 2024 Ilya Sorochan <k0tran@altlinux.org> 1.0.0-alt0.0.port.2.alpha.2
64
- add loongarch64 patch for linux-raw-sys crate
65
57
* Thu Sep 26 2024 Yuri N. Sedunov <aris@altlinux.org> 1.0.0-alt0.2.alpha.2
66
* Thu Sep 26 2024 Yuri N. Sedunov <aris@altlinux.org> 1.0.0-alt0.2.alpha.2
58
- 1.0.0-alpha.2
67
- 1.0.0-alpha.2
59
68

Return to bug 51325