Skip to content

Commit

Permalink
[jsk_unitree_startup/cross] Install expect
Browse files Browse the repository at this point in the history
  • Loading branch information
iory committed Sep 1, 2022
1 parent 67830ec commit c8d1dfb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jsk_unitree_robot/cross/repos/ros1_dependencies.repos
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@ repositories:
mailutils/debian:
type: tar
url: http://archive.ubuntu.com/ubuntu/pool/universe/m/mailutils/mailutils_3.4-1.debian.tar.xz
expect:
type: tar
url: http://archive.ubuntu.com/ubuntu/pool/universe/e/expect/expect_5.45.4.orig.tar.gz
expect/debian:
type: tar
url: http://archive.ubuntu.com/ubuntu/pool/universe/e/expect/expect_5.45.4-1.debian.tar.xz
openssl:
type: tar
url: https://www.openssl.org/source/openssl-1.1.1q.tar.gz
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
set -xeu -o pipefail

DEBIAN_DIR=/home/user/ros1_dependencies_sources/src/expect/debian/debian
SOURCE_DIR=/home/user/ros1_dependencies_sources/src/expect/expect5.45.4

#
# constantly does not have patches
#
cd ${DEBIAN_DIR}/patches
for patch_file in $(grep -v ^# series); do
OUT="$(patch -p1 --forward --directory ${SOURCE_DIR} < ${patch_file} | tee /dev/tty)" || echo "${OUT}" | grep "Skipping patch" -q || (echo "$OUT" && false) || echo "OK"
done
cd ${SOURCE_DIR}
./configure --prefix=/opt/jsk/${INSTALL_ROOT}/ros1_dependencies --build=arm --verbose --enable-shared --exec-prefix=/opt/jsk/${INSTALL_ROOT}/ros1_dependencies
make
make install

0 comments on commit c8d1dfb

Please sign in to comment.