Subject: pkg/27558: ocaml INSTALL_PROGRAM -> INSTALL_SCRIPT
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <pancake@phreaker.net>
List: pkgsrc-bugs
Date: 10/27/2004 13:01:26
>Number:         27558
>Category:       pkg
>Synopsis:       can't install ocaml
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 27 13:02:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        Linux 2.6.8.1
>Organization:
	
>Environment:
	
	
System: Linux bare 2.6.8.1 #6 Fri Oct 22 05:01:41 VET 2004 i686 GNU/Linux
Architecture: i686
Machine: i686
>Description:
ocaml can't be installed because tries to install two scripts as binary programs.

	
>How-To-Repeat:
make install @ /usr/pkgsrc/lang/ocaml
	
>Fix:
apply these two patches against: lang/ocaml/patches:

--- patch-au.orig	2004-10-27 02:54:41.000000000 -0400
+++ patch-au	2004-10-27 02:54:55.000000000 -0400
@@ -7,7 +7,7 @@
  
  install:
 -	cp ocamldebug$(EXE) $(BINDIR)/ocamldebug$(EXE)
-+	${BSD_INSTALL_PROGRAM} ocamldebug$(EXE) $(BINDIR)/ocamldebug$(EXE)
++	${BSD_INSTALL_SCRIPT} ocamldebug$(EXE) $(BINDIR)/ocamldebug$(EXE)
  
  clean::
  	rm -f ocamldebug$(EXE)




-----------8<----------------


--- patch-aw.orig	2004-10-27 02:52:46.000000000 -0400
+++ patch-aw	2004-10-27 02:53:25.000000000 -0400
@@ -15,7 +15,7 @@
 -	$(CP) stdlib_man/* $(INSTALL_MANODIR)
 +	if test -d $(INSTALL_BINDIR); then : ; else ${BSD_INSTALL_PROGRAM_DIR} $(INSTALL_BINDIR); fi
 +	if test -d $(INSTALL_LIBDIR); then : ; else ${BSD_INSTALL_DATA_DIR} $(INSTALL_LIBDIR); fi
-+	${BSD_INSTALL_PROGRAM} $(OCAMLDOC) $(INSTALL_BINDIR)
++	${BSD_INSTALL_SCRIPT} $(OCAMLDOC) $(INSTALL_BINDIR)
 +	${BSD_INSTALL_DATA} ocamldoc.sty ocamldoc.hva *.cmi $(GENERATORS) $(OCAMLDOC_LIBCMA) $(INSTALL_LIBDIR)
 +	${BSD_INSTALL_DATA} $(INSTALL_MLIS) $(INSTALL_CMIS) $(INSTALL_LIBDIR)
 +	if test -d $(INSTALL_MANODIR); then : ; else ${BSD_INSTALL_MAN_DIR} $(INSTALL_MANODIR); fi
>Release-Note:
>Audit-Trail:
>Unformatted: