#1 Update To Newest Released Version
Closed 6 years ago by mich181189. Opened 6 years ago by mich181189.
Unknown source master  into  master

@@ -0,0 +1,26 @@

+ From 7a5589359fa813ea61236f2f6e52c3d1c9f735b4 Mon Sep 17 00:00:00 2001

+ From: Evan Teran <evan.teran@gmail.com>

+ Date: Mon, 24 Apr 2017 02:41:40 -0400

+ Subject: [PATCH] perhaps a fix for issues #350, #361, and #546 ? Seems that

+  moc (only on Fedora) is senstive to QT_VERSION getting munged. Including

+  <QObject> first seems to avoid it getting messed with...

+ 

+ ---

+  plugins/DebuggerCore/unix/linux/DebuggerCore.h | 1 +

+  1 file changed, 1 insertion(+)

+ 

+ diff --git a/plugins/DebuggerCore/unix/linux/DebuggerCore.h b/plugins/DebuggerCore/unix/linux/DebuggerCore.h

+ index c2512e30..c93fdad0 100644

+ --- a/plugins/DebuggerCore/unix/linux/DebuggerCore.h

+ +++ b/plugins/DebuggerCore/unix/linux/DebuggerCore.h

+ @@ -19,6 +19,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.

+  #ifndef DEBUGGERCORE_20090529_H_

+  #define DEBUGGERCORE_20090529_H_

+  

+ +#include <Qobject>

+  #include "DebuggerCoreUNIX.h"

+  #include "PlatformState.h"

+  #include "PlatformThread.h"

+ -- 

+ 2.13.6

+ 

@@ -0,0 +1,26 @@

+ From 6797ad19fd48509ab2d945f214aeb9f6252f17fa Mon Sep 17 00:00:00 2001

+ From: Evan Teran <evan.teran@gmail.com>

+ Date: Mon, 24 Apr 2017 02:44:53 -0400

+ Subject: [PATCH 2/2] typo! that's what I get for commiting without testing,

+  sorry

+ 

+ ---

+  plugins/DebuggerCore/unix/linux/DebuggerCore.h | 2 +-

+  1 file changed, 1 insertion(+), 1 deletion(-)

+ 

+ diff --git a/plugins/DebuggerCore/unix/linux/DebuggerCore.h b/plugins/DebuggerCore/unix/linux/DebuggerCore.h

+ index c93fdad0..e4b0b5ff 100644

+ --- a/plugins/DebuggerCore/unix/linux/DebuggerCore.h

+ +++ b/plugins/DebuggerCore/unix/linux/DebuggerCore.h

+ @@ -19,7 +19,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.

+  #ifndef DEBUGGERCORE_20090529_H_

+  #define DEBUGGERCORE_20090529_H_

+  

+ -#include <Qobject>

+ +#include <QObject>

+  #include "DebuggerCoreUNIX.h"

+  #include "PlatformState.h"

+  #include "PlatformThread.h"

+ -- 

+ 2.13.6

+ 

file modified
+38 -61
@@ -1,16 +1,24 @@

  Name:           edb

- Version:        0.9.18

- Release:        23%{?dist}

+ Version:        0.9.21

+ Release:        1%{?dist}

  Summary:        A debugger based on the ptrace API and Qt4

  

- Group:          Development/Debuggers

  License:        GPLv2+

- URL:            http://www.codef00.com/projects.php#Debugger

- Source0:        http://www.codef00.com/projects/debugger-%{version}.tgz

+ URL:            https://github.com/eteran/edb-debugger

+ Source0:        https://github.com/eteran/edb-debugger/releases/download/%{version}/edb-debugger-%{version}.tgz

  

+ # it builds without these upstream patches but is non-functional

+ Patch0:         0001-perhaps-a-fix-for-issues-350-361-and-546.patch

+ Patch1:         0002-typo-that-s-what-I-get-for-commiting-without-testing.patch

+ 

+ BuildRequires:  gcc-c++

  BuildRequires:  desktop-file-utils

- BuildRequires:  qt4-devel

+ BuildRequires:  qt5-devel

+ BuildRequires:  cmake

  BuildRequires:  boost-devel

+ BuildRequires:  capstone-devel

+ BuildRequires:  libappstream-glib

+ 

  # as edb is an x86 debugger

  ExclusiveArch:  %{ix86} x86_64

  
@@ -28,76 +36,45 @@

  

  

  %prep

- %setup -q -n debugger

- sed -i -e 's/\.uic/uic/' -e 's/\.moc/moc/' -e 's/\.rcc/rcc/' src/src.pro

- sed -i -e 's/\.ui/ui/' -e 's/\.moc/moc/' -e 's/\.rcc/rcc/' plugins/plugins.pri

+ %autosetup -n edb-debugger-%{version} -p1

  

  %build

- %{qmake_qt4} -makefile DEFAULT_PLUGIN_PATH="%{_libdir}/%{name}/"

+ %cmake .

  make %{?_smp_mflags}

  

  

  %install

- mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/

- install -d $RPM_BUILD_ROOT%{_datadir}/pixmaps/

- install -Dm 644 -p src/images/%{name}48-logo.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png

- make install INSTALL_ROOT=$RPM_BUILD_ROOT%{_prefix}

- install -Dm 644 -p %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/

- desktop-file-install --vendor=""   \

-        --dir=%{buildroot}%{_datadir}/applications/   \

-        %{name}.desktop

- 

- # Register as an application to be visible in the software center

- #

- # NOTE: It would be *awesome* if this file was maintained by the upstream

- # project, translated and installed into the right place during `make install`.

- #

- # See http://www.freedesktop.org/software/appstream/docs/ for more details.

- #

- mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata

- cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <<EOF

- <?xml version="1.0" encoding="UTF-8"?>

- <!-- Copyright 2014 Evan Teran <evan.teran@gmail.com> -->

- <!--

- BugReportURL: https://code.google.com/p/edb-debugger/issues/detail?id=130

- SentUpstream: 2014-09-18

- -->

- <application>

-   <id type="desktop">edb.desktop</id>

-   <metadata_license>CC0</metadata_license>

-   <project_license>GPL-2.0</project_license>

-   <name>edb</name>

-   <summary>A reverse engineer's debugger</summary>

-   <description>

-     <p>

-       edb is a cross platform x86/x86-64 debugger.

-       It was inspired by OllyDbg, but aims to function on x86 and x86-64 as well

-       as multiple OS's.

-     </p>

-     <p>

-       Linux is the only officially supported platform at the moment, but FreeBSD,

-       OpenBSD, OSX and Windows ports are underway with varying degrees of functionality.

-     </p>

-   </description>

-   <screenshots>

-     <screenshot type="default" width="1121" height="839">http://codef00.com/img/debugger.png</screenshot>

-   </screenshots>

-   <url type="homepage">http://codef00.com/projects</url>

-   <updatecontact>evan.teran_at_gmail.com</updatecontact>

- </application>

- EOF

+ make install DESTDIR=%{buildroot}

+ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop

+ 

+ #fix man page location

+ mkdir -p %{buildroot}/%{_mandir}/man1/

+ mv %{buildroot}%{_mandir}/%{name}.1 %{buildroot}/%{_mandir}/man1/

+ 

+ #install appdata file

+ mkdir -p %{buildroot}%{_datadir}/metainfo/

+ install -m 644 %{name}.appdata.xml %{buildroot}%{_datadir}/metainfo/

+ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml

  

+ #icon

+ mv %{buildroot}%{_datadir}/pixmaps/%{name}48-logo.png %{buildroot}%{_datadir}/pixmaps/%{name}.png

  

  %files

- %doc CHANGELOG COPYING README TODO VERSION README.plugins doc 

+ %doc CHANGELOG COPYING README.md TODO doc 

  %{_bindir}/%{name}

  %{_libdir}/%{name}

- %{_datadir}/appdata/%{name}.appdata.xml

+ %{_datadir}/metainfo/%{name}.appdata.xml

  %{_datadir}/applications/%{name}.desktop

  %{_datadir}/pixmaps/%{name}.png

- %{_mandir}/man1/%{name}.1.gz

+ %{_mandir}/man1/%{name}.1*

  

  %changelog

+ * Sat Oct 14 2017 Michael Cullen <mich181189@fedoraproject.org> - 0.9.21-1

+ - Updated to new version

+ - Changed to use Qt5

+ * Sat Oct 14 2017 Michael Cullen <mich181189@fedoraproject.org> - 0.9.18-24

+ - Repointed to GitHub for project link

+ - Fixed FTBFS in qmake invocation

  * Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.18-23

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

  

This package is many years behind the latest release.

This PR contains two commits: One to fix the existing build, the other to update to the newest project, switch to CMake and use Qt5 instead of Qt4

I'd be happy to take over this package if you don't have time or don't want to maintain it!

Pull-Request has been closed by mich181189

6 years ago