pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lang/ocaml 3.12.0 build issue



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I have just run into the same issue discribed in pkg/42140 but with
ocaml-3.12.0:

cd byterun; /usr/pkg/bin/gmake all
gmake[1]: Entering directory
`/pkg_comp/obj/pkgsrc/lang/ocaml/default/ocaml-3.12.0/byterun'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory
`/pkg_comp/obj/pkgsrc/lang/ocaml/default/ocaml-3.12.0/byterun'
cp byterun/ocamlrun boot/ocamlrun
cp: boot/ocamlrun: Text file busy
gmake: *** [coldstart] Error 1
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/lang/ocaml
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/ocaml



Removing boot/ocamlrun before the copy solves the issue. It is located
in the coldboot target of the top Makefile.

Please find attached a patch to patch-bt (which already modifies the
Makefile)

Regards,
Nicolas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (NetBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyw90EACgkQ3ylMjdXeRSAPpACfY0OduqHMNV92hoRhKRcCLlkt
KKAAn0Y3LfFAjij0beZx9a2YqnrxiD7u
=3Dl4
-----END PGP SIGNATURE-----
Index: distinfo
===================================================================
RCS file: /pub/NetBSD-CVS/pkgsrc/lang/ocaml/distinfo,v
retrieving revision 1.51
diff -u -p -r1.51 distinfo
--- distinfo    19 Aug 2010 08:06:53 -0000      1.51
+++ distinfo    9 Oct 2010 22:45:23 -0000
@@ -31,6 +31,6 @@ SHA1 (patch-bp) = 45038c5900aefdb8d21b8c
 SHA1 (patch-bq) = 2ac3b7c1cdf9bdf1e6dcd5905e54291169d069c6
 SHA1 (patch-br) = f9dacbd8742a9cdc9ae0232f297898f0df62a95b
 SHA1 (patch-bs) = 24788a31a5bdfe502e9586002574fdc077455536
-SHA1 (patch-bt) = 400ac1c2935690bd204da116272017ec167f4b0d
+SHA1 (patch-bt) = 45a226b057996fe4f5126963b03001f0e60f6065
 SHA1 (patch-bu) = 0b3bbe273142ebed3a24e7e92d4cfd9f30a032b6
 SHA1 (patch-bv) = 595641bb079174f393e420bdf5c48fe8ca1912cf
Index: patches/patch-bt
===================================================================
RCS file: /pub/NetBSD-CVS/pkgsrc/lang/ocaml/patches/patch-bt,v
retrieving revision 1.5
diff -u -p -r1.5 patch-bt
--- patches/patch-bt    19 Aug 2010 08:06:53 -0000      1.5
+++ patches/patch-bt    9 Oct 2010 22:45:23 -0000
@@ -1,8 +1,14 @@
-$NetBSD: patch-bt,v 1.5 2010/08/19 08:06:53 asau Exp $
-
---- Makefile.orig      2010-06-16 05:32:26.000000000 +0400
-+++ Makefile   2010-08-12 14:47:49.000000000 +0400
-@@ -273,25 +273,25 @@
+--- Makefile.orig      2010-06-16 03:32:26.000000000 +0200
++++ Makefile   2010-10-10 00:19:03.000000000 +0200
+@@ -187,6 +187,7 @@
+ # Start up the system from the distribution compiler
+ coldstart:
+       cd byterun; $(MAKE) all
++      rm -f boot/ocamlrun$(EXE)
+       cp byterun/ocamlrun$(EXE) boot/ocamlrun$(EXE)
+       cd yacc; $(MAKE) all
+       cp yacc/ocamlyacc$(EXE) boot/ocamlyacc$(EXE)
+@@ -273,25 +274,25 @@
  
  # Installation
  install:
@@ -41,7 +47,7 @@ $NetBSD: patch-bt,v 1.5 2010/08/19 08:06
           $(LIBDIR)
        cd tools; $(MAKE) install
        -cd man; $(MAKE) install
-@@ -302,24 +302,24 @@
+@@ -302,24 +303,24 @@
        if test -f ocamlopt; then $(MAKE) installopt; else :; fi
        if test -f debugger/ocamldebug; then (cd debugger; $(MAKE) install); \
           else :; fi

Attachment: lang_ocaml_fix_build_issue.diff.sig
Description: Binary data



Home | Main Index | Thread Index | Old Index