FS#51722 - [ocaml-findlib] findlib configuration contains non-existing search path

Attached to Project: Community Packages
Opened by Jakob Gahde (J5lx) - Sunday, 06 November 2016, 14:31 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 28 November 2016, 16:06 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Currently the PKGBUILD puts the non-existing directory /usr/lib/ocaml-site-lib into the ocamlfind search path:

# Add a directory to the path for compatibility with old-style packages
setconf "$pkgdir/etc/findlib.conf" \
path='"/usr/lib/ocaml:/usr/lib/ocaml-site-lib"'

However, this prevents the OCaml build tool ocp-build (https://github.com/OCamlPro/typerex-build) from working. When I attempt to build a project with ocp-build, I get the following error messages and the build process is aborted:

ocp-build: Fatal Exception Sys_error("/usr/lib/ocaml-site-lib (not found): No such file or directory")
Called from file "list.ml", line 77, characters 12-15

Fatal error: exception Sys_error("/usr/lib/ocaml-site-lib (not found): No such file or directory")
Called from file "list.ml", line 77, characters 12-15

I personally see several possible solutions:
- Remove /usr/lib/ocaml-site-lib from the search path - However I have no idea how this might impact "compatibility with old-style packages"
- Include an empty directory /usr/lib/ocaml-site-lib in the package

package version: 1.6.2-3

In order to reproduce the error, simply (try to) build the package ocaml-dlist from AUR.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Monday, 28 November 2016, 16:06 GMT
Reason for closing:  Fixed
Comment by Alexander F. Rødseth (xyproto) - Sunday, 27 November 2016, 17:53 GMT
Updated to 1.7.1 and tweaked the PKGBUILD a bit. Does it work now?
Comment by Jakob Gahde (J5lx) - Sunday, 27 November 2016, 23:19 GMT
Yes, it works perfectly now. Thanks for fixing!

Loading...