Skip to content

Commit

Permalink
adding easyconfigs: MDSplus-7.132.0-GCCcore-13.2.0.eb
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonPinches committed Jan 2, 2024
1 parent d0e5856 commit 00290f3
Show file tree
Hide file tree
Showing 2 changed files with 316 additions and 0 deletions.
77 changes: 77 additions & 0 deletions easybuild/easyconfigs/m/MDSplus/MDSplus-7.132.0-GCCcore-13.2.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
easyblock = 'ConfigureMake'

name = 'MDSplus'
version = '7.132.0'

homepage = 'http://mdsplus.org/'
description = """MDSplus is a set of software tools for data acquisition
and storage and a methodology for management of complex scientific data."""

toolchain = {'name': 'GCCcore', 'version': '13.2.0'}
toolchainopts = {'pic': True}

sources = [{
'filename': SOURCELOWER_TAR_GZ,
'git_config': {
'url': 'https://github.com/' + name,
'repo_name': '%(namelower)s',
'commit': 'stable_release-' + version.replace('.', '-'),
'recursive': True,
},
}]
patches = ['%(namelower)s-%(version)s_paths.patch']
checksums = [
{'mdsplus-7.132.0.tar.gz': '130b584c426e09167e042f2da829c03f59c57e9b352844bb4ef0880ccf93c8a7'},
{'mdsplus-7.132.0_paths.patch': '51c9a91f710fdc16b50ea7a4e5f08e7f624e3880c80670ce4956dbff6206a004'},
]

builddependencies = [
('binutils', '2.40'),
('Autotools', '20220317'),
('Bison', '3.8.2'),
('flex', '2.6.4'),
('gperf', '3.1'),
]

dependencies = [
('libxml2', '2.11.5'),
('zlib', '1.2.13'),
('ncurses', '6.4'),
('libreadline', '8.2'),
('Java', '17', '', SYSTEM),
]

preconfigopts = 'find . -type f -regex .*Makefile.* -maxdepth 12 -exec '
preconfigopts += 'sed -i "s/JAVASOURCE = 6/JAVASOURCE = 8/g" {} + && '
preconfigopts += 'export CFLAGS="$CFLAGS -I$EBROOTLIBXML2/include/libxml2 -std=c++14" && '
preconfigopts += 'export FCFLAGS="$FCFLAGS -std=legacy -fallow-invalid-boz" && '
preconfigopts += 'cd %(builddir)s/mdsplus && ./bootstrap && '

configopts = '--with-jdk=$JAVA_HOME --enable-java '
configopts += '--disable-doxygen-doc --disable-valgrind '
# hardcode version via configure script (git is unavailable)
configopts += 'RELEASE_VERSION=%(version)s BRANCH=stable '

parallel = 1

modextravars = {
'MDSPLUS_DIR': '%(installdir)s',
'MDS_PATH': '%(installdir)s/tdi',
}

modextrapaths = {
'CLASSPATH': 'java/classes/*',
'IDL_PATH': 'idl',
}

sanity_check_paths = {
'files': [
['lib/libMdsLib.%s' % x for x in ['a', '%s' % SHLIB_EXT]],
['lib/libMdsLib_client.%s' % x for x in ['a', '%s' % SHLIB_EXT]],
['include/mdslib.h', 'include/mdsobjects.h'],
['bin/jTraverser', 'bin/jScope', 'bin/jServer', 'lib/libJavaMds.%s' % SHLIB_EXT]
],
'dirs': ['bin', 'etc', 'include', 'java/classes', 'lib', 'tdi'],
}

moduleclass = 'data'
239 changes: 239 additions & 0 deletions easybuild/easyconfigs/m/MDSplus/mdsplus-7.132.0_paths.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
diff -Nru mdsplus-java-7.131.6-orig/mdsplus/java/jdispatcher/jDispatcherIp.template mdsplus-java-7.131.6/mdsplus/java/jdispatcher/jDispatcherIp.template
--- mdsplus-java-7.131.6-orig/mdsplus/java/jdispatcher/jDispatcherIp.template 2022-04-07 15:50:24.000000000 +0200
+++ mdsplus-java-7.131.6/mdsplus/java/jdispatcher/jDispatcherIp.template 2022-09-07 19:19:44.033416063 +0200
@@ -10,11 +10,11 @@
fi
fi
exec env \
-LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MDSPLUS_DIR/${lib} \
-SHLIB_PATH=$SHLIB_PATH:$MDSPLUS_DIR/${lib} \
-DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$MDSPLUS_DIR/${lib} \
+LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$EBROOTMDSPLUSMINJAVA/${lib}:$EBROOTMDSPLUS/${lib} \
+SHLIB_PATH=$SHLIB_PATH:$EBROOTMDSPLUSMINJAVA/${lib}:$EBROOTMDSPLUS/${lib} \
+DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$EBROOTMDSPLUSMINJAVA/${lib}:$EBROOTMDSPLUS/${lib} \
CLASSPATH=\
-$MDSPLUS_DIR/java/classes/jDispatcher.jar:\
-$MDSPLUS_DIR/java/classes/jScope.jar:\
-$MDSPLUS_DIR/java/classes/mdsobjects.jar \
+$EBROOTMDSPLUSMINJAVA/java/classes/jDispatcher.jar:\
+$EBROOTMDSPLUSMINJAVA/java/classes/jScope.jar:\
+$EBROOTMDSPLUSMINJAVA/java/classes/mdsobjects.jar \
java mds.jdispatcher.jDispatcherIp "$@"
diff -Nru mdsplus-java-7.131.6-orig/mdsplus/java/jdispatcher/jDispatchMonitor.template mdsplus-java-7.131.6/mdsplus/java/jdispatcher/jDispatchMonitor.template
--- mdsplus-java-7.131.6-orig/mdsplus/java/jdispatcher/jDispatchMonitor.template 2022-04-07 15:50:24.000000000 +0200
+++ mdsplus-java-7.131.6/mdsplus/java/jdispatcher/jDispatchMonitor.template 2022-09-07 19:21:02.690783830 +0200
@@ -10,10 +10,10 @@
fi
fi
exec env \
-LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MDSPLUS_DIR/${lib} \
-SHLIB_PATH=$SHLIB_PATH:$MDSPLUS_DIR/${lib} \
-DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$MDSPLUS_DIR/${lib} \
+LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$EBROOTMDSPLUSMINJAVA/${lib}:$EBROOTMDSPLUS/${lib} \
+SHLIB_PATH=$SHLIB_PATH:$EBROOTMDSPLUSMINJAVA/${lib}:$EBROOTMDSPLUS/${lib} \
+DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$EBROOTMDSPLUSMINJAVA/${lib}:$EBROOTMDSPLUS/${lib} \
CLASSPATH=\
-$MDSPLUS_DIR/java/classes/jDispatcher.jar:\
-$MDSPLUS_DIR/java/classes/mdsobjects.jar \
+$EBROOTMDSPLUSMINJAVA/java/classes/jDispatcher.jar:\
+$EBROOTMDSPLUSMINJAVA/java/classes/mdsobjects.jar \
java mds.jdispatcher.jDispatchMonitor "$@"
diff -Nru mdsplus-java-7.131.6-orig/mdsplus/java/jdispatcher/jServer.template mdsplus-java-7.131.6/mdsplus/java/jdispatcher/jServer.template
--- mdsplus-java-7.131.6-orig/mdsplus/java/jdispatcher/jServer.template 2022-04-07 15:50:24.000000000 +0200
+++ mdsplus-java-7.131.6/mdsplus/java/jdispatcher/jServer.template 2022-09-07 19:22:20.545675735 +0200
@@ -10,10 +10,10 @@
fi
fi
exec env \
-LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MDSPLUS_DIR/${lib} \
-SHLIB_PATH=$SHLIB_PATH:$MDSPLUS_DIR/${lib} \
-DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$MDSPLUS_DIR/${lib} \
+LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$EBROOTMDSPLUSMINJAVA/${lib}:$EBROOTMDSPLUS/${lib} \
+SHLIB_PATH=$SHLIB_PATH:$EBROOTMDSPLUSMINJAVA/${lib}:$EBROOTMDSPLUS/${lib} \
+DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$EBROOTMDSPLUSMINJAVA/${lib}:$EBROOTMDSPLUS/${lib} \
CLASSPATH=\
-$MDSPLUS_DIR/java/classes/jDispatcher.jar:\
-$MDSPLUS_DIR/java/classes/mdsobjects.jar \
+$EBROOTMDSPLUSMINJAVA/java/classes/jDispatcher.jar:\
+$EBROOTMDSPLUSMINJAVA/java/classes/mdsobjects.jar \
java -Xss10M mds.jdispatcher.jServer "$@"
diff -Nru mdsplus-java-7.131.6-orig/mdsplus/java/jdispatcher/src/main/java/mds/jdispatcher/MdsHelper.java mdsplus-java-7.131.6/mdsplus/java/jdispatcher/src/main/java/mds/jdispatcher/MdsHelper.java
--- mdsplus-java-7.131.6-orig/mdsplus/java/jdispatcher/src/main/java/mds/jdispatcher/MdsHelper.java 2022-04-07 15:50:24.000000000 +0200
+++ mdsplus-java-7.131.6/mdsplus/java/jdispatcher/src/main/java/mds/jdispatcher/MdsHelper.java 2022-04-07 18:34:25.982218932 +0200
@@ -114,7 +114,7 @@
{
final Vector<String> paths = new Vector<>();
{// add mdsplus_dir
- final String path = System.getenv("MDSPLUS_DIR");
+ final String path = System.getenv("EBROOTMDSPLUSMINJAVA");
if (path != null)
paths.add(new File(path, "local").getPath());
}
diff -Nru mdsplus-java-7.131.6-orig/mdsplus/java/jscope/jScope.template mdsplus-java-7.131.6/mdsplus/java/jscope/jScope.template
--- mdsplus-java-7.131.6-orig/mdsplus/java/jscope/jScope.template 2022-04-07 15:50:24.000000000 +0200
+++ mdsplus-java-7.131.6/mdsplus/java/jscope/jScope.template 2022-09-08 10:17:42.884774294 +0200
@@ -10,7 +10,7 @@
fi
fi
exec env \
-LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MDSPLUS_DIR/${lib} \
-SHLIB_PATH=$SHLIB_PATH:$MDSPLUS_DIR/${lib} \
+LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$EBROOTMDSPLUSMINJAVA/${lib}:$MDSPLUS_DIR/${lib} \
+SHLIB_PATH=$SHLIB_PATH:$EBROOTMDSPLUSMINJAVA/${lib}:$MDSPLUS_DIR/${lib} \
DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$MDSPLUS_DIR/${lib} \
-java -Xmx2G -Djava.library.path=$MDSPLUS_DIR/${lib} -jar $MDSPLUS_DIR/java/classes/jScope.jar $*
+java -Xmx2G -Djava.library.path=$EBROOTMDSPLUSMINJAVA -jar $EBROOTMDSPLUSMINJAVA/java/classes/jScope.jar $*
diff -Nru mdsplus-java-7.131.6-orig/mdsplus/java/jtraverser/CompileTree.template mdsplus-java-7.131.6/mdsplus/java/jtraverser/CompileTree.template
--- mdsplus-java-7.131.6-orig/mdsplus/java/jtraverser/CompileTree.template 2022-04-07 15:50:24.000000000 +0200
+++ mdsplus-java-7.131.6/mdsplus/java/jtraverser/CompileTree.template 2022-09-07 18:57:17.128387109 +0200
@@ -4,19 +4,19 @@
#
lib=lib
if java -d64 -version > /dev/null 2>&1; then
- if [ -r $MDSPLUS_DIR/lib64 ] ; then
+ if [ -r $EBROOTMDSPLUSMINJAVA/lib64 ] ; then
lib=/lib64
fi
else
- if [ -r $MDSPLUS_DIR/lib32 ]; then
+ if [ -r $EBROOTMDSPLUSMINJAVA/lib32 ]; then
lib=lib32
fi
fi
exec env \
-LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MDSPLUS_DIR/${lib} \
-SHLIB_PATH=$SHLIB_PATH:$MDSPLUS_DIR/${lib} \
-DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$MDSPLUS_DIR/${lib} \
+LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$EBROOTMDSPLUSMINJAVA/${lib}:$EBROOTMDSPLUS/${lib} \
+SHLIB_PATH=$SHLIB_PATH:$EBROOTMDSPLUSMINJAVA/${lib}:$EBROOTMDSPLUS/${lib} \
+DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$EBROOTMDSPLUSMINJAVA/${lib}:$EBROOTMDSPLUS/${lib} \
CLASSPATH=\
-$MDSPLUS_DIR/java/classes/jTraverser.jar:\
-$MDSPLUS_DIR/java/classes/mdsobjects.jar \
-java -Xss5M -Djava.library.path=$MDSPLUS_DIR/${lib} mds.jtraverser.CompileTree $1 $2
+$EBROOTMDSPLUSMINJAVA/java/classes/jTraverser.jar:\
+$EBROOTMDSPLUSMINJAVA/java/classes/mdsobjects.jar \
+java -Xss5M -Djava.library.path=$EBROOTMDSPLUSMINJAVA/${lib} mds.jtraverser.CompileTree $1 $2
diff -Nru mdsplus-java-7.131.6-orig/mdsplus/java/jtraverser/DecompileTree.template mdsplus-java-7.131.6/mdsplus/java/jtraverser/DecompileTree.template
--- mdsplus-java-7.131.6-orig/mdsplus/java/jtraverser/DecompileTree.template 2022-04-07 15:50:24.000000000 +0200
+++ mdsplus-java-7.131.6/mdsplus/java/jtraverser/DecompileTree.template 2022-09-07 18:58:23.561474832 +0200
@@ -4,19 +4,19 @@
#
lib=lib
if java -d64 -version > /dev/null 2>&1; then
- if [ -r $MDSPLUS_DIR/lib64 ] ; then
+ if [ -r $EBROOTMDSPLUSMINJAVA/lib64 ] ; then
lib=/lib64
fi
else
- if [ -r $MDSPLUS_DIR/lib32 ]; then
+ if [ -r $EBROOTMDSPLUSMINJAVA/lib32 ]; then
lib=lib32
fi
fi
exec env \
-LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MDSPLUS_DIR/${lib} \
-SHLIB_PATH=$SHLIB_PATH:$MDSPLUS_DIR/${lib} \
-DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$MDSPLUS_DIR/${lib} \
+LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$EBROOTMDSPLUSMINJAVA/${lib}:$EBROOTMDSPLUS/${lib} \
+SHLIB_PATH=$SHLIB_PATH:$EBROOTMDSPLUSMINJAVA/${lib}$EBROOTMDSPLUS/${lib} \
+DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$EBROOTMDSPLUSMINJAVA/${lib} \
CLASSPATH=\
-$MDSPLUS_DIR/java/classes/jTraverser.jar:\
-$MDSPLUS_DIR/java/classes/mdsobjects.jar \
-java -Xss5M -Djava.library.path=$MDSPLUS_DIR/${lib} mds.jtraverser.DecompileTree $1 $2
+$EBROOTMDSPLUSMINJAVA/java/classes/jTraverser.jar:\
+$EBROOTMDSPLUSMINJAVA/java/classes/mdsobjects.jar \
+java -Xss5M -Djava.library.path=$EBROOTMDSPLUSMINJAVA/${lib} mds.jtraverser.DecompileTree $1 $2
diff -Nru mdsplus-java-7.131.6-orig/mdsplus/java/jtraverser/jTraverser.bat mdsplus-java-7.131.6/mdsplus/java/jtraverser/jTraverser.bat
--- mdsplus-java-7.131.6-orig/mdsplus/java/jtraverser/jTraverser.bat 2022-04-07 15:50:24.000000000 +0200
+++ mdsplus-java-7.131.6/mdsplus/java/jtraverser/jTraverser.bat 2022-04-07 18:35:23.441894000 +0200
@@ -1 +1 @@
-@start "" javaw -Xss5M -jar "%MDSPLUS_DIR%\java\classes\jTraverser.jar" %*
+@start "" javaw -Xss5M -jar "%EBROOTMDSPLUSMINJAVA%\java\classes\jTraverser.jar" %*
diff -Nru mdsplus-java-7.131.6-orig/mdsplus/java/jtraverser/jTraverser.template mdsplus-java-7.131.6/mdsplus/java/jtraverser/jTraverser.template
--- mdsplus-java-7.131.6-orig/mdsplus/java/jtraverser/jTraverser.template 2022-04-07 15:50:24.000000000 +0200
+++ mdsplus-java-7.131.6/mdsplus/java/jtraverser/jTraverser.template 2022-09-07 19:00:05.077859796 +0200
@@ -1,16 +1,16 @@
#!/bin/sh
lib=lib
if java -d64 -version > /dev/null 2>&1; then
- if [ -r $MDSPLUS_DIR/lib64 ] ; then
+ if [ -r $EBROOTMDSPLUSMINJAVA/lib64 ] ; then
lib=/lib64
fi
else
- if [ -r $MDSPLUS_DIR/lib32 ]; then
+ if [ -r $EBROOTMDSPLUSMINJAVA/lib32 ]; then
lib=lib32
fi
fi
exec env \
-LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MDSPLUS_DIR/${lib} \
-SHLIB_PATH=$SHLIB_PATH:$MDSPLUS_DIR/${lib} \
-DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$MDSPLUS_DIR/${lib} \
-java -Xss5M -Djava.library.path=$MDSPLUS_DIR/${lib} -jar $MDSPLUS_DIR/java/classes/jTraverser.jar "$@"
+LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$EBROOTMDSPLUSMINJAVA/${lib}:$EBROOTMDSPLUS/${lib} \
+SHLIB_PATH=$SHLIB_PATH:$EBROOTMDSPLUSMINJAVA/${lib}:$EBROOTMDSPLUS/${lib} \
+DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$EBROOTMDSPLUSMINJAVA/${lib}:$EBROOTMDSPLUS/${lib} \
+java -Xss5M -Djava.library.path=$EBROOTMDSPLUSMINJAVA/${lib} -jar $EBROOTMDSPLUSMINJAVA/java/classes/jTraverser.jar "$@"
diff -Nru mdsplus-java-7.131.6-orig/mdsplus/java/jtraverser/make_jTraverser.bat mdsplus-java-7.131.6/mdsplus/java/jtraverser/make_jTraverser.bat
--- mdsplus-java-7.131.6-orig/mdsplus/java/jtraverser/make_jTraverser.bat 2022-04-07 15:50:24.000000000 +0200
+++ mdsplus-java-7.131.6/mdsplus/java/jtraverser/make_jTraverser.bat 2022-04-07 18:35:23.445326708 +0200
@@ -21,7 +21,7 @@
SET JAR="%JDK_HOME%\bin\jar.exe"
SET JARDIR=%PWD%\classes
SET JCFLAGS=-O -source 6 -g:none
-SET CLASSPATH=-classpath ".;%MDSPLUS_DIR%\java\classes\mdsobjects.jar;%MDSPLUS_DIR%\java\classes\jScope.jar"
+SET CLASSPATH=-classpath ".;%EBROOTMDSPLUSMINJAVA%\java\classes\mdsobjects.jar;%EBROOTMDSPLUSMINJAVA%\java\classes\jScope.jar"

SET OUTFILE=%PWD%\jTraverser.jar
SET SOURCES=*.java^
@@ -62,10 +62,10 @@
CLS
"%JDK_HOME%\bin\java.exe" -cp ^
"%OUTFILE%^
-;%MDSPLUS_DIR%\java\classes\mdsobjects.jar^
-;%MDSPLUS_DIR%\java\classes\jScope.jar^
-;%MDSPLUS_DIR%\java\classes\DeviceBeans.jar^
-;%MDSPLUS_DIR%\java\classes\jDevices.jar^
+;%EBROOTMDSPLUSMINJAVA%\java\classes\mdsobjects.jar^
+;%EBROOTMDSPLUSMINJAVA%\java\classes\jScope.jar^
+;%EBROOTMDSPLUSMINJAVA%\java\classes\DeviceBeans.jar^
+;%EBROOTMDSPLUSMINJAVA%\java\classes\jDevices.jar^
" -Xss5M jTraverser

:end
diff -Nru mdsplus-java-7.131.6-orig/mdsplus/java/jtraverser2/jTraverser2.template mdsplus-java-7.131.6/mdsplus/java/jtraverser2/jTraverser2.template
--- mdsplus-java-7.131.6-orig/mdsplus/java/jtraverser2/jTraverser2.template 2022-04-07 15:50:24.000000000 +0200
+++ mdsplus-java-7.131.6/mdsplus/java/jtraverser2/jTraverser2.template 2022-09-08 10:19:44.701573830 +0200
@@ -1,2 +1,2 @@
#!/bin/sh
-exec java -jar $MDSPLUS_DIR/java/classes/jTraverser2.jar "$@"
+exec java -jar $EBROOTMDSPLUSMINJAVA/java/classes/jTraverser2.jar "$@"
diff -Nru mdsplus-java-7.131.6-orig/mdsplus/java/mdsobjects/src/test/java/MDSplus/MdsConnectionTest.java mdsplus-java-7.131.6/mdsplus/java/mdsobjects/src/test/java/MDSplus/MdsConnectionTest.java
--- mdsplus-java-7.131.6-orig/mdsplus/java/mdsobjects/src/test/java/MDSplus/MdsConnectionTest.java 2022-04-07 15:50:24.000000000 +0200
+++ mdsplus-java-7.131.6/mdsplus/java/mdsobjects/src/test/java/MDSplus/MdsConnectionTest.java 2022-04-07 18:34:03.293033301 +0200
@@ -23,7 +23,7 @@
try
{
new DatagramSocket(port).close();
- java.lang.String hostspath = System.getenv("MDSPLUS_DIR") + "/testing/mdsip.hosts";
+ java.lang.String hostspath = System.getenv("EBROOTMDSPLUSMINJAVA") + "/testing/mdsip.hosts";
if (!new File(hostspath).exists())
{
hostspath = "/etc/mdsip.hosts";
diff -Nru mdsplus-java-7.131.6-orig/mdsplus/Makefile.in mdsplus-java-7.131.6/mdsplus/Makefile.in
--- mdsplus-java-7.131.6-orig/mdsplus/Makefile.in 2022-04-07 15:50:24.000000000 +0200
+++ mdsplus-java-7.131.6/mdsplus/Makefile.in 2022-09-08 13:34:32.010754311 +0200
@@ -42,8 +42,8 @@
D3D_PACKAGE = d3dshr

ifeq "@JAVA_ONLY@" "yes"
-NON_JAR =
-PARTS = $(JAVA_JAR)
+NON_JAR = @JAVA_APS@
+PARTS = $(NON_JAR) $(JAVA_JAR)
else
NON_JAR = \
mdsshr \

0 comments on commit 00290f3

Please sign in to comment.