FreeBSD Bugzilla – Attachment 200235 Details for
Bug 234141
math/taucs: use metis5 and try to fix memory detection
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Port patch
math-taucs.diff (text/plain), 3.17 KB, created by
Pedro F. Giffuni
on 2018-12-18 18:36:47 UTC
(
hide
)
Description:
Port patch
Filename:
MIME Type:
Creator:
Pedro F. Giffuni
Created:
2018-12-18 18:36:47 UTC
Size:
3.17 KB
patch
obsolete
>Index: math/taucs/Makefile >=================================================================== >--- math/taucs/Makefile (revision 487650) >+++ math/taucs/Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= taucs > PORTVERSION= 2.2 >-PORTREVISION= 19 >+PORTREVISION= 20 > CATEGORIES= math > MASTER_SITES= http://www.tau.ac.il/~stoledo/taucs/${PORTVERSION}/ \ > LOCAL/bf >@@ -17,12 +17,13 @@ > LICENSE_FILE= ${FILESDIR}/TAUCS-license.txt > LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept > >-LIB_DEPENDS= libmetis.so:math/metis4 >+LIB_DEPENDS= libmetis.so:math/metis > >-HAS_CONFIGURE= yes > USES= blaslapack fortran tar:tgz > USE_LDCONFIG= yes >+ > NO_WRKSUBDIR= yes >+HAS_CONFIGURE= yes > > OPTIONS_DEFINE= DOCS > >@@ -92,7 +93,7 @@ > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${STAGEDIR}${DOCSDIR} > >-do-test: # XXX: building tests fail >+do-test: # XXX: building tests fail > .for t in ${TESTS} > @${PRINTF} "\n%s\n" "Building test_${t}" > @cd ${WRKSRC}_SHARED ; ${FC} ${FFLAGS} -Llib/FreeBSD -L./ \ >Index: math/taucs/files/patch-src_taucs__memory.c >=================================================================== >--- math/taucs/files/patch-src_taucs__memory.c (nonexistent) >+++ math/taucs/files/patch-src_taucs__memory.c (working copy) >@@ -0,0 +1,47 @@ >+--- src/taucs_memory.c.orig 2003-09-01 06:16:13 UTC >++++ src/taucs_memory.c >+@@ -123,7 +123,6 @@ double taucs_system_memory_size() >+ } >+ #endif >+ >+-#ifdef OSTYPE_darwin >+ #define TAUCS_SYSTEM_MEMORY_SIZE_DEFINED >+ >+ /* This is a BSD4.4 interface, so it should work on other BSD systems */ >+@@ -134,15 +133,15 @@ double taucs_system_memory_size() >+ double taucs_system_memory_size() >+ { >+ int mib[2] = { CTL_HW, HW_PHYSMEM }; >+- int int_retval; >++ unsigned long int_retval; >+ size_t len = sizeof(int); >+ >+ taucs_printf("taucs_system_memory_size: calling sysctl\n"); >+ mib[1] = HW_PAGESIZE; >+ if ( sysctl(mib,2, >+ &int_retval,&len, >+- NULL, 0)) { >+- taucs_printf("taucs_system_memory_size: ERROR, sysctl failed (on darwin)\n"); >++ NULL, 0) < 0) { >++ taucs_printf("taucs_system_memory_size: ERROR, HW_PAGESIZE sysctl failed (on bsd)\n"); >+ return -1.0; >+ } >+ taucs_printf(" sysctl pagesize %d bytes\n",int_retval); >+@@ -150,15 +149,14 @@ double taucs_system_memory_size() >+ mib[1] = HW_PHYSMEM; >+ if ( sysctl(mib,2, >+ &int_retval,&len, >+- NULL, 0)) { >+- taucs_printf("taucs_system_memory_size: ERROR, sysctl failed (on darwin)\n"); >++ NULL, 0) < 0) { >++ taucs_printf("taucs_system_memory_size: ERROR, HW_PHYSMEM sysctl failed (on bsd)\n"); >+ return -1.0; >+ } >+ taucs_printf(" sysctl physmem %d bytes\n",int_retval); >+ >+ return (double) int_retval; >+ } >+-#endif >+ >+ #ifdef OSTYPE_aix >+ #define TAUCS_SYSTEM_MEMORY_SIZE_DEFINED > >Property changes on: math/taucs/files/patch-src_taucs__memory.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+FreeBSD=%H >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 234141
:
200235
|
200236