ports/156657: [Patch] Fix installation of devel/ocaml-findlib if WITHOUT_TK is defined

Herbert J. Skuhra h.skuhra at gmail.com
Tue Apr 26 06:10:07 UTC 2011


>Number:         156657
>Category:       ports
>Synopsis:       [Patch] Fix installation of devel/ocaml-findlib if WITHOUT_TK is defined
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 26 06:10:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Herbert J. Skuhra
>Release:        FreeBSD 8.2-STABLE i386
>Organization:
>Environment:
FreeBSD oslo.ath.cx 8.2-STABLE FreeBSD 8.2-STABLE #2 r220615: Thu Apr 14 12:31:59 CEST 2011     herbert at oslo.ath.cx:/usr/obj/usr/src/sys/PC1  i386
>Description:
The installation of ocaml-findlib fails if WITHOUT_TK is defined:

cp doc/ref-man/ocamlfind.1 /usr/local/man/man1
cp doc/ref-man/META.5 doc/ref-man/site-lib.5 doc/ref-man/findlib.conf.5 /usr/local/man/man5
gmake[1]: Leaving directory `/usr/ports/devel/ocaml-findlib/work/findlib-1.2.7'
chmod: /usr/local/lib/ocaml/site-lib/findlib/make_wizard: No such file or directory
*** Error code 1

Stop in /usr/ports/devel/ocaml-findlib.


>How-To-Repeat:

>Fix:
The attached patch should fix the installation of devel/ocaml-findlib if WITHOUT_TK is defined.

Patch attached with submission follows:

diff -ruN devel/ocaml-findlib.bak/Makefile devel/ocaml-findlib/Makefile
--- devel/ocaml-findlib.bak/Makefile	2011-04-26 07:45:10.000000000 +0200
+++ devel/ocaml-findlib/Makefile	2011-04-26 07:46:55.000000000 +0200
@@ -48,6 +48,17 @@
 
 .include <bsd.port.pre.mk>
 
+.if !exists(${LOCALBASE}/lib/ocaml/labltk)
+WITHOUT_TK=     yes
+.endif
+
+.if defined(WITHOUT_TK)
+PLIST_SUB+=     TK="@comment "
+.else
+CONFIGURE_ARGS+=-with-toolbox
+PLIST_SUB+=     TK=""
+.endif
+
 post-install:
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
@@ -58,15 +69,4 @@
 	@${CHMOD} +x ${PREFIX}/lib/ocaml/site-lib/findlib/make_wizard
 .endif
 
-.if !exists(${LOCALBASE}/lib/ocaml/labltk)
-WITHOUT_TK=	yes
-.endif
-
-.if defined(WITHOUT_TK)
-PLIST_SUB+=	TK="@comment "
-.else
-CONFIGURE_ARGS+=-with-toolbox
-PLIST_SUB+=	TK=""
-.endif
-
 .include <bsd.port.post.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list