Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Mar 2008 22:08:05 GMT
From:      Frank Fenor <frank@fenor.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/122272: Fix Miracl for AMD64
Message-ID:  <200803302208.m2UM8535032708@www.freebsd.org>
Resent-Message-ID: <200803302210.m2UMA0hG015092@freefall.freebsd.org>

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

>Number:         122272
>Category:       ports
>Synopsis:       Fix Miracl for AMD64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 30 22:10:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Frank Fenor
>Release:        FreeBSD 7.0-PRERELEASE
>Organization:
>Environment:
FreeBSD konzentrisch.de 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #5: Tue Feb  5 00:33:58 CET 2008
>Description:
Miracl is currently marked as IGNORE for all platforms except i386.
The latest Upstream release contains a working build mechanism for 64bit machines, this patch includes the latest release and its 64bit build instructions into the port.
>How-To-Repeat:

>Fix:
cd /usr/ports/math && patch -p0 < miracl-5.3.2-amd64-20080330.patch

Patch attached with submission follows:

diff -Nru miracl.vanilla/Makefile miracl/Makefile
--- miracl.vanilla/Makefile	2007-05-22 22:13:57.000000000 +0200
+++ miracl/Makefile	2008-03-31 00:02:18.000000000 +0200
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	miracl
-PORTVERSION=	5.3
+PORTVERSION=	5.3.2
 CATEGORIES=	math
 MASTER_SITES=	ftp://ftp.computing.dcu.ie/pub/crypto/ \
 		${MASTER_SITE_LOCAL}
@@ -27,8 +27,12 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} != "i386"
-BROKEN=		Does not build on !i386
+.if ${ARCH} == "i386"
+BUILDCMD=	linux
+.elif ${ARCH} == "amd64"
+BUILDCMD=	linux64
+.else
+BROKEN=		Builds on x86 and x86_64 only
 .endif
 
 post-patch:
@@ -37,11 +41,11 @@
 	@${REINPLACE_CMD} -E \
 		-e 's|gcc|${CC}|' \
 		-e 's|g\+\+|${CXX}|' \
-		-e 's|-O2|${CFLAGS}|' \
-		${WRKSRC}/linux
+		-e 's|-O2|${CFLAGS} -fPIC|' \
+		${WRKSRC}/${BUILDCMD}
 
 do-build:
-	@cd ${WRKSRC} && ${SH} ./linux
+	@cd ${WRKSRC} && ${SH} ./${BUILDCMD}
 
 do-install:
 # lib
diff -Nru miracl.vanilla/distinfo miracl/distinfo
--- miracl.vanilla/distinfo	2007-05-22 22:13:57.000000000 +0200
+++ miracl/distinfo	2008-03-31 00:02:59.000000000 +0200
@@ -1,3 +1,3 @@
-MD5 (miracl/5.3/miracl.zip) = 7ef68202b855ce90da8a4e84b5f51262
-SHA256 (miracl/5.3/miracl.zip) = 8c806f9ee60dbca52af93dd9c2e05a645022e1b5a6f4a367efbc6c533684fe15
-SIZE (miracl/5.3/miracl.zip) = 1528771
+MD5 (miracl/5.3.2/miracl.zip) = 4e7b8b3365d299239af69a70e25410b9
+SHA256 (miracl/5.3.2/miracl.zip) = c4fb4cf32090cce202cf0ea152da6b2e7f8633da64dd41b0d5833d900f8c5462
+SIZE (miracl/5.3.2/miracl.zip) = 1643702


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



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