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-screenshot-1.0.0.alpha.1-cargo name=cosmic-screenshot-1.0.0.alpha.1-cargo base=
1
tar: cosmic-screenshot-1.0.0.alpha.1-cargo name=cosmic-screenshot-1.0.0.alpha.1-cargo base=
2
tar: cosmic-screenshot name=cosmic-screenshot-1.0.0.alpha.1
2
tar: cosmic-screenshot name=cosmic-screenshot-1.0.0.alpha.1
3
copy: *.patch
(-)a/cosmic-screenshot-1.0.0-alt-libc-fs-ioc-flags.patch (+17 lines)
Line 0 Link Here
1
diff --git a/cosmic-screenshot-1.0.0.alpha.1-cargo/vendor/libc/src/unix/linux_like/linux/arch/generic/mod.rs b/cosmic-screenshot-1.0.0.alpha.1-cargo/vendor/libc/src/unix/linux_like/linux/arch/generic/mod.rs
2
index b8e4596..83f97fb 100644
3
--- a/cosmic-screenshot-1.0.0.alpha.1-cargo/vendor/libc/src/unix/linux_like/linux/arch/generic/mod.rs
4
+++ b/cosmic-screenshot-1.0.0.alpha.1-cargo/vendor/libc/src/unix/linux_like/linux/arch/generic/mod.rs
5
@@ -227,7 +227,11 @@ cfg_if! {
6
         pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x40046602;
7
         pub const FS_IOC32_GETVERSION: ::Ioctl = 0x80047601;
8
         pub const FS_IOC32_SETVERSION: ::Ioctl = 0x40047602;
9
-    } else if #[cfg(any(target_arch = "x86_64", target_arch = "riscv64", target_arch = "aarch64", target_arch = "s390x"))] {
10
+    } else if #[cfg(any(target_arch = "x86_64",
11
+                        target_arch = "riscv64",
12
+                        target_arch = "aarch64",
13
+                        target_arch = "s390x",
14
+                        target_arch = "loongarch64"))] {
15
         pub const FS_IOC_GETFLAGS: ::Ioctl = 0x80086601;
16
         pub const FS_IOC_SETFLAGS: ::Ioctl = 0x40086602;
17
         pub const FS_IOC_GETVERSION: ::Ioctl = 0x80087601;
(-)a/cosmic-screenshot.spec (-2 / +10 lines)
Lines 8-14 Link Here
8
8
9
Name: cosmic-screenshot
9
Name: cosmic-screenshot
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 Screenshot
13
Summary: COSMIC Screenshot
14
License: GPL-2.0
14
License: GPL-2.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-screenshot-1.0.0-alt-libc-fs-ioc-flags.patch
28
27
Requires: xdg-desktop-portal
29
Requires: xdg-desktop-portal
28
30
29
BuildRequires(pre): rpm-build-rust
31
BuildRequires(pre): rpm-build-rust
Lines 42-47 Utility for capturing screenshots via XDG Desktop Portal. Link Here
42
cargo vendor | sed 's/^directory = ".*"/directory = "vendor"/g' > .cargo/config.toml
44
cargo vendor | sed 's/^directory = ".*"/directory = "vendor"/g' > .cargo/config.toml
43
tar -cf %_sourcedir/%name-%version%beta-cargo.tar .cargo/ vendor/}
45
tar -cf %_sourcedir/%name-%version%beta-cargo.tar .cargo/ vendor/}
44
46
47
%patch -p2
48
sed -i -e 's/"files":{[^}]*}/"files":{}/' \
49
	vendor/libc/.cargo-checksum.json
50
45
%build
51
%build
46
%rust_build
52
%rust_build
47
53
Lines 58-63 just rootdir=%buildroot install Link Here
58
%doc README*
64
%doc README*
59
65
60
%changelog
66
%changelog
67
* Fri Aug 23 2024 Ilya Sorochan <k0tran@altlinux.org> 1.0.0-alt0.2.alpha.1
68
- Add loongarch64 patch for libc crate
69
61
* Sun Aug 18 2024 Yuri N. Sedunov <aris@altlinux.org> 1.0.0-alt0.1.alpha.1
70
* Sun Aug 18 2024 Yuri N. Sedunov <aris@altlinux.org> 1.0.0-alt0.1.alpha.1
62
- first build for Sisyphus
71
- first build for Sisyphus
63
72
64
- 

Return to bug 51325