Bug 1204400

Summary: ocaml-config-file: missing bytecode library
Product: [Fedora] Fedora Reporter: Török Edwin <edwin+bugs>
Component: ocaml-config-fileAssignee: Nikos Mavrogiannopoulos <nmavrogi>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: nmavrogi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ocaml-config-file-1.2-4.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-30 07:07:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Török Edwin 2015-03-21 16:26:59 UTC
Description of problem:
I cannot link to ocaml-config-file using ocamlc, or load it in the toplevel.
ocamlopt works fine.

Version-Release number of selected component (if applicable): 1.2-3.fc22
How reproducible: always

Steps to Reproduce:
1. sudo dnf install ocaml-config-file-devel
2.
$ cat >x.ml <<EOF
open Config_file

let () =
  let group = new group in
  group#add (new int_cp ["intfield"] 0 "a field of type int");
  group#write "/dev/stdout"
EOF
$ ocamlfind ocamlc -package config-file x.ml -o x -linkpkg
$ ocaml
# #use "topfind";;
# #require "config-file";;

Actual results:
From ocamlc:
File "x.ml", line 1:
Error: Cannot find file /usr/lib64/ocaml/config-file/config_file.cmo

From ocaml toplevel:
/usr/lib64/ocaml/config-file: added to search path
/usr/lib64/ocaml/config-file/config_file.cmo: loaded
Cannot find file /usr/lib64/ocaml/config-file/config_file.cmo.

Expected results:
Successful compilation / loading in toplevel, running the compiled program should print:
(* a field of type int *)
intfield = 0

Additional info:

Policy says [1] that ".cmo files are not normally included", but I think in this case it'd fall under the "if file is needed for link" exception, because the META file uses the .cmo and there is NO .cma built:

version="1.2"
description="a library to manage the configuration file(s) of an application"
archive(byte)="config_file.cmo"
archive(native)="config_file.cmx"
archive(plugin,byte)="config_file.cmo"
archive(plugin,native)="config_file.cmxs"

Alternatively upstream package could be patched to build a .cma

[1] http://fedoraproject.org/wiki/Packaging:OCaml

Comment 1 Fedora Update System 2015-03-23 08:18:32 UTC
ocaml-config-file-1.2-4.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/ocaml-config-file-1.2-4.fc22

Comment 2 Nikos Mavrogiannopoulos 2015-03-23 08:18:56 UTC
Can you try the update?

Comment 3 Török Edwin 2015-03-23 13:56:28 UTC
I downloaded the update from koji (its not pushed to updates-testing yet, still pending), and the everything works now, thanks!
ocaml-config-file-1.2-4.fc22.x86_64.rpm
ocaml-config-file-devel-1.2-4.fc22.x86_64.rpm

Comment 4 Fedora Update System 2015-03-23 15:14:16 UTC
ocaml-config-file-1.2-4.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/ocaml-config-file-1.2-4.fc21

Comment 5 Fedora Update System 2015-03-26 21:39:10 UTC
Package ocaml-config-file-1.2-4.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ocaml-config-file-1.2-4.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-4541/ocaml-config-file-1.2-4.fc22
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2015-03-30 06:46:19 UTC
ocaml-config-file-1.2-4.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/ocaml-config-file-1.2-4.el7

Comment 7 Fedora Update System 2015-03-30 07:07:09 UTC
ocaml-config-file-1.2-4.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2015-04-05 14:29:10 UTC
ocaml-config-file-1.2-4.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2015-04-17 18:15:49 UTC
ocaml-config-file-1.2-4.el7 has been pushed to the Fedora EPEL 7 stable repository.  If problems still persist, please make note of it in this bug report.