commit e393b4fbc59965a1679c8b6cd77c780cbc07eaea
Author: Jakub Bogusz <[email protected]>
Date:   Fri Oct 9 19:49:00 2020 +0200

    - added no-common patch (fixes build with -fno-common, gcc 10 default)

 mbrowse-no-common.patch | 11 +++++++++++
 mbrowse.spec            |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/mbrowse.spec b/mbrowse.spec
index f754ee0..1be185a 100644
--- a/mbrowse.spec
+++ b/mbrowse.spec
@@ -7,6 +7,7 @@ License:        GPL v2
 Group:         X11/Applications/Networking
 Source0:       
http://downloads.sourceforge.net/mbrowse/%{name}-%{version}.tar.gz
 # Source0-md5: 9857a88d2e6246384587350a647e605d
+Patch0:                %{name}-no-common.patch
 URL:           https://sourceforge.net/projects/mbrowse/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -23,6 +24,7 @@ Mbrowse jest przeglądarką SNMP MIB bazującą na GTK+ i 
net-snmp.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__aclocal}
diff --git a/mbrowse-no-common.patch b/mbrowse-no-common.patch
new file mode 100644
index 0000000..e05b091
--- /dev/null
+++ b/mbrowse-no-common.patch
@@ -0,0 +1,11 @@
+--- mbrowse-0.4.3/src/callbacks.c.orig 2010-11-16 11:20:23.000000000 +0100
++++ mbrowse-0.4.3/src/callbacks.c      2020-10-09 19:47:28.403373236 +0200
+@@ -28,7 +28,7 @@
+ extern int context_id;
+ extern int tview;
+ 
+-struct menu_items bookmark_items[128];
++extern struct menu_items bookmark_items[128];
+ extern int dont_select_damnit;
+ extern int dont_update_entry;
+ static struct tree *mibtree;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mbrowse.git/commitdiff/e393b4fbc59965a1679c8b6cd77c780cbc07eaea

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to