From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 20512158041 for ; Wed, 8 Sep 2021 15:21:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3AD85E098A; Wed, 8 Sep 2021 15:21:04 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9624DE0973 for ; Wed, 8 Sep 2021 15:21:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3BAF4342ACF for ; Wed, 8 Sep 2021 15:20:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CDEADBA for ; Wed, 8 Sep 2021 15:20:57 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1631011670.bc0713ed1c017d0fd46ee9ae30a755c0852e65db.arthurzam@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: sci-libs/dart/files/, sci-libs/dart/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sci-libs/dart/dart-6.10.1-r2.ebuild sci-libs/dart/files/dart-respect-ldflags.patch sci-libs/dart/metadata.xml X-VCS-Directories: sci-libs/dart/files/ sci-libs/dart/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: bc0713ed1c017d0fd46ee9ae30a755c0852e65db X-VCS-Branch: master Date: Wed, 8 Sep 2021 15:20:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4f8caaf5-aa3c-4ece-b58c-997bc9a0591d X-Archives-Hash: 323097a2143203ef842f2ac74190ecfb commit: bc0713ed1c017d0fd46ee9ae30a755c0852e65db Author: Alessandro Barbieri gmail com> AuthorDate: Tue Sep 7 10:44:49 2021 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Tue Sep 7 10:47:50 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bc0713ed sci-libs/dart: respect LDFLAGS Closes: https://bugs.gentoo.org/791418 Signed-off-by: Alessandro Barbieri gmail.com> sci-libs/dart/dart-6.10.1-r2.ebuild | 13 +++++++------ sci-libs/dart/files/dart-respect-ldflags.patch | 11 +++++++++++ sci-libs/dart/metadata.xml | 1 + 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/sci-libs/dart/dart-6.10.1-r2.ebuild b/sci-libs/dart/dart-6.10.1-r2.ebuild index a0947f03b..d475a1738 100644 --- a/sci-libs/dart/dart-6.10.1-r2.ebuild +++ b/sci-libs/dart/dart-6.10.1-r2.ebuild @@ -14,10 +14,12 @@ SRC_URI="https://github.com/dartsim/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD-2" SLOT="0" KEYWORDS="~amd64" -IUSE="bullet doc examples extras glut +ipopt +nlopt ode openscenegraph python test tutorials urdfdom" +IUSE="bullet doc examples extras glut +ipopt +nlopt ode openscenegraph python test tests tutorials urdfdom" #TODO: pagmo +#TODO: unbundle imgui RESTRICT="!test? ( test )" +PATCHES=( "${FILESDIR}/${PN}-respect-ldflags.patch" ) REQUIRED_USE=" python? ( ${PYTHON_REQUIRED_USE} ) @@ -28,7 +30,6 @@ RDEPEND=" app-arch/lz4 >=dev-cpp/eigen-3.0.5 dev-libs/boost - dev-libs/tinyxml dev-libs/tinyxml2 >=sci-libs/libccd-2.0 >=media-libs/assimp-3.0.0 @@ -76,10 +77,10 @@ src_configure() { src_compile() { cmake_src_compile - use examples && cmake_src_compile examples -# use python && cmake_src_compile dartpy -# use test && cmake_src_compile tests -# use tutorials && cmake_src_compile tutorials + use examples && cmake_build examples + use python && cmake_build dartpy # no work to do ... + use test && cmake_build tests + use tutorials && cmake_build tutorials } src_install() { diff --git a/sci-libs/dart/files/dart-respect-ldflags.patch b/sci-libs/dart/files/dart-respect-ldflags.patch new file mode 100644 index 000000000..0fa4397cd --- /dev/null +++ b/sci-libs/dart/files/dart-respect-ldflags.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -220,7 +220,7 @@ + endif() + set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELEASE} ${CMAKE_CXX_FLAGS_DEBUG}") + set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_DEBUG} -pg") +- set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined") ++ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined") + + # Enforce to colorize compilation output + if(${DART_FORCE_COLORED_OUTPUT}) diff --git a/sci-libs/dart/metadata.xml b/sci-libs/dart/metadata.xml index 98e526744..486eef082 100644 --- a/sci-libs/dart/metadata.xml +++ b/sci-libs/dart/metadata.xml @@ -17,6 +17,7 @@ NLopt Optimization Support ODE Collision Detector Support OpenSceneGraph GUI and examples + Build the tests Build the tutorials URDF parser