Subject: pkg/37582: devel/ocaml-findlib fails to build under Linux
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <cheusov@tut.by>
List: pkgsrc-bugs
Date: 12/21/2007 16:35:05
>Number:         37582
>Category:       pkg
>Synopsis:       devel/ocaml-findlib fails to build under Linux
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 21 16:35:05 +0000 2007
>Originator:     Aleksey Cheusov
>Release:        Linux
>Organization:
home
>Environment:
>Description:
=> Bootstrap dependency digest>=20010302: found digest-20070803
=> Bootstrap dependency checkperms>=1.1: found checkperms-1.10
=> Checksum SHA1 OK for findlib-1.1.2pl1.tar.gz
=> Checksum RMD160 OK for findlib-1.1.2pl1.tar.gz
===> Installing dependencies for ocaml-findlib-1.1.2pl1nb1
=> Build dependency gmake>=3.78: found gmake-3.81
=> Build dependency ocaml>=3.09.1nb2: found ocaml-3.10.0
===> Overriding tools for ocaml-findlib-1.1.2pl1nb1
===> Extracting for ocaml-findlib-1.1.2pl1nb1
/bin/cp /srv/pkgsrc/devel/ocaml-findlib/files/ocaml-findlib-register.sh /tmp/obj_pkgsrc/devel/ocaml-findlib/work/findlib-1.1.2pl1
===> Patching for ocaml-findlib-1.1.2pl1nb1
===> Creating toolchain wrappers for ocaml-findlib-1.1.2pl1nb1
===> Configuring for ocaml-findlib-1.1.2pl1nb1
=> Fixing locale directory references.
=> Checking for portability problems in extracted files
Welcome to findlib version 1.1.2pl1
Configuring core...
configure: m4 not in PATH; this is required
*** Error code 1

Stop.
bmake: stopped in /srv/pkgsrc/devel/ocaml-findlib
*** Error code 1

Stop.
bmake: stopped in /srv/pkgsrc/devel/ocaml-findlib

>How-To-Repeat:

>Fix:
Index: devel/ocaml-findlib/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/ocaml-findlib/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- devel/ocaml-findlib/Makefile	20 May 2006 13:47:43 -0000	1.2
+++ devel/ocaml-findlib/Makefile	21 Dec 2007 13:39:17 -0000
@@ -11,7 +11,7 @@
 HOMEPAGE=		http://www.ocaml-programming.de/packages/
 COMMENT=		Library finder for OCaml
 
-USE_TOOLS+=		gmake
+USE_TOOLS+=		gmake m4
 USE_PKGLOCALEDIR=	yes
 HAS_CONFIGURE=		yes
 CONFIGURE_ARGS+=	-bindir ${PREFIX}/bin