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

(-)a/xdg-desktop-portal-cosmic-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/xdg-desktop-portal-cosmic.spec (-2 / +9 lines)
Lines 11-17 Link Here
11
11
12
Name: xdg-desktop-portal-cosmic
12
Name: xdg-desktop-portal-cosmic
13
Version: %ver_major.0
13
Version: %ver_major.0
14
Release: alt0.1%beta
14
Release: alt0.2%beta
15
15
16
Summary: COSMIC Desktop Portal
16
Summary: COSMIC Desktop Portal
17
License: GPL-3.0
17
License: GPL-3.0
Lines 27-32 Source: %name-%version%beta.tar Link Here
27
%endif
27
%endif
28
Source1: %name-%version%beta-cargo.tar
28
Source1: %name-%version%beta-cargo.tar
29
Patch1: cosmic-files-1.0.0-alt-vendor-no-vergen.patch
29
Patch1: cosmic-files-1.0.0-alt-vendor-no-vergen.patch
30
Patch2: xdg-desktop-portal-cosmic-1.0.0-alt-linux-raw-sys-char-loongarch64.patch
30
31
31
Requires: xdg-desktop-portal-gtk
32
Requires: xdg-desktop-portal-gtk
32
33
Lines 52-57 tar -cf %_sourcedir/%name-%version%beta-cargo.tar .cargo/ vendor/} Link Here
52
sed -i -e 's/"files":{[^}]*}/"files":{}/' \
53
sed -i -e 's/"files":{[^}]*}/"files":{}/' \
53
    vendor/cosmic-files/.cargo-checksum.json
54
    vendor/cosmic-files/.cargo-checksum.json
54
55
56
%patch2 -p1
57
sed -i -e 's/"files":{[^}]*}/"files":{}/' \
58
    vendor/linux-raw-sys/.cargo-checksum.json
59
55
%build
60
%build
56
export VERGEN_GIT_SHA=%version
61
export VERGEN_GIT_SHA=%version
57
export VERGEN_GIT_COMMIT_DATE=%(date --iso-8601)
62
export VERGEN_GIT_COMMIT_DATE=%(date --iso-8601)
Lines 76-81 export VERGEN_GIT_COMMIT_DATE=%(date --iso-8601) Link Here
76
#%doc README*
81
#%doc README*
77
82
78
%changelog
83
%changelog
84
* Mon Aug 19 2024 Ilya Sorochan <k0tran@altlinux.org> 1.0.0-alt0.2.alpha.1
85
- Add loongarch64 patch for linux-raw-sys crate
86
79
* Sun Aug 18 2024 Yuri N. Sedunov <aris@altlinux.org> 1.0.0-alt0.1.alpha.1
87
* Sun Aug 18 2024 Yuri N. Sedunov <aris@altlinux.org> 1.0.0-alt0.1.alpha.1
80
- first build for Sisyphus
88
- first build for Sisyphus
81
89
82
- 

Return to bug 51325