Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 241471 - In OCaml, *.cmi files are not source files
In OCaml, *.cmi files are not source files
Product: Fedora
Classification: Fedora
Component: rpmlint (Show other bugs)
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Ville Skyttä
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-05-26 06:30 EDT by Richard W.M. Jones
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version: 0.81-1.fc7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-09-07 13:21:41 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Candidate patch (1.88 KB, patch)
2007-05-27 08:25 EDT, Ville Skyttä
no flags Details | Diff

  None (edit)
Description Richard W.M. Jones 2007-05-26 06:30:39 EDT
Description of problem:

When I run rpmlint on an OCaml package, I get lots of errors like this:

W: ocaml-ocamlnet devel-file-in-non-devel-package

In OCaml *.cmi files are not source files but compiled files which describe the
signature of a module.  An easy way to detect this is to look for "/ocaml"
(note: no trailing slash) in the path.  Or you can run 'file' on it, for example:

# file /usr/lib64/ocaml/calendar/calendar.cmi
/usr/lib64/ocaml/calendar/calendar.cmi: Objective caml interface file (.cmi)
(Version 010).

Version-Release number of selected component (if applicable):

# rpm -q rpmlint

Additional info:

OCaml draft packaging policy: http://fedoraproject.org/wiki/PackagingDrafts/OCaml
Comment 1 Ville Skyttä 2007-05-26 07:15:18 EDT
Note that rpmlint doesn't say that *.cmi are source files, it just treats them
as development related ones.

Not doing that is easy, just remove cmi from includefile_regex in FilesCheck.py,
but as I know next to nothing about ocaml, I'd like you to confirm that they are
indeed something that should generally be packaged in "main" rather than -devel

Related reading just for reference:

Mandriva bug report asking for *.cmi to be treated as devel files in rpmlint:

Debian ocaml policy mentions *.cmi only in the "documentation" section and they
appear to package all *.cm* in devel packages:

PLD appears to package all *.cm* in devel packages too:

Will also ask for comments from the Mandriva bug submitter.
Comment 2 Richard W.M. Jones 2007-05-26 09:30:05 EDT
I don't think those policies are correct because they stop OCaml scripts from
working.  For Fedora, this is the draft policy (note however that I wrote it):


and the rationale behind it is in this thread (you have to read all the way

Comment 3 Richard W.M. Jones 2007-05-26 18:20:05 EDT
Mandriva bug:

Comment 4 Ville Skyttä 2007-05-27 08:25:01 EDT
Created attachment 155520 [details]
Candidate patch

Thanks.  Just in case you didn't know, rpmlint's upstream is no longer
Mandriva, but http://rpmlint.zarb.org/.  But it's useful to gather opinions
from elsewhere too.

Here's a candidate patch I intend to apply in the next upstream rpmlint version
unless some flaws are found in it - it removes *.cmi from list of files being
treated as devel ones, and adds *.cmx, *.cmxa, *.ml, *.mli and *.o.
Comment 5 Richard W.M. Jones 2007-05-28 07:46:47 EDT
The patch looks OK to me.
Comment 6 Ville Skyttä 2007-06-02 16:13:32 EDT
Applied upstream in smaller chunks, will be in the next release:
Comment 7 Fedora Update System 2007-09-07 13:21:36 EDT
rpmlint-0.81-1.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.

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