public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Aleksei Bavshin <alebastr@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-tree-sitter-generate] rawhide: Update to version 0.26.9; Fixes RHBZ#2420888
Date: Wed, 03 Jun 2026 06:47:40 GMT	[thread overview]
Message-ID: <178046926001.1.7642595618464999663.rpms-rust-tree-sitter-generate-8c09ce3557ba@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-tree-sitter-generate
Branch : rawhide
Commit : 8c09ce3557ba7fd533c97f9a8e074e9a6db5ecf7
Author : Aleksei Bavshin <alebastr@fedoraproject.org>
Date   : 2026-05-28T23:26:56-07:00
Stats  : +74/-58 in 7 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-tree-sitter-generate/c/8c09ce3557ba7fd533c97f9a8e074e9a6db5ecf7?branch=rawhide

Log:
Update to version 0.26.9; Fixes RHBZ#2420888

---
diff --git a/.gitignore b/.gitignore
index e93d652..c6e7358 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
 /tree-sitter-generate-0.25.5.crate
 /tree-sitter-generate-0.25.8.crate
 /tree-sitter-generate-0.25.10.crate
+/tree-sitter-generate-0.26.9.crate

diff --git a/LICENSE.upstream b/LICENSE.upstream
deleted file mode 100644
index 451fe1d..0000000
--- a/LICENSE.upstream
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2018-2024 Max Brunsfeld
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.

diff --git a/rust-tree-sitter-generate.spec b/rust-tree-sitter-generate.spec
index 23ea17a..725efd7 100644
--- a/rust-tree-sitter-generate.spec
+++ b/rust-tree-sitter-generate.spec
@@ -1,21 +1,21 @@
-# Generated by rust2rpm 27
-%bcond check 1
+# Generated by rust2rpm 28
+# * Depends on missing sources
+%bcond check 0
 %global debug_package %{nil}
 
 %global crate tree-sitter-generate
 
 Name:           rust-tree-sitter-generate
-Version:        0.25.10
+Version:        0.26.9
 Release:        %autorelease
 Summary:        Library for generating C source code from a tree-sitter grammar
 
 License:        MIT
 URL:            https://crates.io/crates/tree-sitter-generate
 Source:         %{crates_source}
-# * Upstream license file - tree-sitter/tree-sitter#1520
-Source2:        https://github.com/tree-sitter/tree-sitter/raw/v%{version}/LICENSE#/LICENSE.upstream
-# Automatically generated patch to strip dependencies and normalize metadata
-Patch:          tree-sitter-generate-fix-metadata-auto.diff
+# Manually created patch for downstream crate metadata changes
+# * Remove dependencies of hidden feature "qjs-rt"
+Patch:          tree-sitter-generate-fix-metadata.diff
 
 BuildRequires:  cargo-rpm-macros >= 24
 
@@ -50,10 +50,21 @@ use the "default" feature of the "%{crate}" crate.
 %files       -n %{name}+default-devel
 %ghost %{crate_instdir}/Cargo.toml
 
+%package     -n %{name}+load-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+load-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "load" feature of the "%{crate}" crate.
+
+%files       -n %{name}+load-devel
+%ghost %{crate_instdir}/Cargo.toml
+
 %prep
 %autosetup -n %{crate}-%{version} -p1
 %cargo_prep
-cp -pav %{SOURCE2} LICENSE
 
 %generate_buildrequires
 %cargo_generate_buildrequires

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 2aef5cc..211e24a 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,12 +1,11 @@
-[package.license-files]
-include = ["LICENSE"]
+[package]
+cargo-toml-patch-comments = [
+    "Remove dependencies of hidden feature \"qjs-rt\""
+]
 
-[[package.extra-sources]]
-comments = ["Upstream license file - tree-sitter/tree-sitter#1520"]
-file = "https://github.com/tree-sitter/tree-sitter/raw/v%{version}/LICENSE#/LICENSE.upstream"
-number = 2
+[features]
+hide = ["qjs-rt"]
 
-[scripts.prep]
-post = [
-    "cp -pav %{SOURCE2} LICENSE"
-]
+[tests]
+run = false
+comments = ["Depends on missing sources"]

diff --git a/sources b/sources
index 9a82fe5..2bcf657 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (tree-sitter-generate-0.25.10.crate) = c5eceb23d17cbc9a00948db224f476e09b74fb86a05251491716a7e8986f3c2d1dd0cf4cb65cd8952399a6987da9c889851150c35d6e522c24cbdc8f54f4c453
+SHA512 (tree-sitter-generate-0.26.9.crate) = 2b8dc202aba9f633b602e2612c51ed6d68b95fc40338e75876073be84a1d30f98c25a1c76cc7cd58a60e1912fa6f7f0811bf52c53cf440c9d8fe74e230e7db3e

diff --git a/tree-sitter-generate-fix-metadata-auto.diff b/tree-sitter-generate-fix-metadata-auto.diff
deleted file mode 100644
index 89f218d..0000000
--- a/tree-sitter-generate-fix-metadata-auto.diff
+++ /dev/null
@@ -1,18 +0,0 @@
---- tree-sitter-generate-0.25.10/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ tree-sitter-generate-0.25.10/Cargo.toml	2025-09-28T18:25:30.111455+00:00
-@@ -91,10 +91,6 @@
- [dependencies.tree-sitter]
- version = "0.25.10"
- 
--[target."cfg(windows)".dependencies.url]
--version = "2.5.4"
--features = ["serde"]
--
- [lints.clippy]
- branches_sharing_code = "allow"
- cast_lossless = "allow"
-@@ -149,3 +145,4 @@
- 
- [lints.rust]
- mismatched_lifetime_syntaxes = "allow"
-+

diff --git a/tree-sitter-generate-fix-metadata.diff b/tree-sitter-generate-fix-metadata.diff
new file mode 100644
index 0000000..84e665d
--- /dev/null
+++ b/tree-sitter-generate-fix-metadata.diff
@@ -0,0 +1,44 @@
+--- tree-sitter-generate-0.26.9/Cargo.toml	2006-07-24T01:21:28+00:00
++++ tree-sitter-generate-0.26.9/Cargo.toml	2026-05-29T06:07:10.527464+00:00
+@@ -40,13 +40,9 @@
+ repository = "https://github.com/tree-sitter/tree-sitter"
+ 
+ [features]
+-default = ["qjs-rt"]
++default = ["load"]
+ load = ["dep:semver"]
+-qjs-rt = [
+-    "load",
+-    "rquickjs",
+-    "pathdiff",
+-]
++qjs-rt = []
+ 
+ [lib]
+ name = "tree_sitter_generate"
+@@ -68,25 +64,11 @@
+ version = "0.4.28"
+ features = ["std"]
+ 
+-[dependencies.pathdiff]
+-version = "0.2.3"
+-optional = true
+-
+ [dependencies.regex]
+ version = "1.11.3"
+ 
+ [dependencies.regex-syntax]
+ version = "0.8.6"
+-
+-[dependencies.rquickjs]
+-version = "0.10.0"
+-features = [
+-    "bindgen",
+-    "loader",
+-    "macro",
+-    "phf",
+-]
+-optional = true
+ 
+ [dependencies.rustc-hash]
+ version = "2.1.1"

                 reply	other threads:[~2026-06-03  6:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178046926001.1.7642595618464999663.rpms-rust-tree-sitter-generate-8c09ce3557ba@fedoraproject.org \
    --to=alebastr@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox