Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile: Check ROS_VERSION when adding repos #9

Merged
merged 4 commits into from
Sep 19, 2023
Merged

Dockerfile: Check ROS_VERSION when adding repos #9

merged 4 commits into from
Sep 19, 2023

Conversation

yaymalaga
Copy link
Contributor

@yaymalaga yaymalaga commented Sep 13, 2023

This fixes library incompatibilities while installing dependencies

This fix libraries incompatibilities while installing dependencies
@jpbusch jpbusch self-requested a review September 15, 2023 12:06
Copy link
Collaborator

@jpbusch jpbusch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution, @yaymalaga!

Since docker-ros is also supposed to work with base images in which the ROS_VERSION variable is not set and noetic is the only non-EOL distro for ROS 1, I would suggest checking only for ROS_DISTRO, which implies ROS_VERSION=1.

Apart from that, it would be interesting to know which incompatibilities have occurred in your case. Could you please describe the problem briefly?

docker/Dockerfile Outdated Show resolved Hide resolved
docker/Dockerfile Outdated Show resolved Hide resolved
@jpbusch
Copy link
Collaborator

jpbusch commented Sep 15, 2023

Could you please also modify the GitHub actions .github/workflows such that the checks also run on PRs? Apparently we have set it up incorrectly, as no checks are currently being tested in this PR.

Simply change the on key to this:

on: [push, pull_request]

@yaymalaga
Copy link
Contributor Author

Since docker-ros is also supposed to work with base images in which the ROS_VERSION variable is not set and noetic is the only non-EOL distro for ROS 1, I would suggest checking only for ROS_DISTRO, which implies ROS_VERSION=1.

That's sound like a good option yeah!

Apart from that, it would be interesting to know which incompatibilities have occurred in your case. Could you please describe the problem briefly?

I was having unmet dependencies related to Gazebo, as shown below, which simply disappeared after remove the ROS1 repos:

#27 469.5  gazebo : Depends: libgazebo11 (= 11.10.2+dfsg-1) but 11.11.0-1~focal is to be installed
#27 469.5  libgazebo-dev : Depends: libignition-transport8-dev but it is not going to be installed
#27 469.5                  Depends: libignition-msgs5-dev (>= 5.1) but it is not going to be installed
#27 469.5                  Depends: libignition-common3-dev (>= 3.14.0+dfsg-3) but it is not going to be installed
#27 469.5                  Depends: libignition-fuel-tools4-dev but it is not going to be installed
#27 469.5                  Depends: libgazebo11 (= 11.10.2+dfsg-1) but 11.11.0-1~focal is to be installed
#27 469.5  libgazebo11 : Depends: libboost-filesystem1.71.0 but it is not installable
#27 469.5                Depends: libboost-iostreams1.71.0 but it is not installable
#27 469.5                Depends: libboost-program-options1.71.0 but it is not installable
#27 469.5                Depends: libboost-regex1.71.0-icu66 but it is not installable
#27 469.5                Depends: libboost-thread1.71.0 but it is not installable
#27 469.5                Depends: libbullet2.88 (>= 2.88+dfsg) but it is not installable
#27 469.5                Depends: libdart6 (>= 6.9.2) but it is not installable
#27 469.5                Depends: libdart6-collision-bullet (>= 6.9.2) but it is not installable
#27 469.5                Depends: libgdal26 (>= 3.0.0) but it is not installable
#27 469.5                Depends: libignition-fuel-tools4 (>= 4.4.0) but it is not going to be installed
#27 469.5                Depends: libignition-msgs5 (>= 5.9.0) but it is not going to be installed
#27 469.5                Depends: libignition-transport8 (>= 8.2.1) but it is not going to be installed
#27 469.5                Depends: libprotobuf17 but it is not installable
#27 469.5                Depends: libtinyxml2-6a (>= 6.0.0) but it is not installable
#27 469.5 E: Unable to correct problems, you have held broken packages.

Also, thanks for making the changes, I completely forgot about the PR until I saw the notification just now.

@lreiher
Copy link
Member

lreiher commented Sep 19, 2023

Thanks for getting back to this! We have already integrated the changes because we were in a bit of a hurry to push a new release.

We are now going to merge this and create a new release. Please note that the GitHub action checks have not succeeded, because the required GitHub action secrets are not shared with pull requests from repository forks.

@lreiher lreiher merged commit 77705e3 into ika-rwth-aachen:main Sep 19, 2023
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants