From owner-freebsd-ports Thu Jul 11 1:40:24 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EAF737B401 for ; Thu, 11 Jul 2002 01:40:12 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5980143E5E for ; Thu, 11 Jul 2002 01:40:11 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6B8eBJU059385 for ; Thu, 11 Jul 2002 01:40:11 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6B8eB7T059384; Thu, 11 Jul 2002 01:40:11 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56E7137B405 for ; Thu, 11 Jul 2002 01:37:57 -0700 (PDT) Received: from daemonz.org (TK212017094178.teleweb.at [212.17.94.178]) by mx1.FreeBSD.org (Postfix) with SMTP id DCD2343E52 for ; Thu, 11 Jul 2002 01:37:55 -0700 (PDT) (envelope-from tacho@daemonz.org) Received: (qmail 94814 invoked by uid 1001); 11 Jul 2002 08:40:30 -0000 Message-Id: <20020711084030.94813.qmail@daemonz.org> Date: 11 Jul 2002 08:40:30 -0000 From: Stanislav Grozev Reply-To: Stanislav Grozev To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/40450: lang/pike fails to build on -current, due to missing libgmp (fix attached) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 + .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 +.include 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