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

{scarthgap} Append ${ros_prefix} to recipes #1213

Open
wants to merge 11 commits into
base: scarthgap-next
Choose a base branch
from
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2019-2021 LG Electronics, Inc.

PACKAGECONFIG ??= "suitesparse cxsparse lapack"

EXTRA_OECMAKE += " -DEIGENSPARSE:BOOL=OFF"
10 changes: 10 additions & 0 deletions meta-ros-common/recipes-support/libtinyxml2/files/run-ptest
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

for i in `ls xmltest`; do
./$i
if [ $? -eq 0 ]; then
echo "PASS: $i"
else
echo "FAIL: $i"
fi
done
36 changes: 36 additions & 0 deletions meta-ros-common/recipes-support/libtinyxml2/libtinyxml2_10.0.0.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
SUMMARY = "TinyXML-2 is a simple, small, efficient, C++ XML parser that can be easily integrating into other programs"
HOMEPAGE = "https://leethomason.github.io/tinyxml2"
SECTION = "libs"
LICENSE = "Zlib"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=135624eef03e1f1101b9ba9ac9b5fffd"

SRCREV = "321ea883b7190d4e85cae5512a12e5eaa8f8731f"
SRC_URI = "git://github.com/leethomason/tinyxml2.git;branch=master;protocol=https \
file://run-ptest \
"

PR = "r1"

S = "${WORKDIR}/git"

inherit cmake ptest

EXTRA_OEMESON += " \
${@bb.utils.contains('PTEST_ENABLED', '1', '-Dtests=true', '', d)} \
-Ddefault_library=both \
"

CXXFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE"
EXTRA_OECMAKE += " -Dtinyxml2_SHARED_LIBS:BOOL=ON"


do_install_ptest() {
install -Dm 0755 ${B}/xmltest ${D}${PTEST_PATH}/xmltest
install -d ${D}${PTEST_PATH}/resources/out
for f in ${S}/resources/*.xml; do
install -m 0644 $f ${D}${PTEST_PATH}/resources/
done
}

BBCLASSEXTEND = "native nativesdk"

Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ ROS_UNRESOLVED_DEP-black = "python3-black"
ROS_UNRESOLVED_DEP-black-native = "python3-black-native"

ROS_UNRESOLVED_DEP-libdraco-dev = "draco"
ROS_UNRESOLVED_DEP-sdformat12 = "sdformat"
ROS_UNRESOLVED_DEP-sdformat12 = "sdformat12"

ROS_UNRESOLVED_DEP-hdf5-tools-native = "hdf5-native"
ROS_UNRESOLVED_DEP-libopenscenegraph = "openscenegraph"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ DESCRIPTION = "Basic state estimator for AeroStack2"
AUTHOR = "CVAR-UPM <[email protected]>"
HOMEPAGE = "https://wiki.ros.org"
SECTION = "devel"
LICENSE = "BDS-3-Clause"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://package.xml;beginline=10;endline=10;md5=bf4ae491377eb66f24ed1346d5c8de3b"

ROS_CN = "aerostack2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:"
SRC_URI += "file://add-geographiclib-find-package.patch"

do_install:append() {
sed -i '1c#!/usr/bin/env python3' ${D}${libdir}/as2_platform_crazyflie/aideck_node.py
sed -i '1c#!/usr/bin/env python3' ${D}${ros_prefix}/lib/as2_platform_crazyflie/aideck_node.py
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
# RDEPENDS:${PN}-dev += "coreutils"

do_install:append() {
sed -i 's@^#!/bin/env@#!/usr/bin/env@g' ${D}${datadir}/ament_download/cmake/download_checkmd5.py
sed -i 's@^#!/bin/env@#!/usr/bin/env@g' ${D}${ros_prefix}/share/ament_download/cmake/download_checkmd5.py
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# Copyright (c) 2023 Wind River Systems, Inc.

FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:"
SRC_URI += "file://fixed-compile-error-uint64t.patch"

# ERROR: QA Issue: non -dev/-dbg/nativesdk- package librealsense2 contains symlink .so '/usr/lib/librealsense2.so' [dev-so]
FILES:${PN}-dev += "${libdir}/librealsense2.so"
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,3 @@ inherit ros_insane_dev_so
# octomap: /usr/bin/edit_octree contains probably-redundant RPATH /usr/lib
# octomap: /usr/bin/eval_octree_accuracy contains probably-redundant RPATH /usr/lib [useless-rpaths]
DEPENDS:append:class-target = " chrpath-replacement-native"
do_install:append() {
chrpath --delete ${D}${bindir}/* ${D}${libdir}/*${SOLIBS}
}
4 changes: 4 additions & 0 deletions meta-ros2-humble/recipes-extended/fcl/fcl_0.6.1.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
# meta-ros-common/recipes-extended/fcl/fcl_0.6.1.bb
# but moveit-core from foxy, needs octomap support to be enabled
DEPENDS += "octomap"

inherit ros_opt_prefix
inherit ros_cmake
inherit ros_insane_dev_so
1 change: 0 additions & 1 deletion meta-ros2/recipes-devtools/python/python3-pymap3d_3.0.1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ from setuptools import setup
setup(
name="${PYPI_PACKAGE}",
version="${PV}",
license="${LICENSE}",
)
EOF
}
Expand Down