Skip to content

Commit

Permalink
Use sudo for make install
Browse files Browse the repository at this point in the history
  • Loading branch information
j-rivero committed Aug 9, 2021
1 parent 05f01ca commit b864fef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions jenkins-scripts/docker/lib/gazebo-base-default.bash
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ if $DART_COMPILE_FROM_SOURCE; then
-DCMAKE_INSTALL_PREFIX=/usr
#make -j${MAKE_JOBS}
make -j1
make install
sudo make install
echo '# END SECTION'
fi
DELIM_DART
Expand Down Expand Up @@ -178,7 +178,7 @@ if [[ $GAZEBO_MAJOR_VERSION -ge 8 ]]; then
fi
echo '# BEGIN SECTION: Gazebo installation'
make install
sudo make install
echo '# END SECTION'
# Need to clean up from previous built
Expand Down
5 changes: 2 additions & 3 deletions jenkins-scripts/docker/lib/generic-abi-base.bash
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ fi
echo '# BEGIN SECTION: compile and install branch: ${DEST_BRANCH}'
cp -a $WORKSPACE/${ABI_JOB_SOFTWARE_NAME} /tmp/${ABI_JOB_SOFTWARE_NAME}
chown -R root:root /tmp/${ABI_JOB_SOFTWARE_NAME}
cd /tmp/${ABI_JOB_SOFTWARE_NAME}
git fetch origin
git checkout origin/${DEST_BRANCH}
Expand All @@ -66,7 +65,7 @@ cmake ${ABI_JOB_CMAKE_PARAMS} \\
-DCMAKE_INSTALL_PREFIX=/usr/local/destination_branch \\
/tmp/${ABI_JOB_SOFTWARE_NAME}
make -j${MAKE_JOBS}
make install
sudo make install
DEST_DIR=\$(find /usr/local/destination_branch/include -name ${ABI_JOB_SOFTWARE_NAME}-* -type d | sed -e 's:.*/::')
echo '# END SECTION'
Expand All @@ -85,7 +84,7 @@ cmake ${ABI_JOB_CMAKE_PARAMS} \\
-DCMAKE_INSTALL_PREFIX=/usr/local/source_branch \\
/tmp/${ABI_JOB_SOFTWARE_NAME}
make -j${MAKE_JOBS}
make install
sudo make install
SRC_DIR=\$(find /usr/local/source_branch/include -name ${ABI_JOB_SOFTWARE_NAME}-* -type d | sed -e 's:.*/::')
echo '# END SECTION'
Expand Down

0 comments on commit b864fef

Please sign in to comment.