ALT Linux Bugzilla
– Attachment 16936 Details for
Bug 51325
Cosmic DE 1.0.0 on loongarch64
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
libc patch for cosmic-screenshot
screenshot.patch (text/plain), 2.88 KB, created by
Ilya Sorochan
on 2024-10-01 10:51:02 MSK
(
hide
)
Description:
libc patch for cosmic-screenshot
Filename:
MIME Type:
Creator:
Ilya Sorochan
Created:
2024-10-01 10:51:02 MSK
Size:
2.88 KB
patch
obsolete
>diff --git a/.gear/rules b/.gear/rules >index 6d5c1b9..736a310 100644 >--- a/.gear/rules >+++ b/.gear/rules >@@ -1,2 +1,3 @@ > tar: cosmic-screenshot-1.0.0.alpha.2-cargo name=cosmic-screenshot-1.0.0.alpha.2-cargo base= > tar: cosmic-screenshot name=cosmic-screenshot-1.0.0.alpha.2 >+copy: *.patch >diff --git a/cosmic-screenshot-1.0.0-alt-libc-fs-ioc-flags.patch b/cosmic-screenshot-1.0.0-alt-libc-fs-ioc-flags.patch >new file mode 100644 >index 0000000..4a095bc >--- /dev/null >+++ b/cosmic-screenshot-1.0.0-alt-libc-fs-ioc-flags.patch >@@ -0,0 +1,18 @@ >+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 >+index b8e4596..83f97fb 100644 >+--- 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 >+@@ -227,7 +227,11 @@ cfg_if! { >+ pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x40046602; >+ pub const FS_IOC32_GETVERSION: ::Ioctl = 0x80047601; >+ pub const FS_IOC32_SETVERSION: ::Ioctl = 0x40047602; >+- } else if #[cfg(any(target_arch = "x86_64", target_arch = "riscv64", target_arch = "aarch64", target_arch = "s390x"))] { >++ } else if #[cfg(any(target_arch = "x86_64", >++ target_arch = "riscv64", >++ target_arch = "aarch64", >++ target_arch = "s390x", >++ target_arch = "loongarch64"))] { >+ pub const FS_IOC_GETFLAGS: ::Ioctl = 0x80086601; >+ pub const FS_IOC_SETFLAGS: ::Ioctl = 0x40086602; >+ pub const FS_IOC_GETVERSION: ::Ioctl = 0x80087601; >+ >diff --git a/cosmic-screenshot.spec b/cosmic-screenshot.spec >index 61f74bf..5a67114 100644 >--- a/cosmic-screenshot.spec >+++ b/cosmic-screenshot.spec >@@ -8,7 +8,7 @@ > > Name: cosmic-screenshot > Version: %ver_major.0 >-Release: alt0.2%beta >+Release: alt0.0.port.2%beta > > Summary: COSMIC Screenshot > License: GPL-2.0 >@@ -24,6 +24,8 @@ Source: %name-%version%beta.tar > %endif > Source1: %name-%version%beta-cargo.tar > >+Patch: cosmic-screenshot-1.0.0-alt-libc-fs-ioc-flags.patch >+ > Requires: xdg-desktop-portal > > BuildRequires(pre): rpm-build-rust >@@ -42,6 +44,10 @@ Utility for capturing screenshots via XDG Desktop Portal. > cargo vendor | sed 's/^directory = ".*"/directory = "vendor"/g' > .cargo/config.toml > tar -cf %_sourcedir/%name-%version%beta-cargo.tar .cargo/ vendor/} > >+%patch -p2 >+sed -i -e 's/"files":{[^}]*}/"files":{}/' \ >+ vendor/libc/.cargo-checksum.json >+ > %build > %rust_build > >@@ -58,6 +64,9 @@ just rootdir=%buildroot install > %doc README* > > %changelog >+* Mon Sep 30 2024 Ilya Sorochan <k0tran@altlinux.org> 1.0.0-alt0.0.port.2.alpha.2 >+- add loongarch64 patch >+ > * Thu Sep 26 2024 Yuri N. Sedunov <aris@altlinux.org> 1.0.0-alt0.2.alpha.2 > - 1.0.0-alpha.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51325
:
16734
|
16735
|
16736
|
16737
|
16738
|
16739
|
16740
|
16741
|
16742
|
16743
|
16744
|
16745
|
16746
|
16747
|
16748
|
16749
|
16750
|
16751
|
16752
|
16934
|
16935
|
16936
|
16937
|
16938
|
16939
|
16940
|
17405
|
17406
|
17407
|
17408
|
17409