Bug 2558275

Summary: Review Request: tree-sitter-xml - XML & DTD grammars for tree-sitter
Product: [Fedora] Fedora Reporter: Maxime Ripard <maxime.ripard>
Component: Package ReviewAssignee: Peter Oliver <mavit>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: mavit, package-review
Target Milestone: ---Flags: mavit: fedora-review+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-11-12 17:53:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 1 Peter Oliver 2026-10-26 14:40:04 UTC
Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed


Issues:
=======
- Fedora already has a rust-tree-sitter-xml package (https://packages.fedoraproject.org/pkgs/rust-tree-sitter-xml/), built from https://crates.io/crates/tree-sitter-xml.  The Fedora Rust folks seem to prefer it this way.


===== MUST items =====

C/C++:
[x]: Package does not contain kernel modules.
[x]: Development (unversioned) .so files in -devel subpackage, if present.
     Note: Unversioned so-files in private %_libdir subdirectory (see
     attachment). Verify they are not in ld path.
[x]: Header files in -devel subpackage, if present.
[x]: ldconfig not called in %post and %postun for Fedora 28 and later.
[x]: Package does not contain any libtool archives (.la)
[x]: Package contains no static executables.
[x]: Rpath absent or only used for internal libs.

Generic:
[x]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "Unknown or generated", "MIT License", "*No copyright* MIT
     License". 74 files have unknown license. Detailed output of
     licensecheck in /home/mavit/src/fedora/review/2558275-tree-sitter-
     xml/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[x]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/lib64/python3.15/site-
     packages, /usr/lib64/python3.15
[x]: Package does not own files or directories owned by other packages.
     Note: Dirs in package are owned also by:
     /usr/include/tree_sitter(libtree-sitter-c-devel, libtree-sitter-css-
     devel, libtree-sitter-cpp-devel, libtree-sitter-python-devel, libtree-
     sitter-toml-devel, libtree-sitter-heex-devel, libtree-sitter-markdown-
     devel, libtree-sitter-yaml-devel, libtree-sitter-typescript-devel,
     libtree-sitter-html-devel, libtree-sitter-jsdoc-devel, libtree-sitter-
     cmake-devel, libtree-sitter-phpdoc-devel, libtree-sitter-elixir-devel,
     libtree-sitter-c-sharp-devel, libtree-sitter-rust-devel, libtree-
     sitter-go-devel, libtree-sitter-php-devel, libtree-sitter-lua-devel,
     libtree-sitter-javascript-devel, libtree-sitter-ruby-devel, libtree-
     sitter-json-devel, libtree-sitter-bash-devel, libtree-sitter-java-
     devel, libtree-sitter-devel)
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries or specifies bundled libraries
     with Provides: bundled(<libname>) if unbundling is not possible.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[x]: Development files must be in a -devel package
[x]: Package uses nothing in %doc for runtime.
[x]: Package consistently uses macros (instead of hard-coded directory
     names).
[x]: Package is named according to the Package Naming Guidelines.
[!]: Package does not generate any conflict.
[x]: Package obeys FHS, except libexecdir and /usr/target.
[-]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[x]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[-]: Package contains systemd file(s) if in need.
[x]: Useful -debuginfo package or justification otherwise.
[x]: Package is not known to require an ExcludeArch tag.
[x]: Package complies to the Packaging Guidelines
[x]: Package successfully compiles and builds into binary rpms on at least
     one supported primary architecture.
[x]: Package installs properly.
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[x]: If (and only if) the source package includes the text of the
     license(s) in its own file, then that file, containing the text of the
     license(s) for the package is included in %license.
[x]: The License field must be a valid SPDX expression.
[x]: Package requires other packages for directories it uses.
[x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: Macros in Summary, %description expandable at SRPM build time.
[x]: Dist tag is present.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[x]: Package must not depend on deprecated() packages.
[x]: Package use %makeinstall only when make install DESTDIR=... doesn't
     work.
[x]: Package is named using only allowed ASCII characters.
[x]: Package does not use a name that already exists.
[x]: Package is not relocatable.
[x]: Sources used to build the package match the upstream source, as
     provided in the spec URL.
[x]: Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[x]: File names are valid UTF-8.
[x]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 1350 bytes in 1 files.
[x]: Packages must not store files under /srv, /opt or /usr/local

Python:
[x]: Python eggs must not download any dependencies during the build
     process.
[-]: A package which is used by another package via an egg interface should
     provide egg info.
[x]: Package meets the Packaging Guidelines::Python
[x]: Packages MUST NOT have dependencies (either build-time or runtime) on
     packages named with the unversioned python- prefix unless no properly
     versioned package exists. Dependencies on Python packages instead MUST
     use names beginning with python2- or python3- as appropriate.
[x]: Python packages must not contain %{pythonX_site(lib|arch)}/* in %files
[x]: Binary eggs must be removed in %prep

===== SHOULD items =====

Generic:
[-]: If the source package does not include license text(s) as a separate
     file from upstream, the packager SHOULD query upstream to include it.
[x]: Final provides and requires are sane (see attachments).
[-]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in libtree-
     sitter-xml , python3-tree-sitter-xml , rust-tree-sitter-xml-devel ,
     rust-tree-sitter-xml+default-devel
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: Patches link to upstream bugs/comments/lists or are otherwise
     justified.
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[?]: Package should compile and build into binary rpms on all supported
     architectures.
[x]: %check is present and all tests pass.
[x]: Packages should try to preserve timestamps of original installed
     files.
[-]: Spec use %global instead of %define unless justified.
     Note: %define requiring justification: %define autorelease(e:s:pb:n)
     %{?-p:0.}%{lua:
[x]: Reviewer should test that the package builds in mock.
[x]: Buildroot is not present
[x]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: The placement of pkgconfig(.pc) files are correct.
[x]: Sources can be downloaded from URI in Source: tag
[x]: SourceX is a working URL.

===== EXTRA items =====

Generic:
[x]: Rpmlint is run on debuginfo package(s).
     Note: No rpmlint messages.
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Large data in /usr/share should live in a noarch subpackage if package
     is arched.
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: libtree-sitter-xml-0.7.0-1.fc46.x86_64.rpm
          libtree-sitter-xml-devel-0.7.0-1.fc46.x86_64.rpm
          python3-tree-sitter-xml-0.7.0-1.fc46.x86_64.rpm
          rust-tree-sitter-xml-devel-0.7.0-1.fc46.noarch.rpm
          rust-tree-sitter-xml+default-devel-0.7.0-1.fc46.noarch.rpm
          tree-sitter-xml-0.7.0-1.fc46.src.rpm
============================ rpmlint session starts ============================
rpmlint: 2.8.0
configuration:
    /usr/lib/python3.14/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
rpmlintrc: [PosixPath('/tmp/tmppg2b_8wn')]
checks: 32, packages: 6

python3-tree-sitter-xml.x86_64: E: spelling-error ('subpackage', '%description -l en_US subpackage -> sub package, sub-package, package')
python3-tree-sitter-xml.x86_64: W: no-documentation
rust-tree-sitter-xml-devel.noarch: W: no-documentation
python3-tree-sitter-xml.x86_64: W: devel-file-in-non-devel-package /usr/lib64/python3.15/site-packages/tree_sitter_xml/binding.c
rust-tree-sitter-xml-devel.noarch: E: arch-independent-package-contains-binary-or-object /usr/share/cargo/registry/tree-sitter-xml-0.7.0/dtd/src/parser.o
rust-tree-sitter-xml-devel.noarch: E: arch-independent-package-contains-binary-or-object /usr/share/cargo/registry/tree-sitter-xml-0.7.0/dtd/src/scanner.o
rust-tree-sitter-xml-devel.noarch: E: arch-independent-package-contains-binary-or-object /usr/share/cargo/registry/tree-sitter-xml-0.7.0/xml/src/parser.o
rust-tree-sitter-xml-devel.noarch: E: arch-independent-package-contains-binary-or-object /usr/share/cargo/registry/tree-sitter-xml-0.7.0/xml/src/scanner.o
 6 packages and 0 specfiles checked; 5 errors, 3 warnings, 44 filtered, 5 badness; has taken 1.7 s 




Rpmlint (debuginfo)
-------------------
Checking: tree-sitter-xml-debuginfo-0.7.0-1.fc46.x86_64.rpm
============================ rpmlint session starts ============================
rpmlint: 2.8.0
configuration:
    /usr/lib/python3.14/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
rpmlintrc: [PosixPath('/tmp/tmp6bs2kuvd')]
checks: 32, packages: 1

 1 packages and 0 specfiles checked; 0 errors, 0 warnings, 8 filtered, 0 badness; has taken 0.2 s 





Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.10.0
configuration:
    /usr/lib/python3.15/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
checks: 33, packages: 6

python3-tree-sitter-xml.x86_64: W: undefined-non-weak-symbol /usr/lib64/python3.15/site-packages/tree_sitter_xml/_binding.abi3-x86_64-linux-gnu.so PyModule_Create2	(/usr/lib64/python3.15/site-packages/tree_sitter_xml/_binding.abi3-x86_64-linux-gnu.so)
python3-tree-sitter-xml.x86_64: W: undefined-non-weak-symbol /usr/lib64/python3.15/site-packages/tree_sitter_xml/_binding.abi3-x86_64-linux-gnu.so PyCapsule_New	(/usr/lib64/python3.15/site-packages/tree_sitter_xml/_binding.abi3-x86_64-linux-gnu.so)
python3-tree-sitter-xml.x86_64: W: spelling-error ('subpackage', "%description -l en_US subpackage -> sub package, sub-package, package's")
rust-tree-sitter-xml-devel.noarch: W: no-documentation
python3-tree-sitter-xml.x86_64: W: no-documentation
python3-tree-sitter-xml.x86_64: W: devel-file-in-non-devel-package /usr/lib64/python3.15/site-packages/tree_sitter_xml/binding.c
rust-tree-sitter-xml-devel.noarch: E: arch-independent-package-contains-binary-or-object /usr/share/cargo/registry/tree-sitter-xml-0.7.0/dtd/src/parser.o
rust-tree-sitter-xml-devel.noarch: E: arch-independent-package-contains-binary-or-object /usr/share/cargo/registry/tree-sitter-xml-0.7.0/dtd/src/scanner.o
rust-tree-sitter-xml-devel.noarch: E: arch-independent-package-contains-binary-or-object /usr/share/cargo/registry/tree-sitter-xml-0.7.0/xml/src/parser.o
rust-tree-sitter-xml-devel.noarch: E: arch-independent-package-contains-binary-or-object /usr/share/cargo/registry/tree-sitter-xml-0.7.0/xml/src/scanner.o
 6 packages and 0 specfiles checked; 4 errors, 6 warnings, 49 filtered, 4 badness; has taken 0.8 s 



Unversioned so-files
--------------------
python3-tree-sitter-xml: /usr/lib64/python3.15/site-packages/tree_sitter_xml/_binding.abi3-x86_64-linux-gnu.so

Source checksums
----------------
https://github.com/tree-sitter-grammars/tree-sitter-xml/archive/v0.7.0/tree-sitter-xml-0.7.0.tar.gz :
  CHECKSUM(SHA256) this package     : 4330a6b3685c2f66d108e1df0448eb40c468518c3a66f2c1607a924c262a3eb9
  CHECKSUM(SHA256) upstream package : 4330a6b3685c2f66d108e1df0448eb40c468518c3a66f2c1607a924c262a3eb9


Requires
--------
libtree-sitter-xml (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    rtld(GNU_HASH)
    tree-sitter(:LANGUAGE_VERSION)

libtree-sitter-xml-devel (rpmlib, GLIBC filtered):
    /usr/bin/pkg-config
    libtree-sitter-dtd.so.14.0()(64bit)
    libtree-sitter-xml(x86-64)
    libtree-sitter-xml.so.14.0()(64bit)

python3-tree-sitter-xml (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    python(abi)
    rtld(GNU_HASH)

rust-tree-sitter-xml-devel (rpmlib, GLIBC filtered):
    (crate(cc/default) >= 1.1.0 with crate(cc/default) < 2.0.0~)
    (crate(tree-sitter-language/default) >= 0.1.0 with crate(tree-sitter-language/default) < 0.2.0~)
    cargo

rust-tree-sitter-xml+default-devel (rpmlib, GLIBC filtered):
    cargo
    crate(tree-sitter-xml)



Provides
--------
libtree-sitter-xml:
    libtree-sitter-dtd.so.14.0()(64bit)
    libtree-sitter-xml
    libtree-sitter-xml(x86-64)
    libtree-sitter-xml.so.14.0()(64bit)
    tree-sitter(dtd)
    tree-sitter(xml)

libtree-sitter-xml-devel:
    libtree-sitter-xml-devel
    libtree-sitter-xml-devel(x86-64)
    pkgconfig(tree-sitter-dtd)
    pkgconfig(tree-sitter-xml)

python3-tree-sitter-xml:
    python-tree-sitter-xml
    python3-tree-sitter-xml
    python3-tree-sitter-xml(x86-64)
    python3.15-tree-sitter-xml
    python3.15dist(tree-sitter-xml)
    python3dist(tree-sitter-xml)

rust-tree-sitter-xml-devel:
    crate(tree-sitter-xml)
    purl(pkg:cargo/tree-sitter-xml.0)
    rust-tree-sitter-xml-devel

rust-tree-sitter-xml+default-devel:
    crate(tree-sitter-xml/default)
    rust-tree-sitter-xml+default-devel



Generated by fedora-review 0.12.0 (a08f0fc) last change: 2026-09-18
Command line :/usr/bin/fedora-review -b 2558275
Buildroot used: fedora-rawhide-x86_64
Active plugins: Shell-api, Python, Generic, C/C++
Disabled plugins: Perl, Java, fonts, R, PHP, Ocaml, Haskell, SugarActivity
Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH, UNRETIREMENT

Comment 3 Peter Oliver 2026-11-12 10:09:04 UTC
Approved.

Comment 4 Fedora Admin user for bugzilla script actions 2026-11-12 17:05:19 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/tree-sitter-xml
Monitoring:
Anitya project is accessible by this link 
`https://release-monitoring.org/project/376963`
 you can modify it manually.
Package wasn't created in Anitya, reason: `Bad Request, some necessary arguments were not provided.`.

Comment 5 Fedora Update System 2026-11-12 17:48:44 UTC
FEDORA-2026-4fbdc4b655 (tree-sitter-xml-0.7.0-1.fc46) has been submitted as an update to Fedora 46.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-4fbdc4b655

Comment 6 Fedora Update System 2026-11-12 17:53:52 UTC
FEDORA-2026-4fbdc4b655 (tree-sitter-xml-0.7.0-1.fc46) has been pushed to the Fedora 46 stable repository.
If problem still persists, please make note of it in this bug report.