Skip site navigation (1)Skip section navigation (2)
Date:      11 Jul 2002 08:40:30 -0000
From:      Stanislav Grozev <tacho@factline.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/40450: lang/pike fails to build on -current, due to missing libgmp (fix attached)
Message-ID:  <20020711084030.94813.qmail@daemonz.org>

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

>Number:         40450
>Category:       ports
>Synopsis:       lang/pike fails to build on -current, due to missing libgmp (fix attached)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 11 01:40:10 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Stanislav Grozev
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
me and myself
>Environment:
System: FreeBSD meerkat.dungeon 4.6-STABLE FreeBSD 4.6-STABLE #0: Thu Jun 27 17:10:37 CEST 2002 root@meerkat.dungeon:/usr/obj/usr/src/sys/MEERKAT i386

the send-pr is on my stable machine, but the problem is on my -current
machine. the patch tested on both, fixes the problem on current, and
doesn't introduce new problem on stable
>Description:
when trying to build the lang/pike port, if you enable gmp functionality
(enabled by default) on -current, it complains for missing libgmp.
that's due to the removal of libgmp from -current base.
the patch adds a check for current, and if so, and gmp is enabled,
adds a LIB_DEPENDS to math/libgmp4
>How-To-Repeat:

on -current:
cd /usr/ports/lang/pike
sudo make
(and choose gmp)

>Fix:

use the following patch (tested on both -current and -stable):

--- begin patch ---

diff -urN ../pike.orig/Makefile ./Makefile
--- ../pike.orig/Makefile	Thu Jul 11 10:26:20 2002
+++ ./Makefile	Thu Jul 11 10:29:55 2002
@@ -7,6 +7,7 @@
 
 PORTNAME=	pike
 PORTVERSION=	7.0.78
+PORTREVISION=	1
 CATEGORIES=	lang
 MASTER_SITES=	ftp://ftp.roxen.com/pub/pike/all/${PORTVERSION}/
 DISTNAME=	Pike-v${PORTVERSION}
@@ -18,6 +19,9 @@
 USE_SUBMAKE=	yes
 IS_INTERACTIVE=	yes
 GNU_CONFIGURE=  yes
+
+.include <bsd.port.pre.mk>
+
 .if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
 .include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
 .else
@@ -48,4 +52,4 @@
 	${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PREFIX}/include/pike/*.h
 	${CHMOD} ${SHAREMODE} ${PREFIX}/include/pike/*.h
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -urN ../pike.orig/scripts/configure.pike ./scripts/configure.pike
--- ../pike.orig/scripts/configure.pike	Thu Jul 11 10:26:20 2002
+++ ./scripts/configure.pike	Thu Jul 11 10:26:32 2002
@@ -50,6 +50,9 @@
 			threads=1
 			;;
 		\"gmp\")
+			echo '.if ${OSVERSION} >= 500000' >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+			echo 'LIB_DEPENDS+=	gmp.6:${PORTSDIR}/math/libgmp4' >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+			echo '.endif' >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
 			echo "CONFIGURE_ARGS+=	--with-gmp" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
 			gmp=1
 			;;

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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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