Opened 12 years ago

Closed 12 years ago

#32061 closed defect (fixed)

caml-ocamlnet @3.4 Ocamlnet build fail : sh option

Reported by: ontologiae@… Owned by: landonf (Landon Fuller)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: bernard@…
Port: caml-ocamlnet

Description (last modified by ryandesign (Ryan Carsten Schmidt))

The building of ocamlnet fails during use of ocamlrpcgen. It calls a sh processus with an invalid option.

make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_caml-ocamlnet/caml-ocamlnet/work/ocamlnet-3.4/src/rpc'
../rpc-generator/ocamlrpcgen -cpp  -aux rpc_portmapper.x
/bin/sh: - : invalid option
Usage:	/bin/sh [GNU long option] [option] ...
	/bin/sh [GNU long option] [option] script-file ...

Change History (7)

comment:1 in reply to:  description Changed 12 years ago by ontologiae@…

I missed to inform i'm under Mac Lion (10.7)

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: ocamlnet sh removed
Milestone: MacPorts 2.0.4
Owner: changed from macports-tickets@… to landonf@…
Port: caml-ocamlnet added; 2.0.3 removed

comment:3 Changed 12 years ago by bernard@…

I've reproduced this same error on two separate Lion machines with Xcode 4.2.1

comment:4 Changed 12 years ago by bernard@…

If you remove the patch from the Portfile then this port installs successfully. I don't know what the effect of the patch was meant to be so I don't know if this is the correct thing to do however.

comment:5 Changed 12 years ago by bernard@…

Cc: bernard@… added

Cc Me!

comment:6 Changed 12 years ago by keigo.imai@…

As a workaround, try this:

sudo port install ocaml-ocamlnet  configure.cpp=/usr/bin/cpp

comment:7 Changed 12 years ago by landonf (Landon Fuller)

Resolution: fixed
Status: newclosed

Should be fixed in r92002. I'm not sure why the change to CPP was made either; the code passed through CPP is intended for consumption by ocamlrpcgen, rather than a C compiler.

Note: See TracTickets for help on using tickets.