FS#41907 - [camlp4] Not findable with findlib

Attached to Project: Arch Linux
Opened by Marek Kubica (Leonidas) - Wednesday, 10 September 2014, 09:33 GMT
Last edited by Jürgen Hötzel (juergen) - Monday, 06 April 2015, 15:33 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Jürgen Hötzel (juergen)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 10
Private No

Details

Description: Since CamlP4 was split off from OCaml, the OPAM package manager depends on CamlP4 being installed when installing many packaged (when using the system OCaml, not a custom-compiled one). Unfortunately, the CamlP4 packaged in Arch Linux is missing the META files required for ocamlfind to detect the presence and meta data of CamlP4.

Could you please add the ocamlfind registration data, so ocamlfind will be able to find the system-wide installation of CamlP4?

Steps to reproduce:

$ ocamlfind query -format %d camlp4
ocamlfind: Package `camlp4' not found
$ ocamlfind query -format %d camlp4.lib
ocamlfind: Package `camlp4.lib' not found
This task depends upon

Closed by  Jürgen Hötzel (juergen)
Monday, 06 April 2015, 15:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in camlp4 4.02.1+3-2
Comment by Jürgen Hötzel (juergen) - Wednesday, 22 October 2014, 13:38 GMT
The META files for the system Camlp4 are provided by the ocaml-findlib (community) package.

→ LANG=C pacman -Qo /usr/lib/ocaml/camlp4/META
/usr/lib/ocaml/camlp4/META is owned by ocaml-findlib 1.4-2

Do you have this package installed?
Comment by Marek Kubica (Leonidas) - Wednesday, 22 October 2014, 22:38 GMT
It is quite possible I hadn't, I was using the (much newer) findlib from OPAM which of course couldn't find camlp4 because ocaml-findlib wasn't installed. I have it installed now and if I use the system ocamlfind, it works.

I'm wondering, wouldn't it be better to have the META file in the camlp4 package?
Comment by Jürgen Hötzel (juergen) - Thursday, 23 October 2014, 13:47 GMT
The META file for the the camlp4 package is still provided by the findlib package (like all other libs provided by the OCaml distribution), even though camlp4 is a seperate package nowadays and maybe not installed.

This is also the case, if you use a local .opam installation of findlib and not the ArchLinux package.
If this this considered a bug -> IMHO its a upstream bug.
Comment by susurrus silento (susurri) - Tuesday, 25 November 2014, 05:00 GMT
A fix to install the META file is attached.
Comment by Christian Neukirchen (chneukirchen) - Thursday, 11 December 2014, 12:26 GMT
Please apply susurri's patch as the META file is *not* included in ocaml-findlib anymore, breaking install of any opam package requiring camlp4.

Users may have to reinstall findlib using opam to notice that camlp4 is now known to findlib.
Comment by Tomasz Kołodziejski (neo) - Wednesday, 07 January 2015, 04:09 GMT
Any advice as how to apply this patch? I wanted to `opm install core` but during installation it says `ocamlfind: Package `camlp4.lib' not found`. Most likely I'm just experiencing this exact error.
Comment by Omar Sandoval (osandov) - Thursday, 08 January 2015, 08:53 GMT
I got the PKGBUILD from the ABS (https://wiki.archlinux.org/index.php/Arch_Build_System) and applied the patch to that.
Comment by Tomasz Kołodziejski (neo) - Friday, 09 January 2015, 04:27 GMT
Thanks. After applying this patch and reinstalling ocamlfind with opam core installs without any more problems.
Comment by Sören (soerenb) - Tuesday, 17 February 2015, 06:48 GMT
I ran into this issue when trying to install coccinelle (https://aur.archlinux.org/packages/coccinelle/). I changed patched the camlp4 PKGBUILD based on susurrus' patch and reinstalled camlp4. That fixed the configure error with coccinelle.
I ended up using a PKGBUILD patched with the attached file.
Comment by Scott Lawrence (srl) - Sunday, 22 February 2015, 15:58 GMT
Is there anything keeping this patch from being applied in the repo?
Comment by Josh Cartwright (joshc) - Tuesday, 10 March 2015, 16:35 GMT
I also ran into this issue installing coccinelle. Here's an updated version of susurri and soerenb's patch which cleanly applies ontop of the PKGBUILD as it exists now.
Comment by Emilio (emilio) - Tuesday, 17 March 2015, 19:49 GMT
Any news on this? It's been 6 months now :/
Comment by Leonard de Ruijter (leonardder) - Tuesday, 31 March 2015, 06:58 GMT
What is the current status of this issue?
Comment by Jürgen Hötzel (juergen) - Sunday, 05 April 2015, 20:27 GMT
@tpowa: I suggest applying joshc's FIX. Any objections?

Loading...