Skip to content

Commit 6f0ba13

Browse files
authored
Merge pull request #1144 from n-kawauchi/update_install_scripts
一括インストールスクリプトのOpenRTM2.0.2対応
2 parents bbeed15 + 4062737 commit 6f0ba13

File tree

2 files changed

+24
-13
lines changed

2 files changed

+24
-13
lines changed

scripts/openrtm2_install_raspbian.sh

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Nobu Kawauchi
77
#
88

9-
VERSION=2.0.1.00
9+
VERSION=2.0.2.00
1010
FILENAME=openrtm2_install_raspbian.sh
1111
BIT=`getconf LONG_BIT`
1212

@@ -77,7 +77,7 @@ pkg_tools="build-essential debhelper devscripts"
7777
omni_devel="libomniorb4-dev omniidl"
7878
omni_runtime="omniorb-nameserver"
7979
openrtm2_devel="openrtm2-doc openrtm2-idl openrtm2-dev"
80-
openrtm2_runtime="openrtm2 openrtm2-example"
80+
openrtm2_runtime="openrtm2 openrtm2-naming openrtm2-example"
8181

8282
#--------------------------------------- Python
8383
omnipy="omniidl-python3"
@@ -507,8 +507,8 @@ u_core_pkgs="$u_src_pkgs"
507507
python_runtime_pkgs="$omni_runtime $python_runtime $openrtm2_py_runtime"
508508
u_python_runtime_pkgs="$openrtm2_py_runtime"
509509

510-
python_dev_pkgs="$python_runtime_pkgs $python_devel $openrtm2_py_devel"
511-
u_python_dev_pkgs="$u_python_runtime_pkgs $openrtm2_py_devel"
510+
python_dev_pkgs="$python_runtime_pkgs $python_devel"
511+
u_python_dev_pkgs="$u_python_runtime_pkgs"
512512

513513
python_core_pkgs="$omni_runtime $python_runtime $python_devel $build_tools $pkg_tools"
514514
u_python_core_pkgs="$omni_runtime $omnipy"
@@ -517,8 +517,8 @@ u_python_core_pkgs="$omni_runtime $omnipy"
517517
java_runtime_pkgs="$omni_runtime $openrtm2_j_runtime"
518518
u_java_runtime_pkgs="$openrtm2_j_runtime"
519519

520-
java_dev_pkgs="$java_runtime_pkgs $cmake_tools $base_tools $openrtm2_j_devel"
521-
u_java_dev_pkgs="$u_java_runtime_pkgs $openrtm2_j_devel"
520+
java_dev_pkgs="$java_runtime_pkgs $cmake_tools $base_tools"
521+
u_java_dev_pkgs="$u_java_runtime_pkgs"
522522

523523
java_core_pkgs="$omni_runtime $cmake_tools $base_tools $build_tools $java_build $pkg_tools"
524524
u_java_core_pkgs="$omni_runtime"
@@ -580,7 +580,11 @@ install_proc()
580580
if test "x$arg_rtshell" = "xtrue" ; then
581581
select_opt_shl="[rtshell] install"
582582
install_packages python3-pip
583-
rtshell_ret=`sudo python3 -m pip install rtshell-aist`
583+
if test "x$code_name" = "xbullseye"; then
584+
rtshell_ret=`sudo python3 -m pip install rtshell-aist`
585+
else
586+
rtshell_ret=`sudo python3 -m pip install --break-system-packages rtshell-aist`
587+
fi
584588
if test "x$rtshell_ret" != "x"; then
585589
sudo rtshell_post_install -n
586590
else
@@ -643,7 +647,11 @@ uninstall_proc()
643647

644648
if test "x$arg_rtshell" = "xtrue" ; then
645649
select_opt_shl="[rtshell] uninstall"
646-
rtshell_ret=`sudo python3 -m pip uninstall -y rtshell-aist rtctree-aist rtsprofile-aist`
650+
if test "x$code_name" = "xbullseye"; then
651+
rtshell_ret=`sudo python3 -m pip uninstall -y rtshell-aist rtctree-aist rtsprofile-aist`
652+
else
653+
rtshell_ret=`sudo python3 -m pip uninstall -y --break-system-packages rtshell-aist rtctree-aist rtsprofile-aist`
654+
fi
647655
if test "x$rtshell_ret" = "x"; then
648656
msg="\n[ERROR] Failed to uninstall rtshell-aist."
649657
tmp="$err_message$msg"
@@ -786,8 +794,11 @@ else
786794
fi
787795

788796
# install openjdk-8-jdk
797+
#codename=`sed -n /VERSION_CODENAME=/p /etc/os-release`
798+
#CNAME=`echo "$codename" | sed 's/VERSION_CODENAME=//'`
789799
if test "x$OPT_FLG" = "xtrue" &&
790-
test "x$BIT" = "x32" ; then
800+
test "x$BIT" = "x32" &&
801+
test "x$code_name" = "xbullseye"; then
791802
sudo apt -y install openjdk-8-jdk
792803
JAVA8=`update-alternatives --list java | grep java-8`
793804
sudo update-alternatives --set java ${JAVA8}

scripts/openrtm2_install_ubuntu.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# = OPT_UNINST : uninstallation
1515
#
1616

17-
VERSION=2.0.1.03
17+
VERSION=2.0.2.00
1818
FILENAME=openrtm2_install_ubuntu.sh
1919

2020
#
@@ -96,7 +96,7 @@ fluentbit="td-agent-bit"
9696
omni_devel="libomniorb4-dev omniidl"
9797
omni_runtime="omniorb-nameserver"
9898
openrtm2_devel="openrtm2-doc openrtm2-idl openrtm2-dev"
99-
openrtm2_runtime="openrtm2 openrtm2-example"
99+
openrtm2_runtime="openrtm2 openrtm2-naming openrtm2-example"
100100
openrtm2_ros="openrtm2-ros-tp"
101101
openrtm2_ros2="openrtm2-ros2-tp"
102102

@@ -578,8 +578,8 @@ u_ros2_pkg=$ros2_pkg
578578
python_runtime_pkgs="$omni_runtime $python_runtime $openrtm2_py_runtime"
579579
u_python_runtime_pkgs="$openrtm2_py_runtime"
580580

581-
python_dev_pkgs="$python_runtime_pkgs $python_devel $openrtm2_py_devel"
582-
u_python_dev_pkgs="$u_python_runtime_pkgs $openrtm2_py_devel"
581+
python_dev_pkgs="$python_runtime_pkgs $python_devel"
582+
u_python_dev_pkgs="$u_python_runtime_pkgs"
583583

584584
python_core_pkgs="$omni_runtime $python_runtime $python_devel $build_tools $pkg_tools"
585585
u_python_core_pkgs="$omni_runtime $omnipy"

0 commit comments

Comments
 (0)