Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Mar 2015 20:00:56 +0000 (UTC)
From:      Stephen Montgomery-Smith <stephen@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r382550 - in head/math/sage: . files
Message-ID:  <201503282000.t2SK0u76028852@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: stephen
Date: Sat Mar 28 20:00:55 2015
New Revision: 382550
URL: https://svnweb.freebsd.org/changeset/ports/382550
QAT: https://qat.redports.org/buildarchive/r382550/

Log:
  - Fix so that it will build even if C99 functions missing from FreeBSD.
    Accomplish this by re-enabling the cephes subpackage, and then putting
    a wrapper around "ld" so that the option --copy-dt-needed-entries is set.
  - Bump portrevision.
  
  PR:		198893
  Submitted by:	John Marino

Added:
  head/math/sage/files/ld.in   (contents, props changed)
Deleted:
  head/math/sage/files/patch-build_pkgs_cephes_spkg-install
Modified:
  head/math/sage/Makefile

Modified: head/math/sage/Makefile
==============================================================================
--- head/math/sage/Makefile	Sat Mar 28 20:00:43 2015	(r382549)
+++ head/math/sage/Makefile	Sat Mar 28 20:00:55 2015	(r382550)
@@ -3,6 +3,7 @@
 
 PORTNAME=	sage
 PORTVERSION=	6.5
+PORTREVISION=	1
 CATEGORIES=	math
 MASTER_SITES=	http://boxen.math.washington.edu/home/sagemath/sage-mirror/src/ \
 		http://mirrors.xmission.com/sage/src/ \
@@ -26,10 +27,6 @@ LIB_DEPENDS=	libatlas.so:${PORTSDIR}/mat
 		libjpeg.so:${PORTSDIR}/graphics/jpeg
 RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash
 
-.if OSVERSION<1000717
-BROKEN=		https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198893
-.endif
-
 pre-extract:
 	@${ECHO_MSG}
 	@${ECHO_MSG} Instead of installing the port, which will take a considerable amount of
@@ -62,6 +59,11 @@ post-patch:
 	@${MKDIR} ${WRKSRC}/local/bin
 	@${LN} -s -f ${LOCALBASE}/bin/gmake ${WRKSRC}/local/bin/make
 
+# Create wrapper for invocation of ld.
+	@${SED} -e 's#%%LD%%#${LOCALBASE}/bin/ld#' \
+		${FILESDIR}/ld.in > ${WRKSRC}/local/bin/ld
+	@${CHMOD} +x ${WRKSRC}/local/bin/ld
+
 post-build:
 	${RM} -rf ${WRKSRC}/tmp/.sage
 	${CHMOD} -R a+rX ${WRKSRC}
@@ -95,10 +97,6 @@ post-install:
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} < 701106
-BROKEN=		POSIX semaphores are required, and the support only works in FreeBSD 7-STABLE and later
-.endif
-
 MAKE_ENV+=	MAKE="${MAKE} -j${MAKE_JOBS_NUMBER}"
 
 .ifdef MAINTAINER_MODE

Added: head/math/sage/files/ld.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/sage/files/ld.in	Sat Mar 28 20:00:55 2015	(r382550)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec %%LD%% --copy-dt-needed-entries "$@"



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