ports/174107: [MAINTAINER-UPDATE][PATCH] please update math/openblas to 0.2.5

Eijiro Shibusawa phd_kimberlite at yahoo.co.jp
Tue Dec 4 14:40:01 UTC 2012


>Number:         174107
>Category:       ports
>Synopsis:       [MAINTAINER-UPDATE][PATCH] please update math/openblas to 0.2.5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 04 14:40:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Eijiro Shibusawa
>Release:        FreeBSD 9.1-RC3
>Organization:
>Environment:
FreeBSD myhost 9.1-RC3 FreeBSD 9.1-RC3 #0 r242324: Tue Oct 30 00:58:57 UTC 2012     root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Attached patch includes following modifications:
- update to 0.2.5.
- the port was converted to OptionsNG

NOTE:
- This port was tested with portlint 2.13.13 and tinderbox.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -uNr /usr/ports/math/openblas/./Makefile ./Makefile
--- /usr/ports/math/openblas/./Makefile	2012-11-17 14:59:25.000000000 +0900
+++ ./Makefile	2012-11-28 01:20:03.000000000 +0900
@@ -1,8 +1,5 @@
-# Created by: Eijiro Shibusawa <ej-sib at ice.uec.ac.jp>
-# $FreeBSD: ports/math/openblas/Makefile,v 1.4 2012/11/17 05:59:25 svnexp Exp $
-
 PORTNAME=	openblas
-PORTVERSION=	0.2.4
+PORTVERSION=	0.2.5
 CATEGORIES=	math
 MASTER_SITES=	https://github.com/${GH_USER}/${GH_PORTNAME}/tarball/${GH_VERSION}/ \
 		NL:lapack,lapack_tmg
@@ -21,7 +18,7 @@
 FETCH_ARGS=	-pRr
 GH_USER=	xianyi
 GH_PORTNAME=	OpenBLAS
-GH_REVISION=	3a26470
+GH_REVISION=	e01b3d4
 GH_VERSION=	v${PORTVERSION}
 LAPACKVER=	3.4.2
 LAPACK_SRCFILE=	lapack-${LAPACKVER}.tgz
@@ -39,21 +36,20 @@
 PLIST_FILES=	${OPENBLAS_FILES:S|^|lib/|}
 
 MAKE_JOBS_SAFE=	yes
-WRKSRC=		${WRKDIR}/${GH_USER}-${GH_PORTNAME}-ea9a46c
+WRKSRC=		${WRKDIR}/${GH_USER}-${GH_PORTNAME}-93dd133
+
+OPTIONS_DEFINE=		DYNAMIC_ARCH INTERFACE64 OPENMP AVX
+
+DYNAMIC_ARCH_DESC=	"Support multiple CPU types on i386 and amd64"
+INTERFACE64_DESC=	"Use 8 byte integers on 64-bit architectures"
+OPENMP_DESC=		"Use OpenMP for threading"
+AVX_DESC=		"Support Advanced Vector Extensions (AVX)"
 
 .if defined(PACKAGE_BUILDING)
-DYNAMIC_ARCH_DEFAULT=	on
-.else
-DYNAMIC_ARCH_DEFAULT=	off
+OPTIONS_DEFAULT=	DYNAMIC_ARCH
 .endif
 
-OPTIONS=	DYNAMIC_ARCH	"Support multiple CPU types on i386 and amd64" \
-							${DYNAMIC_ARCH_DEFAULT} \
-		INTERFACE64	"Use 8 byte integers on 64-bit architectures" off \
-		OPENMP		"Use OpenMP for threading" off \
-		AVX		"Support Advanced Vector Extensions (AVX)" off
-
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
 .if defined(TARGET_CPU_ARCH)
 BUILDFLAGS+=	TARGET=${TARGET_CPU_ARCH}
@@ -67,28 +63,28 @@
 BUILDFLAGS+=	BINARY64=1
 .endif
 
-.if ! ( defined(WITH_DYNAMIC_ARCH) && ( ${ARCH} == "amd64" || ${ARCH} == "i386" ) )
+.if ! ( ${PORT_OPTIONS:MDYNAMIC_ARCH} && ( ${ARCH} == "amd64" || ${ARCH} == "i386" ) )
 MANUAL_PACKAGE_BUILD=	Optimizes for the build machine.
 .endif
 
-.if defined(WITH_DYNAMIC_ARCH)
+.if ${PORT_OPTIONS:MDYNAMIC_ARCH}
 BUILDFLAGS+=	DYNAMIC_ARCH=1
 .endif
 
-.if defined(WITH_INTERFACE64)
+.if ${PORT_OPTIONS:MINTERFACE64}
 BUILDFLAGS+=	INTERFACE64=1
 .endif
 
-.if defined(WITH_OPENMP)
+.if ${PORT_OPTIONS:MOPENMP}
 BUILDFLAGS+=	USE_OPENMP=1
 .endif
 
-.if defined(WITH_QUAD_PRECISION)
-BROKEN =	WITH_QUAD_PRECISION is broken; please disable this option
+.if ${PORT_OPTIONS:MQUAD_PRECISION}
+BROKEN =	QUAD_PRECISION is broken; please disable this option
 BUILDFLAGS+=	QUAD_PRECISION=1
 .endif
 
-.if ! ( defined(WITH_AVX) )
+.if empty{PORT_OPTIONS:MAVX}
 BUILDFLAGS+=	NO_AVX=1
 .endif
 
@@ -128,7 +124,7 @@
 	-e 's+$$(CROSS_SUFFIX)+${LOCALBASE}/bin/+' \
 	-e "s+%%LAPACKVER%%+${LAPACKVER}+g" \
 		${WRKSRC}/Makefile.system
-.if defined(WITH_OPENMP)
+.if ${PORT_OPTIONS:MOPENMP}
 	${REINPLACE_CMD} -e "s+OPENBLAS_NUM_THREADS+OMP_NUM_THREADS+g" \
 		${WRKSRC}/test/Makefile \
 		${WRKSRC}/ctest/Makefile
@@ -144,12 +140,12 @@
 	USE_THREAD=1 ${GMAKE} ${MAKE_ARGS}
 	${CP} ${WRKSRC}/libopenblasp-${OPENBLAS_SUFX}.a ${WRKDIR}/lib/libopenblasp.a
 	${CP} ${WRKSRC}/libopenblasp-${OPENBLAS_SUFX}.so ${WRKDIR}/lib/libopenblasp.so.${OPENBLAS_SVER}
-.if !defined(WITH_DEBUG)
+.if ${PORT_OPTIONS:MDEBUG}
 	${LOCALBASE}/bin/strip -X ${WRKDIR}/lib/*.so.${OPENBLAS_SVER}
 .endif
 
 BENCHMARK_MAXTHREADS?=	${MAXTHREADS}
-.if defined(WITH_OPENMP)
+.if ${PORT_OPTIONS:MOPENMP}
 BENCHMARK_THREADS_FLAG =	OMP_NUM_THREADS=${BENCHMARK_MAXTHREADS}
 .else
 BENCHMARK_THREADS_FLAG =	OPENBLAS_NUM_THREADS=${BENCHMARK_MAXTHREADS}
@@ -170,4 +166,4 @@
 		${LN} -sf $$i.${OPENBLAS_SVER} $$i ; \
 	done
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -uNr /usr/ports/math/openblas/./distinfo ./distinfo
--- /usr/ports/math/openblas/./distinfo	2012-10-21 00:26:56.000000000 +0900
+++ ./distinfo	2012-11-28 01:09:08.000000000 +0900
@@ -1,5 +1,5 @@
-SHA256 (openblas/xianyi-OpenBLAS-v0.2.4-0-g3a26470.tar.gz) = e5f7a46da2b2b2fc82a905650df14d0a0562c52c8ef6d83db8fe91899275335a
-SIZE (openblas/xianyi-OpenBLAS-v0.2.4-0-g3a26470.tar.gz) = 3249943
+SHA256 (openblas/xianyi-OpenBLAS-v0.2.5-0-ge01b3d4.tar.gz) = e5f097adc09d3384242e387ee39cc7710451e667273b4cb37c13f275e1da8650
+SIZE (openblas/xianyi-OpenBLAS-v0.2.5-0-ge01b3d4.tar.gz) = 3252581
 SHA256 (openblas/lapack-3.4.2.tgz) = 60a65daaf16ec315034675942618a2230521ea7adf85eea788ee54841072faf0
 SIZE (openblas/lapack-3.4.2.tgz) = 6168281
 SHA256 (openblas/large.tgz) = f328d88b7fa97722f271d7d0cfea1c220e0f8e5ed5ff01d8ef1eb51d6f4243a1
diff -uNr /usr/ports/math/openblas/./files/patch-Makefile ./files/patch-Makefile
--- /usr/ports/math/openblas/./files/patch-Makefile	2012-10-21 00:26:56.000000000 +0900
+++ ./files/patch-Makefile	2012-11-28 01:13:49.000000000 +0900
@@ -1,6 +1,6 @@
---- Makefile.orig	2012-10-09 21:08:28.000000000 +0900
-+++ Makefile	2012-10-12 21:37:18.000000000 +0900
-@@ -201,7 +201,7 @@
+--- Makefile.orig	2012-11-27 08:24:53.000000000 +0900
++++ Makefile	2012-11-28 01:13:31.000000000 +0900
+@@ -203,7 +203,7 @@
  netlib : 
  
  else
@@ -9,7 +9,7 @@
  ifndef NOFORTRAN
  	-@$(MAKE) -C $(NETLIB_LAPACK_DIR) lapacklib
  endif
-@@ -210,7 +210,7 @@
+@@ -212,7 +212,7 @@
  endif
  endif
  
@@ -18,16 +18,16 @@
  	-@$(MAKE) -C $(NETLIB_LAPACK_DIR) lapack_prof
  
  $(NETLIB_LAPACK_DIR)/make.inc :
-@@ -223,7 +223,7 @@
- 	- at echo "LOADOPTS    = $(FFLAGS) $(EXTRALIB)" >> $(NETLIB_LAPACK_DIR)/make.inc
- 	- at echo "CC          = $(CC)" >> $(NETLIB_LAPACK_DIR)/make.inc
+@@ -229,7 +229,7 @@
+ else
  	- at echo "CFLAGS      = $(CFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
+ endif
 -	- at echo "ARCH        = $(AR)" >> $(NETLIB_LAPACK_DIR)/make.inc
 +	- at echo "ARCH_       = $(AR)" >> $(NETLIB_LAPACK_DIR)/make.inc
  	- at echo "ARCHFLAGS   = -ru" >> $(NETLIB_LAPACK_DIR)/make.inc
  	- at echo "RANLIB      = $(RANLIB)" >> $(NETLIB_LAPACK_DIR)/make.inc
  	- at echo "LAPACKLIB   = ../$(LIBNAME)" >> $(NETLIB_LAPACK_DIR)/make.inc
-@@ -235,24 +235,19 @@
+@@ -241,24 +241,19 @@
  	- at cat  make.inc >> $(NETLIB_LAPACK_DIR)/make.inc
  endif
  
@@ -59,7 +59,7 @@
  ifndef NOFORTRAN
  #http://stackoverflow.com/questions/7656425/makefile-ifeq-logical-or
  ifeq ($(OSNAME), $(filter $(OSNAME),Darwin NetBSD))
-@@ -276,7 +271,7 @@
+@@ -282,7 +277,7 @@
  	-wget http://www.netlib.org/lapack/timing/timing.tgz
  endif
  
@@ -68,7 +68,7 @@
  ifndef NOFORTRAN
  	(cd $(NETLIB_LAPACK_DIR); $(TAR) zxf ../timing.tgz TIMING)
  	(cd $(NETLIB_LAPACK_DIR)/TIMING; $(TAR) zxf ../../large.tgz )
-@@ -314,4 +309,4 @@
+@@ -320,4 +315,4 @@
  	rm -rf $(NETLIB_LAPACK_DIR) ;\
  	fi
  	@rm -f *.grd Makefile.conf_last config_last.h
diff -uNr /usr/ports/math/openblas/./files/patch-exports+Makefile ./files/patch-exports+Makefile
--- /usr/ports/math/openblas/./files/patch-exports+Makefile	2012-08-26 19:42:45.000000000 +0900
+++ ./files/patch-exports+Makefile	2012-11-28 01:24:52.000000000 +0900
@@ -1,10 +1,10 @@
---- exports/Makefile.orig	2012-02-05 16:32:13.000000000 +0900
-+++ exports/Makefile	2012-02-05 16:33:32.000000000 +0900
-@@ -107,6 +107,7 @@
- endif
+--- exports/Makefile.orig	2012-11-27 08:24:53.000000000 +0900
++++ exports/Makefile	2012-11-28 01:24:49.000000000 +0900
+@@ -122,6 +122,7 @@
+ #http://stackoverflow.com/questions/7656425/makefile-ifeq-logical-or
+ ifeq ($(OSNAME), $(filter $(OSNAME),FreeBSD NetBSD))
  
- ifeq ($(OSNAME), FreeBSD)
 +EXTRALIB += -lgfortran
- 
  so : ../$(LIBSONAME)
  
+ ../$(LIBSONAME) : ../$(LIBNAME) linux.def linktest.c
diff -uNr /usr/ports/math/openblas/./files/patch-exports+gensymbol ./files/patch-exports+gensymbol
--- /usr/ports/math/openblas/./files/patch-exports+gensymbol	2012-08-26 19:42:45.000000000 +0900
+++ ./files/patch-exports+gensymbol	2012-11-28 01:19:26.000000000 +0900
@@ -1,13 +1,14 @@
---- exports/gensymbol.orig	2012-07-08 21:47:12.000000000 +0900
-+++ exports/gensymbol	2012-07-08 21:48:26.000000000 +0900
-@@ -2666,10 +2666,7 @@
+--- exports/gensymbol.orig	2012-11-27 08:24:53.000000000 +0900
++++ exports/gensymbol	2012-11-28 01:19:10.000000000 +0900
+@@ -2666,11 +2666,7 @@
  		#LAPACKE_zlagsy_work,
  		);
  
 -if ($ARGV[5] == 1) {
 -	#NO_LAPACK=1
 -	@underscore_objs = (@blasobjs, @misc_underscore_objs);
--} elsif (-d "../lapack-3.1.1" || -d "../lapack-3.4.0" || -d "../lapack-3.4.1") {
+-} elsif (-d "../lapack-3.1.1" || -d "../lapack-3.4.0" || -d "../lapack-3.4.1" ||
+-         -d "../lapack-3.4.2") {
 +if (-d "../lapack-%%LAPACKVER%%") {
      @underscore_objs = (@blasobjs, @lapackobjs, @lapackobjs2, @misc_underscore_objs);
  } else {


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


More information about the freebsd-ports-bugs mailing list