Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Sep 2020 16:29:23 +0000 (UTC)
From:      Max Brazhnikov <makc@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r550199 - in head/math/scilab: . files
Message-ID:  <202009261629.08QGTNQB032988@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: makc
Date: Sat Sep 26 16:29:23 2020
New Revision: 550199
URL: https://svnweb.freebsd.org/changeset/ports/550199

Log:
  math/scilab: add patch to fix build with matio-1.5.18

Added:
  head/math/scilab/files/patch-modules_matio_src_cpp_GetSparseVariable.cpp   (contents, props changed)
Modified:
  head/math/scilab/Makefile

Modified: head/math/scilab/Makefile
==============================================================================
--- head/math/scilab/Makefile	Sat Sep 26 16:29:10 2020	(r550198)
+++ head/math/scilab/Makefile	Sat Sep 26 16:29:23 2020	(r550199)
@@ -3,7 +3,7 @@
 
 PORTNAME=	scilab
 PORTVERSION=	6.1.0
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	math cad java
 MASTER_SITES=	https://www.scilab.org/download/${PORTVERSION}/
 DISTFILES=	${DISTNAME}-src${EXTRACT_SUFX}

Added: head/math/scilab/files/patch-modules_matio_src_cpp_GetSparseVariable.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/scilab/files/patch-modules_matio_src_cpp_GetSparseVariable.cpp	Sat Sep 26 16:29:23 2020	(r550199)
@@ -0,0 +1,20 @@
+--- modules/matio/src/cpp/GetSparseVariable.cpp.orig	2020-02-25 10:00:03 UTC
++++ modules/matio/src/cpp/GetSparseVariable.cpp
+@@ -65,7 +65,7 @@ matvar_t* GetSparseMatVar(types::Sparse* pSparse, cons
+     int* itemsRow = new int[pSparse->getRows()];
+     pSparse->getNbItemByRow(itemsRow);
+ 
+-    int* colIndexes = (int*)MALLOC(sizeof(int) *  (pSparse->getRows() + 1));
++    mat_uint32_t* colIndexes = (mat_uint32_t*)MALLOC(sizeof(mat_uint32_t) *  (pSparse->getRows() + 1));
+     if (colIndexes == NULL)
+     {
+         FREE(sparseData);
+@@ -82,7 +82,7 @@ matvar_t* GetSparseMatVar(types::Sparse* pSparse, cons
+         colIndexes[K + 1] = colIndexes[K] + itemsRow[K];
+     }
+ 
+-    int* rowIndexes = (int*)MALLOC(sizeof(int) *  nonZeros);
++    mat_uint32_t* rowIndexes = (mat_uint32_t*)MALLOC(sizeof(mat_uint32_t) *  nonZeros);
+     if (rowIndexes == NULL)
+     {
+         FREE(sparseData);



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