View | Details | Raw Unified | Return to bug 231371 | Differences between
and this patch

Collapse All | Expand All

(-)math/openblas/Makefile (-61 / +26 lines)
Lines 2-9 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	openblas
4
PORTNAME=	openblas
5
PORTVERSION=	0.2.20
5
PORTVERSION=	0.3.7
6
PORTREVISION=	10
7
DISTVERSIONPREFIX=	v
6
DISTVERSIONPREFIX=	v
8
PORTEPOCH=	1
7
PORTEPOCH=	1
9
CATEGORIES=	math
8
CATEGORIES=	math
Lines 17-23 COMMENT= Optimized BLAS library based on GotoBLAS2 Link Here
17
LICENSE=	BSD3CLAUSE
16
LICENSE=	BSD3CLAUSE
18
LICENSE_FILE=	${WRKSRC}/LICENSE
17
LICENSE_FILE=	${WRKSRC}/LICENSE
19
18
20
USES=		fortran gmake perl5
19
CONFLICTS_INSTALL=	cblas lapacke
20
21
USES=		fortran gmake perl5 pkgconfig
21
22
22
USE_GITHUB=	yes
23
USE_GITHUB=	yes
23
GH_ACCOUNT=	xianyi
24
GH_ACCOUNT=	xianyi
Lines 28-38 TIMING_FILE= timing.tgz Link Here
28
USE_LDCONFIG=	yes
29
USE_LDCONFIG=	yes
29
USE_PERL5=	build
30
USE_PERL5=	build
30
31
31
OPENBLAS_SUFX=	r${PORTVERSION}
32
OPENBLAS_LIBS=	libopenblas libopenblasp
33
OPENBLAS_SVER=	0
32
OPENBLAS_SVER=	0
34
OPENBLAS_FILES=	${OPENBLAS_LIBS:S|$|.so|} ${OPENBLAS_LIBS:S|$|.so.${OPENBLAS_SVER}|} ${OPENBLAS_LIBS:S|$|.a|}
35
PLIST_FILES=	${OPENBLAS_FILES:S|^|lib/|}
36
TEST_TARGET=	tests
33
TEST_TARGET=	tests
37
34
38
BUILDFLAGS=	FCOMMON_OPT=-frecursive MAKE_NB_JOBS=-1
35
BUILDFLAGS=	FCOMMON_OPT=-frecursive MAKE_NB_JOBS=-1
Lines 55-60 AVX_DESC= Support Advanced Vector Extensions (AVX) Link Here
55
AVX2_DESC=		Support Advanced Vector Extensions 2 (AVX2)
52
AVX2_DESC=		Support Advanced Vector Extensions 2 (AVX2)
56
POWER6_DESC=		Optimize for POWER6, instead of the default PPC970
53
POWER6_DESC=		Optimize for POWER6, instead of the default PPC970
57
54
55
MAKE_ENV+=	${MAKE_ENV_${ARCH}}
56
MAKE_ENV_powerpc64=	TARGET=POWER7
57
58
.include <bsd.port.options.mk>
58
.include <bsd.port.options.mk>
59
59
60
.if ${ARCH} == powerpc64
60
.if ${ARCH} == powerpc64
Lines 91-96 BUILDFLAGS+= DYNAMIC_ARCH=1 Link Here
91
BUILDFLAGS+=	INTERFACE64=1
91
BUILDFLAGS+=	INTERFACE64=1
92
.endif
92
.endif
93
93
94
.if ! ${PORT_OPTIONS:MAVX}
95
BUILDFLAGS+=	NO_AVX=1
96
.endif
97
98
.if ! ${PORT_OPTIONS:MAVX2}
99
BUILDFLAGS+=	NO_AVX2=1
100
.endif
101
94
.if ${PORT_OPTIONS:MOPENMP}
102
.if ${PORT_OPTIONS:MOPENMP}
95
USES+=		compiler:openmp
103
USES+=		compiler:openmp
96
BUILDFLAGS_THREAD+=	USE_OPENMP=1
104
BUILDFLAGS_THREAD+=	USE_OPENMP=1
Lines 98-109 BUILDFLAGS_THREAD+= USE_OPENMP=1 Link Here
98
USES+=		compiler:c11
106
USES+=		compiler:c11
99
.endif
107
.endif
100
108
101
.if ! ${PORT_OPTIONS:MAVX}
109
.include <bsd.port.pre.mk>
102
BUILDFLAGS+=	NO_AVX=1
103
.endif
104
110
105
.if ! ${PORT_OPTIONS:MAVX2}
111
.if ${PORT_OPTIONS:MOPENMP}
106
BUILDFLAGS+=	NO_AVX2=1
112
.if ${CHOSEN_COMPILER_TYPE} == gcc
113
USE_GCC=	yes
114
.endif
107
.endif
115
.endif
108
116
109
post-extract:
117
post-extract:
Lines 112-148 post-extract: Link Here
112
	${MKDIR} ${WRKDIR}/lib
120
	${MKDIR} ${WRKDIR}/lib
113
121
114
post-patch:
122
post-patch:
115
	${REINPLACE_CMD} -e "s+%%FIND%%+${FIND}+" \
116
	-e "s+%%XARGS%%+${XARGS}+" \
117
	-e "s+%%REINPLACE_CMD%%+${REINPLACE_CMD}+" \
118
		${WRKSRC}/Makefile
119
	${REINPLACE_CMD} -e "s+%%FC%%+${FC}+" -e "s+%%CC%%+${CC}+" \
120
		${WRKSRC}/Makefile.rule
121
	${REINPLACE_CMD} -e "s+(ARCH)+(ARCH_)+" \
122
		${WRKSRC}/Makefile.rule \
123
		${WRKSRC}/Makefile.tail \
124
		${WRKSRC}/driver/level3/Makefile \
125
		${WRKSRC}/driver/others/Makefile \
126
		${WRKSRC}/exports/Makefile \
127
		${WRKSRC}/interface/Makefile \
128
		${WRKSRC}/kernel/Makefile \
129
		${WRKSRC}/kernel/Makefile.L3 \
130
		${WRKSRC}/lapack/laswp/Makefile \
131
		${WRKSRC}/lapack-netlib/SRC/Makefile \
132
		${WRKSRC}/lapack-netlib/SRC/VARIANTS/Makefile \
133
		${WRKSRC}/lapack-netlib/TESTING/MATGEN/Makefile \
134
		${WRKSRC}/lapack-netlib/LAPACKE/src/Makefile \
135
		${WRKSRC}/lapack-netlib/LAPACKE/utils/Makefile \
136
		${WRKSRC}/reference/Makefile
137
	${REINPLACE_CMD} -e "s+(ARCH)+(ARCH_)+" \
138
	-e 's+%%LDFLAGS%%+${LDFLAGS}+' \
139
	-e 's+%%LOCALBASE%%+${LOCALBASE}+' \
140
	-e 's+%%FIND%%+${FIND}+' \
141
	-e 's+%%XARGS%%+${XARGS}+' \
142
	-e 's+%%REINPLACE_CMD%%+${REINPLACE_CMD}+' \
143
	-e 's+$${CROSS_SUFFIX}+${LOCALBASE}/bin/+' \
144
	-e '/Clang.*OpenMP/g' \
145
		${WRKSRC}/Makefile.system
146
	${REINPLACE_CMD} \
123
	${REINPLACE_CMD} \
147
	-e 's/defined(linux)/(defined(linux) || defined(__FreeBSD__))/g' \
124
	-e 's/defined(linux)/(defined(linux) || defined(__FreeBSD__))/g' \
148
	-e 's/ifdef linux/if defined(linux) || defined(__FreeBSD__)/g' \
125
	-e 's/ifdef linux/if defined(linux) || defined(__FreeBSD__)/g' \
Lines 153-168 post-patch-OPENMP-on: Link Here
153
		${WRKSRC}/test/Makefile \
130
		${WRKSRC}/test/Makefile \
154
		${WRKSRC}/ctest/Makefile
131
		${WRKSRC}/ctest/Makefile
155
132
156
do-build:
133
post-install:
157
	cd ${WRKSRC} ; ${SETENV} ${BUILDFLAGS} NUM_THREADS=1 USE_THREAD=0 \
134
	${MV} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}_*-r${PORTVERSION}.a ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.a
158
	${MAKE_CMD} ${MAKE_ARGS}
135
	${MV} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}_*-r${PORTVERSION}.so ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.${OPENBLAS_SVER}
159
	${CP} ${WRKSRC}/libopenblas-${OPENBLAS_SUFX}.a ${WRKDIR}/lib/libopenblas.a
136
	${RM} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so
160
	${CP} ${WRKSRC}/libopenblas-${OPENBLAS_SUFX}.so ${WRKDIR}/lib/libopenblas.so.${OPENBLAS_SVER}
137
	${LN} -sf lib${PORTNAME}.so.${OPENBLAS_SVER} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so
161
	cd ${WRKSRC} ; ${MAKE_CMD} ${MAKE_ARGS} clean
162
	cd ${WRKSRC} ; ${SETENV} ${BUILDFLAGS} ${BUILDFLAGS_THREAD} \
163
	${MAKE_CMD} ${MAKE_ARGS}
164
	${CP} ${WRKSRC}/libopenblasp-${OPENBLAS_SUFX}.a ${WRKDIR}/lib/libopenblasp.a
165
	${CP} ${WRKSRC}/libopenblasp-${OPENBLAS_SUFX}.so ${WRKDIR}/lib/libopenblasp.so.${OPENBLAS_SVER}
166
138
167
BENCHMARK_MAXTHREADS?=	${MAXTHREADS}
139
BENCHMARK_MAXTHREADS?=	${MAXTHREADS}
168
.if ${PORT_OPTIONS:MOPENMP}
140
.if ${PORT_OPTIONS:MOPENMP}
Lines 177-187 benchmark: build Link Here
177
	cd ${WRKSRC}/benchmark ; ${SETENV} ${BUILDFLAGS} NUM_THREADS=${MAXTHREADS} \
149
	cd ${WRKSRC}/benchmark ; ${SETENV} ${BUILDFLAGS} NUM_THREADS=${MAXTHREADS} \
178
	USE_THREAD=1 ${BENCHMARK_THREADS_FLAG} ${MAKE_CMD} ${MAKE_ARGS}
150
	USE_THREAD=1 ${BENCHMARK_THREADS_FLAG} ${MAKE_CMD} ${MAKE_ARGS}
179
151
180
do-install:
152
.include <bsd.port.post.mk>
181
.for L in ${OPENBLAS_LIBS}
182
	${INSTALL_DATA} ${WRKDIR}/lib/${L}.a ${STAGEDIR}${PREFIX}/lib
183
	${INSTALL_LIB} ${WRKDIR}/lib/${L}.so.${OPENBLAS_SVER} ${STAGEDIR}${PREFIX}/lib
184
	${LN} -sf ${L}.so.${OPENBLAS_SVER} ${STAGEDIR}${PREFIX}/lib/${L}.so
185
.endfor
186
187
.include <bsd.port.mk>
(-)math/openblas/distinfo (-3 / +3 lines)
Lines 1-7 Link Here
1
TIMESTAMP = 1503123719
1
TIMESTAMP = 1571670934
2
SHA256 (openblas/large.tgz) = f328d88b7fa97722f271d7d0cfea1c220e0f8e5ed5ff01d8ef1eb51d6f4243a1
2
SHA256 (openblas/large.tgz) = f328d88b7fa97722f271d7d0cfea1c220e0f8e5ed5ff01d8ef1eb51d6f4243a1
3
SIZE (openblas/large.tgz) = 2595
3
SIZE (openblas/large.tgz) = 2595
4
SHA256 (openblas/timing.tgz) = 999c65f8ea8bd4eac7f1c7f3463d4946917afd20a997807300fe35d70122f3af
4
SHA256 (openblas/timing.tgz) = 999c65f8ea8bd4eac7f1c7f3463d4946917afd20a997807300fe35d70122f3af
5
SIZE (openblas/timing.tgz) = 1059485
5
SIZE (openblas/timing.tgz) = 1059485
6
SHA256 (openblas/xianyi-OpenBLAS-v0.2.20_GH0.tar.gz) = 5ef38b15d9c652985774869efd548b8e3e972e1e99475c673b25537ed7bcf394
6
SHA256 (openblas/xianyi-OpenBLAS-v0.3.7_GH0.tar.gz) = bde136122cef3dd6efe2de1c6f65c10955bbb0cc01a520c2342f5287c28f9379
7
SIZE (openblas/xianyi-OpenBLAS-v0.2.20_GH0.tar.gz) = 11637301
7
SIZE (openblas/xianyi-OpenBLAS-v0.3.7_GH0.tar.gz) = 11986592
(-)math/openblas/files/patch-Makefile (-11 lines)
Removed Link Here
1
--- Makefile.orig	2015-10-27 20:44:50 UTC
2
+++ Makefile
3
@@ -238,7 +238,7 @@ ifndef NOFORTRAN
4
 	-@echo "LOADOPTS    = $(FFLAGS) $(EXTRALIB)" >> $(NETLIB_LAPACK_DIR)/make.inc
5
 	-@echo "CC          = $(CC)" >> $(NETLIB_LAPACK_DIR)/make.inc
6
 	-@echo "override CFLAGS      = $(LAPACK_CFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
7
-	-@echo "ARCH        = $(AR)" >> $(NETLIB_LAPACK_DIR)/make.inc
8
+	-@echo "ARCH_       = $(AR)" >> $(NETLIB_LAPACK_DIR)/make.inc
9
 	-@echo "ARCHFLAGS   = -ru" >> $(NETLIB_LAPACK_DIR)/make.inc
10
 	-@echo "RANLIB      = $(RANLIB)" >> $(NETLIB_LAPACK_DIR)/make.inc
11
 	-@echo "LAPACKLIB   = ../$(LIBNAME)" >> $(NETLIB_LAPACK_DIR)/make.inc
(-)math/openblas/files/patch-Makefile.rule (-15 lines)
Removed Link Here
1
--- Makefile.rule.orig	2015-10-27 20:44:50 UTC
2
+++ Makefile.rule
3
@@ -19,10 +19,10 @@ VERSION = 0.2.15
4
 
5
 # C compiler including binary type(32bit / 64bit). Default is gcc.
6
 # Don't use Intel Compiler or PGI, it won't generate right codes as I expect.
7
-# CC = gcc
8
+CC = %%CC%%
9
 
10
 # Fortran compiler. Default is g77.
11
-# FC = gfortran
12
+FC = %%FC%%
13
 
14
 # Even you can specify cross compiler. Meanwhile, please set HOSTCC.
15
 
(-)math/openblas/files/patch-Makefile.system (-62 lines)
Removed Link Here
1
--- Makefile.system.orig	2015-10-27 20:44:50 UTC
2
+++ Makefile.system
3
@@ -218,6 +218,7 @@ MD5SUM = md5 -r
4
 endif
5
 
6
 ifeq ($(OSNAME), FreeBSD)
7
+EXTRALIB	+= -lm %%LDFLAGS%%
8
 MD5SUM = md5 -r
9
 endif
10
 
11
@@ -889,9 +890,17 @@ SYMBOLSUFFIX =
12
 endif
13
 
14
 ifndef LIBNAMESUFFIX
15
+ifndef SMP
16
 LIBPREFIX = lib$(SYMBOLPREFIX)openblas$(SYMBOLSUFFIX)
17
 else
18
+LIBPREFIX = lib$(SYMBOLPREFIX)openblasp$(SYMBOLSUFFIX)
19
+endif
20
+else
21
+ifndef SMP
22
 LIBPREFIX = lib$(SYMBOLPREFIX)openblas$(SYMBOLSUFFIX)_$(LIBNAMESUFFIX)
23
+else
24
+LIBPREFIX = lib$(SYMBOLPREFIX)openblasp$(SYMBOLSUFFIX)_$(LIBNAMESUFFIX)
25
+endif
26
 endif
27
 
28
 KERNELDIR	= $(TOPDIR)/kernel/$(ARCH)
29
@@ -1020,24 +1029,8 @@ ifndef LIBSUFFIX
30
 LIBSUFFIX = a
31
 endif
32
 
33
-ifneq ($(DYNAMIC_ARCH), 1)
34
-ifndef SMP
35
-LIBNAME		= $(LIBPREFIX)_$(LIBCORE)$(REVISION).$(LIBSUFFIX)
36
-LIBNAME_P	= $(LIBPREFIX)_$(LIBCORE)$(REVISION)_p.$(LIBSUFFIX)
37
-else
38
-LIBNAME		= $(LIBPREFIX)_$(LIBCORE)p$(REVISION).$(LIBSUFFIX)
39
-LIBNAME_P	= $(LIBPREFIX)_$(LIBCORE)p$(REVISION)_p.$(LIBSUFFIX)
40
-endif
41
-else
42
-ifndef SMP
43
 LIBNAME		= $(LIBPREFIX)$(REVISION).$(LIBSUFFIX)
44
 LIBNAME_P	= $(LIBPREFIX)$(REVISION)_p.$(LIBSUFFIX)
45
-else
46
-LIBNAME		= $(LIBPREFIX)p$(REVISION).$(LIBSUFFIX)
47
-LIBNAME_P	= $(LIBPREFIX)p$(REVISION)_p.$(LIBSUFFIX)
48
-endif
49
-endif
50
-
51
 
52
 LIBDLLNAME   = $(LIBPREFIX).dll
53
 LIBSONAME    = $(LIBNAME:.$(LIBSUFFIX)=.so)
54
@@ -1067,7 +1060,7 @@ LIB_COMPONENTS = CBLAS
55
 endif
56
 
57
 export OSNAME
58
-export ARCH
59
+export ARCH_
60
 export CORE
61
 export LIBCORE
62
 export PGCPATH
(-)math/openblas/files/patch-c_check (-2 / +2 lines)
Lines 1-6 Link Here
1
--- c_check.orig	2015-10-27 20:44:50 UTC
1
--- c_check.orig	2019-04-29 17:22:19 UTC
2
+++ c_check
2
+++ c_check
3
@@ -235,7 +235,7 @@ open(CONFFILE, "> $config"  ) || die "Ca
3
@@ -320,7 +320,7 @@ open(CONFFILE, "> $config"  ) || die "Can't create $co
4
 # print $data, "\n";
4
 # print $data, "\n";
5
 
5
 
6
 print MAKEFILE "OSNAME=$os\n";
6
 print MAKEFILE "OSNAME=$os\n";
(-)math/openblas/files/patch-common__arm.h (-2 / +2 lines)
Lines 1-6 Link Here
1
--- common_arm.h.orig	2016-09-01 03:58:42 UTC
1
--- common_arm.h.orig	2018-08-30 22:07:48 UTC
2
+++ common_arm.h
2
+++ common_arm.h
3
@@ -93,6 +93,17 @@ static inline int blas_quickdivide(blasint x, blasint
3
@@ -93,6 +93,17 @@ static inline int blas_quickdivide(blasint x, blasint 
4
 
4
 
5
 #endif
5
 #endif
6
 
6
 
(-)math/openblas/files/patch-common__power.h (-38 lines)
Removed Link Here
1
--- common_power.h.orig	2017-07-24 04:03:35 UTC
2
+++ common_power.h
3
@@ -241,7 +241,7 @@ static inline int blas_quickdivide(blasint x, blasint 
4
 #define HAVE_PREFETCH
5
 #endif
6
 
7
-#if defined(POWER3) || defined(POWER6) || defined(PPCG4) || defined(CELL) || defined(POWER8)
8
+#if defined(POWER3) || defined(POWER6) || defined(PPCG4) || defined(CELL) || defined(POWER8) || defined(PPC970)
9
 #define DCBT_ARG	0
10
 #else
11
 #define DCBT_ARG	8
12
@@ -499,7 +499,7 @@ static inline int blas_quickdivide(blasint x, blasint 
13
 
14
 #if defined(ASSEMBLER) && !defined(NEEDPARAM)
15
 
16
-#ifdef OS_LINUX
17
+#if defined(OS_LINUX) || defined(OS_FREEBSD)
18
 #ifndef __64BIT__
19
 #define PROLOGUE \
20
 	.section .text;\
21
@@ -774,7 +774,7 @@ Lmcount$lazy_ptr:
22
 
23
 #define HALT		mfspr	r0, 1023
24
 
25
-#ifdef OS_LINUX
26
+#if defined(OS_LINUX) || defined(OS_FREEBSD)
27
 #if defined(PPC440) || defined(PPC440FP2)
28
 #undef  MAX_CPU_NUMBER
29
 #define MAX_CPU_NUMBER 1
30
@@ -819,7 +819,7 @@ Lmcount$lazy_ptr:
31
 #define MAP_ANONYMOUS MAP_ANON
32
 #endif
33
 
34
-#ifdef OS_LINUX
35
+#if defined(OS_LINUX) || defined(OS_FREEBSD)
36
 #ifndef __64BIT__
37
 #define FRAMESLOT(X) (((X) * 4) + 8)
38
 #else
(-)math/openblas/files/patch-cpuid__arm64.c (-2 / +2 lines)
Lines 1-6 Link Here
1
--- cpuid_arm64.c.orig	2016-09-01 03:58:42 UTC
1
--- cpuid_arm64.c.orig	2019-04-29 17:22:19 UTC
2
+++ cpuid_arm64.c
2
+++ cpuid_arm64.c
3
@@ -132,6 +132,8 @@ int detect(void)
3
@@ -180,6 +180,8 @@ int detect(void)
4
 
4
 
5
 
5
 
6
 	}
6
 	}
(-)math/openblas/files/patch-cpuid_ia64.c (-12 lines)
Removed Link Here
1
--- cpuid_ia64.c.orig	2015-10-27 20:44:50 UTC
2
+++ cpuid_ia64.c
3
@@ -38,7 +38,9 @@
4
 
5
 #include <stdio.h>
6
 #include <string.h>
7
+#ifdef linux
8
 #include <sys/sysinfo.h>
9
+#endif
10
 #include "cpuid.h"
11
 
12
 #ifdef __ECC
(-)math/openblas/files/patch-cpuid_sparc.c (-10 lines)
Removed Link Here
1
--- cpuid_sparc.c.orig	2015-10-27 20:44:50 UTC
2
+++ cpuid_sparc.c
3
@@ -49,6 +49,7 @@ void get_subdirname(void){
4
 }
5
 
6
 void get_cpuconfig(void){
7
+  printf("#define SPARC\n");
8
   printf("#define V9\n");
9
   printf("#define DTB_DEFAULT_ENTRIES 32\n");
10
 }
(-)math/openblas/files/patch-cpuid_x86.c (-18 lines)
Removed Link Here
1
--- cpuid_x86.c.orig	2017-07-24 04:03:35 UTC
2
+++ cpuid_x86.c
3
@@ -1329,6 +1329,7 @@ int get_cpuname(void){
4
       case 8:
5
 	switch (model) {
6
 	case 1:
7
+	case 8:
8
 	  // AMD Ryzen
9
 	  if(support_avx())
10
 #ifndef NO_AVX2
11
@@ -1865,6 +1866,7 @@ int get_coretype(void){
12
       } else if (exfamily == 8) {
13
 	switch (model) {
14
 	case 1:
15
+	case 8:
16
 	  // AMD Ryzen
17
 	  if(support_avx())
18
 #ifndef NO_AVX2
(-)math/openblas/files/patch-driver_others_memory.c (-13 lines)
Removed Link Here
1
Passing a priority level to constructor/destructor only works on GCC >= 4.3.0;
2
improve the upstream check so that the build works with base GCC.
3
--- driver/others/memory.c.orig	2016-04-12 19:29:19 UTC
4
+++ driver/others/memory.c
5
@@ -144,7 +144,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF
6
 #if defined(_MSC_VER) && !defined(__clang__)
7
 #define CONSTRUCTOR __cdecl
8
 #define DESTRUCTOR __cdecl
9
-#elif (defined(OS_DARWIN) || defined(OS_SUNOS)) && defined(C_GCC)
10
+#elif (defined(OS_DARWIN) || defined(OS_SUNOS)) || (defined(C_GCC) && ((__GNUC__ == 4) && (__GNUC_MINOR__ < 3)))
11
 #define CONSTRUCTOR	__attribute__ ((constructor))
12
 #define DESTRUCTOR	__attribute__ ((destructor))
13
 #else
(-)math/openblas/files/patch-exports+Makefile (-18 lines)
Removed Link Here
1
--- exports/Makefile.orig	2015-10-27 20:44:50 UTC
2
+++ exports/Makefile
3
@@ -140,6 +140,7 @@ endif
4
 #http://stackoverflow.com/questions/7656425/makefile-ifeq-logical-or
5
 ifeq ($(OSNAME), $(filter $(OSNAME),FreeBSD NetBSD))
6
 
7
+EXTRALIB += -lgfortran
8
 so : ../$(LIBSONAME)
9
 
10
 ifeq (, $(SYMBOLPREFIX)$(SYMBOLSUFFIX))
11
@@ -151,6 +152,7 @@ else
12
 endif
13
 	$(CC) $(CFLAGS) $(LDFLAGS)  -shared -o ../$(LIBSONAME) \
14
 	-Wl,--whole-archive $< -Wl,--no-whole-archive \
15
+	-Wl,-soname,$(LIBPREFIX).so.$(MAJOR_VERSION) \
16
 	$(FEXTRALIB) $(EXTRALIB)
17
 	$(CC) $(CFLAGS) $(LDFLAGS) -w -o linktest linktest.c ../$(LIBSONAME) $(FEXTRALIB) && echo OK.
18
 	rm -f linktest
(-)math/openblas/files/patch-f_check (-3 / +3 lines)
Lines 1-6 Link Here
1
--- f_check.orig	2015-10-27 20:44:50 UTC
1
--- f_check.orig	2018-12-02 22:41:17 UTC
2
+++ f_check
2
+++ f_check
3
@@ -261,7 +261,7 @@ if ($link ne "") {
3
@@ -288,7 +288,7 @@ if ($link ne "") {
4
 
4
 
5
     foreach $flags (@flags) {
5
     foreach $flags (@flags) {
6
 	if (
6
 	if (
Lines 9-15 Link Here
9
 	    && ($flags !~ /^-LIST:/)
9
 	    && ($flags !~ /^-LIST:/)
10
 	    && ($flags !~ /^-LANG:/)
10
 	    && ($flags !~ /^-LANG:/)
11
 	    ) {
11
 	    ) {
12
@@ -292,7 +292,7 @@ if ($link ne "") {
12
@@ -317,7 +317,7 @@ if ($link ne "") {
13
 	}
13
 	}
14
 
14
 
15
 	if (
15
 	if (
(-)math/openblas/files/patch-interface__ztrmv.c (-2 / +2 lines)
Lines 1-6 Link Here
1
--- interface/ztrmv.c.orig	2016-09-01 03:58:42 UTC
1
--- interface/ztrmv.c.orig	2019-04-29 17:22:19 UTC
2
+++ interface/ztrmv.c
2
+++ interface/ztrmv.c
3
@@ -242,7 +242,7 @@ void CNAME(enum CBLAS_ORDER order, enum 
3
@@ -245,7 +245,7 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Upl
4
   else
4
   else
5
 #endif
5
 #endif
6
   {
6
   {
(-)math/openblas/files/patch-param.h (-11 lines)
Removed Link Here
1
--- param.h.orig	2019-06-28 14:19:50 UTC
2
+++ param.h
3
@@ -1877,7 +1877,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILI
4
 #define ZGEMM_DEFAULT_UNROLL_M 2
5
 #define ZGEMM_DEFAULT_UNROLL_N 2
6
 
7
-#ifdef OS_LINUX
8
+#if defined(OS_LINUX) || defined(OS_FREEBSD)
9
 #if L2_SIZE == 1024976
10
 #define SGEMM_DEFAULT_P 320
11
 #define DGEMM_DEFAULT_P 256
(-)math/openblas/pkg-plist (+13 lines)
Added Link Here
1
include/cblas.h
2
include/f77blas.h
3
include/lapacke.h
4
include/lapacke_config.h
5
include/lapacke_mangling.h
6
include/lapacke_utils.h
7
include/openblas_config.h
8
lib/cmake/openblas/OpenBLASConfig.cmake
9
lib/cmake/openblas/OpenBLASConfigVersion.cmake
10
lib/libopenblas.a
11
lib/libopenblas.so
12
lib/libopenblas.so.0
13
libdata/pkgconfig/openblas.pc

Return to bug 231371