Opened 10 years ago

Closed 9 years ago

#44929 closed defect (fixed)

ocaml-camlp4 and ocaml-findlib conflict

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.3.99
Keywords: Cc: lord@…, majoc-at-astro (majoc-at-astro), hippallium-macports@…, MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: ocaml-camlp4 ocaml-findlib

Description

--->  Computing dependencies for ocaml-camlp4
--->  Fetching distfiles for ocaml-camlp4
--->  Attempting to fetch 4.02.0+1.tar.gz from https://github.com/ocaml/camlp4/archive/
--->  Verifying checksums for ocaml-camlp4                                           
--->  Extracting ocaml-camlp4
--->  Configuring ocaml-camlp4
--->  Building ocaml-camlp4
--->  Staging ocaml-camlp4 into destroot
--->  Installing ocaml-camlp4 @4.02.0.1_0
--->  Activating ocaml-camlp4 @4.02.0.1_0
Error: Failed to activate ocaml-camlp4: Image error: /opt/local/lib/ocaml/site-lib/camlp4/META is being used by the active ocaml-findlib port.  Please deactivate this port first, or use 'port -f activate ocaml-camlp4' to force the activation.

Change History (12)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Markus, any thoughts on the correct resolution to this problem?

comment:2 Changed 10 years ago by someuser12

I do not observe the same effect. For me, port ocaml-findlib doesn't contain the file, only ocaml-camlp4 does:

$ port location ocaml-camlp4                 
Port ocaml-camlp4 4.02.0.1_0 is installed as an image in:
/opt/local/var/macports/software/ocaml-camlp4/ocaml-camlp4-4.02.0.1_0.darwin_12.x86_64.tbz2
$ port contents ocaml-camlp4|grep camlp4/META
  /opt/local/lib/ocaml/site-lib/camlp4/META
$ port location ocaml-findlib                
Port ocaml-findlib 1.5.5_0 is installed as an image in:
/opt/local/var/macports/software/ocaml-findlib/ocaml-findlib-1.5.5_0.darwin_12.x86_64.tbz2
$ port contents ocaml-findlib|grep camlp4/META
$ uname -a
Darwin x 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64
$

comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

I agree, I no longer see the problem after upgrading ocaml-findlib to 1.5.5.

comment:4 Changed 9 years ago by gonhidi@…

Revision 1 of ocaml-findlib for darwin 14 currently has no binary whilst there are binaries for versions 11, 12, and 13. Building from source from an up to date darwin 14 (Yosemite 10.10.4) system shows the conflicting file anew.

comment:5 Changed 9 years ago by lord@…

I observe same problem with 1.5.5_1:

lambda13 ~# port contents ocaml-findlib|grep camlp4/META
  /opt/local/lib/ocaml/site-lib/camlp4/META
lambda13 ~# port installed | grep findlib
  ocaml-findlib @1.5.5_1 (active)

comment:6 Changed 9 years ago by lord@…

Cc: lord@… added

Cc Me!

comment:7 Changed 9 years ago by lord@…

Resolution: fixed
Status: closedreopened

comment:8 Changed 9 years ago by majoc-at-astro (majoc-at-astro)

Cc: majoc@… added

Cc Me!

comment:9 Changed 9 years ago by hippallium-macports@…

Cc: hippallium-macports@… added

Cc Me!

comment:10 Changed 9 years ago by hippallium-macports@…

In the meantime, does anyone know of a workaround?

comment:11 Changed 9 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: mcalhoun@… added

Cc Me!

comment:12 Changed 9 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: reopenedclosed

ocaml-findlib searches for camlp4.
If camlp4 is found, ocaml-findlib installs a META file for camlp4.
Somewhere along the line, however, camlp4 started installing its own.
Gentoo patches findlib to prevent installation of the META file.
r148127 mimics this behavior.

Note: See TracTickets for help on using tickets.