Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jun 2013 16:52:41 +0200 (CEST)
From:      Dan Lukes <dan@obluda.cz>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/180004: [ patch ] lang/gawk: unrecorded dependency
Message-ID:  <201306261452.r5QEqfRM042280@m8-64.freebsd.cz>
Resent-Message-ID: <201306261500.r5QF01c9040936@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         180004
>Category:       ports
>Synopsis:       [ patch ] lang/gawk: unrecorded dependency
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 26 15:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Dan Lukes
>Release:        FreeBSD
>Organization:
Obludarium
>Environment:
lang/gawk/Makefile 318249 2013-05-15 17:03:17Z johans

>Description:
	if math/mpfr and math/gmp are present at th etime of gawk compilation
        then they are detected by configure and linked to gawk
	such dependency is not recorded, so package installed
	on other system without mfpr&gmp will not start

>How-To-Repeat:
	compile lang/gawk on system with math/mpfr & math/gmp present
	then deinstall math/mpfr & math/gmp
	then try to run gawk
>Fix:

	gawk should not be linked against mpfr&gmp unless requested
	by administrator. 
	Dependencies need to be properly recorded in such case.

	See patch bellow

--- patch-gawk begins here ---
--- lang/gawk/Makefile.orig	2013-06-26 16:30:37.000000000 +0200
+++ lang/gawk/Makefile	2013-06-26 16:35:15.000000000 +0200
@@ -27,6 +27,17 @@
 
 .include <bsd.port.options.mk>
 
+.if ${PORT_OPTIONS:MPFR}
+LIB_DEPENDS=    gmp:${PORTSDIR}/math/gmp \
+                mpfr:${PORTSDIR}/math/mpfr
+CONFIGURE_ARGS= --with-gmp=${LOCALBASE} \
+                --with-mpfr=${LOCALBASE}
+                                
+.else
+CONFIGURE_ARGS+=--without-gmp\
+                --without-mpfr
+.endif
+
 .if ${PORT_OPTIONS:MNLS}
 USES+=		gettext
 PLIST_SUB+=	NLS=""
--- patch-gawk ends here ---


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306261452.r5QEqfRM042280>