Bug 2547649 - Review Request: ocaml-bstr - Synthetic library for OCaml bigstrings
Summary: Review Request: ocaml-bstr - Synthetic library for OCaml bigstrings
Keywords:
Status: RELEASE_PENDING
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2547654
TreeView+ depends on / blocked
 
Reported: 2026-10-07 20:24 UTC by Jerry James
Modified: 2026-10-20 12:19 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
rjones: fedora-review+


Attachments (Terms of Use)

Description Jerry James 2026-10-07 20:24:36 UTC
Spec URL: https://jjames.fedorapeople.org/ocaml-bstr/ocaml-bstr.spec
SRPM URL: https://jjames.fedorapeople.org/ocaml-bstr/ocaml-bstr-0.1.1-1.fc46.src.rpm
Fedora Account System Username: jjames
Description: This small set of libraries offers a homogeneous API between 2 types and their derivations with the slice type, as well as a small DSL for decoding "packets" (such as ARP or DNS) without too much difficulty.

The aim is to homogenize the 2 types bytes and bigstring and to derive them with a slice type, giving the user all the levers needed to manipulate byte sequences, whether in the form of a bigstring or bytes.  The slice view avoids copying when it comes to decoding a packet and extracting a sub-part.  The slice also applies to bigstrings, whose Bigarray.Array1.sub is more expensive.

This set of libraries is a synthesis of astring (which offers a range of useful functions as well as slice), cstruct (which offers a similar API for bigstrings), bigstringaf (which offers some other useful functions), the standard OCaml library and repr for decoding/encoding these values into OCaml records/variants.

I am willing to swap reviews.

Comment 1 Richard W.M. Jones 2026-10-19 11:43:52 UTC
I'm only doing a full review of this one, as all of the packages that Jerry has submitted have basically the same form.

Comment 2 Richard W.M. Jones 2026-10-19 12:05:07 UTC
Package Review
==============

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


Issues:
=======
- If your application is a C or C++ application you must list a
  BuildRequires against gcc, gcc-c++ or clang.
  Note: No gcc, gcc-c++ or clang found in BuildRequires
  See: https://docs.fedoraproject.org/en-US/packaging-guidelines/C_and_C++/

RWMJ: This is an OCaml project.

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

C/C++:
[-]: 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.

RWMJ: This is fine, as it's an OCaml project.

[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", "ISC License". 31 files have unknown license. Detailed
     output of licensecheck in /var/tmp/2547649-ocaml-bstr/licensecheck.txt

RWMJ: The intended license is MIT
(https://git.robur.coop/robur/bstr/src/branch/main/LICENSE.md)

[x]: License file installed when any subpackage combination is installed.
[x]: %build honors applicable compiler flags or justifies otherwise.

RWMJ: Using dune.

[x]: Package contains no bundled libraries or specifies bundled libraries
     with Provides: bundled(<libname>) if unbundling is not possible.
[x]: Changelog in prescribed format.

RWMJ: Using autochangelog.

[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
[-]: 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.
[x]: 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.

RWMJ: No Requires, but BRs are correct.

[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 must own all directories that it creates.
[x]: Package does not own files or directories owned by other packages.
[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 9996 bytes in 2 files.
[x]: Packages must not store files under /srv, /opt or /usr/local

Ocaml:
[x]: This should never happen

===== 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).
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
[x]: %check is present and all tests pass.

RWMJ: On x86_64, because crowbar is used for tests which apparently is only
present on x86_64 too.

[?]: Packages should try to preserve timestamps of original installed
     files.
[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]: Fully versioned dependency in subpackages if applicable.
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: Sources can be downloaded from URI in Source: tag
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

===== 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: ocaml-bstr-0.1.1-1.fc46.x86_64.rpm
          ocaml-bstr-devel-0.1.1-1.fc46.x86_64.rpm
          ocaml-bstr-0.1.1-1.fc46.src.rpm
============================ 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
rpmlintrc: [PosixPath('/tmp/tmpg1hha_99')]
checks: 33, packages: 3

RWMJ: The following are all false alarms:

ocaml-bstr.src: E: spelling-error ('bigstrings', 'Summary(en_US) bigstrings -> big strings, big-strings, bowstrings')
ocaml-bstr.src: E: spelling-error ('bigstring', '%description -l en_US bigstring -> big string, big-string, stringing')
ocaml-bstr.src: E: spelling-error ('bigstrings', '%description -l en_US bigstrings -> big strings, big-strings, bowstrings')
ocaml-bstr.src: E: spelling-error ('astring', '%description -l en_US astring -> string, staring, a string')
ocaml-bstr.src: E: spelling-error ('cstruct', '%description -l en_US cstruct -> construct, structure, obstruct')
ocaml-bstr.src: E: spelling-error ('bigstringaf', '%description -l en_US bigstringaf -> heartstrings')
ocaml-bstr.src: E: spelling-error ('repr', '%description -l en_US repr -> rep, reps, rear')
ocaml-bstr.x86_64: E: spelling-error ('bigstrings', 'Summary(en_US) bigstrings -> big strings, big-strings, bowstrings')
ocaml-bstr.x86_64: E: spelling-error ('bigstring', '%description -l en_US bigstring -> big string, big-string, stringing')
ocaml-bstr.x86_64: E: spelling-error ('bigstrings', '%description -l en_US bigstrings -> big strings, big-strings, bowstrings')
ocaml-bstr.x86_64: E: spelling-error ('astring', '%description -l en_US astring -> string, staring, a string')
ocaml-bstr.x86_64: E: spelling-error ('cstruct', '%description -l en_US cstruct -> construct, structure, obstruct')
ocaml-bstr.x86_64: E: spelling-error ('bigstringaf', '%description -l en_US bigstringaf -> heartstrings')
ocaml-bstr.x86_64: E: spelling-error ('repr', '%description -l en_US repr -> rep, reps, rear')
ocaml-bstr-devel.x86_64: W: no-documentation
 3 packages and 0 specfiles checked; 14 errors, 1 warnings, 11 filtered, 14 badness; has taken 0.7 s 




Rpmlint (debuginfo)
-------------------
Checking: ocaml-bstr-debuginfo-0.1.1-1.fc46.x86_64.rpm
============================ 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
rpmlintrc: [PosixPath('/tmp/tmpv2oy8cu0')]
checks: 33, packages: 1

 1 packages and 0 specfiles checked; 0 errors, 0 warnings, 20 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: 3

RWMJ: There are hundreds of warnings like this, but they all seem irrelevant as this is an OCaml package, not C:

ocaml-bstr.x86_64: W: undefined-non-weak-symbol /usr/lib64/ocaml/bin/bin.cmxs camlStdlib__Fun.id_23_closure	(/usr/lib64/ocaml/bin/bin.cmxs)
ocaml-bstr.x86_64: W: undefined-non-weak-symbol /usr/lib64/ocaml/bin/bin.cmxs camlBstr.unsafe_get_int16_le_1659_closure	(/usr/lib64/ocaml/bin/bin.cmxs)
ocaml-bstr.x86_64: W: undefined-non-weak-symbol /usr/lib64/ocaml/bin/bin.cmxs caml_equal	(/usr/lib64/ocaml/bin/bin.cmxs)

Comment 3 Richard W.M. Jones 2026-10-19 12:05:53 UTC
*** This package is Approved by rjones ***

Comment 4 Fedora Admin user for bugzilla script actions 2026-10-20 12:19:02 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/ocaml-bstr
Monitoring:
Wasn't able to create project in Anitya. You can create it manually on: `https://release-monitoring.org`


Note You need to log in before you can comment on or make changes to this bug.