Bug 436785

Summary: ocaml-perl4caml need to fix '%check' section of the spec file
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: ocaml-perl4camlAssignee: Richard W.M. Jones <rjones>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://www.annexia.org/tmp/ocaml/ocaml-perl4caml.spec
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-03-12 10:46:15 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:

Description Richard W.M. Jones 2008-03-10 14:17:09 UTC
%check section fails if ocaml-perl4caml has been installed.
The explanation for this is in the spec file:

  %check
  # This fails if perl4caml is installed.  The bytecode programs
  # load dllperl4caml.so from OCaml's stublibs, instead of the
  # one we just built.  Since dllperl4caml.so in stublibs
  # (wrongly) lacks an rpath for libperl.so, it won't find
  # libperl.so in the obscure directory where it resides.
  # Monkeying around with LD_LIBRARY_PATH doesn't help because
  # ocamlrun uses $libdir/ocaml/ld.conf to find directories
  # containing the stublibs.
  make test ||:

It should be possible to fix this by setting an environment
variable such as CAML_LD_LIBRARY_PATH.  See section 10.3
of the manual:

  http://caml.inria.fr/pub/docs/manual-ocaml/manual024.html