Package Details: edb-debugger 1.5.0-2

Git Clone URL: https://aur.archlinux.org/edb-debugger.git (read-only, click to copy)
Package Base: edb-debugger
Description: EDB (Evan's Debugger) is a cross platform AArch32/x86/x86-64 debugger, inspired by Ollydbg.
Upstream URL: http://www.codef00.com/projects#debugger
Keywords: binary debugger ollydbg qt qt5
Licenses: GPL2
Submitter: None
Maintainer: revel (tbhaxor)
Last Packager: revel
Votes: 92
Popularity: 0.010042
First Submitted: 2007-04-27 15:24 (UTC)
Last Updated: 2024-03-24 11:46 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

revel commented on 2023-10-29 01:55 (UTC)

@tbhaxor added you to co-maintainers, you should be able to push now

tbhaxor commented on 2023-10-26 21:58 (UTC) (edited on 2023-10-29 02:17 (UTC) by tbhaxor)

Hey, I fixed some warnings and using nproc in the build function. But couldn't push it. So anyone who is maintainer, please help me.

diff --git a/.SRCINFO b/.SRCINFO
index f47295f..448f37e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,18 +2,22 @@ pkgbase = edb-debugger
    pkgdesc = EDB (Evan's Debugger) is a cross platform AArch32/x86/x86-64 debugger, inspired by Ollydbg.
    pkgver = 1.4.0
-       pkgrel = 1
+   pkgrel = 2
    url = http://www.codef00.com/projects#debugger
    arch = i686
    arch = x86_64
    license = GPL2
    makedepends = cmake
+   makedepends = coreutils
    depends = qt5-xmlpatterns>=5.9
    depends = qt5-svg>=5.9
    depends = capstone>=3.0
    optdepends = graphviz>=2.38.0
    source = https://github.com/eteran/edb-debugger/releases/download/1.4.0/edb-debugger-1.4.0.tgz
    source = edb.desktop
+   source = cmake-fixes.patch
    sha256sums = 0eb2c5d17493ab0e7e0a0748eefa5733ec90329631cc8db87f2943e90f91b726
    sha256sums = f3e725642c6b87d5a7fd25331a9560d4f9803c22566875b722bc27e275f311a6
+   sha256sums = 134d7ff9012588f10270955634ae70f1044f8538a00db29eddbdc7b8cd77fb08

 pkgname = edb-debugger
diff --git a/PKGBUILD b/PKGBUILD
index 9a75398..675aa9d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,48 +1,46 @@
 # Maintainer: revel <revelΘmuub·net>
 # Contributor: shild <sxp@bk.ru>
 # Contributor: m4tx <m4tx@m4tx.p>
+# Contributor: tbhaxor <tbhaxor@proton.me>

 pkgname=edb-debugger
 pkgver=1.4.0
-pkgrel=1
+pkgrel=2
 pkgdesc="EDB (Evan's Debugger) is a cross platform AArch32/x86/x86-64 debugger, inspired by Ollydbg."
 arch=('i686' 'x86_64')
 url='http://www.codef00.com/projects#debugger'
 license=('GPL2')
 depends=('qt5-xmlpatterns>=5.9' 'qt5-svg>=5.9' 'capstone>=3.0')
-makedepends=('cmake')
+makedepends=('cmake' 'coreutils')
 optdepends=('graphviz>=2.38.0')
 source=("https://github.com/eteran/edb-debugger/releases/download/$pkgver/edb-debugger-$pkgver.tgz"
-        'edb.desktop')
+        'edb.desktop' 
+   'cmake-fixes.patch')
 sha256sums=('0eb2c5d17493ab0e7e0a0748eefa5733ec90329631cc8db87f2943e90f91b726'
-            'f3e725642c6b87d5a7fd25331a9560d4f9803c22566875b722bc27e275f311a6')
+            'f3e725642c6b87d5a7fd25331a9560d4f9803c22566875b722bc27e275f311a6'
+            '134d7ff9012588f10270955634ae70f1044f8538a00db29eddbdc7b8cd77fb08')

 prepare() {
-  cd "edb-debugger"
+  patch $pkgname/src/CMakeLists.txt cmake-fixes.patch
+  cmake -S$pkgname -Bbuild -Wno-deprecated \
+   -DCMAKE_INSTALL_PREFIX="$pkgdir/usr/" \
+   -DDEFAULT_PLUGIN_DIR="/usr/lib/edb/"
 }

 build() {
-  cd "edb-debugger"
-  [ ! -d build ] && mkdir build
-  cd build
-  cmake -DCMAKE_INSTALL_PREFIX="$pkgdir/usr/" -DDEFAULT_PLUGIN_PATH="/usr/lib/edb/" ..
-  make
+  cmake --build build -- -j$(nproc)
 }

 package() {
-  cd "edb-debugger"
-  cd build
-
-  # install to pkg dir
-  make install
+  cmake --install build

   # correct /usr/lib64 -> /usr/lib on x86_64
 #  [ "$CARCH" = "x86_64" ] && (mv "$pkgdir/usr/lib64" "$pkgdir/usr/lib")

   # icons
-  cd ..
-  install -Dm644 src/res/images/edb48-logo.png "$pkgdir/usr/share/pixmaps/edb.png"
-  install -Dm644 src/res/images/edb48-logo.png "$pkgdir/usr/share/icons/hicolor/48x48/apps/edb.png"
+  install -Dm644 $srcdir/$pkgname/src/res/images/edb48-logo.png "$pkgdir/usr/share/pixmaps/edb.png"
+  install -Dm644 $srcdir/$pkgname/src/res/images/edb48-logo.png "$pkgdir/usr/share/icons/hicolor/48x48/apps/edb.png"

   # install desktop file
   cd ..
diff --git a/cmake-fixes.patch b/cmake-fixes.patch
new file mode 100644
index 0000000..380b22c
--- /dev/null
+++ b/cmake-fixes.patch
@@ -0,0 +1,28 @@
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index ce80cbbb..862a6a19 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -172,7 +172,7 @@ set(edb_SRCS
+   ${PROJECT_SOURCE_DIR}/include/util/Math.h
+   ${PROJECT_SOURCE_DIR}/include/util/String.h
+   ${PROJECT_SOURCE_DIR}/include/util/Error.h
+-  ${PROJECT_SOURCE_DIR}/include/version.h
++  ${PROJECT_SOURCE_DIR}/include/version.h.in
+ )
+ 
+ if(TARGET_ARCH_FAMILY_X86)
+@@ -260,9 +260,11 @@ if(UNIX AND TARGET_ARCH_FAMILY_X86)
+   endif()
+ endif()
+ 
+-target_compile_definitions(edb PRIVATE
+-  -DDEFAULT_PLUGIN_PATH=\"${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/edb\"
+-)
++if (NOT DEFINED DEFAULT_PLUGIN_DIR)
++  message(STATUS "Using default value of EDB Plugin directory")
++  set(DEFAULT_PLUGIN_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/edb")
++endif()
++target_compile_definitions(edb PRIVATE -DDEFAULT_PLUGIN_PATH="${DEFAULT_PLUGIN_DIR}")
+ 
+ target_link_libraries(edb
+   ${CAPSTONE_LIBRARIES}

Anix commented on 2023-08-12 14:06 (UTC)

Hello, please update to version 1.4

revel commented on 2023-05-25 22:25 (UTC)

It's indeed gcc 13 related issue. They already fixed it in the edb repo, but no new release was made so far. I patched it up on my side though, so it should work fine now. Thanks for the notification.

mxlgv commented on 2023-05-23 17:56 (UTC)

Hello! I see a build error:

/home/max/.cache/yay/edb-debugger/src/edb-debugger/plugins/DebuggerCore/unix/linux/FeatureDetect.cpp:138:61: error: 'uintptr_t' is not a type name
  138 | const auto addr = reinterpret_cast<uintptr_t>(&edb::version) & pageAlignMask;
      | ^~~~~~~~~
/home/max/.cache/yay/edb-debugger/src/edb-debugger/plugins/DebuggerCore/unix/linux/FeatureDetect.cpp:29:1: note: "uintptr_t" is defined in header "<cstdint>" ; did you forget "#include <cstdint>"?
   28 | #include <sys/wait.h>
  +++ |+#include <cstdint>
   29 | #include <unistd.h>

It seems to me that the problem is in the source code itself, but it may be that I have gcc-13.

revel commented on 2022-06-22 04:13 (UTC)

Thanks @Lombardo, it should work fine now.

Lombardo commented on 2022-06-22 03:20 (UTC)

Hi first time facing issues with an AUR package. Lemme know if you need other info! https://pastebin.pl/view/196adfe2

revel commented on 2020-10-13 09:07 (UTC)

Thanks @con-fused, fixed!

rukh-debug commented on 2020-10-13 03:45 (UTC)

There are errors in building, something related to CMAKE... Qstring Split and stuff.

https://pastebin.pl/view/dae3fec7