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

Handle None as return value for call_pkg_config #8

Closed
wants to merge 2 commits into from

Conversation

roehling
Copy link
Contributor

Part of a proposed fix for ros-infrastructure/rosdep#34

A failed call to pkg-config should give a more
clear error message instead of a stack trace.

Part of a proposed fix for ros-infrastructure/rosdep#34

A failed call to pkg-config should give a more
clear error message instead of a stack trace.
@dirk-thomas
Copy link
Member

This pull request relies on ros-infrastructure/rosdep#227 to make sense.

@roehling
Copy link
Contributor Author

Is the new message okay?

@ghost ghost assigned dirk-thomas Feb 28, 2013
@dirk-thomas
Copy link
Member

None of the other messages contain the message package and especially the message you changed does not fail because of the specific message but due to a general problem of not being able to invoke pkg-config.
I will commit a modified patch soon.

@roehling
Copy link
Contributor Author

Actually, the None return value does not indicate a general problem but a non-zero exit code from pkg-config. According to the manual that means that pkg-config does not know the queried package. I think it would be a good idea to state this fact in the error message to ease troubleshooting.

@roehling roehling deleted the rosdep_issue_34 branch February 28, 2013 17:47
PierrickKoch referenced this pull request in PierrickKoch/robotpkg Feb 21, 2014
While here, rename the package to ros-rospack, for consistency with other ros
packages.

The ChangeLog since 2.0.13 stops at the "groovy" boundary.

2.1.19 (2013-06-06)
-------------------
* modified command 'list-duplicates' to output the paths where the packages
  were found (`#3 <https://github.com/ros/rospack/issues/3>`_)
* modified 'rospack plugins' to not use rosdep
  (`#5 <https://github.com/ros/rospack/issues/5>`_)
* improve Windows support  (`#10 <https://github.com/ros/rospack/issues/10>`_)
* use find_package() for tinyxml (if available)

2.1.18 (2013-03-21)
-------------------
* invert order of package type detection (dry before wet)
  (`ros-infrastructure/rospkg#30 <https://github.com/ros/rospkg/issues/30>`_)

2.1.17 (2013-03-08)
-------------------
* output full pkg-config command in case of errors
  (`#8 <https://github.com/ros/rospack/issues/8>`_)
* handle None as return value for call_pkg_config
  (`#8 <https://github.com/ros/rospack/issues/8>`_)
* fix crawling to always recrawl when forced
  (`#9 <https://github.com/ros/rospack/issues/9>`_)

2.1.16 (2013-01-13)
-------------------
* fix segfault for command depends1 which ignores exceptions and calls
  isSysPackage again (`#4 <https://github.com/ros/rospack/issues/4>`_)

2.1.15 (2012-12-06)
-------------------
* first public release for Groovy
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.

2 participants