Projects
openEuler:22.03:LTS:LoongArch
librsvg2
Sign Up
Log In
Username
Password
Sorry, you are not authorized to perform this action.
×
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 6
View file
_service:tar_scm_kernel_repo:librsvg2.spec
Changed
@@ -1,6 +1,6 @@ Name: librsvg2 Version: 2.50.5 -Release: 5 +Release: 6 Summary: An SVG library based on cairo License: LGPLv2+ URL: https://wiki.gnome.org/Projects/LibRsvg @@ -9,11 +9,12 @@ Source1: libc.tar.gz %endif +Patch1000: 1000-vendor-libc-0.2.94-for-sw_64.patch Patch6000: backport-CVE-2023-38633.patch -BuildRequires: chrpath gcc gobject-introspection-devel cairo-devel libxml2-devel +BuildRequires: chrpath gcc gobject-introspection-devel cairo-devel libxml2-devel BuildRequires: fontconfig-devel gdk-pixbuf2-devel glib2-devel pkgconfig(cairo-gobject) >= 1.16.0 -BuildRequires: pango-devel vala cargo rust +BuildRequires: pango-devel vala cargo rust Requires: gdk-pixbuf2 cairo >= 1.16.0 @@ -38,11 +39,15 @@ %package_help %prep -%autosetup -n librsvg-%{version} -p1 +%setup -n librsvg-%{version} %ifarch loongarch64 rm -rf vendor/libc tar -xf %{SOURCE1} -C vendor %endif +%ifarch sw_64 +%patch1000 -p1 +%endif +%patch6000 -p1 %build autoreconf @@ -88,9 +93,12 @@ %{_mandir}/man1/*.1* %changelog -* Wed Aug 30 2023 zhangpan <zhangpan103@h-partners.com> - 2.50.5-5 +* Wed Aug 30 2023 zhangpan <zhangpan103@h-partners.com> - 2.50.5-6 - fix CVE-2023-38633 +* Wed May 24 2023 guoqinglan <guoqinglan@kylinos.com.cn> - 2.50.5-5 +- add sw_64 support + * Fri Jan 6 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 2.50.5-4 - add loongarch64 support for librsvg2
View file
_service:tar_scm_kernel_repo:1000-vendor-libc-0.2.94-for-sw_64.patch
Added
@@ -0,0 +1,1296 @@ +diff --git a/vendor/libc/.cargo-checksum.json b/vendor/libc/.cargo-checksum.json +index 14a1272..0363e56 100644 +--- a/vendor/libc/.cargo-checksum.json ++++ b/vendor/libc/.cargo-checksum.json +@@ -1 +1 @@ +\ No newline at end of file +\ No newline at end of file +diff --git a/vendor/libc/src/unix/linux_like/linux/align.rs b/vendor/libc/src/unix/linux_like/linux/align.rs +index 11f5504..b932e8d 100644 +--- a/vendor/libc/src/unix/linux_like/linux/align.rs ++++ b/vendor/libc/src/unix/linux_like/linux/align.rs +@@ -5,6 +5,7 @@ macro_rules! expand_align { + target_arch = "x86_64", + target_arch = "powerpc64", + target_arch = "mips64", ++ target_arch = "sw64", // GUYC20210602 + target_arch = "s390x", + target_arch = "sparc64", + target_arch = "aarch64", +@@ -15,6 +16,7 @@ macro_rules! expand_align { + target_arch = "x86_64", + target_arch = "powerpc64", + target_arch = "mips64", ++ target_arch = "sw64", // GUYC20210602 + target_arch = "s390x", + target_arch = "sparc64", + target_arch = "aarch64", +diff --git a/vendor/libc/src/unix/linux_like/linux/gnu/b64/mod.rs b/vendor/libc/src/unix/linux_like/linux/gnu/b64/mod.rs +index 138adc9..81effdd 100644 +--- a/vendor/libc/src/unix/linux_like/linux/gnu/b64/mod.rs ++++ b/vendor/libc/src/unix/linux_like/linux/gnu/b64/mod.rs +@@ -2,11 +2,23 @@ + + pub type ino_t = u64; + pub type off_t = i64; ++// GUYC20210602 ++#[cfg(target_arch = "sw64")] ++pub type blkcnt_t = u32; ++#[cfg(not(target_arch = "sw64"))] + pub type blkcnt_t = i64; + pub type shmatt_t = u64; + pub type msgqnum_t = u64; + pub type msglen_t = u64; ++// GUYC20210602 ++#[cfg(target_arch = "sw64")] ++pub type fsblkcnt_t = i32; ++#[cfg(not(target_arch = "sw64"))] + pub type fsblkcnt_t = u64; ++// GUYC20210602 ++#[cfg(target_arch = "sw64")] ++pub type fsfilcnt_t = u32; ++#[cfg(not(target_arch = "sw64"))] + pub type fsfilcnt_t = u64; + pub type rlim_t = u64; + cfg_if! { +@@ -15,6 +27,10 @@ cfg_if! { + pub type time_t = i32; + pub type __fsword_t = i32; + } else { ++ // GUYC20210602 ++ #[cfg(target_arch = "sw64")] ++ pub type __fsword_t = i32; ++ #[cfg(not(target_arch = "sw64"))] + pub type __fsword_t = i64; + pub type clock_t = i64; + pub type time_t = i64; +@@ -80,6 +96,9 @@ cfg_if! { + } else if #[cfg(any(target_arch = "mips64"))] { + mod mips64; + pub use self::mips64::*; ++ } else if #[cfg(any(target_arch = "sw64"))] { // GUYC20210602 ++ mod sw64; ++ pub use self::sw64::*; + } else if #[cfg(any(target_arch = "s390x"))] { + mod s390x; + pub use self::s390x::*; +diff --git a/vendor/libc/src/unix/linux_like/linux/gnu/b64/sw64.rs b/vendor/libc/src/unix/linux_like/linux/gnu/b64/sw64.rs +new file mode 100644 +index 0000000..ddc5fe5 +--- /dev/null ++++ b/vendor/libc/src/unix/linux_like/linux/gnu/b64/sw64.rs +@@ -0,0 +1,1097 @@ ++//! SW64-specific definitions for 64-bit linux-like values ++ ++use pthread_mutex_t; ++ ++pub type blksize_t = u32; ++pub type c_char = i8; ++pub type c_long = i64; ++pub type c_ulong = u64; ++pub type nlink_t = u32; ++pub type suseconds_t = i64; ++pub type wchar_t = i32; ++pub type __u64 = ::c_ulong; ++pub type __s64 = ::c_long; ++ ++s! { ++ pub struct stat { ++ pub st_dev: ::dev_t, ++ pub st_ino: ::ino64_t, ++ pub st_rdev: ::dev_t, ++ pub st_size: ::off_t, ++ pub st_blocks: ::blkcnt_t, ++ __pad1: ::c_int, ++ ++ pub st_mode: ::mode_t, ++ pub st_uid: ::uid_t, ++ pub st_gid: ::gid_t, ++ pub st_blksize: ::blksize_t, ++ pub st_nlink: ::nlink_t, ++ __pad2: ::c_int, ++ pub st_atime: ::time_t, ++ pub st_atime_nsec: ::c_long, ++ pub st_mtime: ::time_t, ++ pub st_mtime_nsec: ::c_long, ++ pub st_ctime: ::time_t, ++ pub st_ctime_nsec: ::c_long, ++ __glibc_reserved: [::c_long; 3], ++ } ++ ++ pub struct stat64 { ++ pub st_dev: ::dev_t, ++ pub st_ino: ::ino64_t, ++ pub st_rdev: ::dev_t, ++ pub st_size: ::off64_t, ++ pub st_blocks: ::blkcnt64_t, ++ ++ pub st_mode: ::mode_t, ++ pub st_uid: ::uid_t, ++ pub st_gid: ::gid_t, ++ pub st_blksize: ::blksize_t, ++ pub st_nlink: ::nlink_t, ++ __pad0: ::c_int, ++ ++ pub st_atime: ::time_t, ++ pub st_atime_nsec: ::c_long, ++ pub st_mtime: ::time_t, ++ pub st_mtime_nsec: ::c_long, ++ pub st_ctime: ::time_t, ++ pub st_ctime_nsec: ::c_long, ++ __unused: [::c_long; 3], ++ } ++ ++ pub struct statfs64 { ++ pub f_type: ::c_long, ++ pub f_bsize: ::c_long, ++ pub f_blocks: ::c_long, ++ pub f_bfree: ::c_long, ++ pub f_bavail: ::c_long, ++ pub f_files: ::c_ulong, ++ pub f_ffree: ::c_ulong, ++ pub f_fsid: ::fsid_t, ++ pub f_namelen: ::c_long, ++ pub f_frsize: ::c_long, ++ pub f_flags: ::c_long, ++ pub f_spare: [::c_long; 4], ++ } ++ ++ pub struct statvfs { ++ pub f_bsize: ::c_ulong, ++ pub f_frsize: ::c_ulong, ++ pub f_blocks: ::fsblkcnt_t, ++ pub f_bfree: ::fsblkcnt_t, ++ pub f_bavail: ::fsblkcnt_t, ++ pub f_files: ::fsfilcnt_t, ++ pub f_ffree: ::fsfilcnt_t, ++ pub f_favail: ::fsfilcnt_t, ++ pub f_fsid: ::c_ulong, ++ pub f_flag: ::c_ulong, ++ pub f_namemax: ::c_ulong, ++ __f_spare: [::c_int; 6], ++ } ++ ++ pub struct statvfs64 { ++ pub f_bsize: ::c_ulong, ++ pub f_frsize: ::c_ulong, ++ pub f_blocks: ::c_long, ++ pub f_bfree: ::c_long, ++ pub f_bavail: ::c_long, ++ pub f_files: ::c_ulong, ++ pub f_ffree: ::c_ulong, ++ pub f_favail: ::c_ulong, ++ pub f_fsid: ::c_ulong, ++ pub f_flag: ::c_ulong, ++ pub f_namemax: ::c_ulong, ++ __f_spare: [::c_int; 6], ++ } ++ ++ pub struct pthread_attr_t { ++ __size: [::c_ulong; 7] ++ } ++ ++ // GUYC20201103 add sigaction stack_t siginfo_t ++ ++ pub struct sigaction { ++ pub sa_sigaction: ::sighandler_t, ++ pub sa_mask: ::sigset_t,
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.