From 7bfcdf7da1d555b0a7904405b0f76f16ea8c0453 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 12 Apr 2023 14:17:18 +0200 Subject: [PATCH] Bump bindgen from 0.59 to 0.63 to fix builds with clang 16+ --- onig_sys-fix-metadata.diff | 12 +++++++----- rust-onig_sys.spec | 15 +++++++-------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/onig_sys-fix-metadata.diff b/onig_sys-fix-metadata.diff index d9879ae..d861bde 100644 --- a/onig_sys-fix-metadata.diff +++ b/onig_sys-fix-metadata.diff @@ -1,15 +1,17 @@ --- onig_sys-69.8.1/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ onig_sys-69.8.1/Cargo.toml 2022-08-20T20:17:41.479447+00:00 -@@ -36,8 +36,6 @@ ++++ onig_sys-69.8.1/Cargo.toml 2023-04-12T12:14:30.588379+00:00 +@@ -35,9 +35,8 @@ + repository = "http://github.com/iwillspeak/rust-onig" [build-dependencies.bindgen] - version = "0.59" --features = ["runtime"] +-version = "0.59" ++version = "0.63" + features = ["runtime"] -optional = true [build-dependencies.cc] version = "1.0" -@@ -46,6 +44,7 @@ +@@ -46,6 +45,7 @@ version = "^0.3.16" [features] diff --git a/rust-onig_sys.spec b/rust-onig_sys.spec index efe0d31..84c7af8 100644 --- a/rust-onig_sys.spec +++ b/rust-onig_sys.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 22 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} @@ -13,20 +13,19 @@ License: MIT URL: https://crates.io/crates/onig_sys Source: %{crates_source} # Manually created patch for downstream crate metadata changes +# * bump bindgen build-dependency from 0.59 to 0.63 Patch: onig_sys-fix-metadata.diff # * unconditionally use bindgen and dynamic linking with pkg-config Patch: 0001-Unconditionally-use-bindgen-and-dynamic-linking-with.patch -ExclusiveArch: %{rust_arches} - BuildRequires: rust-packaging >= 21 %global _description %{expand: -`onig_sys` crate contains raw rust bindings to the oniguruma library. This -crate exposes a set of unsafe functions which can then be used by other crates -to create safe wrappers around Oniguruma. -You probably don't want to link to this crate directly; instead check out the -`onig` crate.} +The `onig_sys` crate contains raw rust bindings to the oniguruma +library. This crate exposes a set of unsafe functions which can then be +used by other crates to create safe wrappers around Oniguruma. You +probably don't want to link to this crate directly; instead check out +the `onig` crate.} %description %{_description}