API review
Proposer: Tully Foote
Present at review:
- Jack O’Quin
- Shawn Edwards
- Jonathan Bohren
- Thibault Kruse
- Daniel Stonier
- Lorenz Mösenlechner
- Andy Somerville
- Tully Foote
- Dirk Thomas
This page lists the notes taken during a teleconference on 14.08.2012
Notes from Google Doc
Packages and Packaging
- ROS packages are packaged individually in Linux packages, no more ROS stacks
- General decision
- Consensus is to package packages.
- Joined/separate versioning of multiple packages per repository
- In DVCS packages in the same repository are expected to level together, will write a tool to help with this
- Add a tool which levels multiple packages, (possibly in different repositories), together from a dependency list or meta-package dependency.
- Meta-data per package?
- Bugtracker URL
- Need a machine readable location.
- Might want more than just a url, component, version
- tool ros-report-bug package_name (introspect current version) opens url, email maintainer if tracker is not declared.
- put it into the manifest to support private repos
- Status (like maintained or orphaned) must be editable even without write access to the repo.
- bloom warn on missing maintainer field
- deprecate review field in manifest
- Bugtracker URL
- Release process
- Version number in distro.yaml requires pull request for leveling it, but it allows rollback without repo access and defines exact set of ROS packages
- Bloom should generate pull requests for leveling the version number in the distro.yaml
- Look at a tool for adding the urls for first release.
- Version number in distro.yaml requires pull request for leveling it, but it allows rollback without repo access and defines exact set of ROS packages
- General decision
- Meta packages (vs.) variants
- What aspect should they cover / what not?
- One generalized concept or different things necessary?
- What information is stored and where?
- How can we maintain the utility of current ROS Stacks?
- Issues discussed:
- duplication of effort of maintaining metadata in standalone packages
- possibly collect information at the repository level
- Location for package-group related files, like xyz.rosinstall, roslaunch files, tutorials, install instructions
- Nobody is responsible for maintaining meta-package data (e.g. when a package is split up into two, or renamed)
- If package-group related resources exist, it is difficult to find them from a package wiki site, if the package links to several meta-packages. Adding the same information to all package wiki pages is cumbersome (and no solution for packages without wiki page)
- possibly a tool to propagate meta information to a set of packages
- Possibly just a package with a simple flag?
- Renders differently on the wiki
- bloom has an option to processes dependencies automatically, with prompt for each subpackage that is not another stack
- Try implementing it with stacks as empty packages, prove if flag is necessary.
- Variants are too ephemeral probably should be deprecated.
- Issues discussed:
- Effects on the ROS wiki
- Package/Stack/Variant header
- Maintain a flat namespace
- could use prepended strings conventions if necessary in the future but not now
- possibly a guideline/convention for using a ros prefix on library names
- Maintain a flat namespace
- How does the new concept map to the current content? Pending meta-package decision
- We will need a stack like entity to maintain consistency with wiki pages.
- Keeping the stack name for whatever meta-package we choose would be good for continuity
- Standard Changelist location/format in repo
- it would be good to have an automatic way to collect package changelogs into a meta-package changelog entry
- General support
- Package/Stack/Variant header
- Separation of src, dev, runtime, dbg and doc packages
- Does not require any additional information, just tools to do it
- For doc, use doc subdirectory.
- There are more complications, but they are usually handled at packaging time. (Feature request for bloom)
- Does not require any additional information, just tools to do it
- External private debian build infrastructure.
- Partially tested, definitely a requirement. Need better documentation.
Building
- Catkin
- more standard conformant: find_package(), pkg-config, etc.
- Differences between catkin in Fuerte and Groovy
- better FHS compliance
- buildspace supported the same as a installspace
- Need very good documentation of how to migrate!
- Global vs. local buildfolder (vs. multiple workspaces) (1 vs n CMake instantiations)
- keep binaries in package-separate folder
FHS 3.0 draft 1 http://www.linuxbase.org/betaspecs/fhs/fhs.html#usrlibexec gives two options for “internal” binaries:
- lib/PKGNAME
- libexec/PKGNAME (not used on i.e. Ubuntu)
- if binary names collide the target name needs to be prefixed (while keeping the binary name)
- Support single workspace
- Document guidelines for good practices how to avoid conflicts
- CACHED variables- prefix with package name
- no usages of globals
- Make sure examples follow all good practices
- Add a build target for each package. (Probably need a macro at the end of a CMakeLists.txt)
- Look at adding a custom target generator to de-conflict executables
- Concerns about confusion of side effects of shared build space for non expert users.
- We can mitigate this by making sure that roscreate-pkg provides a comprehensive template.
- Users creating just one node will likely not be a problem.
- Document guidelines for good practices how to avoid conflicts
- keep binaries in package-separate folder
Uninstall target : http://www.cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F
- Do a best effort, and document the shortcomings clearly.
- would need an install target to uninstall based on an installed file manifest first to be robust to updates.
- Do a best effort, and document the shortcomings clearly.
- Effects for the user and necessary tools
- All toolchain need to be upgraded
- rospkg, rosinstall, resource manager, bloom, buildfarm, indexer. ...
- All toolchain need to be upgraded
- Workspace assistants
- Such as roscreate, rosmake etc.
Add a utility for calling mkdir build && cd build && cmake .. && make
- Some simple options as args, e.g. debug/release
- roscd allow options for alternate directories --bin --lib --share, with --share default
- rosfind (given target and package) return folder containing
- rosdep will walk source tree, confirm working with new packaging
- Building 3rd party dependencies integration as packages. Things not available as system installations.
- Issue is how to support build and install space
- Integration with CMake external project module?
- standard procedure for a custom installation path in source directory, support only build space
- leverage rosdep sourcerosdep for non supported platforms if required to install
- support installation via custom debians
Milestones, Outlook
- What needs to be done in which order?
- How does it affect the roadmap of Groovy?
- land workspace changes this week
- convert wet next week
- How does it affect the roadmap of Groovy?
- Decide which functionality/changes go into Groovy, Hydro (and optionally Groovy when implemented in time)
- ABI version?
- Versioned dependencies?
- Target simple version of versioned dependencies (only minimum versions)
- Make tool for synchronized releases have an argument to require the latest version of the other packages.
- Future discussion, when we have a clear picture we can approach the implementation of that
- What is planned to be catkin-ized for Groovy?
Currently 55 of 282 released stacks http://jenkins.willowgarage.com:8080/job/fuerte-status/11853/console
how do we remove them from http://debbuild/groovy.html once catkinized ?
- priorities pluginlib, nodelets
- bottom up, do our best, should be transparent to users
- Future support for dry stuff
- rosmake
- Build farm: prereleases and building Debian packages
- Wiki integration
Process: Keep this under 2 hours. Requires <8 minutes per topic on the agenda. Proposed Process: - 1 minute summary of mailing list discussions with proposed solution. - If there’s no objections ratify and move on. - Else: Participants can have 1 minute to propose an alternate solution. At the end of that we can vote +1 style on the original or proposed alternative. If after 10 minutes we will table any specific subtopic and return to it at the end for another 10 minutes.
Package status change mark change manifest)
Action items that need to be taken.
Major issues that need to be resolved