Permalink
Browse files

ocaml: re-apply upstream patch for 4.00.0

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
1 parent bc937ac commit f605c57b934e3a1d666af7518739f8137fec2441 @jacknagel jacknagel committed Aug 29, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 Library/Formula/objective-caml.rb
View
5 Library/Formula/objective-caml.rb
@@ -10,6 +10,11 @@ class ObjectiveCaml < Formula
# Don't strip symbols, so dynamic linking doesn't break.
skip_clean :all
+ # See http://caml.inria.fr/mantis/view.php?id=5700
+ def patches
+ "http://caml.inria.fr/mantis/file_download.php?file_id=722&type=bug"
+ end
+
def install
system "./configure", "--prefix", HOMEBREW_PREFIX,
"--mandir", man,

2 comments on commit f605c57

@mclamb

Hi. Something seems to have broken with this update to ocaml4. On all my systems I am getting ocamlrun problems during brew installation because it can't seem to find -lX11 in /usr/X11R6/lib. The directory and the library exists.

Thanks. Tail end of debug output attached Let me know if you want it all.


.
.
../../boot/ocamlrun ../../tools/ocamlmklib -ocamlc '../../ocamlcomp.sh -I ../unix' -o unix -linkall unix.cmo ../unix/unixLabels.cmo
cc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I../../byterun -O -I/usr/X11R6/include -c open.c
cc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I../../byterun -O -I/usr/X11R6/include -c draw.c
cc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I../../byterun -O -I/usr/X11R6/include -c fill.c
cc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I../../byterun -O -I/usr/X11R6/include -c color.c
cc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I../../byterun -O -I/usr/X11R6/include -c text.c
cc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I../../byterun -O -I/usr/X11R6/include -c image.c
cc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I../../byterun -O -I/usr/X11R6/include -c make_img.c
cc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I../../byterun -O -I/usr/X11R6/include -c dump_img.c
cc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I../../byterun -O -I/usr/X11R6/include -c point_col.c
cc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I../../byterun -O -I/usr/X11R6/include -c sound.c
cc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I../../byterun -O -I/usr/X11R6/include -c events.c
cc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I../../byterun -O -I/usr/X11R6/include -c subwindow.c
../../boot/ocamlrun ../../tools/ocamlmklib -oc graphics open.o draw.o fill.o color.o text.o image.o make_img.o dump_img.o point_col.o sound.o events.o subwindow.o -ldopt "-L/usr/X11R6/lib -lX11"
ld: library not found for -lX11
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libgraphics.a] Error 2
make[1]: *** [otherlibraries] Error 2
make: *** [world] Error 2
==> Exit Status: 2
https://github.com/mxcl/master/blob/master/Library/Formula/objective-caml.rb#L24
==> Build Environment
HOMEBREW_VERSION: 0.9.3
HEAD: 92a4981
CPU: 8-core 64-bit penryn
OS X: 10.7.4-x86_64
Xcode: 4.4.1
CLT: 1.0.0.9000000000.1.1249367152
X11: 2.6.4 in /usr/X11
CC: cc
CXX: c++
LD: ld
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2
PKG_CONFIG_PATH: /usr/local/lib/pkgconfig
MAKE: make
CPP: cpp
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Library/ENV/4.3:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: Failed executing: make world (objective-caml.rb:24)

This link will help resolve the above errors:
https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist

@jacknagel

Please do not post build errors here; open a new issue and post all relevant information (https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist).

Please sign in to comment.