Skip to content

Commit

Permalink
Ok, catkin is working now. Fixes #17.
Browse files Browse the repository at this point in the history
  • Loading branch information
allenh1 committed Dec 23, 2017
1 parent d0509cc commit 3e8734a
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 16 deletions.
2 changes: 2 additions & 0 deletions recipes-devtools/python/python-catkin-pkg_0.3.9.bb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
require python-catkin-pkg.inc

PREFERRED_VERSION_python = "2.7.%"

SRC_URI[md5sum] = "39405b11aba691b7a9660a1ceaf25f84"
SRC_URI[sha256sum] = "ecc4fd6b6c7cebc0d9a38fc38dc0e270cc4e684a6c874a006b2834a98bf5590c"

Expand Down
16 changes: 2 additions & 14 deletions recipes-ros-lunar/catkin/catkin.inc
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
DEPENDS = "cmake ${PYTHON_PN}-empy-native ${PYTHON_PN}-catkin-pkg-native"

SRC_URI += "\
file://0001-Duplicate-changes-for-newer-catkin-releases.patch \
file://0001-avoid-using-host-s-paths-when-cross-compiling.patch"
file://0001-avoid-using-host-s-paths-when-cross-compiling.patch \
file://0001-Force-python-2.patch"

inherit catkin

# FILES_${PN} += "\
# ${ros_datadir}/eigen/cmake \
# ${ros_datadir}/ros/cmake \
# ${ros_datadir}/.catkin \
# ${ros_prefix}/.catkin \
# ${ros_prefix}/.rosinstall \
# ${ros_prefix}/_setup_util.py \
# ${ros_prefix}/env.sh \
# ${ros_prefix}/setup.* \
# "
11 changes: 10 additions & 1 deletion recipes-ros-lunar/catkin/catkin_0.7.8.bb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ DESCRIPTION = "Low-level build system macros and infrastructure for ROS."
AUTHOR = "OSRF"
SECTION = "devel"
ROSDISTRO = "lunar"
CATKIN_NO_BIN="True"

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://package.xml;beginline=7;endline=7;md5=d566ef916e9dedc494f5f793a6690ba5"
Expand All @@ -16,5 +17,13 @@ SRC_URI[md5sum] = "1fef00c3336dfa23e2ec6d5f54741d95"
SRC_URI[sha256sum] = "2057edf73b042a304447c7433e97056f07a32e74a98a01b40ecd06064f1603b9"
S = "${WORKDIR}/${PN}-release-release-lunar-${PN}-0.7.8-0"

inherit catkin
include catkin.inc


FILES_${PN} += "/opt/ros/lunar/.catkin \
/opt/ros/lunar/_setup_util.py \
/opt/ros/lunar/env.sh \
/opt/ros/lunar/setup.bash \
/opt/ros/lunar/setup.sh \
/opt/ros/lunar/setup.zsh \
/opt/ros/lunar/.rosinstall"
22 changes: 22 additions & 0 deletions recipes-ros-lunar/catkin/files/0001-Force-python-2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
From 6e50366f6353aef8efc3480772051401b346d088 Mon Sep 17 00:00:00 2001
From: "Hunter L. Allen" <[email protected]>
Date: Mon, 18 Dec 2017 14:55:50 -0500
Subject: [PATCH] Force python 2.

---
cmake/templates/_setup_util.py.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/templates/_setup_util.py.in b/cmake/templates/_setup_util.py.in
index 106507a..bd85ac1 100755
--- a/cmake/templates/_setup_util.py.in
+++ b/cmake/templates/_setup_util.py.in
@@ -1,4 +1,4 @@
-#!@PYTHON_EXECUTABLE@
+#!/usr/bin/python2.7
# -*- coding: utf-8 -*-

# Software License Agreement (BSD License)
--
2.7.4

2 changes: 1 addition & 1 deletion recipes-ros-lunar/rosgraph-msgs/rosgraph-msgs_1.11.2.bb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ROSDISTRO = "lunar"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://package.xml;beginline=8;endline=8;md5=d566ef916e9dedc494f5f793a6690ba5"

DEPENDS = "catkin catkin-native message-generation message-runtime std-msgs"
DEPENDS = "catkin catkin-native message-generation message-runtime std-msgs python-catkin-pkg"
SRC_URI = "https://github.com/ros-gbp/ros_comm_msgs-release/archive/release/lunar/rosgraph_msgs/1.11.2-0.tar.gz;downloadfilename=${ROS_SP}.tar.gz"

SRC_URI[md5sum] = "49ede31404d4666a0f52dacb78e408dd"
Expand Down

0 comments on commit 3e8734a

Please sign in to comment.