pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/cbindgen



Module Name:    pkgsrc
Committed By:   he
Date:           Sat Dec 16 11:46:22 UTC 2023

Modified Files:
        pkgsrc/devel/cbindgen: distinfo
        pkgsrc/devel/cbindgen/patches:
            patch-vendor_libc-0.2.144_src_unix_bsd_netbsdlike_netbsd_mod.rs
Added Files:
        pkgsrc/devel/cbindgen/patches:
            patch-vendor_libc-0.2.144_src_unix_bsd_netbsdlike_netbsd_mips.rs

Log Message:
cbindgen: pull over more patches from rust to vendor/libc so mipsel builds.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 pkgsrc/devel/cbindgen/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/cbindgen/patches/patch-vendor_libc-0.2.144_src_unix_bsd_netbsdlike_netbsd_mips.rs
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/devel/cbindgen/patches/patch-vendor_libc-0.2.144_src_unix_bsd_netbsdlike_netbsd_mod.rs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/cbindgen/distinfo
diff -u pkgsrc/devel/cbindgen/distinfo:1.31 pkgsrc/devel/cbindgen/distinfo:1.32
--- pkgsrc/devel/cbindgen/distinfo:1.31 Sat Sep 16 08:06:23 2023
+++ pkgsrc/devel/cbindgen/distinfo      Sat Dec 16 11:46:22 2023
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.31 2023/09/16 08:06:23 adam Exp $
+$NetBSD: distinfo,v 1.32 2023/12/16 11:46:22 he Exp $
 
 BLAKE2s (atty-0.2.14.crate) = 8a58145c7b668aa6caf8d749e37857ff202211e1bfa9e441f130ff02feb68405
 SHA512 (atty-0.2.14.crate) = d7b6c4b9a0f898d91ddbc41a5ee45bbf45d1d269508c8cc87ee3e3990500e41e0ec387afb1f3bc7db55bedac396dd86c6509f4bf9e5148d809c3802edcc5e1d9
@@ -135,5 +135,6 @@ Size (winapi-util-0.1.5.crate) = 10164 b
 BLAKE2s (winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 85ecec73b9874f5f443e29d99f93a11889e74ddf5a4bfeb929e2355a7cee32f1
 SHA512 (winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 4a654af6a5d649dc87e00497245096b35a2894ae66f155cb62389902c3b93ddcc5cf7d0d8b9dd97b291d2d80bc686af2298e80abef6ac69883f4a54e79712513
 Size (winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 2947998 bytes
-SHA1 (patch-vendor_libc-0.2.144_src_unix_bsd_netbsdlike_netbsd_mod.rs) = c849d09b86efb0ec1950f8c4b6d0e3ee6890bf55
+SHA1 (patch-vendor_libc-0.2.144_src_unix_bsd_netbsdlike_netbsd_mips.rs) = 9d76e8489a1d97d207926a952d1704f133b2ae2f
+SHA1 (patch-vendor_libc-0.2.144_src_unix_bsd_netbsdlike_netbsd_mod.rs) = bfc7b993abdd1e1677ef4fafe355ef70001df1ad
 SHA1 (patch-vendor_libc-0.2.144_src_unix_bsd_netbsdlike_netbsd_riscv64.rs) = 03ceeb3121f8d7289ff40b4e207e8b849c8b0c29

Index: pkgsrc/devel/cbindgen/patches/patch-vendor_libc-0.2.144_src_unix_bsd_netbsdlike_netbsd_mod.rs
diff -u pkgsrc/devel/cbindgen/patches/patch-vendor_libc-0.2.144_src_unix_bsd_netbsdlike_netbsd_mod.rs:1.1 
pkgsrc/devel/cbindgen/patches/patch-vendor_libc-0.2.144_src_unix_bsd_netbsdlike_netbsd_mod.rs:1.2
--- pkgsrc/devel/cbindgen/patches/patch-vendor_libc-0.2.144_src_unix_bsd_netbsdlike_netbsd_mod.rs:1.1   Wed Jul  5 20:33:42 2023
+++ pkgsrc/devel/cbindgen/patches/patch-vendor_libc-0.2.144_src_unix_bsd_netbsdlike_netbsd_mod.rs       Sat Dec 16 11:46:22 2023
@@ -1,16 +1,19 @@
-$NetBSD: patch-vendor_libc-0.2.144_src_unix_bsd_netbsdlike_netbsd_mod.rs,v 1.1 2023/07/05 20:33:42 he Exp $
+$NetBSD: patch-vendor_libc-0.2.144_src_unix_bsd_netbsdlike_netbsd_mod.rs,v 1.2 2023/12/16 11:46:22 he Exp $
 
-Add riscv64.
+Add riscv64 and mips.
 
---- ../vendor/libc-0.2.144/src/unix/bsd/netbsdlike/netbsd/mod.rs.orig  1973-11-29 21:33:09.000000000 +0000
+--- ../vendor/libc-0.2.144/src/unix/bsd/netbsdlike/netbsd/mod.rs.orig  2006-07-24 01:21:28.000000000 +0000
 +++ ../vendor/libc-0.2.144/src/unix/bsd/netbsdlike/netbsd/mod.rs
-@@ -2807,6 +2807,9 @@ cfg_if! {
+@@ -3172,6 +3172,12 @@ cfg_if! {
      } else if #[cfg(target_arch = "x86")] {
          mod x86;
          pub use self::x86::*;
 +    } else if #[cfg(target_arch = "riscv64")] {
 +        mod riscv64;
 +        pub use self::riscv64::*;
++    } else if #[cfg(target_arch = "mips")] {
++        mod mips;
++        pub use self::mips::*;
      } else {
          // Unknown target_arch
      }

Added files:

Index: pkgsrc/devel/cbindgen/patches/patch-vendor_libc-0.2.144_src_unix_bsd_netbsdlike_netbsd_mips.rs
diff -u /dev/null pkgsrc/devel/cbindgen/patches/patch-vendor_libc-0.2.144_src_unix_bsd_netbsdlike_netbsd_mips.rs:1.1
--- /dev/null   Sat Dec 16 11:46:22 2023
+++ pkgsrc/devel/cbindgen/patches/patch-vendor_libc-0.2.144_src_unix_bsd_netbsdlike_netbsd_mips.rs      Sat Dec 16 11:46:22 2023
@@ -0,0 +1,29 @@
+$NetBSD: patch-vendor_libc-0.2.144_src_unix_bsd_netbsdlike_netbsd_mips.rs,v 1.1 2023/12/16 11:46:22 he Exp $
+
+Replicate from rust.
+
+--- ../vendor/libc-0.2.144/src/unix/bsd/netbsdlike/netbsd/mips.rs.orig 2022-12-28 23:19:57.248024832 +0000
++++ ../vendor/libc-0.2.144/src/unix/bsd/netbsdlike/netbsd/mips.rs
+@@ -0,0 +1,22 @@
++use PT_FIRSTMACH;
++
++pub type c_long = i32;
++pub type c_ulong = u32;
++pub type c_char = i8;
++pub type __cpu_simple_lock_nv_t = ::c_int;
++
++// should be pub(crate), but that requires Rust 1.18.0
++cfg_if! {
++    if #[cfg(libc_const_size_of)] {
++        #[doc(hidden)]
++        pub const _ALIGNBYTES: usize = ::mem::size_of::<::c_longlong>() - 1;
++    } else {
++        #[doc(hidden)]
++        pub const _ALIGNBYTES: usize = 8 - 1;
++    }
++}
++
++pub const PT_GETREGS: ::c_int = PT_FIRSTMACH + 1;
++pub const PT_SETREGS: ::c_int = PT_FIRSTMACH + 2;
++pub const PT_GETFPREGS: ::c_int = PT_FIRSTMACH + 3;
++pub const PT_SETFPREGS: ::c_int = PT_FIRSTMACH + 4;



Home | Main Index | Thread Index | Old Index