Skip to content

Commit

Permalink
dev-util/emilpro: fix bug #561978
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.28
  • Loading branch information
ZeroChaos- committed Mar 29, 2016
1 parent d5a80f9 commit b4c8e37
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 13 deletions.
4 changes: 2 additions & 2 deletions dev-util/emilpro/emilpro-3-r3.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ DEPEND="|| ( dev-libs/elfutils dev-libs/libelf )
dev-cpp/cairomm
dev-libs/libsigc++:2
dev-libs/glib:2
system-binutils? ( >=sys-libs/binutils-libs-2.25.1-r1:=[multitarget] )
system-binutils? ( >=sys-libs/binutils-libs-2.25.1-r2:=[multitarget] )
net-misc/curl"
RDEPEND="${DEPEND}"

src_prepare() {
epatch "${FILESDIR}"/respect-cflags.patch
if use system-binutils; then
epatch "${FILESDIR}"/use-gentoo-binutils.patch
epatch "${FILESDIR}"/${P}-system-binutils.patch
else
sed -i "s#wget -O binutils.tar.bz2 https://ftp.gnu.org/gnu/binutils/binutils-2.23.2.tar.bz2#cp \"${DISTDIR}/binutils-2.23.2.tar.bz2\" ./binutils.tar.bz2#" cmake/BuildBinutils.cmake
fi
Expand Down
4 changes: 2 additions & 2 deletions dev-util/emilpro/emilpro-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ DEPEND="|| ( dev-libs/elfutils dev-libs/libelf )
dev-cpp/cairomm
dev-libs/libsigc++:2
dev-libs/glib:2
system-binutils? ( >=sys-libs/binutils-libs-2.25.1-r1:=[multitarget] )
system-binutils? ( >=sys-libs/binutils-libs-2.25.1-r2:=[multitarget] )
net-misc/curl"
# automagic dep
# dev-util/capstone
RDEPEND="${DEPEND}"

src_prepare() {
if use system-binutils; then
epatch "${FILESDIR}"/${P}-use-gentoo-binutils.patch
epatch "${FILESDIR}"/${P}-system-binutils.patch
else
sed -i "s#wget -O binutils.tar.bz2 https://ftp.gnu.org/gnu/binutils/binutils-2.23.2.tar.bz2#cp \"${DISTDIR}/binutils-2.23.2.tar.bz2\" ./binutils.tar.bz2#" cmake/BuildBinutils.cmake
fi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
diff -Naur emilpro-3/CMakeLists.txt emilpro-3-nobinutils/CMakeLists.txt
--- emilpro-3/CMakeLists.txt 2013-12-28 04:22:34.000000000 -0500
+++ emilpro-3-nobinutils/CMakeLists.txt 2014-03-18 14:59:17.983479920 -0400
diff -Naur emilpro-3-orig/CMakeLists.txt emilpro-3/CMakeLists.txt
--- emilpro-3-orig/CMakeLists.txt 2016-03-29 13:19:47.035441401 -0400
+++ emilpro-3/CMakeLists.txt 2016-03-29 13:18:36.650443067 -0400
@@ -11,7 +11,6 @@
set (BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR})

Expand Down Expand Up @@ -34,3 +34,15 @@ diff -Naur emilpro-3/CMakeLists.txt emilpro-3-nobinutils/CMakeLists.txt

set (BASE_LIBS
${LIBELF_LIBRARIES}
diff -Naur emilpro-3-orig/src/namemangler.cc emilpro-3/src/namemangler.cc
--- emilpro-3-orig/src/namemangler.cc 2016-03-29 13:17:23.957444786 -0400
+++ emilpro-3/src/namemangler.cc 2016-03-29 13:18:57.306442578 -0400
@@ -1,7 +1,7 @@
#include <namemangler.hh>

#include <bfd.h>
-#include <demangle.h>
+#include <libiberty/demangle.h>

using namespace emilpro;

Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
--- CMakeLists.txt.orig 2015-06-25 22:02:55.041406946 +0200
+++ CMakeLists.txt 2015-06-25 22:03:51.841696845 +0200
diff -Naur emilpro-9999-orig/CMakeLists.txt emilpro-9999/CMakeLists.txt
--- emilpro-9999-orig/CMakeLists.txt 2016-03-29 14:30:48.017340585 -0400
+++ emilpro-9999/CMakeLists.txt 2016-03-29 14:31:21.335339797 -0400
@@ -11,7 +11,6 @@
set (BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR})

# Dependencies
-include (${CMAKE_CURRENT_SOURCE_DIR}/cmake/BuildBinutils.cmake)

find_package (LibElf REQUIRED)
find_package (PkgConfig REQUIRED)
@@ -30,10 +29,6 @@
find_package (LibCapstone)
@@ -40,10 +39,6 @@
pkg_check_modules(LIBCURL REQUIRED libcurl)

set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -D_GLIBCXX_USE_NANOSLEEP -DPACKAGE=emilpro -DPACKAGE_VERSION=1 -pthread")
Expand All @@ -19,15 +20,15 @@

if (HAVE_BFD_MULTIARCH)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_BFD_MULTIARCH")
@@ -109,7 +104,6 @@
@@ -120,7 +115,6 @@
set_property(SOURCE src/emilpro.cc APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_BINARY_DIR}/built_in_instruction_models.hh)

include_directories(
- ${CMAKE_BINARY_DIR}/install-binutils/include/
src/gtk/include/
src/include/
${CMAKE_BINARY_DIR}
@@ -131,9 +125,6 @@
@@ -143,9 +137,6 @@
tools/squash-instruction-models.cc
)

Expand All @@ -37,3 +38,15 @@
set (BASE_LIBS
${LIBELF_LIBRARIES}
opcodes
diff -Naur emilpro-9999-orig/src/namemangler.cc emilpro-9999/src/namemangler.cc
--- emilpro-9999-orig/src/namemangler.cc 2016-03-29 14:30:48.017340585 -0400
+++ emilpro-9999/src/namemangler.cc 2016-03-29 14:31:06.397340150 -0400
@@ -1,7 +1,7 @@
#include <namemangler.hh>

#include <bfd.h>
-#include <demangle.h>
+#include <libiberty/demangle.h>

using namespace emilpro;

0 comments on commit b4c8e37

Please sign in to comment.