sci-biology/fsl: Initial fix to fsl 6.0.2
Package-Manager: Portage-2.3.76, Repoman-2.3.16
This commit is contained in:
parent
ed14ef2be5
commit
0cab0d3e3e
@ -1,3 +1,7 @@
|
||||
07 Nov 2019; François Bissey <frp.bissey@gmail.com>
|
||||
+files/fsl-6.0.2-setup.patch, fsl-6.0.2.ebuild:
|
||||
sci-biology/fsl: Initial fix to fsl 6.0.2
|
||||
|
||||
*fsl-6.0.2 (06 Nov 2019)
|
||||
|
||||
06 Nov 2019; <chymera@gentoo.org> +files/99fsl,
|
||||
|
169
sci-biology/fsl/files/fsl-6.0.2-setup.patch
Normal file
169
sci-biology/fsl/files/fsl-6.0.2-setup.patch
Normal file
@ -0,0 +1,169 @@
|
||||
diff --git a/build b/build
|
||||
index 05dac06..d90e407 100755
|
||||
--- a/build
|
||||
+++ b/build
|
||||
@@ -3,7 +3,7 @@
|
||||
if [ $# -ge 1 ] ; then
|
||||
PROJECTS="$@";
|
||||
else
|
||||
- MASTERPROJECTS="CiftiLib-master utils znzlib NewNifti niftiio fslio giftiio miscmaths newimage libhfunc libvis first_lib \
|
||||
+ MASTERPROJECTS="utils znzlib NewNifti niftiio fslio giftiio miscmaths newimage libhfunc libvis first_lib \
|
||||
meshclass fslvtkio misc_tcl basisfield warpfns bint shapeModel MVdisc fslvtkconv fslsurface libmeshutils newmesh \
|
||||
DiscreteOpt FastPDlib MSMRegLib misc_c dpm topup \
|
||||
asl_mfree \
|
||||
@@ -80,8 +80,8 @@ xtract";
|
||||
done
|
||||
fi
|
||||
|
||||
-echo "Building projects - see build.log file for progress..."
|
||||
-./config/common/buildproj $PROJECTS > ./build.log 2>&1
|
||||
+echo "Building projects"
|
||||
+./config/common/buildproj $PROJECTS
|
||||
finalStatus=$?
|
||||
if [ $finalStatus -eq 0 ]; then
|
||||
echo "Build completed successfully.";
|
||||
diff --git a/config/buildSettings.mk b/config/buildSettings.mk
|
||||
index b2e1f15..04532fc 100644
|
||||
--- a/config/buildSettings.mk
|
||||
+++ b/config/buildSettings.mk
|
||||
@@ -18,7 +18,7 @@ MV = /bin/mv
|
||||
CHMOD = /bin/chmod
|
||||
MKDIR = /bin/mkdir
|
||||
INSTALL = install -p
|
||||
-TCLSH = ${FSLDIR}/bin/fsltclsh
|
||||
+TCLSH = tclsh
|
||||
DEPENDFLAGS = -MM
|
||||
MACHDBGFLAGS = -g
|
||||
#####################################################################
|
||||
@@ -124,19 +124,19 @@ endif # if Darwin
|
||||
#####################################################################
|
||||
ifeq ($(SYSTYPE), Linux)
|
||||
############### System Vars #####################################
|
||||
-CC = gcc
|
||||
-CXX = c++
|
||||
-CXX11 = c++
|
||||
+CC = @@GENTOO_CC@@
|
||||
+CXX = @@GENTOO_CXX@@
|
||||
+CXX11 = @@GENTOO_CXX@@
|
||||
CSTATICFLAGS = -static
|
||||
CXXSTATICFLAGS = -static
|
||||
-ARCHFLAGS = -m64
|
||||
-ARCHLDFLAGS = -Wl,-rpath,'$$ORIGIN/../lib'
|
||||
+ARCHFLAGS =
|
||||
+ARCHLDFLAGS =
|
||||
PARALLELFLAGS = -fopenmp
|
||||
-OPTFLAGS = -g -O3 -fexpensive-optimizations ${ARCHFLAGS}
|
||||
+OPTFLAGS =
|
||||
GNU_ANSI_FLAGS = -Wall -ansi -pedantic -Wno-long-long
|
||||
SGI_ANSI_FLAGS = -ansi -fullwarn
|
||||
ANSI_FLAGS = ${GNU_ANSI_FLAGS}
|
||||
-RANLIB = echo
|
||||
+RANLIB = @@GENTOO_RANLIB@@
|
||||
FSLML = ${FSLDIR}/bin/fslml
|
||||
# CUDA development environment
|
||||
CUDAVER := $(or $(CUDAVER),9.1)
|
||||
@@ -148,8 +148,8 @@ INC_CUDA = ${CUDA_INSTALLATION}/include
|
||||
NVCC = ${CUDA_INSTALLATION}/bin/nvcc
|
||||
############### External Libs #####################################
|
||||
# ZLIB library
|
||||
-LIB_ZLIB = /lib64
|
||||
-INC_ZLIB = /usr/include
|
||||
+#LIB_ZLIB = /lib64
|
||||
+#INC_ZLIB = /usr/include
|
||||
# QT library
|
||||
QTDIR = /usr/lib/qt3
|
||||
LIB_QT = ${QTDIR}/lib
|
||||
diff --git a/config/common/buildproj b/config/common/buildproj
|
||||
index 2f0f2b8..48624a1 100755
|
||||
--- a/config/common/buildproj
|
||||
+++ b/config/common/buildproj
|
||||
@@ -11,10 +11,10 @@ if [ X$1 = X-strict ] ; then
|
||||
fi
|
||||
PROJECTS="$@" ; export PROJECTS ;
|
||||
|
||||
-FSLDIR=`pwd`
|
||||
+#FSLDIR=`pwd`
|
||||
FSLDEVDIR=${FSLDIR}
|
||||
FSLCONFDIR=${FSLDIR}/config
|
||||
-FSLMACHTYPE=`${FSLDIR}/etc/fslconf/fslmachtype.sh`
|
||||
+#FSLMACHTYPE=`${FSLDIR}/etc/fslconf/fslmachtype.sh`
|
||||
FSLMASTERBUILD=1
|
||||
export FSLDIR FSLDEVDIR FSLCONFDIR FSLMACHTYPE FSLMASTERBUILD
|
||||
|
||||
@@ -67,7 +67,7 @@ for projname in $PROJECTS; do
|
||||
if [ -x ./fslconfig ] ; then
|
||||
. ./fslconfig ;
|
||||
fi
|
||||
- if ${MAKE} -k ${MAKEOPTIONS} ; then
|
||||
+ if ${MAKE} ${MAKEOPTIONS} ; then
|
||||
if ${MAKE} ${MAKEOPTIONS} install ; then
|
||||
installok=true;
|
||||
# Clean up after ourselves
|
||||
@@ -82,6 +82,7 @@ for projname in $PROJECTS; do
|
||||
if [ $installok = false ] ; then
|
||||
echo " "
|
||||
echo "ERROR::Could not install $projname successfully" ;
|
||||
+ exit 1
|
||||
fi
|
||||
else
|
||||
echo " "
|
||||
@@ -90,6 +91,7 @@ for projname in $PROJECTS; do
|
||||
echo " "
|
||||
echo " "
|
||||
errorprojs="$errorprojs $projname" ; export errorprojs ;
|
||||
+ exit 1
|
||||
fi
|
||||
fi
|
||||
done
|
||||
diff --git a/config/common/vars.mk b/config/common/vars.mk
|
||||
index b027b01..aeeae67 100755
|
||||
--- a/config/common/vars.mk
|
||||
+++ b/config/common/vars.mk
|
||||
@@ -24,15 +24,15 @@ USRINCFLAGS =
|
||||
USRCFLAGS =
|
||||
USRCXXFLAGS =
|
||||
|
||||
-LDFLAGS = ${ARCHLDFLAGS} ${USRLDFLAGS} -L. -L${DEVLIBDIR} -L${LIBDIR}
|
||||
+LDFLAGS = ${ARCHLDFLAGS} ${USRLDFLAGS} -L. -L${DEVLIBDIR} -L${LIBDIR} ${USERLDFLAGS}
|
||||
|
||||
-AccumulatedIncFlags = -I${INC_BOOST} ${USRINCFLAGS} -I. -I${DEVINCDIR} -I${INCDIR}
|
||||
+AccumulatedIncFlags = ${USRINCFLAGS} -I. -I${DEVINCDIR} -I${INCDIR} ${CPPFLAGS}
|
||||
|
||||
CFLAGS = ${ANSI_FLAGS} ${ANSI_CFLAGS} ${DBGFLAGS} ${USEDCSTATICFLAGS} ${USRCFLAGS} ${ARCHFLAGS} ${OPTFLAGS} \
|
||||
- ${AccumulatedIncFlags}
|
||||
+ ${AccumulatedIncFlags} ${USERCFLAGS}
|
||||
|
||||
-CXXFLAGS = ${ANSI_FLAGS} ${ANSI_CXXFLAGS} ${DBGFLAGS} ${USEDCXXSTATICFLAGS} ${USRCXXFLAGS} ${ARCHFLAGS} ${OPTFLAGS} \
|
||||
- ${AccumulatedIncFlags}
|
||||
+CXXFLAGS = ${ANSI_CXXFLAGS} ${DBGFLAGS} ${USEDCXXSTATICFLAGS} ${USRCXXFLAGS} ${ARCHFLAGS} ${OPTFLAGS} \
|
||||
+ ${AccumulatedIncFlags} ${USERCXXFLAGS}
|
||||
|
||||
HFILES = *.h
|
||||
AFILES = *.a
|
||||
diff --git a/extras/build b/extras/build
|
||||
index 59e7a2e..2cead09 100755
|
||||
--- a/extras/build
|
||||
+++ b/extras/build
|
||||
@@ -104,8 +104,8 @@ PROJECTS="${PROJECTS} libpng"
|
||||
if [ ${BUILDICONV} -eq 1 ]; then
|
||||
PROJECTS="${PROJECTS} libiconv"
|
||||
fi
|
||||
-PROJECTS="${PROJECTS} libgd libgdc libprob libcprob newmat cprob newran fftw"
|
||||
-PROJECTS="${PROJECTS} boost libxml2-2.9.2 libxmlpp libsqlite libnlopt ../include/armawrap/dummy_newmat"
|
||||
+PROJECTS="${PROJECTS} libgdc libprob libcprob newmat cprob newran"
|
||||
+PROJECTS="${PROJECTS} ../include/armawrap/dummy_newmat"
|
||||
for projname in $PROJECTS; do
|
||||
if [ -d $FSLESRCDIR/$projname ] ; then
|
||||
buildIt $FSLESRCDIR $projname 1
|
||||
diff --git a/src/mist-clean/Makefile b/src/mist-clean/Makefile
|
||||
index 20402cc..6918bee 100755
|
||||
--- a/src/mist-clean/Makefile
|
||||
+++ b/src/mist-clean/Makefile
|
||||
@@ -52,6 +52,6 @@ installpython:
|
||||
cp -r python/* ${DESTDIR}/python/mist
|
||||
|
||||
clean:
|
||||
- rm -f ${OBJS} mist/mist.o mist/mist
|
||||
+ rm -f ${OBJS} mist/mist.o mist/mist || echo "CLEAN could not locate some files scheduled for deletion."
|
||||
|
||||
.PHONY: all clean installdata
|
@ -34,7 +34,7 @@ S=${WORKDIR}/${PN}
|
||||
UPSTREAM_FSLDIR="/usr/share/fsl"
|
||||
|
||||
PATCHES=(
|
||||
#"${FILESDIR}/${PN}"-5.0.11-setup.patch
|
||||
"${FILESDIR}/${PN}"-6.0.2-setup.patch
|
||||
#"${FILESDIR}/${PN}"-5.0.11-no_xmlpp.patch
|
||||
"${FILESDIR}/${PN}"-5.0.11-niftiio_var_fix.patch
|
||||
"${FILESDIR}/${PN}"-5.0.11-ifstream_use.patch
|
||||
@ -51,7 +51,7 @@ src_prepare(){
|
||||
-e "s:@@GENTOO_RANLIB@@:$(tc-getRANLIB):" \
|
||||
-e "s:@@GENTOO_CC@@:$(tc-getCC):" \
|
||||
-e "s:@@GENTOO_CXX@@:$(tc-getCXX):" \
|
||||
config/generic/systemvars.mk || die
|
||||
config/buildSettings.mk || die
|
||||
|
||||
eprefixify $(grep -rl GENTOO_PORTAGE_EPREFIX src/*) \
|
||||
etc/js/label-div.html
|
||||
|
Loading…
x
Reference in New Issue
Block a user