[arch-commits] Commit in nemiver/trunk (3 files)

Alexander Rødseth arodseth at archlinux.org
Mon May 24 20:42:25 UTC 2021


    Date: Monday, May 24, 2021 @ 20:42:24
  Author: arodseth
Revision: 944918

upgpkg: nemiver 0.9.6-9

Added:
  nemiver/trunk/0001-Fix-compiliation-warnings-errors.patch
  nemiver/trunk/0001-Use-RefPtr-bool-operator-in-the-conditions.patch
Modified:
  nemiver/trunk/PKGBUILD

-------------------------------------------------------+
 0001-Fix-compiliation-warnings-errors.patch           |   39 +++++++++++
 0001-Use-RefPtr-bool-operator-in-the-conditions.patch |   36 ++++++++++
 PKGBUILD                                              |   53 ++++++++--------
 3 files changed, 102 insertions(+), 26 deletions(-)

Added: 0001-Fix-compiliation-warnings-errors.patch
===================================================================
--- 0001-Fix-compiliation-warnings-errors.patch	                        (rev 0)
+++ 0001-Fix-compiliation-warnings-errors.patch	2021-05-24 20:42:24 UTC (rev 944918)
@@ -0,0 +1,39 @@
+From e0e42221ceb77d88be64fac1c09792dc5c9e2f43 Mon Sep 17 00:00:00 2001
+From: Ben Iofel <iofelben at gmail.com>
+Date: Thu, 17 Mar 2016 18:28:02 -0400
+Subject: [PATCH] Fix compiliation warnings & errors
+
+---
+ src/dbgengine/nmv-dbg-common.h        | 2 +-
+ src/dbgengine/nmv-i-var-list-walker.h | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/dbgengine/nmv-dbg-common.h b/src/dbgengine/nmv-dbg-common.h
+index ad3cc00b..0edac7c0 100644
+--- a/src/dbgengine/nmv-dbg-common.h
++++ b/src/dbgengine/nmv-dbg-common.h
+@@ -171,7 +171,7 @@ public:
+ 
+     bool has_slot () const
+     {
+-        return m_slot;
++        return static_cast<bool> (m_slot);
+     }
+ 
+     template<class T>
+diff --git a/src/dbgengine/nmv-i-var-list-walker.h b/src/dbgengine/nmv-i-var-list-walker.h
+index b719c0de..f2f3229d 100644
+--- a/src/dbgengine/nmv-i-var-list-walker.h
++++ b/src/dbgengine/nmv-i-var-list-walker.h
+@@ -22,7 +22,7 @@
+  *
+  *See COPYRIGHT file copyright information.
+  */
+-#ifndef __NMV_VAR_LIST_WALKER_H__
++#ifndef __NMV_I_VAR_LIST_WALKER_H__
+ #define __NMV_I_VAR_LIST_WALKER_H__
+ 
+ #include "nmv-i-var-walker.h"
+-- 
+2.13.0
+

Added: 0001-Use-RefPtr-bool-operator-in-the-conditions.patch
===================================================================
--- 0001-Use-RefPtr-bool-operator-in-the-conditions.patch	                        (rev 0)
+++ 0001-Use-RefPtr-bool-operator-in-the-conditions.patch	2021-05-24 20:42:24 UTC (rev 944918)
@@ -0,0 +1,36 @@
+From 262cf9657f9c2727a816972b348692adcc666008 Mon Sep 17 00:00:00 2001
+From: Marcin Kolny <marcin.kolny at gmail.com>
+Date: Fri, 1 Jul 2016 19:45:05 +0200
+Subject: [PATCH] Use RefPtr::bool() operator in the conditions
+
+Since bool() operator in RefPtr class is explicit,
+comparision with integer doesn't compile.
+---
+ src/persp/dbgperspective/nmv-dbg-perspective.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/persp/dbgperspective/nmv-dbg-perspective.cc b/src/persp/dbgperspective/nmv-dbg-perspective.cc
+index be652db5..ac207e49 100644
+--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc
++++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc
+@@ -5672,7 +5672,7 @@ DBGPerspective::switch_to_asm (const common::DisassembleInfo &a_info,
+     a_source_editor->clear_decorations ();
+ 
+     Glib::RefPtr<Gsv::Buffer> asm_buf;
+-    if ((asm_buf = a_source_editor->get_assembly_source_buffer ()) == 0) {
++    if (!(asm_buf = a_source_editor->get_assembly_source_buffer ())) {
+         SourceEditor::setup_buffer_mime_and_lang (asm_buf, "text/x-asm");
+         a_source_editor->register_assembly_source_buffer (asm_buf);
+         asm_buf = a_source_editor->get_assembly_source_buffer ();
+@@ -5720,7 +5720,7 @@ DBGPerspective::switch_to_source_code ()
+ 
+     Glib::RefPtr<Gsv::Buffer> source_buf;
+     UString source_path;
+-    if ((source_buf = source_editor->get_non_assembly_source_buffer ()) == 0) {
++    if (!(source_buf = source_editor->get_non_assembly_source_buffer ())) {
+         // Woops!
+         // We don't have any source code buffer. Let's try hard to get
+         // the source code corresponding to the current frame. For that,
+-- 
+2.13.0
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-24 20:41:49 UTC (rev 944917)
+++ PKGBUILD	2021-05-24 20:42:24 UTC (rev 944918)
@@ -1,45 +1,46 @@
-# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: loqs
 # Contributor: jordz <jordz at archlinux.us>
 
 pkgname=nemiver
 pkgver=0.9.6
-pkgrel=8
+pkgrel=9
 pkgdesc='C/C++ debugger for GNOME'
-arch=('x86_64')
-license=('GPL')
-url='https://projects.gnome.org/nemiver/'
-depends=('gdlmm' 'gdb' 'gtksourceviewmm' 'libgtop' 'vte3' 'ghex' 'gsettings-desktop-schemas')
-makedepends=('boost' 'intltool' 'gnome-common' 'yelp-tools' 'git')
-source=("git+https://git.gnome.org/browse/nemiver#commit=1ef54607bfb463")
-options=('!emptydirs')
-sha256sums=('SKIP')
+arch=(x86_64)
+license=(GPL)
+url='https://projects.gnome.org/nemiver'
+depends=(gdb gdlmm ghex gsettings-desktop-schemas gtksourceviewmm libgtop vte3)
+makedepends=(boost gnome-common intltool yelp-tools)
+source=("https://download.gnome.org/sources/nemiver/${pkgver%.*}/nemiver-$pkgver.tar.xz"
+         0001-Fix-compiliation-warnings-errors.patch
+         0001-Use-RefPtr-bool-operator-in-the-conditions.patch)
+options=(!emptydirs)
+b2sums=('c7b9aeb7914498af540f664f435cb2e9c07f8b2845f8bc6f5bdc3ee2b2173346d964d44ce4a588665180670cca61581397f33bfc5ac8dd2b3501e8d951d8dec5'
+        '72db3dc25466434359ecf90d4917d783affda7daba145ea29f2116599b0519bd6450092a88998c48dfe41df732cdd981641c89b9886a946c121b64f9dfd39961'
+        '41dbf5fdac1c109d11544de13754e63ac17c733220572864943a592ae747d5d1d192d511619540da20d279e924278fd9e1d0b98cd8440bd1829bfe112c6449ec')
 
 prepare() {
-  cd "$pkgname"
-
-  NOCONFIGURE=1 ./autogen.sh
+  cd $pkgname-$pkgver
+  patch -p1 -i ../0001-Fix-compiliation-warnings-errors.patch
+  patch -p1 -i ../0001-Use-RefPtr-bool-operator-in-the-conditions.patch
 }
 
 build() {
-  cd "$pkgname"
-
+  cd $pkgname-$pkgver
   ./configure \
+    --disable-schemas-compile \
+    --disable-static \
+    --enable-gsettings=yes \
+    --enable-memoryview=yes \
+    --enable-symsvis=yes \
+    --localstatedir=/var \
     --prefix=/usr \
     --sysconfdir=/etc \
-    --localstatedir=/var \
-    --disable-static \
-    --with-boost \
-    --enable-symsvis=yes \
-    --enable-memoryview=yes \
-    --enable-gsettings=yes \
-    --disable-schemas-compile
+    --with-boost
   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
 }
 
 package() {
-  make -C "$pkgname" DESTDIR="$pkgdir" install
+  make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
 }
-
-# getver: git.gnome.org/browse/nemiver/plain/configure.ac
-# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list