diff --git a/LifeSciences/LASTZ-1.04.03/build.sh b/LifeSciences/LASTZ-1.04.03/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..f114dc7dc35614b1088e206897693a7d249aaa7c --- /dev/null +++ b/LifeSciences/LASTZ-1.04.03/build.sh @@ -0,0 +1,52 @@ +#!/bin/bash +if [[ $# -ne 2 ]]; then + echo "The format is as follows:" + echo "bash build.sh buildpath installpath" + echo ":param buildpath: 应用构建绝对路径" + echo ":param installpath: 应用安装绝对路径" + exit 1 +fi + +[[ ! "$1" =~ ^/.* || "$1" = "/" ]] && echo "请输入正确的构建路径" && exit 1 +[[ ! "$2" =~ ^/.* || "$2" = "/" ]] && echo "请输入正确的安装路径" && exit 1 + +create_dir() +{ + local path=$1 + [[ "$path" =~ .*/$ ]] && path=${path%/*} + if [[ ! -d "$path" && ! -f "$path" ]]; then mkdir -p $path; else path=$path`date "+%y%m%d%H%M%S"` && mkdir -p $path; fi + echo $path +} + +buildpath=$(create_dir $1) +installpath=$(create_dir $2) + +yum install -y environment-modules +source /etc/profile +module purge + +set -e +dep_dir="dependency" +bash $dep_dir/bisheng-compiler-2.1.0.sh $buildpath $installpath +module use $installpath/bisheng-compiler-2.1.0 +module load $installpath/bisheng-compiler-2.1.0/bisheng_modulefiles + +bash lastz-1.04.03.sh $buildpath $installpath + +mkdir -p pkg/lastz-1.04.03-hpc && cp -r $installpath/* pkg/lastz-1.04.03-hpc/ +cat>"pkg/lastz-1.04.03-hpc/run.sh"< /dev/null +current_dir=\$(cd "\$(dirname "\${BASH_SOURCE[0]}")" &> /dev/null && pwd) +for d in \$(ls \$current_dir) +do + [[ ! -f "\$current_dir/\$d" ]] && cd \$current_dir/\$d && module use \$(pwd) && module load \$(pwd)/*modulefiles +done + +EOF +cd pkg/ && tar zcvf lastz-1.04.03-hpc.tar.gz lastz-1.04.03-hpc + +rm -rf $buildpath $installpath + diff --git a/LifeSciences/LASTZ-1.04.03/dependency/bisheng-compiler-2.1.0.sh b/LifeSciences/LASTZ-1.04.03/dependency/bisheng-compiler-2.1.0.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9f267c24cff4c3d2b8084cdc19684cfc8b0ec0b --- /dev/null +++ b/LifeSciences/LASTZ-1.04.03/dependency/bisheng-compiler-2.1.0.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +if [[ $# -ne 2 ]]; then + echo "The format is as follows:" + echo "bash bisheng-compiler-2.1.0.sh buildpath installpath" + echo ":param buildpath: 应用构建绝对路径" + echo ":param installpath: 应用安装绝对路径" + exit 1 +fi + +[[ ! "$1" =~ ^/.* || ! -d "$1" || "$1" = "/" ]] && echo "请输入正确的构建路径" && exit 1 +[[ ! "$2" =~ ^/.* || ! -d "$2" || "$2" = "/" ]] && echo "请输入正确的安装路径" && exit 1 + +buildpath=$1 +installpath=$2 +[[ "$buildpath" =~ .*/$ ]] && buildpath=${buildpath%/*} +[[ "$installpath" =~ .*/$ ]] && installpath=${installpath%/*} +[[ "$buildpath" == "$installpath" ]] && echo "构建路径与安装路径需为不同路径" && exit 1 +set -e +yum install -y wget tar environment-modules libatomic + +wget -t 10 -c -P $buildpath https://mirrors.huaweicloud.com/kunpeng/archive/compiler/bisheng_compiler/bisheng-compiler-2.1.0-aarch64-linux.tar.gz +tar xf $buildpath/bisheng-compiler-2.1.0-aarch64-linux.tar.gz -C $buildpath && rm -rf $buildpath/bisheng-compiler-2.1.0-aarch64-linux.tar.gz +mkdir -p $installpath/bisheng-compiler-2.1.0 && cp -r $buildpath/bisheng-compiler-2.1.0-aarch64-linux/* $installpath/bisheng-compiler-2.1.0/ + +cat>"$installpath/bisheng-compiler-2.1.0/bisheng_modulefiles"< + + + + + + Document + + + +
+

+ 2022/08/17 08:37:31

+
+ +

+ 配置信息

+
+
+ 软件安装包存放路径或软件包名称 + /opt/portadv/portadmin/package/lastz-1.04.03 +
+ +
+ 目标操作系统 + openEuler 20.03 SP3 +
+
+ 目标系统内核版本 +

+ 4.19.90 +

+
+ +
+ 评估结果 +

+ + 软件迁移评估成功 +

+
+ +
+
+ +
+

可兼容替换

+

2

+
+ +
+

待验证替换

+

0

+
+ +
+

依赖文件总数

+

2

+
+ +
+ +
+
+ +
+
+ 与架构相关的依赖文件 +
+
+ +
+
+ + + + + + + + + + + + + + +
序号依赖文件名文件类型软件包存放路径待下载软件包名称分析结果处理建议
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 1 + + lastz_D + + 可执行文件 + + /opt/portadv/portadmin/package/lastz-1.04.03/bin/lastz_D + + -- + + 可兼容替换 + + 该文件已兼容鲲鹏平台 +
+ 2 + + lastz + + 可执行文件 + + /opt/portadv/portadmin/package/lastz-1.04.03/bin/lastz +
+
+
+ + +
+
+ + + + \ No newline at end of file diff --git "a/LifeSciences/LASTZ-1.04.03/doc/Devkit\346\212\245\345\221\212/LASTZ-installed-x86.html" "b/LifeSciences/LASTZ-1.04.03/doc/Devkit\346\212\245\345\221\212/LASTZ-installed-x86.html" new file mode 100644 index 0000000000000000000000000000000000000000..8cfa2fce1416959fbd019ca4aafae48b8a47668b --- /dev/null +++ "b/LifeSciences/LASTZ-1.04.03/doc/Devkit\346\212\245\345\221\212/LASTZ-installed-x86.html" @@ -0,0 +1,542 @@ + + + + + + + + Document + + + +
+

+ 2022/08/17 07:29:16

+
+ +

+ 配置信息

+
+
+ 软件安装包存放路径或软件包名称 + /opt/portadv/portadmin/package/lastz-1.04.03.tar.gz +
+ +
+ 目标操作系统 + openEuler 20.03 SP3 +
+
+ 目标系统内核版本 +

+ 4.19.90 +

+
+ +
+ 评估结果 +

+ + 软件迁移评估成功 +

+
+ +
+
+ +
+

可兼容替换

+

0

+
+ +
+

待验证替换

+

2

+
+ +
+

依赖文件总数

+

2

+
+ +
+ +
+
+ +
+
+ 与架构相关的依赖文件 +
+
+ +
+
+ + + + + + + + + + + + + + +
序号依赖文件名文件类型软件包存放路径待下载软件包名称分析结果处理建议
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 1 + + lastz + + 可执行文件 + + /package/lastz-1.04.03.tar.gz/lastz-distrib/bin/lastz + + -- + + 待验证替换 + + 请先在鲲鹏平台上验证。若不兼容,请联系供应方获取鲲鹏兼容版本,或获取源码并编译成鲲鹏兼容版本 +
+ 2 + + lastz_D + + 可执行文件 + + /package/lastz-1.04.03.tar.gz/lastz-distrib/bin/lastz_D +
+
+
+ + +
+
+ + + + \ No newline at end of file diff --git "a/LifeSciences/LASTZ-1.04.03/doc/Devkit\346\212\245\345\221\212/LASTZ.html" "b/LifeSciences/LASTZ-1.04.03/doc/Devkit\346\212\245\345\221\212/LASTZ.html" new file mode 100644 index 0000000000000000000000000000000000000000..df24b09b6c679d195c859faf375f5258f1c56976 --- /dev/null +++ "b/LifeSciences/LASTZ-1.04.03/doc/Devkit\346\212\245\345\221\212/LASTZ.html" @@ -0,0 +1,506 @@ + + + + + + + + Document + + + + + +
+

+ 2022/08/17 08:44:48 +

+
+ +

配置信息

+ +
+
+ 源码文件存放路径 + + /opt/portadv/portadmin/sourcecode/lastz-1.04.03 + +
+
+ 目标操作系统 + + openEuler 20.03 SP3 + +
+
+ 目标系统内核版本 + + 4.19.90 + +
+
+ 编译器版本 + + BiSheng Compiler 2.1.0 + +
+
+ 构建工具 + + make + +
+
+ 编译命令 + + make + +
+
+ 迁移结果 + + + + 源码迁移分析成功:您指定的分析路径/分析包中没有需要迁移的内容 + +
+
+ +
+
+
+

可兼容替换

+

0

+
+
+

待验证替换

+

0

+
+
+

依赖文件总数

+

0

+
+
+
+
+

源文件数

+

0

+
+
+

代码行数

+

0

+
+
+

源码迁移人力

+

0人月

+
+
+

+ 预估标准:1人月迁移工作量 = 500行 C/C++/Fortran/Go/构建文件等源码,或250行汇编代码 +

+
+
+
+ +
+
+ 与架构相关的依赖文件 +
+ +
+ +
+
+ + + + + + + + + + + +
序号依赖文件名文件类型 + 待下载软件包名称 + 分析结果处理建议
+
+
+ + + + + + + + + + + + + + + +
+
+
+ 未发现与架构相关的依赖文件 +
+
+
+
+ + +
+
+ 需要迁移的源码文件 +
+ +
+ +
+
+ + + + + + + + + + + +
序号文件名路径文件类型需修改的代码行
+
+
+ + + + + + + + + + + + + + +
+
+
+ 未发现需要迁移的源码文件 +
+
+
+
+ + +
+
+ 需要迁移的代码行数 +
+ +
+ +
+
+ + + + + + + + + +
文件名行号(起始行,结束行)关键字建议
+
+
+ + + + + + + + + + + + + +
+
+
+ 无数据 +
+
+
+
+ + +
+
+ + + + + + \ No newline at end of file diff --git "a/LifeSciences/LASTZ-1.04.03/doc/Devkit\346\212\245\345\221\212/lastz-2.5.RC1.tar" "b/LifeSciences/LASTZ-1.04.03/doc/Devkit\346\212\245\345\221\212/lastz-2.5.RC1.tar" new file mode 100644 index 0000000000000000000000000000000000000000..e7105bc63ea92ecc53220135f111293e2c89d47a Binary files /dev/null and "b/LifeSciences/LASTZ-1.04.03/doc/Devkit\346\212\245\345\221\212/lastz-2.5.RC1.tar" differ diff --git "a/LifeSciences/LASTZ-1.04.03/doc/LASTZ-1.04.03\345\272\224\347\224\250\346\265\213\350\257\225\346\212\245\345\221\212.docx" "b/LifeSciences/LASTZ-1.04.03/doc/LASTZ-1.04.03\345\272\224\347\224\250\346\265\213\350\257\225\346\212\245\345\221\212.docx" new file mode 100644 index 0000000000000000000000000000000000000000..3d0a14773151a8f9f322c7cd45c54aa6fa8941c3 Binary files /dev/null and "b/LifeSciences/LASTZ-1.04.03/doc/LASTZ-1.04.03\345\272\224\347\224\250\346\265\213\350\257\225\346\212\245\345\221\212.docx" differ diff --git "a/LifeSciences/LASTZ-1.04.03/doc/LASTZ-1.04.03\345\272\224\347\224\250\347\247\273\346\244\215\346\214\207\345\215\227.docx" "b/LifeSciences/LASTZ-1.04.03/doc/LASTZ-1.04.03\345\272\224\347\224\250\347\247\273\346\244\215\346\214\207\345\215\227.docx" new file mode 100644 index 0000000000000000000000000000000000000000..8b916883d4453a4fb3b12224d0d084b4098a1035 Binary files /dev/null and "b/LifeSciences/LASTZ-1.04.03/doc/LASTZ-1.04.03\345\272\224\347\224\250\347\247\273\346\244\215\346\214\207\345\215\227.docx" differ diff --git "a/LifeSciences/LASTZ-1.04.03/doc/\351\262\262\351\271\217\345\237\272\345\272\247\350\275\257\344\273\266\346\220\255\345\273\272\346\214\207\345\215\227.docx" "b/LifeSciences/LASTZ-1.04.03/doc/\351\262\262\351\271\217\345\237\272\345\272\247\350\275\257\344\273\266\346\220\255\345\273\272\346\214\207\345\215\227.docx" new file mode 100644 index 0000000000000000000000000000000000000000..402fdd189565a3f10c7e063327dc7156bf1fd07c Binary files /dev/null and "b/LifeSciences/LASTZ-1.04.03/doc/\351\262\262\351\271\217\345\237\272\345\272\247\350\275\257\344\273\266\346\220\255\345\273\272\346\214\207\345\215\227.docx" differ diff --git a/LifeSciences/LASTZ-1.04.03/lastz-1.04.03.sh b/LifeSciences/LASTZ-1.04.03/lastz-1.04.03.sh new file mode 100644 index 0000000000000000000000000000000000000000..74e1e356cc103a3d1b784d71f1217a5721c43c9a --- /dev/null +++ b/LifeSciences/LASTZ-1.04.03/lastz-1.04.03.sh @@ -0,0 +1,51 @@ +#!/bin/bash + +if [[ $# -ne 2 ]]; then + echo "The format is as follows:" + echo "bash lastz-1.04.03.sh buildpath installpath" + echo ":param buildpath: 应用构建绝对路径" + echo ":param installpath: 应用安装绝对路径" + exit 1 +fi + +[[ ! "$1" =~ ^/.* || ! -d "$1" || "$1" = "/" ]] && echo "请输入正确的构建路径" && exit 1 +[[ ! "$2" =~ ^/.* || ! -d "$2" || "$2" = "/" ]] && echo "请输入正确的安装路径" && exit 1 + +buildpath=$1 +installpath=$2 +[[ "$buildpath" =~ .*/$ ]] && buildpath=${buildpath%/*} +[[ "$installpath" =~ .*/$ ]] && installpath=${installpath%/*} +[[ "$buildpath" == "$installpath" ]] && echo "构建路径与安装路径需为不同路径" && exit 1 +yum install -y environment-modules csh time patch libatomic perl-Data-Dumper autoconf automake libtool numactl binutils systemd-devel valgrind flex wget + + +set -e + +cd $buildpath +wget -t 10 -c https://github.com/lastz/lastz/archive/refs/tags/1.04.03.tar.gz -O lastz-1.04.03.tar.gz +tar -zxvf $buildpath/lastz-1.04.03.tar.gz -C $buildpath && rm -rf $buildpath/lastz-1.04.03.tar.gz + +cd $buildpath/lastz-1.04.03 +sed -i '4s:gcc:clang:g' src/Makefile +sed -i '57s: -Werror : :g' src/Makefile +mkdir -p $installpath/lastz-1.04.03 +export LASTZ_INSTALL=$installpath/lastz-1.04.03/bin +make -j$(nproc) +make -j$(nproc) install + +cat>"$installpath/lastz-1.04.03/lastz_modulefiles"<